Fabrizio Tettoni Member Sep 8, 2017 #1 Hi All, i'm using the GPIO Serial of my RPi for a project. It's connected to a MAX485. At the end of the serial transmission i need to change the driver direction. How can I know when the trasmission has ended so that i can switch the driver direction to enable receiving?
Hi All, i'm using the GPIO Serial of my RPi for a project. It's connected to a MAX485. At the end of the serial transmission i need to change the driver direction. How can I know when the trasmission has ended so that i can switch the driver direction to enable receiving?
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2017 #2 There is no way to know when the transmission has ended. However it should happen quite fast. Add Sleep(100) and change the direction. Upvote 0
There is no way to know when the transmission has ended. However it should happen quite fast. Add Sleep(100) and change the direction.
Fabrizio Tettoni Member Sep 11, 2017 #3 I know a delay would be helpful but I desired a more elegant solution, within 100ms the connected devide should have already answered. We made an hardware workaround, solved. Upvote 0
I know a delay would be helpful but I desired a more elegant solution, within 100ms the connected devide should have already answered. We made an hardware workaround, solved.