Skip to content

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

@mytechguyri

Description

@mytechguyri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions