serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
https://serialport.io
MIT License
5.76k stars 1k forks source link

How to realize RS485 serial communication by changing the state of GPIO port in linux-arm64 system #2814

Open qwe104 opened 1 month ago

qwe104 commented 1 month ago

When transmitting, the GPIO value should be changed to 1, and to be sent successfully, the GPIO value should be changed to 0 immediately. Now, because the time point of transmitting successfully cannot be accurately found to change the GPIO value to 0 immediately, the modbus transmission success rate is low