CN109343387B - Data communication method, device, equipment and air conditioner - Google Patents

Data communication method, device, equipment and air conditioner Download PDF

Info

Publication number
CN109343387B
CN109343387B CN201811153331.3A CN201811153331A CN109343387B CN 109343387 B CN109343387 B CN 109343387B CN 201811153331 A CN201811153331 A CN 201811153331A CN 109343387 B CN109343387 B CN 109343387B
Authority
CN
China
Prior art keywords
communication
communication line
data
switching device
type
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
CN201811153331.3A
Other languages
Chinese (zh)
Other versions
CN109343387A (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 CN201811153331.3A priority Critical patent/CN109343387B/en
Publication of CN109343387A publication Critical patent/CN109343387A/en
Application granted granted Critical
Publication of CN109343387B publication Critical patent/CN109343387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The application relates to a data communication method, a device, equipment and an air conditioner, which comprises the steps of receiving communication data sent by a communication interface through a preset communication line switching device; judging the type of the communication data; and sending a control instruction to the communication line switching device according to the type so that the communication line switching device switches the communication line corresponding to the type. The mainboard chip can also control the communication line switching device to switch to the communication line corresponding to the type of the communication data according to the type of the communication data, the communication data can be sent to the mainboard chip through the communication line corresponding to the communication data, chips needing to be communicated are not required to be matched according to the communication mode of each chip artificially, and therefore the universality of the mainboard and products related to the mainboard is better.

Description

Data communication method, device, equipment and air conditioner
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data communication method, apparatus, device, and air conditioner.
Background
With the continuous development of the information era, the data transmission technology is used as the basis for the development of the information era and is continuously innovated and improved. In the data transmission process, the problem that needs to be considered is the communication mode between the devices, and the correct data transmission and reception can be carried out only by using the same communication mode between the devices.
Because of the difference of the mainboard, the communication mode between the mainboards is different, when designing a system with a plurality of mainboards, the situation that the communication can not be realized because of the difference of the communication mode between the mainboards is easy to appear, so that the universality of the mainboards and the products related to the mainboards is poor.
Disclosure of Invention
In order to overcome the problems in the related art at least to a certain extent, the application provides a data communication method, a device, equipment and an air conditioner.
According to a first aspect of the present application, there is provided a data communication method, including:
receiving communication data sent by a communication interface through a preset communication line switching device;
judging the type of the communication data;
and sending a control instruction to the communication line switching device according to the type so as to enable the communication line switching device to switch the communication line corresponding to the type.
Optionally, the communication line switching device includes a preset number of communication lines, a motherboard chip communication line, and a switching device; the preset number of communication lines comprise preset target communication lines;
the communication data that communication interface sent is received through the communication circuit auto-change over device that sets up in advance includes:
receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data only transmission manner.
Optionally, the preset number of communication lines include a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
Optionally, the sending a control instruction to the communication line switching device according to the type to enable the communication line switching device to switch the communication line corresponding to the type includes:
and when the type is differential data, sending a control instruction for conducting the RS485 communication line to the communication line switching device, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
According to a second aspect of the present application, there is provided a data communication method comprising:
receiving communication data from the communication interface;
sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type;
receiving the control instruction;
and switching the communication line corresponding to the type according to the control instruction.
Optionally, the communication line switching device includes a preset number of communication lines, a motherboard chip communication line, and a switching device; the preset number of communication lines comprise preset target communication lines;
the sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type comprises the following steps:
sending the communication data to the mainboard chip sequentially through the target communication line, the switch device and the mainboard chip communication line, so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type; the target communication line transmits the communication data in a data only transmission manner.
Optionally, the preset number of communication lines include a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
Optionally, the switching the communication line corresponding to the type according to the control instruction includes:
and when the type is differential data, the switching device conducts the RS485 communication line and the mainboard chip communication line.
According to a third aspect of the present application, there is provided a data communication apparatus comprising:
the first receiving module is used for receiving communication data sent by the communication interface through a preset communication line switching device;
the judging module is used for judging the type of the communication data;
and the first sending module is used for sending a control instruction to the communication line switching device according to the type so as to enable the communication line switching device to switch the communication line corresponding to the type.
Optionally, the communication line switching device includes a preset number of communication lines, a motherboard chip communication line, and a switching device; the preset number of communication lines comprise preset target communication lines;
the first receiving module includes:
the receiving unit is used for receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data only transmission manner.
Optionally, the preset number of communication lines include a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
Optionally, the first sending module includes:
and the first sending unit is used for sending a control instruction for conducting the RS485 communication line to the communication line switching device when the type is the differential data, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
According to a fourth aspect of the present application, there is provided a data communication apparatus comprising:
the second receiving module is used for receiving communication data from the communication interface;
the second sending module is used for sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type;
the third receiving module is used for receiving the control instruction;
and the switching module is used for switching the communication line corresponding to the type according to the control instruction.
According to a fifth aspect of the present application, there is provided a data communication apparatus comprising:
the communication line switching device comprises a preset number of communication lines, a switching device, a mainboard chip communication line and a control line; the switch device comprises a plurality of movable end contacts and a plurality of fixed ends; the mainboard chip is connected with the switch device through a control circuit;
one end of the mainboard chip communication circuit is connected with the fixed end of the switch device; the other end is connected with the mainboard chip;
one ends of the preset number of communication lines are respectively connected with the plurality of movable end contacts in a one-to-one correspondence manner; the other end is connected with the communication interface.
Optionally, the switching device is an optical coupling switch or a relay.
Optionally, the switch device further includes a processor and a memory connected to the processor, and the processor is further connected to the motherboard chip and the switch device;
the memory is used for storing a computer program for performing at least the data communication method of any one of claims 5 to 8;
the processor is used for calling and executing the computer program in the memory.
According to a sixth aspect of the present application, there is provided an air conditioner, wherein the data communication device according to the fifth aspect of the present application is arranged between a motherboard chip of the air conditioner and the communication interface; the communication equipment is respectively connected with the mainboard chip and the communication interface.
The technical scheme provided by the application can comprise the following beneficial effects: the main board chip judges the type of the communication data after receiving the communication data sent by the communication interface through the communication line switching device, and sends a control instruction to the communication line switching device according to the type, the communication line switching device switches the communication line corresponding to the type after receiving the control instruction, and the communication data can be sent to the main board chip through the communication line corresponding to the communication line. Therefore, even if the communication modes between the mainboards are different, the mainboard chip can control the communication line switching device to switch to the communication line corresponding to the type of the communication data according to the type of the communication data, the communication data can be sent to the mainboard chip through the communication line corresponding to the communication data, the chips needing to be communicated do not need to be matched according to the communication modes of the chips artificially, and the universality of the mainboard and products related to the mainboard is better.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a data communication method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a data communication method according to a second embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data communication device according to a third embodiment of the present application.
Fig. 4 is a schematic structural diagram of a data communication device according to a fifth embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a data communication method according to an embodiment of the present application.
As shown in fig. 1, the present embodiment takes the execution of one side of the motherboard chip as an example to describe the data communication method. The data communication method provided by the embodiment comprises the following steps:
and 11, receiving communication data sent by the communication interface through a preset communication line switching device.
And step 12, judging the type of the communication data.
And step 13, sending a control instruction to the communication line switching device according to the type so that the communication line switching device switches the communication line corresponding to the type.
The main board chip judges the type of the communication data after receiving the communication data sent by the communication interface through the communication line switching device, and sends a control instruction to the communication line switching device according to the type, the communication line switching device switches the communication line corresponding to the type after receiving the control instruction, and the communication data can be sent to the main board chip through the communication line corresponding to the communication line. Therefore, even if the communication modes between the mainboards are different, the mainboard chip can control the communication line switching device to switch to the communication line corresponding to the type of the communication data according to the type of the communication data, the communication data can be sent to the mainboard chip through the communication line corresponding to the communication data, the chips needing to be communicated do not need to be matched according to the communication modes of the chips artificially, and the universality of the mainboard and products related to the mainboard is better.
Further, the communication line switching device may include a preset number of communication lines, a motherboard chip communication line, and a switching device; the preset number of communication lines comprises preset target communication lines. The communication lines can be selected according to specific requirements, and the type and the number of the communication lines can be selected according to the specific requirements.
Wherein, step 11 may include:
receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data only transmission manner.
Some communication lines need only can transmit through communication chip's processing when transmitting data, for example, need have 485 in the RS485 communication line and just can correctly transmit data with communication chip, and some communication lines can not be through communication chip's processing, only directly transmit data with the mode of transmitting data, just can not handle data like UART communication line, directly transmit data. When setting or selecting the target communication line, the communication line which only transmits data in a data transmission mode should be selected to ensure that the data keeps the original state, so that the mainboard chip can correctly judge the type of the communication data.
Further, the preset number of communication lines comprise a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line. Correspondingly, step 13 may include:
and when the type is differential data, sending a control instruction for conducting the RS485 communication line to the communication line switching device, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
It should be noted that the differential data corresponds to data that can be transmitted by the RS485 communication line, and the serial data corresponds to data that can be transmitted by the UART communication line.
The switch device can be selected from various types, and can be common switches such as a relay and an optical coupling switch, and can also be an intelligent switch with a processor.
The second embodiment of the present application describes the execution of the data communication method from the side of the communication line switching device using the intelligent switch.
Fig. 2 is a flowchart illustrating a data communication method according to a second embodiment of the present application.
As shown in fig. 2, the data communication method provided in this embodiment includes:
step 21, receiving communication data from a communication interface;
step 22, sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type;
step 23, receiving the control instruction;
and 24, switching the communication line corresponding to the type according to the control instruction.
Further, the communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switch device; the preset number of communication lines comprise preset target communication lines;
step 22 may include:
sending the communication data to the mainboard chip sequentially through the target communication line, the switch device and the mainboard chip communication line, so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type; the target communication line transmits the communication data in a data only transmission manner.
Because the target communication circuit only transmits data in a cyclic number mode, after the communication interface receives the communication data, the communication interface sends the communication data to the mainboard chip through the target communication circuit, the switching device and the mainboard chip communication circuit in sequence, so that the original state of the data can be kept, the data cannot be processed by other communication chips in the transmission process, the communication data obtained by the mainboard chip can be ensured to be in the original state, and the accuracy of judging the type of the mainboard chip is further ensured.
In addition, the preset number of communication lines comprise UART communication lines and RS485 communication lines; the UART communication line is set as a target communication line. The two communication modes (UART and RS485) are relatively wide communication modes applied in short-distance data transmission, and if the two communication paths are arranged in a communication circuit, the two communication modes can be adapted to most mainboard chips.
Wherein, when the communication line includes an RS485 communication line, step 24 may include:
and when the type is differential data, the switching device conducts the RS485 communication line and the mainboard chip communication line.
It should be noted that the differential data corresponds to data that can be transmitted by the RS485 communication line, and the serial data corresponds to data that can be transmitted by the UART communication line.
Fig. 3 is a schematic structural diagram of a data communication device according to a third embodiment of the present application.
As shown in fig. 3, the data communication device provided in this embodiment includes:
the first receiving module 31 receives communication data sent by the communication interface through a preset communication line switching device;
the judging module 32 is used for judging the type of the communication data;
the first sending module 33 sends a control command to the communication line switching device according to the type, so that the communication line switching device switches the communication line corresponding to the type.
The communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switch device; the preset number of communication lines comprise preset target communication lines;
the first receiving module includes:
the receiving unit is used for receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data only transmission manner.
Further, the preset number of communication lines comprise a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
Further, the first transmitting module includes:
and the first sending unit is used for sending a control instruction for conducting the RS485 communication line to the communication line switching device when the type is the differential data, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
An embodiment of the present application provides a data communication device, where the switch device in this embodiment is a switch only with a processor, and the data communication device of this embodiment is applied to a communication line switching device, and includes:
the second receiving module is used for receiving communication data from the communication interface;
the second sending module is used for sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type;
the third receiving module is used for receiving the control instruction;
and the switching module is used for switching the communication line corresponding to the type according to the control instruction.
Fig. 4 is a schematic structural diagram of a data communication device according to a fifth embodiment of the present application.
As shown in fig. 4, the data communication device provided in the embodiment of the present application includes:
a communication line switching device 41, wherein the communication line switching device comprises a preset number of communication lines 411, a switching device 412, a mainboard chip communication line 413 and a control line, and the switching device comprises a plurality of movable end contacts 414 and a plurality of fixed ends 415; the mainboard chip is connected with the switch device through a control circuit.
One end of the mainboard chip communication circuit is connected with the fixed end of the switch device; the other end is connected with the mainboard chip;
one ends of the preset number of communication lines are respectively connected with the plurality of movable end contacts in a one-to-one correspondence manner; the other end is connected with the communication interface.
The switch device in this embodiment may be a relay, an optical coupler switch, or an intelligent switch with a processor.
When the switch device is an intelligent switch with a processor, the switch device further comprises the processor and a memory connected with the processor, and the processor is further connected with the mainboard chip and the switch device;
the memory is used for storing a computer program, and the computer program is at least used for executing the data communication method in the second embodiment;
the processor is used for calling and executing the computer program in the memory.
In addition, a sixth embodiment of the present application provides an air conditioner, where a data communication device as described in the fifth embodiment may be disposed between a motherboard chip of the air conditioner and the communication interface; the communication equipment is respectively connected with the mainboard chip and the communication interface.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (13)

1. A communication method is applied to a mainboard chip and comprises the following steps:
receiving communication data sent by a communication interface through a preset communication line switching device; the communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switch device; the preset number of communication lines comprise preset target communication lines; the communication data that communication interface sent is received through the communication circuit auto-change over device that sets up in advance includes: receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data transmission mode;
judging the type of the communication data;
and sending a control instruction to the communication line switching device according to the type so as to enable the communication line switching device to switch the communication line corresponding to the type.
2. The method of claim 1, wherein the predetermined number of communication lines comprises a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
3. The method according to claim 2, wherein the sending a control command to the communication line switching device according to the type to cause the communication line switching device to switch the communication line corresponding to the type comprises:
and when the type is differential data, sending a control instruction for conducting the RS485 communication line to the communication line switching device, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
4. A data communication method is characterized in that the method is applied to a communication line switching device, and the communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switch device; the preset number of communication lines comprise preset target communication lines; the method comprises the following steps:
receiving communication data from the communication interface;
sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type, and the method specifically comprises the following steps: sending the communication data to the mainboard chip sequentially through the target communication line, the switch device and the mainboard chip communication line, so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type; the target communication line transmits the communication data in a data transmission mode;
receiving the control instruction;
and switching the communication line corresponding to the type according to the control instruction.
5. The method of claim 4, wherein the predetermined number of communication lines comprises a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
6. The method according to claim 5, wherein switching the communication line corresponding to the type according to the control command comprises:
and when the type is differential data, the switching device conducts the RS485 communication line and the mainboard chip communication line.
7. A data communication device, which is applied to a mainboard chip, comprises:
the first receiving module is used for receiving communication data sent by the communication interface through a preset communication line switching device; the communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switch device; the preset number of communication lines comprise preset target communication lines; the first receiving module includes: the receiving unit is used for receiving communication data sent by a communication interface sequentially through a target communication line, the switch device and the mainboard chip communication line; the target communication line transmits the communication data in a data transmission mode;
the judging module is used for judging the type of the communication data;
and the first sending module is used for sending a control instruction to the communication line switching device according to the type so as to enable the communication line switching device to switch the communication line corresponding to the type.
8. The apparatus of claim 7, wherein the predetermined number of communication lines comprises a UART communication line and an RS485 communication line; the UART communication line is set as a target communication line.
9. The apparatus of claim 8, wherein the first transmit module comprises:
and the first sending unit is used for sending a control instruction for conducting the RS485 communication line to the communication line switching device when the type is the differential data, so that the switching device of the communication line switching device conducts the RS485 communication line and the mainboard chip communication line.
10. A data communication device is characterized by being applied to a communication line switching device, wherein the communication line switching device comprises a preset number of communication lines, a mainboard chip communication line and a switching device; the preset number of communication lines comprises a preset target communication line, and the device further comprises:
the second receiving module is used for receiving communication data from the communication interface;
the second sending module is used for sending the communication data to a mainboard chip so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type; the second sending module includes: a second transmitting unit; sending the communication data to the mainboard chip sequentially through the target communication line, the switch device and the mainboard chip communication line, so that the mainboard chip judges the type of the communication data and sends a control instruction to a communication line switching device according to the type; the target communication line transmits the communication data in a data transmission mode;
the third receiving module is used for receiving the control instruction;
and the switching module is used for switching the communication line corresponding to the type according to the control instruction.
11. A data communication device, comprising:
the communication line switching device comprises a preset number of communication lines, a switching device, a mainboard chip communication line and a control line; the switch device comprises a plurality of movable end contacts and a plurality of fixed ends; the mainboard chip is connected with the switch device through a control circuit;
one end of the mainboard chip communication circuit is connected with the fixed end of the switch device; the other end is connected with the mainboard chip;
one ends of the preset number of communication lines are respectively connected with the plurality of movable end contacts in a one-to-one correspondence manner; the other end is connected with the communication interface;
the switch device also comprises a processor and a memory connected with the processor, and the processor is also connected with the mainboard chip and the switch device;
the memory is used for storing a computer program for performing at least the data communication method of any one of claims 4 to 6;
the processor is used for calling and executing the computer program in the memory.
12. The apparatus of claim 11, wherein the switching device is an opto-coupler switch or a relay.
13. An air conditioner, characterized in that a data communication device according to any one of claims 11-12 is arranged between a mainboard chip of the air conditioner and the communication interface; the communication equipment is respectively connected with the mainboard chip and the communication interface.
CN201811153331.3A 2018-09-29 2018-09-29 Data communication method, device, equipment and air conditioner Active CN109343387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811153331.3A CN109343387B (en) 2018-09-29 2018-09-29 Data communication method, device, equipment and air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811153331.3A CN109343387B (en) 2018-09-29 2018-09-29 Data communication method, device, equipment and air conditioner

Publications (2)

Publication Number Publication Date
CN109343387A CN109343387A (en) 2019-02-15
CN109343387B true CN109343387B (en) 2021-03-16

Family

ID=65307772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811153331.3A Active CN109343387B (en) 2018-09-29 2018-09-29 Data communication method, device, equipment and air conditioner

Country Status (1)

Country Link
CN (1) CN109343387B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101329014B1 (en) * 2008-10-30 2013-11-12 삼성전자주식회사 Apparatus and method for controlling mode of switching ic in a portable device
CN101882120B (en) * 2009-05-06 2012-06-27 上海华虹集成电路有限责任公司 Device capable of automatically detecting micro controller unit (MCU) interfaces and realizing interface conversion
CN102045345B (en) * 2010-11-23 2013-04-24 广州数控设备有限公司 Method for realizing position sensor interface supporting various sensor communication protocols
CN102390410A (en) * 2011-06-23 2012-03-28 中国北车股份有限公司大连电力牵引研发中心 Vehicle monitoring system based on Beidou system and control method thereof
US9251143B2 (en) * 2012-01-13 2016-02-02 International Business Machines Corporation Converting data into natural language form
CN102573135B (en) * 2012-02-15 2014-10-15 中国科学院上海高等研究院 Wireless sensor network node controller, core bottom plate and wireless network access method for sensor
AU2012381055B2 (en) * 2012-05-21 2017-05-25 Schneider Electric It Corporation Systems and methods for biasing a bus
CN102929825B (en) * 2012-10-15 2016-04-13 天地融科技股份有限公司 A kind of method of multiplexing USB interface transmission data and electric signing tools
CN103927477B (en) * 2014-04-28 2017-03-08 上海新储集成电路有限公司 A kind of safe mainboard and its application process
CN105425669B (en) * 2015-11-16 2018-06-29 珠海格力电器股份有限公司 Communication interface circuit and its control method and apply its household electrical appliance
CN205486072U (en) * 2016-01-11 2016-08-17 中国地震局地壳应力研究所 Many interface signals conversion equipment

Also Published As

Publication number Publication date
CN109343387A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN106557446B (en) Bus system
US20050160212A1 (en) Method and device for transmitting data
CN110377553B (en) Method and device for detecting corresponding relation between hard disk backplane and mainboard port
CN108459982B (en) Communication equipment and switching method of USB and serial port
US20190012291A1 (en) Method of communication and corresponding device
CN112579492A (en) Connection method of universal serial bus hub device with different types of connection ports
CN100462955C (en) Substitute SATA host for communicating with a sata device
CN102231114A (en) System and method for upgrading chip as well as method and device for transmitting upgrade file
KR101185971B1 (en) Communication system, test device, communication device, communication method, and test method
CN104219003A (en) Communication device, test system and test method thereof
US7711878B2 (en) Method and apparatus for acknowledgement-based handshake mechanism for interactively training links
US20210119762A1 (en) Serial bidirectional communication circuit and method thereof
CN109343387B (en) Data communication method, device, equipment and air conditioner
CN110113209B (en) MIPI (Mobile industry processor interface) protocol-based inter-device communication method and equipment topological structure
US20050262184A1 (en) Method and apparatus for interactively training links in a lockstep fashion
KR20060087827A (en) Sata device having self-test function for oob signaling
CN109379110B (en) Relay device with multiple parameter configuration modes and parameter configuration method thereof
CN112860606A (en) Interface conversion device and equipment
CN103731172A (en) Road side unit equipment and radio frequency transmit-receive method
CN106803776B (en) Radio frequency front end testing device and radio frequency front end testing method
US6744779B1 (en) Data processing system
CN112966335B (en) Interface simulation device and automatic driving simulation test platform
CN110687363A (en) SFP port test fixture
CN107155359A (en) Method, user equipment and the external equipment of multiplexing peripheral interface
CN110418121B (en) Electronic component and projection equipment

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