bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

Sc 195977/add bringup uart configurability #55

Closed victorsowa12 closed 11 months ago

victorsowa12 commented 11 months ago

Adding the ability to change the baud of the USARTs/LPUART when using debug_uart.c. This is to allow the testing of SDI-12 with the bringup_mote app. Furthermore, to support this I added the ability to set the rx pin level high/low, as it needs to be low(inverted) for SDI-12. Lastly, I got rid of the configAssert when the RX line buffer overflows. Instead I added a print statement, clear the memory and reset the index to 0.

Example back and forth via SDI-12 on two bringup_mote's

Also note the gpio pins that need to be set! Sender gpios:

Receiver Gpios:

Serial settings:

Screen Shot 2023-11-28 at 2 51 55 PM

Trace from SDI-12 transaction (Also traced the Tx/RX lines of the UART)

Screen Shot 2023-11-28 at 2 54 10 PM

Showing the settings of the logic analyzer

Screen Shot 2023-11-28 at 2 54 28 PM

Example buffer overflow:

Screen Shot 2023-11-28 at 3 05 19 PM