2022-07-06 02:03 PM
Why I get \0 at the end of the transmission?
I imaging the \0 is a NUL termination character but I have seen from the terminal that sometimes is not received or arrives with a big delay.
Could somebody tell me anything about it?
Thanks in advance.
Solved! Go to Solution.
2022-07-08 12:03 AM
Thank you Piranha. This made it work. I have learnt A lot fro this issue.
I changed the TX pin to pull-up and now is working fine.
2022-07-08 02:36 AM
"you need to understand why the original code disabled the transmitter"
Indeed.
RS422 was mentioned in one of the code comments above - perhaps it's to do with that/
Or, perhaps, RS485 was meant - that would definitely require disabling the transmitter when idle ... ?
2022-07-08 03:53 AM
RS422 is being used on this project.
Thanks for the support :)
2022-07-08 04:20 AM
Is it being used half-duplex, so that the transmitter needs to be disabled when idle?
2022-07-08 07:17 AM
Don't think so, but I will investigate.
2022-07-08 07:42 AM
Actually, RS422 is Multidrop anyhow - so would definitely need transmitter disabling: