Software uart
Posted: Wed Dec 12, 2018 2:39 am
Hi all,
Recently I purchase 5te decagon soil sensor:
https://geomor.com.pl/wp-content/upload ... -Guide.pdf
for reading soil temp, conductivity, etc, its connected it on compute module with appropriate electronic components.
Its data Line is connected with my mini uart (gpio 32 and 33). In given specification i focus on ddl serial response where i should get data on the serial uart, and i don't need to work with sdi-12 protocol.
From sensor on serial port i received some garbage bytes, and those should be ascii text.
Anyways i found out it is probably because both(ddl serial and sdi-12) on my sensor requires boud rate 1200! and mini uart has boudrate dependent on core_clock( i think gpu clock)!
So I didn't want to overclock my pi, so I decide to use software uart on 32 and 33 gpio pins.
Following https://github.com/adrianomarto/soft_uart ,I manage software uart on 32 and 33, but still receiving garbage!!
Is this happening because i choose gpio of mini uart (i disable ttyS0 in boot/config.txt)?
If anybody have similar exparience with sensor or perceive possible problem it would be great to share thoughts.
Recently I purchase 5te decagon soil sensor:
https://geomor.com.pl/wp-content/upload ... -Guide.pdf
for reading soil temp, conductivity, etc, its connected it on compute module with appropriate electronic components.
Its data Line is connected with my mini uart (gpio 32 and 33). In given specification i focus on ddl serial response where i should get data on the serial uart, and i don't need to work with sdi-12 protocol.
From sensor on serial port i received some garbage bytes, and those should be ascii text.
Anyways i found out it is probably because both(ddl serial and sdi-12) on my sensor requires boud rate 1200! and mini uart has boudrate dependent on core_clock( i think gpu clock)!
So I didn't want to overclock my pi, so I decide to use software uart on 32 and 33 gpio pins.
Following https://github.com/adrianomarto/soft_uart ,I manage software uart on 32 and 33, but still receiving garbage!!
Is this happening because i choose gpio of mini uart (i disable ttyS0 in boot/config.txt)?
If anybody have similar exparience with sensor or perceive possible problem it would be great to share thoughts.