domoticz

using PySerial don't work until port is opened with minicom

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 21:21:00
问题 I developed a plugin for Domoticz on a RPi3B+. This plugin is in Python. I want to send commands to a Arduino board using a USB serial port. The plugin opens the serial port, sends a command and closes the serial port. It works well except after a reboot. After a reboot, the port is open, and the command seems to be sent to the Arduino, but it doesn't understand it, just as if the baud rate were wrong. Arduino's Rx LED is blinking. If I open the serial in parallel using minicom and exit