Synchronize read and write when using the RMT peripheral
Posted: Thu Jun 27, 2019 2:46 pm
So I created a VAN bus protocol reader and writer library. They can be found here:
https://github.com/morcibacsi/esp32_rmt_van_rx
https://github.com/morcibacsi/esp32_rmt_van_tx
Both are utilizing the RMT peripheral and they are working on their own. However to be able to send properly (when there are multiple clients on the bus) I need to know if the line is free for some period of time. Unfortunately I have no idea where to start, should I raise a signal from the reader when it is idle? If yes how? Is there any recommendations how should I detect if the line is free? I am using sn65hvd230 CAN transceivers to interface the bus.
https://github.com/morcibacsi/esp32_rmt_van_rx
https://github.com/morcibacsi/esp32_rmt_van_tx
Both are utilizing the RMT peripheral and they are working on their own. However to be able to send properly (when there are multiple clients on the bus) I need to know if the line is free for some period of time. Unfortunately I have no idea where to start, should I raise a signal from the reader when it is idle? If yes how? Is there any recommendations how should I detect if the line is free? I am using sn65hvd230 CAN transceivers to interface the bus.