Provided is a communicating method being based on
Internet of Things electric
temperature measurement equipment and enabling an RS485
bus and a
CAN bus to be compatible. A method for stipulating unified master-slave equipment rules,
network address assignment rules, frame formats, data
package formats,
bus resource allocation rules and
reserved word rules consistent for the RS485
bus and the
CAN bus is adopted. Firstly, network master equipment and network slave equipment are defined, then network addresses, the frame formats, the data
package formats, bus
resource allocation and reserved words are defined, one node in an RS485 and
CAN bus network is assigned to be the master equipment, and all other nodes are used as the
salve equipment. The master equipment is used for bus
resource allocation. A variable is stored in the slave equipment, and used for recording the types of the current buses. The two buses are made to be in communication with the unified method. The method is good in compatibility of the RS485 bus and the CAN bus, meanwhile, the type of hardware equipment does not to be concerned in an
application layer, wasted time due to the fact that two sets of
software are developed for the same equipment can be avoided, meanwhile,
system complexity can be lowered, the probability of mistakes can be reduced, and cost of development and maintenance links can be saved.