CN114500159B - Wired communication method and device of central range hood system and electronic equipment - Google Patents

Wired communication method and device of central range hood system and electronic equipment Download PDF

Info

Publication number
CN114500159B
CN114500159B CN202210147168.XA CN202210147168A CN114500159B CN 114500159 B CN114500159 B CN 114500159B CN 202210147168 A CN202210147168 A CN 202210147168A CN 114500159 B CN114500159 B CN 114500159B
Authority
CN
China
Prior art keywords
data
bus
serial port
processed
reported
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210147168.XA
Other languages
Chinese (zh)
Other versions
CN114500159A (en
Inventor
任富佳
李海涛
陈晓伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Robam Appliances Co Ltd
Original Assignee
Hangzhou Robam Appliances Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Robam Appliances Co Ltd filed Critical Hangzhou Robam Appliances Co Ltd
Priority to CN202210147168.XA priority Critical patent/CN114500159B/en
Publication of CN114500159A publication Critical patent/CN114500159A/en
Application granted granted Critical
Publication of CN114500159B publication Critical patent/CN114500159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection (CSMA-CD)
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24CDOMESTIC STOVES OR RANGES ; DETAILS OF DOMESTIC STOVES OR RANGES, OF GENERAL APPLICATION
    • F24C15/00Details
    • F24C15/20Removing cooking fumes
    • F24C15/2021Arrangement or mounting of control or safety systems

Abstract

The invention provides a wired communication method, a device and electronic equipment of a central range hood system, which adopt software to realize bus idle detection and avoid bus competition problem when a plurality of nodes on a bus actively initiate communication. Meanwhile, according to the method, a target node on the RS485 bus can actively initiate communication transmission data according to the timing reporting time and whether the current RS485 bus is in an idle state, so that direct transmission communication among a plurality of nodes on the bus is realized, the defect of poor instantaneity caused by master-slave polling communication is overcome, meanwhile, the problems of poor reliability and increased hardware cost of a hardware idle detection scheme are avoided, and the technical problems of high cost, poor reliability and poor instantaneity of a wired communication method in the traditional central range hood system are solved.

Description

Wired communication method and device of central range hood system and electronic equipment
Technical Field
The invention relates to the technical field of central range hoods, in particular to a wired communication method, a device and electronic equipment of a central range hood system.
Background
The existing central range hood system mostly adopts CAN (Controller Area Network ) buses for wired communication, but the maximum message length transmitted by the CAN buses is only 8 bytes, and the large data volume communication needs to be packetized and packed, so that the software processing logic is complex and the communication efficiency is low; meanwhile, the CAN bus needs to be provided with a special controller and a transceiver, and a general microprocessor realizes CAN bus data receiving and transmitting through controlling the external independent CAN controller and the transceiver, or adopts a microprocessor integrating the CAN controller and the transceiver to realize CAN bus data receiving and transmitting. However, in any of the above schemes, the hardware cost of the CAN bus communication is relatively high; finally, the CAN bus is a polarized differential bus, generally adopts two-wire system or three-wire system networking, and if two data wires are reversely connected in the networking, the whole bus is paralyzed and cannot be communicated, so that the adjustment difficulty is high. Therefore, at present, an RS (Recommended Standard, serial communication standard) 485 bus is also used to realize low-cost and high-efficiency wired networking, but when the traditional RS485 bus uses UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiver Transmitter) to realize half-duplex communication, the RS485 bus does not support hardware arbitration and can only be used for master-slave polling communication because the RS485 bus does not have a hardware arbitration mechanism, and GPIO (General Purpose Input/Output) resources are added to each node of the bus for BUSY signal control and detection, so that the number of nodes on the bus is more, the GPIO driving capability is limited during long-distance transmission, the reliability is poor, and the instantaneity is poor; and the traditional RS485 transceiver has polarity, if two data lines are reversely connected, the whole bus is broken down and cannot be communicated.
In summary, the wired communication method in the existing central range hood system has the technical problems of high cost, poor reliability and poor real-time performance.
Disclosure of Invention
The invention aims to provide a wired communication method, a device and electronic equipment of a central range hood system, so as to solve the technical problems of high cost, poor reliability and poor instantaneity of the wired communication method in the traditional central range hood system.
In a first aspect, an embodiment of the present invention provides a wired communication method of a central range hood system, which is applied to a target node, where the target node is any device of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and the method includes:
when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state;
if the RS485 bus is in the idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling a transmitting function of the serial port after the data to be reported is transmitted;
when the timing reporting time of the data is not reached, determining whether the data to be processed exists;
if the data to be processed does not exist, starting to receive the reported data through the serial port, and setting the RS485 bus to be in a busy state;
After the report data is received, determining the report data as the data to be processed, setting the RS485 bus to be in an idle state, and disabling the receiving function of the serial port;
and if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed.
Further, determining whether the RS485 bus is in an idle state includes: determining whether the RS485 bus is in an idle state according to a UartBusyyflag identification bit, wherein when the UartBusysflag identification bit is a first preset value, the RS485 bus is in the idle state, and when the UartBusysflag identification bit is a second preset value, the RS485 bus is in a busy state;
determining whether there is data to be processed, comprising: and determining whether the data to be processed exists or not according to the UartTaskFlag identification bit, wherein when the UartTaskFlag identification bit is the first preset value, the data to be processed is determined to be absent, and when the UartTaskFlag identification bit is the second preset value, the data to be processed is determined to exist.
Further, sending the data to be reported to the RS485 bus through a serial port includes: filling the data to be reported into the serial port; starting a sending DMA of the serial port to send the data to be reported, and disabling the sending DMA after the data to be reported is sent;
The reporting data is received through the serial port, and the RS485 bus is set to be in a busy state, which comprises the following steps: setting the identification bit for starting to receive the reported data as a second preset value; setting a UartBushFlag identification bit to the second preset value; and starting the receiving DMA of the serial port to receive the reported data.
Further, when the receiving of the report data is completed, determining the report data as the data to be processed, setting the RS485 bus to an idle state, and disabling the receiving function of the serial port, including: setting an identification bit for starting to receive the reported data as a first preset value; setting the identification bit with the data receiving completion as a second preset value; setting a UartTaskFlag identification bit to the second preset value; setting a UartBushFlag identification bit to the first preset value; and disabling the receiving DMA of the serial port.
Clearing the data to be processed, including: the uartttaskflag flag identification bit is set to a first preset value.
Further, the method further comprises:
when the timing reporting time of the data is reached, if the RS485 bus is in a busy state, repeatedly executing the step of determining whether the RS485 bus is in an idle state after delaying for a preset time length until the RS485 bus is in the idle state;
And transmitting data to be reported to the RS485 bus through a serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted.
Further, before determining whether the RS485 bus is in an idle state when a timing reporting time of data is reached, the method further includes:
and executing serial port initialization, DMA initialization and identification bit initialization.
Further, the main unit and the plurality of terminals of the central range hood system each include an internet of things control device, and the internet of things control device includes: the non-polar RS485 chip, be connected through the RS485 bus between the non-polar RS485 chip of host computer and the non-polar RS485 chip of a plurality of terminal, wherein, the terminal includes: a power distribution valve and a terminal.
In a second aspect, an embodiment of the present invention further provides a wired communication device of a central range hood system, where the wired communication device is applied to a target node, where the target node is any one of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and the device includes:
the first determining unit is used for determining whether the RS485 bus is in an idle state or not when the timing reporting time of the data is reached;
The data transmitting unit is used for transmitting data to be reported to the RS485 bus through a serial port if the RS485 bus is in the idle state, and disabling the transmitting function of the serial port after the data to be reported is transmitted;
a second determining unit, configured to determine whether there is data to be processed when the timing reporting time of the data is not reached;
the first receiving unit is used for starting to receive the report data through the serial port if the data to be processed do not exist, and setting the RS485 bus to be in a busy state;
the second receiving unit is used for determining the reported data as the data to be processed after the reported data is received, setting the RS485 bus as an idle state and disabling the receiving function of the serial port;
and the data processing unit is used for analyzing the data to be processed and clearing the data to be processed if the timing reporting time of the data is not reached and the data to be processed exists.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of the first aspects.
In an embodiment of the present invention, a wired communication method of a central range hood system is provided, and the wired communication method is applied to a target node, where the target node is any device of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and the wired communication method includes: when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state; if the RS485 bus is in an idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted; when the timing reporting time of the data is not reached, determining whether the data to be processed exists; if the data to be processed does not exist, the data to be reported is received through the serial port, and the RS485 bus is set to be in a busy state; after the report data is received, determining the report data as data to be processed, setting an RS485 bus to be in an idle state, and disabling the receiving function of the serial port; if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed. As can be seen from the above description, the wired communication method of the central range hood system of the present invention adopts software to realize bus idle detection, and avoids bus contention problem when a plurality of nodes on the bus actively initiate communication. According to the method, the target node on the RS485 bus can actively initiate communication transmission data according to the timing reporting time and whether the current RS485 bus is in an idle state, so that direct communication among a plurality of nodes on the bus is realized, the defect of poor instantaneity caused by master-slave polling communication is overcome, meanwhile, the problems of poor reliability and increased hardware cost of a hardware idle detection scheme are avoided, and the technical problems of high cost, poor reliability and poor instantaneity of a wired communication method in the traditional central range hood system are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a wired communication method of a central range hood system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a central range hood system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a communication network of a nonpolar RS485 chip according to an embodiment of the present invention;
FIG. 4 is a flow chart of a primary function of a target node initiating communication according to an embodiment of the present invention;
FIG. 5 is a flow chart of a UART serial port received data subfunction of a target node according to an embodiment of the present invention;
FIG. 6 is a flow chart of a UART serial port transmit data subfunction of a target node according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a wired communication device of a central range hood system according to an embodiment of the present invention;
Fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, in the traditional wired communication method of the central range hood system, the CAN bus communication efficiency is low, the scheme cost is high, the debugging difficulty is high, and when the networking communication is realized by adopting the RS485 bus with hardware idle detection, the reliability is poor in long-distance communication because GPIO is required to be added to bus nodes, and the method is not applicable to the actual networking requirement of hundreds of meters on the central range hood system.
Based on the above, the embodiment provides a wired communication method of a central range hood system, which adopts software to realize bus idle detection, avoids the bus competition problem when each node on the bus actively initiates communication, avoids the problems of poor reliability and increased hardware cost of a hardware idle detection scheme, and overcomes the defect of poor real-time performance caused by main and slave polling communication.
For the convenience of understanding the present embodiment, a detailed description will be given of a wired communication method of a central range hood system disclosed in the embodiment of the present invention.
Embodiment one:
in accordance with an embodiment of the present invention, there is provided an embodiment of a wired communication method for a central range hood system, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown.
Fig. 1 is a flowchart of a wired communication method of a central range hood system according to an embodiment of the present invention, as shown in fig. 1, the method is applied to a target node, where the target node is any device of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and includes the following steps:
step S102, when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state;
in an embodiment of the present invention, referring to fig. 2, a central range hood system includes: the system comprises a cloud platform, a host (specifically comprising a fan and an Internet of things control device) and a plurality of terminals (each terminal comprises the Internet of things control device, a power distribution valve and a terminal (the terminal can be a range hood, an integrated kitchen and other range hood equipment, the embodiment of the invention is not particularly limited)), wherein the host is generally arranged at a public flue outlet of a residential roof and plays a role in assisting smoke discharging for smoke in the public flue, and the terminals are arranged at flue outlets of all households and communicate with the host in a wireless mode or a wired mode and realize the regulation and control of smoke discharging of the plurality of terminals in the public flue through real-time communication between the host and all terminals.
When the central range hood system adopts wired communication, the host and the terminals can be connected through the RS485 bus and can be used as nodes on the RS485 bus for wired communication. However, the RS485 bus realizes half duplex communication, and multiple nodes on the bus cannot send data at the same time, so when a target node on the bus, that is, any one of a host or multiple terminals, reaches a timing reporting time, it is required to determine whether the RS485 bus is in an idle state, and further determine whether to initiate communication transmission, where the timing reporting time is set by a cloud platform in the system.
Step S104, if the RS485 bus is in an idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling a transmitting function of the serial port after the data to be reported is transmitted;
specifically, because half duplex communication of the RS485 bus is realized by using a UART serial port, a microprocessor in the device corresponding to each node on the bus is provided with the UART serial port, and the UART serial port is used for realizing the sending and receiving of the report data.
When a host or any one of a plurality of terminals in the central range hood system reaches timing reporting time and confirms that the RS485 bus is in an idle state, the data to be reported can be sent through a UART serial port carried by a microprocessor of the central range hood system, and the sending function of the UART serial port is disabled after the data to be reported is sent, so that preparation is made for the next data to be reported.
Step S106, when the timing reporting time of the data is not reached, determining whether the data to be processed exists;
specifically, although the half duplex communication of the RS485 bus causes that a plurality of nodes on the bus cannot send data at the same time, the RS485 bus can realize bidirectional transmission of data, that is, for a device on a certain target node, the device can send data to be reported when the data timing reporting time is reached, or receive reported data sent by devices on other nodes when the data timing reporting time is not reached.
Therefore, when the target node on the bus RS485 does not reach the timing reporting time of the data, the UART serial port can be used to receive the data transmitted on the bus, but before the target node receives the data, it is required to confirm whether the UART serial port register of the microprocessor has data to be processed.
Step S108, if the data to be processed does not exist, the data to be reported is received through the serial port, and the RS485 bus is set to be in a busy state;
specifically, when the target node confirms that the UART serial port register of the microprocessor does not have data to be processed, the target node can receive the report data transmitted by any other node on the bus through the bus by utilizing the UART serial port, and sets the RS485 bus to be in a busy state when the report data is received.
Step S110, after the report data is received, determining the report data as data to be processed, setting an RS485 bus to be in an idle state, and disabling a receiving function of a serial port;
specifically, after the target node finishes receiving the data transmitted by the RS485 bus, the target node determines the received complete reported data as data to be processed and stores the data in the UART serial port register, and simultaneously changes the busy state of the RS485 bus into an idle state, disables the receiving function of the UART serial port and prepares for next receiving the reported data sent by other nodes.
Step S112, if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed.
Specifically, when the target node does not reach the data timing reporting time and confirms that the UART serial port register of the microprocessor stores the data to be processed, the target node analyzes the data to be processed by the microprocessor, and empties the data to be processed in the register after the analysis is completed, so as to prepare for storing the received reporting data next time.
In an embodiment of the present invention, a wired communication method of a central range hood system is provided, and the wired communication method is applied to a target node, where the target node is any device of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and the wired communication method includes: when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state; if the RS485 bus is in an idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted; when the timing reporting time of the data is not reached, determining whether the data to be processed exists; if the data to be processed does not exist, the data to be reported is received through the serial port, and the RS485 bus is set to be in a busy state; after the report data is received, determining the report data as data to be processed, setting an RS485 bus to be in an idle state, and disabling the receiving function of the serial port; if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed. As can be seen from the above description, the wired communication method of the central range hood system of the present invention adopts software to realize bus idle detection, and avoids bus contention problem when a plurality of nodes on the bus actively initiate communication. According to the method, the target node on the RS485 bus can actively initiate communication transmission data according to the timing reporting time and whether the current RS485 bus is in an idle state, so that direct communication among a plurality of nodes on the bus is realized, the defect of poor instantaneity caused by master-slave polling communication is overcome, meanwhile, the problems of poor reliability and increased hardware cost of a hardware idle detection scheme are avoided, and the technical problems of high cost, poor reliability and poor instantaneity of a wired communication method in the traditional central range hood system are solved.
The above-mentioned contents briefly describe a wired communication method of the central range hood system of the present invention, and detailed descriptions will be given below with respect to the specific contents.
In an alternative embodiment of the present invention, the step S102 of determining whether the RS485 bus is in an idle state includes: determining whether the RS485 bus is in an idle state according to the UartBushFlag identification bit, wherein the RS485 bus is in the idle state when the UartBushFlag identification bit is a first preset value, and the RS485 bus is in a busy state when the UartBushFlag identification bit is a second preset value;
step S106, determining whether there is data to be processed, includes: and determining whether the data to be processed exists or not according to the UartTaskFlag identification bit, wherein when the UartTaskFlag identification bit is a first preset value, the data to be processed is determined to be absent, and when the UartTaskFlag identification bit is a second preset value, the data to be processed is determined to be present.
Specifically, in order to confirm whether the RS485 bus is in an idle state, the method defines a bus busy flag UartBusysflag, and when the UartBusysflag flag is a first preset value, the current RS485 bus is in the idle state; and when the UartBushFlag identification bit is a second preset value, indicating that the current RS485 bus is in a busy state.
In order to confirm whether the to-be-processed data exists in the UART serial port register, a serial port task processing mark UartTaskFlag is defined in the method, and when a UartTaskFlag identification bit is a first preset value, the UART serial port does not receive complete reported data; when the UartTaskFlag identification bit is a second preset value, the UART serial port receives complete report data, and waits for the processor to analyze and respond.
In the actual process, the first preset value may be 0, and the second preset value may be 1, which is not particularly limited in the present invention.
In an optional embodiment of the present invention, the step S104 of sending the data to be reported to the RS485 bus through the serial port includes: filling data to be reported into a serial port; enabling a transmitting DMA of the serial port to transmit data to be reported, and disabling the transmitting DMA after the data to be reported is transmitted;
step S108, starting to receive the reported data through the serial port, and setting the RS485 bus to be in a busy state, includes: setting the identification bit for starting to receive the reported data as a second preset value; setting the UartBushFlag identification bit to a second preset value; and enabling the receiving DMA of the serial port to receive the reported data.
Specifically, for the UART serial port selection of the present invention, the UART serial port of the 32-bit serial microprocessor of ST corporation may be used, where the UART of the serial microprocessor supports DMA transmission and reception of data, supports reception completion (RXNE) interrupt flag and interrupt enable, and supports reception IDLE (IDLE) interrupt flag and interrupt enable. The RXNE interrupt flag bit is set when the serial port register receives one byte of data; and after the last byte data is received by the IDLE interrupt flag bit, if the byte is not continuously received, the IDLE interrupt flag bit is set.
In an actual process, when the target node sends data to be reported to the RS485 bus by using the UART serial port, the UART serial port needs to fill the data to be reported into a register and call a sending DMA to send the data to be reported, and the sending DMA is forbidden after the data sending is completed, so that preparation is made for the next data sending.
When the UART serial port starts to receive the report data, when the UART serial port register receives one byte of data, the identification bit for starting to receive the report data is set to a second preset value, namely the RXNE interrupt flag bit is set, meanwhile, the UartBuseyflag identification bit is set to the second preset value, and the receiving DMA of the serial port is started to receive the report data.
In an optional embodiment of the present invention, step S110, after the receiving of the reported data is completed, determines the reported data as data to be processed, sets the RS485 bus to an idle state, and disables a receiving function of the serial port, including: setting an identification bit for starting to receive the reported data as a first preset value; setting the identification bit with the data receiving completion as a second preset value; setting the UartTaskFlag identification bit to a second preset value; setting a UartBushFlag identification bit to a first preset value; receiving DMA of the serial port is disabled.
Step S112, of emptying the data to be processed, includes: the uartttaskflag flag identification bit is set to a first preset value.
Specifically, after the serial port finishes receiving the reported data, the identification bit for starting to receive the reported data is set to a first preset value, namely, the RXNE interrupt flag bit is cleared, meanwhile, the identification bit for finishing data receiving is set to a second preset value, namely, the IDLE interrupt flag bit is set, the UartTaskFlag identification bit is set to the second preset value, the UartBushFlag identification bit is set to the first preset value, and receiving DMA is forbidden, so that the RS485 bus is converted from a busy state to an IDLE state and is prepared for next receiving the reported data.
And storing the complete reported data received by the UART serial port into a UART serial port register and waiting for the processing of the microprocessor, clearing the data to be processed in the register after the processing of the reported data is completed by the microprocessor, and setting a UartTaskFlag identification bit as a first preset value to indicate that the data to be processed does not exist in the current UART serial port register.
In an alternative embodiment of the present invention, before determining whether the RS485 bus is in the idle state when the timing reporting time of the data is reached, the method further comprises: and executing serial port initialization, DMA initialization and identification bit initialization.
Specifically, before the target node starts the communication transmission process, the microprocessor of the target node needs to perform an initialization operation, so as to implement configuration of the UART serial port, the DMA and the plurality of identification bits. The UART serial port initialization includes: configuration of serial port communication baud rate, start bit, stop bit, data bit and check bit, and enabling RXNE interrupt and IDLE interrupt; DMA initialization includes: the UART serial port receives the configuration of the DMA and the sending DMA, and forbids the receiving DMA and the sending DMA by default after the initialization is finished; the initialization of the identification bit comprises the following steps: the bus busy flag uarttbus yflag is set to a first preset value and the serial task processing flag uartttaskflag is set to the first preset value.
In an alternative embodiment of the present invention, the main unit and the plurality of terminals of the central range hood system each include an internet of things control device, where the internet of things control device includes: the nonpolar RS485 chip, referring to fig. 3, the nonpolar RS485 chip of the host and the nonpolar RS485 chips of the plurality of terminals are connected through an RS485 bus, wherein the terminals include: a power distribution valve and a terminal.
Specifically, as previously described, the central range hood system includes: cloud platform, host computer and a plurality of terminal. Wherein, the host computer is inside includes: the fan and the internet of things control device; each terminal further comprises: the power distribution valve, the internet of things control device and the terminal machine, wherein the terminal machine can be a range hood (a range hood with a built-in exhaust motor) of a user kitchen, an integrated kitchen (a range hood with a built-in exhaust motor and a multifunctional kitchen appliance integrated with other kitchen appliances), and the like, and the invention is not particularly limited.
In an actual process, the internet of things control device is a multifunctional control circuit supporting a wireless communication function and a wired communication function and capable of outputting control signals, and the control circuit comprises: UART serial ports, nonpolar RS485 chips to connect the nonpolar RS485 chips in a plurality of thing allies oneself with controlling means through the RS485 bus, realize the intercommunication of host computer and a plurality of terminal. Meanwhile, the Internet of things control device can also realize variable frequency control of the fan when used in a host machine, and can realize angle adjustment of the power distribution valve and linkage with an intelligent kitchen appliance when used in each terminal.
The above details describe the specific details related to the wired communication method of the central range hood system of the present invention in detail, but when the specific software algorithm is used in the actual process, the main function flow chart of the target node initiating the communication transmission on the RS485 bus and the sub function flow chart of the target node implementing the receiving data and sending data through the UART serial port refer to fig. 4 to 6, and the specific communication process is described in the foregoing, and will not be repeated here. Finally, the wired communication method of the central range hood system utilizes the logic combination of a plurality of interrupts and the software algorithm to process and realize the idle detection of the bus before the UART serial port transmits data, each node on the bus can actively initiate communication transmission without causing communication failure caused by bus competition, realize direct transmission communication between a plurality of terminals and a host, and overcome the defect of poor real-time performance caused by main polling and polling communication. Meanwhile, the method adopts the nonpolar RS485 chip, solves the problem that the bus is broken down after the polarity of the traditional polar RS485 chip is reversed during construction, and when the bus is reversed, the nonpolar RS485 chip can automatically adjust the polarity to ensure smooth communication, does not need readjusting line sequence or software processing, and has high fault tolerance.
Embodiment two:
the embodiment of the invention also provides a wired communication device of the central range hood system, which is applied to a target node, wherein the target node is any one of a host or a plurality of terminals connected through an RS485 bus in the central range hood system, and the wired communication device of the central range hood system is mainly used for executing the wired communication method of the central range hood system provided in the first embodiment of the invention.
Fig. 7 is a schematic diagram of a wired communication device of a central range hood system according to an embodiment of the present invention, and as shown in fig. 7, the device mainly includes: a first determining unit 10, a data transmitting unit 20, a second determining unit 30, a first receiving unit 40, a second receiving unit 50, and a data processing unit 60, wherein:
the first determining unit is used for determining whether the RS485 bus is in an idle state or not when the timing reporting time of the data is reached;
the data transmitting unit is used for transmitting data to be reported to the RS485 bus through the serial port if the RS485 bus is in an idle state, and disabling the transmitting function of the serial port after the data to be reported is transmitted;
A second determining unit, configured to determine whether there is data to be processed when the timing reporting time of the data is not reached;
the first receiving unit is used for starting to receive reported data through the serial port if the data to be processed does not exist, and setting the RS485 bus to be in a busy state;
the second receiving unit is used for determining the reported data as data to be processed after the reported data is received, setting the RS485 bus to be in an idle state and disabling the receiving function of the serial port;
and the data processing unit is used for analyzing the data to be processed and clearing the data to be processed if the timing reporting time of the data is not reached and the data to be processed exists.
In an embodiment of the present invention, a wired communication device of a central range hood system is provided, where the wired communication device is applied to a target node, and the target node is any device of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, and the wired communication device includes: when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state; if the RS485 bus is in an idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted; when the timing reporting time of the data is not reached, determining whether the data to be processed exists; if the data to be processed does not exist, the data to be reported is received through the serial port, and the RS485 bus is set to be in a busy state; after the report data is received, determining the report data as data to be processed, setting an RS485 bus to be in an idle state, and disabling the receiving function of the serial port; if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed. As can be seen from the above description, the wired communication method of the central range hood system of the present invention adopts software to realize bus idle detection, and avoids bus contention problem when a plurality of nodes on the bus actively initiate communication. According to the method, the target node on the RS485 bus can actively initiate communication transmission data according to the timing reporting time and whether the current RS485 bus is in an idle state, so that direct communication among a plurality of nodes on the bus is realized, the defect of poor instantaneity caused by master-slave polling communication is overcome, meanwhile, the problems of poor reliability and increased hardware cost of a hardware idle detection scheme are avoided, and the technical problems of high cost, poor reliability and poor instantaneity of a wired communication method in the traditional central range hood system are solved.
Optionally, the first determining unit is further configured to: and determining whether the RS485 bus is in an idle state according to the UartBushFlag identification bit, wherein the RS485 bus is in the idle state when the UartBushFlag identification bit is a first preset value, and the RS485 bus is in a busy state when the UartBushFlag identification bit is a second preset value.
The second determining unit is further configured to: and determining whether the data to be processed exists or not according to the UartTaskFlag identification bit, wherein when the UartTaskFlag identification bit is a first preset value, the data to be processed is determined to be absent, and when the UartTaskFlag identification bit is a second preset value, the data to be processed is determined to be present.
Optionally, the data sending unit is further configured to: filling data to be reported into a serial port; and enabling the sending DMA of the serial port to send the data to be reported, and disabling the sending DMA after the data to be reported is sent.
The first receiving unit is further configured to: setting the identification bit for starting to receive the reported data as a second preset value; setting the UartBushFlag identification bit to a second preset value; and enabling the receiving DMA of the serial port to receive the reported data.
Optionally, the second receiving unit is further configured to: setting an identification bit for starting to receive the reported data as a first preset value; setting the identification bit with the data receiving completion as a second preset value; setting the UartTaskFlag identification bit to a second preset value; setting a UartBushFlag identification bit to a first preset value; receiving DMA of the serial port is disabled.
The data processing unit is further configured to: the uartttaskflag flag identification bit is set to a first preset value.
Optionally, the device is further configured to: when the timing reporting time of the data is reached, if the RS485 bus is in a busy state, repeatedly executing the step of determining whether the RS485 bus is in an idle state after delaying for a preset time length until the RS485 bus is in the idle state;
and transmitting the data to be reported to the RS485 bus through the serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted.
Optionally, before determining whether the RS485 bus is in the idle state when the timing reporting time of the data is reached, the apparatus is further configured to: and executing serial port initialization, DMA initialization and identification bit initialization.
Optionally, the main unit and the plurality of terminals of the central range hood system each include an internet of things control device, where the internet of things control device includes: the non-polar RS485 chip, the non-polar RS485 chip of host computer and the non-polar RS485 chips of a plurality of terminals are connected through the RS485 bus, wherein, the terminal includes: a power distribution valve and a terminal.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
As shown in fig. 8, an electronic device 800 provided in an embodiment of the present application includes: a processor 801, a memory 802, and a bus, the memory 802 storing machine readable instructions executable by the processor 801, the processor 801 and the memory 802 communicating via the bus when the electronic device is operating, the processor 801 executing the machine readable instructions to perform the steps of the wired communication method of the central range hood system as described above.
Specifically, the memory 802 and the processor 801 can be general-purpose memories and processors, which are not particularly limited herein, and the wired communication method of the central range hood system can be performed when the processor 801 runs a computer program stored in the memory 802.
The processor 801 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware in the processor 801 or by instructions in software. The processor 801 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), and the like; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 802, and the processor 801 reads information in the memory 802 and, in combination with its hardware, performs the steps of the above method.
Corresponding to the above-mentioned wired communication method of the central range hood system, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores machine executable instructions, and the computer executable instructions, when being called and executed by a processor, cause the processor to execute the steps of the above-mentioned wired communication method of the central range hood system.
The wired communication device of the central range hood system provided by the embodiment of the application can be specific hardware on equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present application has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned. It will be clear to those skilled in the art that, for convenience and brevity, the specific operation of the system, apparatus and unit described above may refer to the corresponding process in the above method embodiment, which is not described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
As another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the vehicle marking method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit of the corresponding technical solutions. Are intended to be encompassed within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. The wired communication method of the central range hood system is characterized by being applied to a target node, wherein the target node is any one of a host or a plurality of terminals connected through an RS485 bus in the central range hood system, and the method comprises the following steps:
when the timing reporting time of the data is reached, determining whether the RS485 bus is in an idle state according to a UartBushFlag identification bit, wherein when the UartBushFlag identification bit is a first preset value, the RS485 bus is in the idle state, and when the UartBushFlag identification bit is a second preset value, the RS485 bus is in a busy state; if the RS485 bus is in the idle state, transmitting data to be reported to the RS485 bus through a serial port, and disabling a transmitting function of the serial port after the data to be reported is transmitted;
When the timing reporting time of the data is not reached, determining whether the data to be processed exists;
if the data to be processed does not exist, starting to receive the reported data through the serial port, and setting the RS485 bus to be in a busy state;
after the report data is received, determining the report data as the data to be processed, setting the RS485 bus to be in an idle state, and disabling the receiving function of the serial port;
and if the timing reporting time of the data is not reached and the data to be processed exists, analyzing the data to be processed and emptying the data to be processed.
2. The wired communication method of a central range hood system according to claim 1, wherein,
determining whether there is data to be processed, comprising: and determining whether the data to be processed exists or not according to the UartTaskFlag identification bit, wherein when the UartTaskFlag identification bit is the first preset value, the data to be processed is determined to be absent, and when the UartTaskFlag identification bit is the second preset value, the data to be processed is determined to exist.
3. The wired communication method of a central range hood system according to claim 1, wherein,
The method for sending the data to be reported to the RS485 bus through the serial port comprises the following steps: filling the data to be reported into the serial port; starting a sending DMA of the serial port to send the data to be reported, and disabling the sending DMA after the data to be reported is sent;
the reporting data is received through the serial port, and the RS485 bus is set to be in a busy state, which comprises the following steps: setting the identification bit for starting to receive the reported data as a second preset value; setting a UartBushFlag identification bit to the second preset value; and starting the receiving DMA of the serial port to receive the reported data.
4. The wired communication method of a central range hood system according to claim 1, wherein,
after the receiving of the report data is completed, determining the report data as the data to be processed, setting the RS485 bus as an idle state, and disabling the receiving function of the serial port, wherein the method comprises the following steps: setting an identification bit for starting to receive the reported data as a first preset value; setting the identification bit with the data receiving completion as a second preset value; setting a UartTaskFlag identification bit to the second preset value; setting a UartBushFlag identification bit to the first preset value; disabling the receiving DMA of the serial port;
Clearing the data to be processed, including: the uartttaskflag flag identification bit is set to a first preset value.
5. The wired communication method of a central range hood system of claim 1, further comprising:
when the timing reporting time of the data is reached, if the RS485 bus is in a busy state, repeatedly executing the step of determining whether the RS485 bus is in an idle state after delaying for a preset time length until the RS485 bus is in the idle state;
and transmitting data to be reported to the RS485 bus through a serial port, and disabling the transmitting function of the serial port after the data to be reported is transmitted.
6. The wired communication method of a central range hood system according to claim 1, wherein before determining whether the RS485 bus is in an idle state when a timed reporting time of data is reached, the method further comprises:
and executing serial port initialization, DMA initialization and identification bit initialization.
7. The wired communication method of a central range hood system according to claim 1, wherein a main unit of the central range hood system and a plurality of the terminals each include an internet of things control device, the internet of things control device comprising: the non-polar RS485 chip, be connected through the RS485 bus between the non-polar RS485 chip of host computer and the non-polar RS485 chip of a plurality of terminal, wherein, the terminal includes: a power distribution valve and a terminal.
8. A wired communication device of a central range hood system, the wired communication device being applied to a target node, the target node being any one of a host or a plurality of terminals connected by an RS485 bus in the central range hood system, the device comprising:
the first determining unit is used for determining whether the RS485 bus is in an idle state according to a UartBushFlag identification bit when the timing reporting time of the data is reached, wherein the RS485 bus is in the idle state when the UartBushFlag identification bit is a first preset value, and the RS485 bus is in the busy state when the UartBushFlag identification bit is a second preset value;
the data transmitting unit is used for transmitting data to be reported to the RS485 bus through a serial port if the RS485 bus is in the idle state, and disabling the transmitting function of the serial port after the data to be reported is transmitted;
a second determining unit, configured to determine whether there is data to be processed when the timing reporting time of the data is not reached;
the first receiving unit is used for starting to receive the report data through the serial port if the data to be processed do not exist, and setting the RS485 bus to be in a busy state;
The second receiving unit is used for determining the reported data as the data to be processed after the reported data is received, setting the RS485 bus as an idle state and disabling the receiving function of the serial port;
and the data processing unit is used for analyzing the data to be processed and clearing the data to be processed if the timing reporting time of the data is not reached and the data to be processed exists.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of the preceding claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing machine executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of the preceding claims 1 to 7.
CN202210147168.XA 2022-02-17 2022-02-17 Wired communication method and device of central range hood system and electronic equipment Active CN114500159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210147168.XA CN114500159B (en) 2022-02-17 2022-02-17 Wired communication method and device of central range hood system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210147168.XA CN114500159B (en) 2022-02-17 2022-02-17 Wired communication method and device of central range hood system and electronic equipment

