CN115235040B - Polarity judging method of transceiver and multi-connected air conditioner - Google Patents

Polarity judging method of transceiver and multi-connected air conditioner Download PDF

Info

Publication number
CN115235040B
CN115235040B CN202210817116.9A CN202210817116A CN115235040B CN 115235040 B CN115235040 B CN 115235040B CN 202210817116 A CN202210817116 A CN 202210817116A CN 115235040 B CN115235040 B CN 115235040B
Authority
CN
China
Prior art keywords
node
transceiver
polarity
communication
internal
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
CN202210817116.9A
Other languages
Chinese (zh)
Other versions
CN115235040A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210817116.9A priority Critical patent/CN115235040B/en
Publication of CN115235040A publication Critical patent/CN115235040A/en
Application granted granted Critical
Publication of CN115235040B publication Critical patent/CN115235040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/32Responding to malfunctions or emergencies
    • F24F11/38Failure diagnosis
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/101Monitoring; Testing of transmitters for measurement of specific parameters of the transmitter or components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Biomedical Technology (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a polarity judging method of a transceiver and a multi-connected air conditioner. Wherein the method comprises the following steps: determining a first communication polarity of an external node; analyzing the network type of an internal node, wherein the network type is used for representing whether the internal node is a wired node or a wireless node; and judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type. According to the invention, the technical problem that communication faults are caused by incapability of judging the polarity of the air conditioner nodes in the related technology is solved, the communication efficiency of the wireless nodes and the wired nodes in the multi-connected air conditioner is improved, and the convenience of on-site installation of the air conditioner is improved.

Description

Polarity judging method of transceiver and multi-connected air conditioner
Technical Field
The invention relates to the field of electronic control, in particular to a polarity judging method of a transceiver and a multi-connected air conditioner.
Background
In the related art, a multi-connected air conditioner is typically used for multi-node communication, and convenience in communication wiring between nodes is very important.
The wireless mesh node is used for replacing a wired node access network with a part of difficult wiring. However, the polarity judgment problem of the communication node transceiver exists between the wired network and the wireless network, and the communication failure rate is high due to the polarity judgment error.
In view of the above problems in the related art, no effective solution has been found yet.
Disclosure of Invention
The embodiment of the invention provides a polarity judging method of a transceiver and a multi-connected air conditioner, which are used for solving the technical problem that communication faults are caused by the fact that the polarity of an air conditioner node cannot be judged in the related art.
According to an aspect of an embodiment of the present application, there is provided a polarity determining method of a transceiver, including: determining a first communication polarity of an external node; analyzing the network type of an internal node, wherein the network type is used for representing whether the internal node is a wired node or a wireless node; and judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type.
Further, determining the first transceiver polarity of the external node includes: determining a second transceiver of the external node as a polarity determining node of a communication network, wherein the external node comprises a first transceiver and a second transceiver, the first transceiver is used for converting data in a bus into wireless signals to be sent out, and the second transceiver is used for generating control logic signals according to the data in the bus; controlling a second transceiver of the external node to send an external information data frame to a bus; and controlling the polarity of the first transceiver of the external node according to the external information data frame.
Further, controlling the polarity of the first transceiver of the external node according to the external information data frame includes: judging whether a first transceiver of the external machine node receives the external machine information data frame or not; if the first transceiver of the external machine node receives the external machine information data frame, controlling the polarity direction of the first transceiver of the external machine node to follow the polarity direction of the second transceiver of the external machine node; and if the first transceiver of the external machine node does not receive the external machine information data frame, switching the polarity direction of the first transceiver of the external machine node according to a first period.
Further, determining the communication polarity of the internal node according to the first communication polarity and/or the network type includes: if the internal machine node is a wireless node, determining a second communication polarity of a first transceiver of the internal machine node, and judging that the second transceiver of the internal machine node follows the second communication polarity or the polarity direction of the first communication polarity, wherein the internal machine node comprises a first transceiver and a second transceiver, the first transceiver is used for converting data in a bus into wireless signals to be sent out, and the second transceiver is used for generating control logic signals according to the data in the bus.
Further, determining the communication polarity of the internal node according to the first communication polarity and/or the network type includes: if the internal machine node is a wired node, judging that a second transceiver of the internal machine node follows the polarity direction of the first communication polarity, wherein the internal machine node comprises a first transceiver and a second transceiver, and the first transceiver is used for converting data in a bus into wireless signals to be sent out; the second transceiver is configured to generate a control logic signal based on data in the bus.
Further, determining a second communication polarity of the first transceiver of the internal node includes: judging whether a first transceiver of the internal machine node is in a wireless distribution network period or not; if the first transceiver of the internal node is in the wireless distribution network period, determining that the first transceiver of the internal node is a polarity determination node of a communication network, and wirelessly transmitting a wireless pairing information frame; if the first transceiver of the inner machine node is not in the wireless distribution network period, judging whether the first transceiver of the inner machine node receives an outer machine information data frame or not; if the first transceiver of the inner machine node does not receive the outer machine information data frame, switching the polarity direction of the first transceiver of the inner machine node according to a second period; and if the first transceiver of the inner machine node receives the outer machine information data frame, judging that the second communication polarity of the first transceiver of the inner machine node follows the first communication polarity of the outer machine node.
Further, determining that the second transceiver of the internal node follows the polarity direction of the second communication polarity or the first communication polarity includes: judging whether a second transceiver of the internal machine node receives a wireless pairing information frame sent by a first transceiver of the internal machine node or not; if the second transceiver of the internal machine node receives the wireless pairing information frame sent by the first transceiver of the internal machine node, judging that the second transceiver of the internal machine node follows the polarity direction of the second communication polarity; if the second transceiver of the inner machine node does not receive the wireless pairing information frame sent by the first transceiver of the inner machine node, judging whether the second transceiver of the inner machine node receives the outer machine information data frame; if the second transceiver of the inner machine node does not receive the outer machine information data frame, switching the polarity direction of the second transceiver of the inner machine node according to a third period; and if the second transceiver of the inner machine node receives the outer machine information data frame, judging that the second transceiver of the inner machine node follows the polarity direction of the first communication polarity of the outer machine node.
According to another aspect of the embodiment of the present application, there is also provided a multi-connected air conditioner, including: the determining module is used for determining a first communication polarity of the external node; the analysis module is used for analyzing the network type of the internal machine node, wherein the network type is used for representing whether the internal machine node is a wired node or a wireless node; and the judging module is used for judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type.
Further, the determining module includes: a determining unit, configured to determine that the second transceiver of the external node is a polarity determining node of a communication network; a transmitting unit, configured to control the second transceiver of the external node to transmit an external information data frame to a bus; and the control unit is used for controlling the polarity of the first transceiver of the external machine node according to the external machine information data frame.
Further, the control unit includes: a judging subunit, configured to judge whether a first transceiver of the external node receives the external information data frame; a control subunit, configured to control, if the first transceiver of the external node receives the external information data frame, a polarity direction of the first transceiver of the external node to follow a polarity direction of the second transceiver of the external node; and if the first transceiver of the external machine node does not receive the external machine information data frame, switching the polarity direction of the first transceiver of the external machine node according to a first period.
Further, the judging module includes: the first control unit is configured to determine a second communication polarity of a first transceiver of the internal node if the internal node is a wireless node, and determine that the second transceiver of the internal node follows the second communication polarity or a polarity direction of the first communication polarity, where the internal node includes a first transceiver and a second transceiver, the first transceiver is configured to convert data in a bus into a wireless signal and send the wireless signal, and the second transceiver is configured to generate a control logic signal according to the data in the bus.
Further, the judging module includes: the second control unit is used for judging that a second transceiver of the internal machine node follows the polarity direction of the first communication polarity if the internal machine node is a wired node, wherein the internal machine node comprises a first transceiver and a second transceiver, and the first transceiver is used for converting data in a bus into wireless signals to be sent out; the second transceiver is configured to generate a control logic signal based on data in the bus.
Further, the first control unit includes: a judging subunit, configured to judge whether a first transceiver of the internal node is in a wireless network allocation period; a determining subunit, configured to determine, if the first transceiver of the internal node is in a wireless network allocation period, that the first transceiver of the internal node is a polarity determining node of a communication network, and wirelessly transmit a wireless pairing information frame; if the first transceiver of the inner machine node is not in the wireless distribution network period, judging whether the first transceiver of the inner machine node receives an outer machine information data frame or not; the first control subunit is used for switching the polarity direction of the first transceiver of the inner machine node according to the second period if the first transceiver of the inner machine node does not receive the outer machine information data frame; and if the first transceiver of the inner machine node receives the outer machine information data frame, judging that the second communication polarity of the first transceiver of the inner machine node follows the first communication polarity of the outer machine node.
Further, the first control unit includes: a judging subunit, configured to judge whether a second transceiver of the internal node receives a wireless pairing information frame sent by a first transceiver of the internal node; the second control subunit is configured to determine that, if the second transceiver of the internal node receives the wireless pairing information frame sent by the first transceiver of the internal node, the second transceiver of the internal node follows the polarity direction of the second communication polarity; if the second transceiver of the inner machine node does not receive the wireless pairing information frame sent by the first transceiver of the inner machine node, judging whether the second transceiver of the inner machine node receives the outer machine information data frame; a third control subunit, configured to switch, according to a third period, a polarity direction of the second transceiver of the internal node if the second transceiver of the internal node does not receive the external information data frame; and if the second transceiver of the inner machine node receives the outer machine information data frame, judging that the second transceiver of the inner machine node follows the polarity direction of the first communication polarity of the outer machine node.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the above steps when running.
According to another aspect of the embodiment of the present application, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
According to the invention, the first communication polarity of the external node is determined; the network type of the internal machine node is analyzed, wherein the network type is used for representing that the internal machine node is a wired node or a wireless node, and the communication polarity of the internal machine node is judged according to the first communication polarity and/or the network type, so that a scheme for automatically controlling and switching the communication polarity of the node is realized, and the non-polar network butt joint of the wireless node and the wired node is realized. The technical problem that communication faults are caused by incapability of judging the polarity of the air conditioner nodes in the related technology is solved, the communication efficiency of wireless nodes and wired nodes in the multi-connected air conditioner is improved, and the convenience of on-site installation of the air conditioner is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
Fig. 1 is a block diagram of a hardware structure of an air conditioner according to an embodiment of the present invention;
fig. 2 is a flowchart of a polarity determining method of a transceiver according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a wireless communication network according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a wired communication network according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a communication network combining wired and wireless according to an embodiment of the present invention;
fig. 6 is a flow chart of a polarity determination of a first transceiver of a wireless internal node according to an embodiment of the present invention;
fig. 7 is a flowchart of a polarity determination of a second transceiver of a wireless internal node according to an embodiment of the present invention;
Fig. 8 is a block diagram of a multi-connected air conditioner according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The method embodiment provided by the first embodiment of the application can be implemented in an air conditioner, a heating and ventilation device or similar cascade device. Taking an example of operation on an air conditioner, fig. 1 is a block diagram of a hardware structure of an air conditioner according to an embodiment of the present application. As shown in fig. 1, the air conditioner may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the air conditioner described above. For example, the air conditioner may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store an air conditioning program, for example, a software program of application software and a module, such as an air conditioning program corresponding to a method for determining polarity of a transceiver in an embodiment of the present invention, and the processor 102 executes the air conditioning program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located with respect to the processor 102, which may be connected to the air conditioner via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the air conditioner. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for determining a polarity of a transceiver is provided, and fig. 2 is a flowchart of a method for determining a polarity of a transceiver according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
Step S202, determining a first communication polarity of an external node;
The embodiment can be applied to cascade equipment comprising a plurality of equipment, such as a multi-connected air conditioner comprising a plurality of internal machines and external machines, wherein the internal machines comprise internal machine nodes for communication, and the external machines comprise external machine nodes for communication.
The communication polarity of this embodiment is the transceiver polarity of the communication bus terminal, and refers to the high level and the low level of the two-wire bus, for example, CAN bus is expressed as two polarities CANH and CANL.
Step S204, analyzing the network type of the internal machine node, wherein the network type is used for representing whether the internal machine node is a wired node or a wireless node;
The internal machine node can communicate with the external machine and other internal machines in a wired or wireless communication mode, and the external machine can also communicate with the internal machine in a wired or wireless communication mode. The wireless communication mode can be wifi, wireless radio frequency communication such as bluetooth.
In one example, the multi-connected air conditioner includes an external machine and three internal machines, fig. 3 is a schematic diagram of a wireless communication network according to an embodiment of the present invention, fig. 4 is a schematic diagram of a wired communication network according to an embodiment of the present invention, and fig. 5 is a schematic diagram of a communication network in which wired and wireless connection are combined according to an embodiment of the present invention. The equipment nodes comprise an inner machine node and an outer machine node, each equipment node comprises two transceivers, namely a Trans1 and a Trans2, wherein the Trans1 is used for receiving and transmitting data in a bus to the corresponding MCU1, and the MCU1 converts the data into wireless signals and sends out the wireless signals; the Trans2 is used for receiving and transmitting data in the bus to the MCU2, and the MCU2 processes relevant logic according to communication data to realize unit control. In each node, two leads of the Trans correspond to communication buses H and L, respectively, and SW is a control pin for switching polarities of CANH and CANL. For example, when sw=1, CAN1 corresponds to CANH and CAN2 corresponds to CANL; when sw=0, CAN1 corresponds to CANL and CAN2 corresponds to CANH. In some cases, only one transceiver, i.e., one trans, may be used when the device node only needs to communicate wired or only has wired communication capabilities.
Step S206, judging the communication polarity of the internal node according to the first communication polarity and/or the network type.
Through the steps, the first communication polarity of the external node is determined; the network type of the internal machine node is analyzed, wherein the network type is used for representing that the internal machine node is a wired node or a wireless node, and the communication polarity of the internal machine node is judged according to the first communication polarity and/or the network type, so that a scheme for automatically controlling and switching the communication polarity of the node is realized, the non-polar network docking of the wireless node and the wired node is realized, the technical problem that communication faults are caused by the fact that the polarity of an air conditioner node cannot be judged in the related art is solved, the communication efficiency of the wireless node and the wired node in the multi-connected air conditioner is improved, and the convenience of on-site installation of the air conditioner is improved.
In one implementation of this embodiment, determining the first transceiver polarity of the external node includes:
S11, determining a second transceiver of the external machine node as a polarity determination node of the communication network, wherein the external machine node comprises a first transceiver and a second transceiver, the first transceiver is used for converting data in a bus into wireless signals to be sent out, and the second transceiver is used for generating control logic signals according to the data in the bus;
s12, controlling a second transceiver of the external node to send an external information data frame to the bus;
s13, controlling the polarity of the first transceiver of the external node according to the external information data frame.
In one example, controlling the polarity of the first transceiver of the external node based on the external information data frame includes: judging whether a first transceiver of the external machine node receives an external machine information data frame or not; if the first transceiver of the external machine node receives the external machine information data frame, controlling the polarity direction of the first transceiver of the external machine node to follow the polarity direction of the second transceiver of the external machine node; if the first transceiver of the external machine node does not receive the external machine information data frame, the polarity direction of the first transceiver of the external machine node is switched according to the first period.
Taking the first transceiver as a Trans1 and the second transceiver as a Trans2 as an example, the outdoor host comprises Trans1 and Trans2, the polarity of an outdoor host node Trans2 is taken as a polarity determining node of the whole network, the communication polarity of the nodes is not changed, and meanwhile, an external information data frame is continuously sent to the bus, so that the polarity of other nodes (such as the Trans1 of the external device, the internal device and the like) on the bus can be rapidly determined.
When the outdoor unit main node Trans1 does not receive the outdoor unit information data frame, the polarity of the communication node Trans1 is switched once every t time, and finally the communication polarity of the Trans1 is determined. When the external machine information data frame is received, the polarity is considered to be correct, and the communication polarity of the Trans1 is determined at the moment and follows the direction of the Trans2 node.
In one implementation of the present embodiment, the internal machine node of the present embodiment may be a wireless node or a wired node.
In one example, the internal node is a wireless node. The judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type comprises the following steps: if the internal machine node is a wireless node, determining a second communication polarity of a first transceiver of the internal machine node, and judging that the second transceiver of the internal machine node follows the second communication polarity or the polarity direction of the first communication polarity, wherein the internal machine node comprises a first transceiver and a second transceiver, the first transceiver is used for converting data in a bus into wireless signals to be sent out, and the second transceiver is used for generating control logic signals according to the data in the bus.
In this example, determining the second communication polarity of the first transceiver of the internal node includes: judging whether a first transceiver of the internal machine node is in a wireless distribution network period or not; if the first transceiver of the internal machine node is in the wireless distribution network period, determining that the first transceiver of the internal machine node is a polarity determination node of the communication network, and wirelessly transmitting a wireless pairing information frame; if the first transceiver of the inner machine node is not in the wireless distribution network period, judging whether the first transceiver of the inner machine node receives the outer machine information data frame or not; if the first transceiver of the inner machine node does not receive the outer machine information data frame, switching the polarity direction of the first transceiver of the inner machine node according to the second period; if the first transceiver of the inner machine node receives the outer machine information data frame, judging that the second communication polarity of the first transceiver of the inner machine node follows the first communication polarity of the outer machine node.
Fig. 6 is a flowchart of determining a polarity of a first transceiver of a wireless internal unit node according to an embodiment of the present invention, taking the first transceiver as a Trans1 as an example, each of the internal units has two transceivers, and determining the polarity of the transceivers by determining a WIFI pairing information frame and an external unit information data frame, including:
s61, judging whether the MCU1 is in WIFI network allocation;
S62, if the node is used as a network communication direction determiner during the WIFI network distribution, sending out a WIFI pairing information frame;
S63, if the node is not in the WIFI network distribution period, judging whether an external machine information data frame is received or not;
S64, if the external machine information data frame is not received, the network communication direction is abnormal, the polarity of the communication node Trans1 is switched once every t1 time, and finally the communication polarity of the Trans1 is determined;
s65, if the external machine information data frame is received, the communication polarity of the Trans1 is directly determined.
In this example, determining that the second transceiver of the internal node follows the polarity direction of the second communication polarity or the first communication polarity includes: judging whether a second transceiver of the internal machine node receives a wireless pairing information frame sent by a first transceiver of the internal machine node; if the second transceiver of the internal machine node receives the wireless pairing information frame sent by the first transceiver of the internal machine node, judging that the second transceiver of the internal machine node follows the polarity direction of the second communication polarity; if the second transceiver of the inner machine node does not receive the wireless pairing information frame sent by the first transceiver of the inner machine node, judging whether the second transceiver of the inner machine node receives the outer machine information data frame; if the second transceiver of the inner machine node does not receive the outer machine information data frame, switching the polarity direction of the second transceiver of the inner machine node according to a third period; if the second transceiver of the inner machine node receives the outer machine information data frame, the second transceiver of the inner machine node is judged to follow the polarity direction of the first communication polarity of the outer machine node.
Fig. 7 is a flowchart of determining a polarity of a second transceiver of a wireless internal node according to an embodiment of the present invention, taking the second transceiver as a Trans2 as an example, the flowchart includes:
S71, judging whether the MCU2 of the second transceiver receives the WIFI pairing information frame transmitted by the local MCU 1;
s72, if the WIFI pairing information frame transmitted by the MCU1 is received, determining the communication polarity of the Trans 2;
S73, if the WIFI pairing information frame transmitted by the MCU1 is not received, judging whether an external machine information data frame is received or not;
S74, when the external machine information data frame is not received, the network communication direction is abnormal, the polarity of the communication node Trans2 is switched once every t2 time, and finally the communication polarity of the Trans2 is determined;
And S75, when the external machine information data frame is received, the polarity is considered to be correct, and the communication polarity of the Trans2 is determined at the moment.
In one example, the internal node is a wired node. The judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type comprises the following steps: if the internal machine node is a wired node, judging that a second transceiver of the internal machine node follows the polarity direction of the first communication polarity, wherein the internal machine node comprises a first transceiver and a second transceiver, and the first transceiver is used for converting data in a bus into wireless signals to be sent out; the second transceiver is configured to generate control logic signals based on data in the bus.
By adopting the scheme of the embodiment, when all the communication networks are wireless nodes, the Trans1 of the wireless external node follows the Trans2 communication direction; trans2 of the wireless internal machine node follows the communication direction of Trans1, so that normal interaction of the machine set data is realized. When all the communication networks are wired nodes, the trans2 of the wired internal machine nodes follows the communication direction of the external machine nodes, so that normal interaction of the unit data is realized. When the wired node and the wireless node are in mixed connection in the communication network, the Trans2 of the wired internal machine node follows the communication direction of the external machine node, and the Trans1 follows the communication direction of the Trans2, so that normal interaction of the unit data is realized; trans2 of the wireless internal machine node follows the communication direction of Trans1, so that normal interaction of the machine set data is realized.
According to the embodiment, the communication polarity is automatically switched by the mode of identifying the signal source type by the node, so that the wireless and wired communication nonpolar network docking is realized. The design realizes the nonpolar network docking of the wired node and the wireless node, and rapidly and effectively solves the problem of convenience in field installation of the air conditioner.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 2
The embodiment also provides a polarity determining device of the transceiver, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 8 is a block diagram of a multi-connected air conditioner according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes: a determination module 80, a parsing module 82, a determination module 84, wherein,
A determining module 80, configured to determine a first communication polarity of the external node;
The parsing module 82 is configured to parse a network type of an internal node, where the network type is used to characterize whether the internal node is a wired node or a wireless node;
And the judging module 84 is configured to judge the communication polarity of the internal node according to the first communication polarity and/or the network type.
Optionally, the determining module includes: a determining unit, configured to determine that the second transceiver of the external node is a polarity determining node of a communication network; a transmitting unit, configured to control a second transceiver of the external node to transmit an external information data frame to the bus; and the control unit is used for controlling the polarity of the first transceiver of the external machine node according to the external machine information data frame.
Optionally, the control unit includes: a judging subunit, configured to judge whether a first transceiver of the external node receives the external information data frame; a control subunit, configured to control, if the first transceiver of the external node receives the external information data frame, a polarity direction of the first transceiver of the external node to follow a polarity direction of the second transceiver of the external node; and if the first transceiver of the external machine node does not receive the external machine information data frame, switching the polarity direction of the first transceiver of the external machine node according to a first period.
Optionally, the judging module includes: the first control unit is configured to determine a second communication polarity of a first transceiver of the internal node if the internal node is a wireless node, and determine that the second transceiver of the internal node follows the second communication polarity or a polarity direction of the first communication polarity, where the internal node includes a first transceiver and a second transceiver, the first transceiver is configured to convert data in a bus into a wireless signal and send the wireless signal, and the second transceiver is configured to generate a control logic signal according to the data in the bus.
Optionally, the judging module includes: the second control unit is used for judging that a second transceiver of the internal machine node follows the polarity direction of the first communication polarity if the internal machine node is a wired node, wherein the internal machine node comprises a first transceiver and a second transceiver, and the first transceiver is used for converting data in a bus into wireless signals to be sent out; the second transceiver is configured to generate a control logic signal based on data in the bus.
Optionally, the first control unit includes: a judging subunit, configured to judge whether a first transceiver of the internal node is in a wireless network allocation period; a determining subunit, configured to determine, if the first transceiver of the internal node is in a wireless network allocation period, that the first transceiver of the internal node is a polarity determining node of a communication network, and wirelessly transmit a wireless pairing information frame; if the first transceiver of the inner machine node is not in the wireless distribution network period, judging whether the first transceiver of the inner machine node receives an outer machine information data frame or not; the first control subunit is used for switching the polarity direction of the first transceiver of the inner machine node according to the second period if the first transceiver of the inner machine node does not receive the outer machine information data frame; and if the first transceiver of the inner machine node receives the outer machine information data frame, judging that the second communication polarity of the first transceiver of the inner machine node follows the first communication polarity of the outer machine node.
Optionally, the first control unit includes: a judging subunit, configured to judge whether a second transceiver of the internal node receives a wireless pairing information frame sent by a first transceiver of the internal node; the second control subunit is configured to determine that, if the second transceiver of the internal node receives the wireless pairing information frame sent by the first transceiver of the internal node, the second transceiver of the internal node follows the polarity direction of the second communication polarity; if the second transceiver of the inner machine node does not receive the wireless pairing information frame sent by the first transceiver of the inner machine node, judging whether the second transceiver of the inner machine node receives the outer machine information data frame; a third control subunit, configured to switch, according to a third period, a polarity direction of the second transceiver of the internal node if the second transceiver of the internal node does not receive the external information data frame; and if the second transceiver of the inner machine node receives the outer machine information data frame, judging that the second transceiver of the inner machine node follows the polarity direction of the first communication polarity of the outer machine node.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
Example 3
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, determining a first communication polarity of an external node;
s2, analyzing the network type of the internal node, wherein the network type is used for representing whether the internal node is a wired node or a wireless node;
S3, judging the communication polarity of the internal node according to the first communication polarity and/or the network type.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic device may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, determining a first communication polarity of an external node;
s2, analyzing the network type of the internal node, wherein the network type is used for representing whether the internal node is a wired node or a wireless node;
S3, judging the communication polarity of the internal node according to the first communication polarity and/or the network type.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be 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 interfaces, units or modules, or may be in electrical or other forms.
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 of 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 integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, 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 part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (9)

1. A method for determining polarity of a transceiver, comprising:
determining a first communication polarity of an external node;
Analyzing the network type of an internal machine node, wherein the network type is used for representing whether the internal machine node is a wired node or a wireless node, and the external machine node and the internal machine node both comprise two transceivers;
judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type;
Judging the communication polarity of the internal node according to the first communication polarity and/or the network type comprises the following steps:
The internal machine node comprises an internal machine node first transceiver and an internal machine node second transceiver, wherein the internal machine node first transceiver is used for converting data in a bus into wireless signals to be sent out, and the internal machine node second transceiver is used for generating control logic signals according to the data in the bus; if the internal machine node is a wireless node, determining the second communication polarity of the first transceiver of the internal machine node, and judging the polarity direction of the second transceiver of the internal machine node following the second communication polarity or the first communication polarity.
2. The method of claim 1, wherein the foreign node comprises a foreign node first transceiver and a foreign node second transceiver, and wherein determining the foreign node first transceiver polarity comprises:
the second transceiver of the external machine node is determined to be a polarity determination node of a communication network, wherein the first transceiver of the external machine node is used for converting data in a bus into wireless signals to be sent out, and the second transceiver of the external machine node is used for generating control logic signals according to the data in the bus;
controlling the second transceiver of the external node to send an external information data frame to a bus;
And controlling the polarity of the first transceiver of the external node according to the external information data frame.
3. The method of claim 2, wherein controlling the polarity of the external node first transceiver based on the external information data frame comprises:
judging whether the first transceiver of the external machine node receives the external machine information data frame or not;
If the external machine node first transceiver receives the external machine information data frame, controlling the polarity direction of the external machine node first transceiver to follow the polarity direction of the external machine node second transceiver; and if the external machine node first transceiver does not receive the external machine information data frame, switching the polarity direction of the external machine node first transceiver according to a first period.
4. A method for determining polarity of a transceiver, comprising:
determining a first communication polarity of an external node;
Analyzing the network type of an internal machine node, wherein the network type is used for representing whether the internal machine node is a wired node or a wireless node, and the external machine node and the internal machine node both comprise two transceivers;
judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type;
Judging the communication polarity of the internal node according to the first communication polarity and/or the network type comprises the following steps:
The internal machine node comprises an internal machine node first transceiver and an internal machine node second transceiver, wherein the internal machine node first transceiver is used for converting data in a bus into wireless signals and sending out the wireless signals; the second transceiver of the internal node is used for generating a control logic signal according to the data in the bus; if the internal node is a wired node, judging that the second transceiver of the internal node follows the polarity direction of the first communication polarity.
5. The method of claim 1, wherein determining the second communication polarity of the first transceiver of the internal node comprises:
Judging whether the first transceiver of the internal node is in a wireless distribution network period or not;
If the first transceiver of the internal machine node is in the wireless distribution network period, determining that the first transceiver of the internal machine node is a polarity determination node of a communication network, and wirelessly transmitting a wireless pairing information frame; if the first transceiver of the inner machine node is not in the wireless distribution network period, judging whether the first transceiver of the inner machine node receives an outer machine information data frame or not;
If the first transceiver of the inner machine node does not receive the external machine information data frame, switching the polarity direction of the first transceiver of the inner machine node according to a second period; and if the first transceiver of the inner machine node receives the outer machine information data frame, judging that the second communication polarity of the first transceiver of the inner machine node follows the first communication polarity of the outer machine node.
6. The method of claim 1, wherein determining that the second transceiver of the internal node follows the second communication polarity or the polarity direction of the first communication polarity comprises:
Judging whether the second transceiver of the internal machine node receives a wireless pairing information frame sent by the first transceiver of the internal machine node or not;
If the second transceiver of the internal machine node receives the wireless pairing information frame sent by the first transceiver of the internal machine node, judging that the second transceiver of the internal machine node follows the polarity direction of the second communication polarity; if the second transceiver of the inner machine node does not receive the wireless pairing information frame sent by the first transceiver of the inner machine node, judging whether the second transceiver of the inner machine node receives the external machine information data frame;
if the second transceiver of the inner machine node does not receive the external machine information data frame, switching the polarity direction of the second transceiver of the inner machine node according to a third period; and if the second transceiver of the inner machine node receives the outer machine information data frame, judging that the second transceiver of the inner machine node follows the polarity direction of the first communication polarity of the outer machine node.
7. A multi-split air conditioner, comprising:
the determining module is used for determining a first communication polarity of the external node;
the analysis module is used for analyzing the network type of the internal machine node, wherein the network type is used for representing whether the internal machine node is a wired node or a wireless node, and the external machine node and the internal machine node both comprise two transceivers;
The judging module is used for judging the communication polarity of the internal machine node according to the first communication polarity and/or the network type;
the internal machine node comprises an internal machine node first transceiver and an internal machine node second transceiver, wherein the internal machine node first transceiver is used for converting data in a bus into wireless signals to be sent out, and the internal machine node second transceiver is used for generating control logic signals according to the data in the bus;
the judging module comprises: and the first control unit is used for determining the second communication polarity of the first transceiver of the internal machine node if the internal machine node is a wireless node and judging the polarity direction of the second communication polarity or the first communication polarity followed by the second transceiver of the internal machine node.
8. A storage medium comprising a stored program, wherein the program when run performs the method steps of any of the preceding claims 1 to 6.
9. An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
A processor for executing the method steps of any one of claims 1 to 6 by running a program stored on a memory.
CN202210817116.9A 2022-07-12 2022-07-12 Polarity judging method of transceiver and multi-connected air conditioner Active CN115235040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210817116.9A CN115235040B (en) 2022-07-12 2022-07-12 Polarity judging method of transceiver and multi-connected air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210817116.9A CN115235040B (en) 2022-07-12 2022-07-12 Polarity judging method of transceiver and multi-connected air conditioner

Publications (2)

Publication Number Publication Date
CN115235040A CN115235040A (en) 2022-10-25
CN115235040B true CN115235040B (en) 2024-07-16

Family

ID=83673547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210817116.9A Active CN115235040B (en) 2022-07-12 2022-07-12 Polarity judging method of transceiver and multi-connected air conditioner

Country Status (1)

Country Link
CN (1) CN115235040B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181654A (en) * 2017-06-30 2017-09-19 珠海格力电器股份有限公司 CAN communication method and system for controlling local area network and air conditioning system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108488914A (en) * 2018-04-13 2018-09-04 珠海格力电器股份有限公司 Air conditioning unit and operation method and device of air conditioning unit
CN108566231A (en) * 2018-04-13 2018-09-21 珠海格力电器股份有限公司 air conditioner communication system, method, storage medium and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181654A (en) * 2017-06-30 2017-09-19 珠海格力电器股份有限公司 CAN communication method and system for controlling local area network and air conditioning system

Also Published As

Publication number Publication date
CN115235040A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN111865736B (en) Equipment control method and device
CN102972070B (en) System and method for using multiple network addresses to establish synchronization of a device under test and test equipment controlling the test
CN105871672A (en) One-host multi-slave communication system and data transmission method thereof
CN107484214B (en) Internet of things access point frequency point selection method and device
CN112055096A (en) Method and device for automatically setting communication address of equipment
CN107092459A (en) Exchange method and interactive device and display screen control system
CN111884875A (en) Offline device determination method and device
CN105389278A (en) CAN bus based serial communication method for master and slave machines
CN105515962A (en) Information processing method and smart home equipment
CN102957567B (en) Server information management method and server managing device
CN106533823B (en) Automatic test system and method and recyclable sending device thereof
CN115235040B (en) Polarity judging method of transceiver and multi-connected air conditioner
CN108562805A (en) A kind of interactive mode break-make electric test device, system and method
CN103376369B (en) Communication load testing method and device
US8566630B2 (en) Apparatus, methods and computer program products supporting automatic network identification for power supplies
CN114222255B (en) Method and device for device ad hoc network, electronic device and storage medium
CN113596938B (en) Network switching method and device of mobile terminal, storage medium and electronic device
CN113835946A (en) Pressure testing method for data exchange
CN115208961B (en) Communication method and device of multi-split air conditioner
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN111008173A (en) Serial communication method, device and system
CN112770379B (en) Power adjustment method and device, electronic equipment and storage medium
CN108769956A (en) Internet of Things communication means, device, electronic equipment and storage medium
CN103346832B (en) A kind of detection method of Fiber connection state and device
CN113778927B (en) Method, device and equipment for managing server network port chip based on substrate management controller

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