CodePudding user response:
With the 485 bus, can use the modbus communication protocol, can also custom communication protocolCodePudding user response:
485 bus can achieve a host from the machine with multiple communication (communication protocol can use standard MODBUS, of course), but the 485 bus communication must follow the way of question and answer - bus at a time only allows a device to send data, if multiple devices to send data together will result in data loss, so want to use more than 485 bus implementation machine communications have to consider timing and good communication mechanism,More recommend you use CAN to realize the owner from the communications,
CodePudding user response:
Simply open the master thread polling, the data is sent from the machine