Publications (2)

Publication Number Publication Date
CN114500159A CN114500159A (en) 2022-05-13
CN114500159B true CN114500159B (en) 2023-12-15

Family

ID=81481966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210147168.XA Active CN114500159B (en) 2022-02-17 2022-02-17 Wired communication method and device of central range hood system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500159B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664599B (en) * 2022-12-08 2023-03-28 杭州云酷智能科技有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2166709A1 (en) * 2008-09-19 2010-03-24 OCS Overhead Conveyor System Aktiebolag Data communication in a tracking system for a conveyor system
CN104283749A (en) * 2014-09-25 2015-01-14 烽火通信科技股份有限公司 Communication system based on RS-485 half-duplex bus and service disc communication upgrading method
CN104818916A (en) * 2015-05-11 2015-08-05 齐鲁工业大学 Smart electric window group control system based on CAN bus and a method for smart electric window group control system
CN105045224A (en) * 2015-05-29 2015-11-11 珠海格力电器股份有限公司 Data transmission method and device
CN105828041A (en) * 2016-04-11 2016-08-03 上海大学 Video acquisition system supporting parallel preprocessing
CN107171921A (en) * 2017-04-07 2017-09-15 惠州市天泽盈丰物联网科技股份有限公司 A kind of real-time communication method based on RS485 networks
CN107425939A (en) * 2017-05-31 2017-12-01 方圆澍 A kind of sending and receiving method of process chip, packet
CN107832146A (en) * 2017-10-27 2018-03-23 北京计算机技术及应用研究所 Thread pool task processing method in highly available cluster system
CN207936183U (en) * 2018-03-01 2018-10-02 杭州老板电器股份有限公司 Residence discharge system
CN109474637A (en) * 2018-12-29 2019-03-15 南京慧和建筑技术有限公司 It is a kind of that type bus protocol is fought for based on fixed time slicing
CN109495215A (en) * 2018-12-20 2019-03-19 山东比特智能科技股份有限公司 A kind of communication means of half-duplex bus, system and device and readable storage medium storing program for executing
CN109951366A (en) * 2019-03-29 2019-06-28 浙江理工大学 A kind of Modbus RTU bus control unit and control method
CN109962858A (en) * 2017-12-25 2019-07-02 郑州宇通客车股份有限公司 CAN bus data transmission method and control system
CN109993958A (en) * 2019-05-08 2019-07-09 深圳市共济科技股份有限公司 A kind of data collection system and method for RS485 bus
CN110609803A (en) * 2019-09-17 2019-12-24 上海钧正网络科技有限公司 Master-slave communication method, device, system, computer device and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020144038A1 (en) * 2001-02-09 2002-10-03 J. Howard Smith Data communication prioritization method and bus controller

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2166709A1 (en) * 2008-09-19 2010-03-24 OCS Overhead Conveyor System Aktiebolag Data communication in a tracking system for a conveyor system
CN104283749A (en) * 2014-09-25 2015-01-14 烽火通信科技股份有限公司 Communication system based on RS-485 half-duplex bus and service disc communication upgrading method
CN104818916A (en) * 2015-05-11 2015-08-05 齐鲁工业大学 Smart electric window group control system based on CAN bus and a method for smart electric window group control system
CN105045224A (en) * 2015-05-29 2015-11-11 珠海格力电器股份有限公司 Data transmission method and device
CN105828041A (en) * 2016-04-11 2016-08-03 上海大学 Video acquisition system supporting parallel preprocessing
CN107171921A (en) * 2017-04-07 2017-09-15 惠州市天泽盈丰物联网科技股份有限公司 A kind of real-time communication method based on RS485 networks
CN107425939A (en) * 2017-05-31 2017-12-01 方圆澍 A kind of sending and receiving method of process chip, packet
CN107832146A (en) * 2017-10-27 2018-03-23 北京计算机技术及应用研究所 Thread pool task processing method in highly available cluster system
CN109962858A (en) * 2017-12-25 2019-07-02 郑州宇通客车股份有限公司 CAN bus data transmission method and control system
CN207936183U (en) * 2018-03-01 2018-10-02 杭州老板电器股份有限公司 Residence discharge system
CN109495215A (en) * 2018-12-20 2019-03-19 山东比特智能科技股份有限公司 A kind of communication means of half-duplex bus, system and device and readable storage medium storing program for executing
CN109474637A (en) * 2018-12-29 2019-03-15 南京慧和建筑技术有限公司 It is a kind of that type bus protocol is fought for based on fixed time slicing
CN109951366A (en) * 2019-03-29 2019-06-28 浙江理工大学 A kind of Modbus RTU bus control unit and control method
CN109993958A (en) * 2019-05-08 2019-07-09 深圳市共济科技股份有限公司 A kind of data collection system and method for RS485 bus
CN110609803A (en) * 2019-09-17 2019-12-24 上海钧正网络科技有限公司 Master-slave communication method, device, system, computer device and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Concurrent bus based on direct sequence spread spectrum;Ding Hong;《2008 International Conference on Information and Automation》;全文 *
采用自适应召唤策略提高RS485总线上的数据传输效率;陈品富;《电力系统保护与控制》;全文 *

