soft_uart icon indicating copy to clipboard operation
soft_uart copied to clipboard

Pi Zero data corruption on RX, can you add a RX Buffer?

Open mytechguyri opened this issue 4 years ago • 0 comments

I've got an application where I have no choice but to use 9600 baud, I'm initializing a radio tranceiver module (DRA818) I have to send a short series of commands over the soft_uart and then read the response to ensure that the command executed correctly.

on the Pi Zero this seems to be more than a challenge for the hardware at 9600 baud. As such, I'm getting data corruption when I receive the response (i.e. instead of receiving '+DMOCONNECT:0' from the device, I may get '+DMOCONN4CT:0 ' I see that you opted to not use a receive buffer, unlike the 256 byte receive buffer implemented by https://github.com/themrleon/RpiSoft-UART

I honestly don't understand enough about the code looking at it, but do you think adding a receive buffer would help in this circumstance? I'm presuming there was a reason you opted not to implement the RX Buffer, and unfortunately, I'm not knowledgeable enough with C to add one in to try it.

mytechguyri avatar Apr 01 '20 23:04 mytechguyri