Search found 13 matches

by NateOdem
Wed May 25, 2022 9:11 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

How is rec a string? it's = uart.read(). As I understand it, (and I may be completely wrong, - and if so, PLEASE correct me) uart.read() reads a single byte, so rec should be a byte?. I am not ignoring anything that has been said, I am just not understanding anything the way it has been stated. I am...
by NateOdem
Thu May 19, 2022 9:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

Ok, can anyone look at this and see if they have an idea as to why it's not working? ( for reference, the TX side is transmitting: "(,2,255,1,0,0,1,1,0,1,0,126,685,1011,975,)" from machine import Pin,UART import _thread from time import sleep uart = UART(1,115200, tx=Pin(4), rx=Pin(5)) command = [] ...
by NateOdem
Fri May 13, 2022 3:56 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

Ok, well, it worked when feeding it data through the repl, but not wile receiving data over uart. :x What am I not dong right?
by NateOdem
Thu May 12, 2022 10:53 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

Yea, I just wrote something up using that idea myself. I just need to wait until I get home to try it out on the hardware. It reads 1 byte at a time, and if it's not the "start" char, then it does nothing, if it is, then it appends the list until it reaches the "end" char, in which case it will chec...
by NateOdem
Thu May 12, 2022 4:25 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

Thank you, I'll try it when I get home tonight. I was trying to read the 'line' as it came in, and instead, you are suggesting read each character, append the list with that received char, and when the received char == "command end" , execute my function, and reset the list to "empty". I can follow ...
by NateOdem
Wed May 11, 2022 11:11 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

So how do I get the receiver to stop reading the line after ')' then? This is the part I am confused about. The only way I get it to work is to add a delay after reading, which slows down the response of the controls.
by NateOdem
Wed May 11, 2022 9:28 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

I never said it was all binary, or a byte stream. I am trying to read (2) Joysticks, (4) buttons, (4) switches, and (4) pots, arrange the info into a comma separated "command" string, and send over Lora via UART connection, then.. Receive the command string over LoRa, via UART, parse into variables ...
by NateOdem
Wed May 11, 2022 5:53 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

I am under the impression that .sendbreak() combined with the .readline() on the RX side, would have the rx read a "line" (and stop at the break) and return to a new line and repeat - which should output something like: (0, 6, 153, 1, 1, 1, 1, 1, 1, 1, 1, 255, 103, 1005, 394) (0, 6, 153, 1, 1, 1, 1,...
by NateOdem
Wed May 11, 2022 5:04 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

If I put a long enough delay after sending, the RX receives just fine - one full command on each line received. I just need it to read quicker. I have added the .sendbreak() after, which from what I understand, sends a break longer than the receive byte time - letting the RX side know where the end ...
by NateOdem
Wed May 11, 2022 3:42 pm
Forum: Raspberry Pi microcontroller boards
Topic: help with E32 program (simple)
Replies: 25
Views: 8329

Re: help with E32 program (simple)

Anyone.......Bueller......Bueller.....?