Also Published As

Publication number Publication date
CN114500159A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN106453383B (en) UART-based master-slave multi-machine communication system and method
US20120290761A1 (en) USB Converter and Related Method
CN114500159B (en) Wired communication method and device of central range hood system and electronic equipment
JP2014507035A (en) Serial interface
WO2019196483A1 (en) Air conditioning system and communication method between units in air conditioning system
CN103986610A (en) Communication interface matching method, device and controller
CN208477523U (en) A kind of arithmetic system and corresponding electronic equipment
WO2017157065A1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN113792003A (en) Single bus communication unit, system and method
CN105701038A (en) Cascade chip starting method and related device
CN109062850B (en) Data sending and receiving method of single chip microcomputer
WO2004102411A1 (en) Controller interface
CN101507193A (en) Method and device for the creation of a communication system based on can communication controllers featuring an increased data throughput
CN111159073B (en) UART side processing method of bus communication and communication device
CN208477514U (en) A kind of SPI of intelligent temperature controller turns the analog circuit of UART
JP4210993B2 (en) USB hub device, USB peripheral device and data transmission / reception method
CN110113209B (en) MIPI (Mobile industry processor interface) protocol-based inter-device communication method and equipment topological structure
CN102447599A (en) Control system and control method for short-distance home communication protocol based on FSM (Finite State Machine)
CN115460036A (en) System, method, equipment and storage medium for realizing multichannel CAN data transceiving based on UART
JP2566323B2 (en) Polarity confirmation control method
CN202385121U (en) Control system of FSM-based short distance home communication protocol
CN110768775A (en) Low-cost full-duplex communication method, communication system and computer readable storage medium
CN105515615A (en) Power line carrier communication method
CN112838972B (en) Enabling control method, device and equipment based on RS-485 transceiver and storage medium
CN103678227A (en) Sharing USB interface circuit and method for USB function and network function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant