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:
gpio clr vbus_5v_en
gpio clr bf_5v_en
Receiver Gpios:
gpio clr vbus_5v_en
gpio clr bf_5v_en
gpio set bf_sdi12_oe
Serial settings:
serial rxLevel lpuart low
serial baud lpuart 1200
serial enable lpuart
Trace from SDI-12 transaction (Also traced the Tx/RX lines of the UART)
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:
gpio clr vbus_5v_en
gpio clr bf_5v_en
Receiver Gpios:
gpio clr vbus_5v_en
gpio clr bf_5v_en
gpio set bf_sdi12_oe
Serial settings:
serial rxLevel lpuart low
serial baud lpuart 1200
serial enable lpuart
Trace from SDI-12 transaction (Also traced the Tx/RX lines of the UART)
Showing the settings of the logic analyzer
Example buffer overflow: