CN109714334B - Method, device, processor, circuit and storage medium for transmitting air conditioner data - Google Patents

Method, device, processor, circuit and storage medium for transmitting air conditioner data Download PDF

Info

Publication number
CN109714334B
CN109714334B CN201811599136.3A CN201811599136A CN109714334B CN 109714334 B CN109714334 B CN 109714334B CN 201811599136 A CN201811599136 A CN 201811599136A CN 109714334 B CN109714334 B CN 109714334B
Authority
CN
China
Prior art keywords
data
air conditioner
communication
transmitting
air
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
CN201811599136.3A
Other languages
Chinese (zh)
Other versions
CN109714334A (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 CN201811599136.3A priority Critical patent/CN109714334B/en
Publication of CN109714334A publication Critical patent/CN109714334A/en
Application granted granted Critical
Publication of CN109714334B publication Critical patent/CN109714334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method, a device, a processor, a circuit and a storage medium for transmitting air conditioner data, which are used for acquiring the air conditioner data to be transmitted, extracting the data characteristics of the air conditioner data, selecting a communication protocol matched with the data characteristics from a plurality of pre-configured communication protocols according to the data characteristics, transmitting the air conditioner data based on the communication protocol, selecting a corresponding communication protocol according to the data characteristics of the air conditioner data to be transmitted, improving the flexibility of transmitting the air conditioner data, and flexibly switching to the corresponding communication protocol to transmit the air conditioner data when the data characteristics of the air conditioner data are changed.

Description

Method, device, processor, circuit and storage medium for transmitting air conditioner data
Technical Field
The present invention relates to the field of air conditioning data processing technologies, and in particular, to a method for transmitting air conditioning data, an apparatus for transmitting air conditioning data, a processor for transmitting air conditioning data, a circuit for transmitting air conditioning data, and a computer-readable storage medium.
Background
Along with the development of electronic technology, the intelligent degree of electronic products such as air conditioners is higher and higher, and the user experience of the electronic products can be improved by carrying out data acquisition and monitoring on the electronic products. Taking an air conditioner as an example, a corresponding data transmission module can be configured for the air conditioner, and the data of the air conditioner operation can be sent to the server in real time through the data transmission module, so that the server can monitor the operation state of the air conditioner, the environmental parameters of the air conditioner and other data information in real time, and the air conditioner can be better regulated and controlled.
Because the communication protocol adopted when transmitting the air conditioner data often needs to be changed according to the actual data transmission condition, however, in the traditional technology, different bill of materials and mainboard codes are often needed to be used to select and replace the corresponding data transmission circuit based on different hardware circuits used by different communication protocols, which causes the data transmission circuit under various communication protocols to become complicated and the flexibility of transmitting the air conditioner data to be poor.
Disclosure of Invention
Based on this, it is necessary to provide a method for transmitting air conditioning data, an apparatus for transmitting air conditioning data, a processor for transmitting air conditioning data, a circuit for transmitting air conditioning data, and a computer-readable storage medium, for solving the technical problem of poor flexibility of transmitting air conditioning data in the conventional art.
A method of transmitting air conditioning data, comprising the steps of:
acquiring air conditioner data to be transmitted;
extracting data characteristics of the air conditioner data;
selecting a communication protocol matched with the data characteristics from a plurality of communication protocols configured in advance;
and transmitting the air conditioner data based on the communication protocol.
An apparatus for transmitting air conditioning data, comprising:
the data acquisition module is used for acquiring air conditioner data to be transmitted;
the characteristic extraction module is used for extracting the data characteristics of the air conditioner data;
the protocol selection module is used for selecting a communication protocol matched with the data characteristics from a plurality of pre-configured communication protocols;
and the data transmission module is used for transmitting the air conditioner data based on the communication protocol.
A processor for transmitting air-conditioning data is used for transmitting the air-conditioning data by the method for transmitting the air-conditioning data.
A circuit for transmitting air conditioner data comprises a processor and a plurality of communication chips respectively connected with the processor; the processor is connected with the server and is also connected to the air conditioner mainboard through the plurality of communication chips; the processor is used for transmitting the air conditioner data between the server and the air conditioner mainboard according to the method for transmitting the air conditioner data.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of transmitting air-conditioning data as set forth above.
According to the method, the device, the processor, the circuit and the storage medium for transmitting the air conditioner data, the air conditioner data to be transmitted are obtained, the data characteristics of the air conditioner data are extracted, the communication protocol matched with the data characteristics is selected from a plurality of pre-configured communication protocols according to the data characteristics, then the air conditioner data are transmitted based on the communication protocol, the corresponding communication protocol can be selected according to the data characteristics of the air conditioner data to be transmitted, the flexibility of transmitting the air conditioner data is improved, and when the data characteristics of the air conditioner data change, the air conditioner data can be flexibly switched to the corresponding communication protocol for transmitting the air conditioner data.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for transmitting air conditioning data;
FIG. 2 is a flow diagram illustrating a method for transmitting air conditioning data according to one embodiment;
FIG. 3 is a schematic diagram of circuitry for transmitting air conditioning data in one embodiment;
FIG. 4 is a schematic diagram of an embodiment of a transistor driver circuit;
FIG. 5 is a schematic diagram of a circuit for transmitting air conditioning data according to another embodiment;
fig. 6 is a block diagram illustrating an apparatus for transmitting air conditioning data according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that the term "first \ second" referred to in the embodiments of the present invention is only used for distinguishing similar objects, and does not represent a specific ordering for the objects, and it should be understood that "first \ second" may exchange a specific order or sequence order if allowed. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in sequences other than those illustrated or described herein.
The method for transmitting air conditioner data provided by the present invention can be applied to the application scenario shown in fig. 1, where fig. 1 is an application scenario diagram of the method for transmitting air conditioner data in an embodiment, and a server may be in communication connection with an air conditioner through a data transmission device. The air conditioner is provided with an air conditioner mainboard, the air conditioner mainboard is a main control panel of the air conditioner and is used for controlling the on-off of various loads, the air conditioner is a core control device of the air conditioner, the server is equipment for collecting and analyzing air conditioner data, technicians can analyze and process the air conditioner data based on the server, the data transmission device is used as a bridge between the air conditioner and the server and is used for establishing communication connection between the air conditioner and the server, and the data transmission device can acquire the air conditioner data from the air conditioner and send the air conditioner data to the server and also can receive corresponding air conditioner data (such as temperature adjusting instructions and the like) from the server and send the air conditioner data to the server. Specifically, the data transmission device may obtain air conditioner data to be transmitted, where the air conditioner data may be sent by an air conditioner or sent by a server, and then may extract data characteristics of the air conditioner data, select a communication protocol (the communication protocol may include, but is not limited to, an RS485 communication protocol, a CAN communication protocol, and an IO-LINK communication protocol) matching the data characteristics from among a plurality of communication protocols pre-configured by the data transmission device according to the data characteristics, and then may transmit the air conditioner data between the server and the air conditioner based on the communication protocol. The number of the air conditioners can be multiple, and the server can be realized by an independent server or a server cluster formed by multiple servers.
In an embodiment, a method for transmitting air-conditioning data is provided, and referring to fig. 2, fig. 2 is a flowchart illustrating a method for transmitting air-conditioning data in an embodiment, which may be implemented by the data transmission apparatus shown in fig. 1, and the method for transmitting air-conditioning data may include the following steps:
and step S101, acquiring air conditioner data to be transmitted.
The step is mainly that the data transmission device can acquire the air conditioner data to be transmitted, and the air conditioner data can be data sent to the air conditioner mainboard by the server or data sent to the server by the air conditioner mainboard. The air conditioner data may include data carrying operating state information of the air conditioner, or may be data such as a related instruction used by the server to control the air conditioner.
Specifically, the server can send a temperature adjustment instruction to the air conditioner mainboard, so that the temperature of the air conditioner is adjusted to a set value, and at the moment, the data transmission device can acquire the temperature adjustment instruction as air conditioner data to be transmitted to the air conditioner mainboard; the air conditioner mainboard can also send the real-time operating data of the air conditioner to the server as the real-time temperature, and the data transmission device can acquire the real-time temperature as the air conditioner data to be transmitted to the server.
And step S102, extracting data characteristics of the air conditioner data.
In this step, the data transmission device may extract the data characteristics of the air-conditioning data after acquiring the air-conditioning data, where the data characteristics may include characteristic information of data such as a data frame format and a check bit, and may also use the air-conditioning data itself as the data characteristics. Because various communication protocols generally stipulate that data are transmitted in data characteristics such as specific data frame formats and check bits, under the specific communication protocols, the server and the air conditioner main board can package the air conditioner data to be transmitted based on the specific data frame formats, the check bits and the like, so that the air conditioner data to be transmitted have data characteristics matched with the specific data frame formats or the check bits, and the step extracts the data characteristics of the air conditioner data so as to determine the communication protocol for transmitting the air conditioner data based on the data characteristics.
Step S103, selecting a communication protocol matched with the data characteristics from a plurality of communication protocols configured in advance.
The step is mainly that after the data transmission device extracts the data features of the air conditioner data, a communication protocol matched with the data features CAN be selected from a plurality of pre-configured communication protocols, wherein the communication protocol CAN be pre-configured in a corresponding communication chip, for example, the communication protocol CAN include but is not limited to an RS485 communication protocol, a CAN communication protocol and the like, the pre-configuration of the RS485 communication protocol and the CAN communication protocol CAN be realized by installing the RS485 communication chip and the CAN communication chip in the data transmission device, and then the communication protocol matched with the data features CAN be selected from the communication chip. The communication protocols and the corresponding communication chips configured by the data transmission device can be increased according to actual data transmission requirements, that is, the data transmission device can be compatible with more communication protocols according to actual requirements, so as to increase the applicability of the data transmission device under various communication protocols.
Specifically, assuming that the data characteristic a of the air conditioner data matches the communication protocol a, and the data transmission device is pre-configured with the communication protocol a, the communication protocol B, and the communication protocol C, after the data transmission device receives the air conditioner data and obtains the data characteristic a of the air conditioner data, the communication protocol a may be selected from the communication protocol a, the communication protocol B, and the communication protocol C as a communication protocol matching the data characteristic a.
And step S104, transmitting the air conditioner data based on the communication protocol.
The communication chip configured with the communication protocol can be used for realizing the transmission of air conditioner data. For example, the data transmission device may be configured with a communication chip a matching the communication protocol a and a communication chip B matching the communication protocol B, and then in this step, after the data transmission device selects the communication protocol a as the communication protocol matching the data characteristics of the air-conditioning data, the data transmission device may implement transmission of the air-conditioning data between the server and the air-conditioning motherboard based on the communication chip a, because the air-conditioning data can be accurately analyzed only by the communication protocol matching the data, and if the air-conditioning data is transmitted by the communication protocol not matching the data, the accurate data cannot be identified and a data scrambling code cannot be generated, which results in that effective data transmission cannot be performed between the server and the air-conditioning motherboard.
According to the method for transmitting the air conditioner data, the air conditioner data to be transmitted are obtained, the data characteristics of the air conditioner data are extracted, the communication protocol matched with the data characteristics is selected from a plurality of pre-configured communication protocols according to the data characteristics, then the air conditioner data are transmitted based on the communication protocol, the corresponding communication protocol can be selected according to the data characteristics of the air conditioner data to be transmitted, the flexibility of transmitting the air conditioner data is improved, and when the data characteristics of the air conditioner data change, the air conditioner data can be flexibly switched to the corresponding communication protocol for transmission.
In one embodiment, the step of extracting the data feature of the air-conditioning data may include:
analyzing air conditioner data through a plurality of communication chips; the communication chips are respectively configured with a plurality of communication protocols; and acquiring the data characteristics of the air conditioner data according to the analysis result.
In this embodiment, the air conditioner data to be transmitted is mainly analyzed by using the plurality of communication chips, so that the data characteristics of the air conditioner data are obtained according to the analysis result. Each communication chip is configured with different communication protocols, that is, the data transmission device may be provided with a communication chip a, a communication chip B and a communication chip C, wherein the communication chip a is configured with the communication protocol a, the communication chip B is configured with the communication protocol B and the communication chip C is configured with the communication protocol C.
The data transmission device can receive and analyze the air conditioner data through each communication chip respectively, obtain the analysis result of each communication chip, and then obtain the data characteristics of the air conditioner data according to the analysis result. Specifically, referring to fig. 3, fig. 3 is a schematic diagram of a circuit for transmitting air conditioner data in an embodiment, where the data transmission device may be implemented by a processor, a CAN communication chip and an RS485 communication chip, where the processor is respectively in communication connection with the CAN communication chip and the RS485 communication chip, and is connected to a communication interface of an air conditioner motherboard by the CAN communication chip and the RS485 communication chip, so that the data transmission device CAN obtain air conditioner data sent by the air conditioner motherboard through the communication interface of the air conditioner motherboard, where the processor CAN receive and analyze the air conditioner data sent by the air conditioner motherboard through the CAN communication chip and the RS485 communication chip, the CAN communication chip and the RS485 communication chip CAN respectively analyze an analysis result carrying information such as a data frame format, a check bit, and the like of the air conditioner data, and then the processor CAN obtain the analysis result and extract a data frame format, a data format, a check bit, and the like of the air, Check bits and the like.
In the embodiment, the air conditioner data to be transmitted are analyzed through the plurality of communication chips, so that the data characteristics of the air conditioner data can be accurately acquired based on the analysis result of each communication chip, and an accurate data basis is provided for subsequently determining the communication protocol matched with the data characteristics.
In one embodiment, the step of selecting a communication protocol matching the data characteristics from a plurality of preconfigured communication protocols may include:
acquiring standard data characteristics corresponding to each communication protocol; comparing the data characteristic to a standard data characteristic; and determining a communication protocol matched with the data characteristics according to the comparison result.
In this embodiment, the data transmission device may obtain standard data characteristics corresponding to each communication protocol after determining the data characteristics of the air-conditioning data, compare the data characteristics with the standard data characteristics, and determine a communication protocol matching the data characteristics of the air-conditioning data according to the comparison result, so as to transmit the air-conditioning data based on the communication protocol.
Each communication protocol configured on the data transmission device generally has specific standard data characteristics (such as a standard data frame format, check bits, and the like), so that after the data characteristics of the air conditioner data to be transmitted are obtained, the data characteristics can be compared with the specific standard data characteristics of each communication protocol, and if the data characteristics are the same as the standard data characteristics specified by a certain communication protocol, it can be determined that the communication protocol is the communication protocol matched with the data characteristics. And under the condition that a plurality of communication chips are configured, each communication chip is respectively and previously configured with a corresponding communication protocol, so that whether the data characteristics of the air-conditioning data are compared with the standard data characteristics or not can be judged through the plurality of communication chips, and if the comparison is matched, the communication chip matched with the data characteristics can be adopted to realize the selection of the communication protocols.
Specifically, referring to fig. 3, after the CAN communication chip and the RS485 communication chip analyze the air-conditioning data to obtain the data characteristics of the air-conditioning data, assuming that the data characteristics of the obtained air-conditioning data are "data frame format 1010", assuming that the standard data frame format of the CAN communication chip is "1010", and the standard data frame format of the RS485 communication chip is "1110", the data frame format of the air-conditioning data and the standard data frame format of the CAN may be compared by the CAN communication chip, comparing the data frame format of the air-conditioning data and the standard data frame format of the RS485 by the RS485 communication chip, after comparing the data frame formats of the CAN communication chip and the standard data frame format of the RS485 communication chip, the corresponding comparison result may be sent to the processor, and then the processor may determine that the data characteristics of the air-conditioning data match the communication protocol of the CAN communication chip, i.e. the CAN communication protocol, therefore, air conditioner data transmission between the air conditioner mainboard and the server CAN be realized based on the CAN communication chip.
The communication protocol matched with the data characteristics of the air conditioner data can be efficiently and accurately determined based on the standard data characteristics of each communication protocol, the efficiency and the accuracy of air conditioner data transmission are improved, a plurality of communication protocols can be compatible, and the applicability of transmission of the air conditioner data under the plurality of communication protocols is improved.
In one embodiment, the step of transmitting the air conditioning data based on the communication protocol may include:
determining a first communication chip; the first communication chip is a communication chip configured with a communication protocol; and transmitting air conditioner data by utilizing the first communication chip.
In this embodiment, after selecting a communication protocol matching with the data characteristics of the air conditioner data, a communication chip configured with the communication protocol, that is, a first communication chip, may be determined, and then the air conditioner data is transmitted by using the first communication chip. Specifically, referring to fig. 3, assuming that the communication protocol matched with the data characteristics of the air conditioner data is the CAN communication protocol, the CAN communication chip configured on the data transmission device is determined as the first communication chip, and the first communication chip is utilized to perform processing such as receiving, sending, analyzing and the like on the air conditioner data, so that data transmission between the air conditioner motherboard and the server is realized based on the first communication chip.
Further, in one embodiment, the method may further include the steps of:
turning off the second communication chip; the second communication chip is a communication chip which is not configured with a communication protocol.
After the first communication chip is determined, because the first communication chip is used for analyzing data transmission between the air conditioner motherboard and the server, and if the communication chip not configured with the communication protocol also receives air conditioner data sent by the air conditioner motherboard or the server, on one hand, confusion of data transmission is easily caused, and on the other hand, the power consumption of the data transmission device is increased.
Specifically, referring to fig. 3, if the first communication chip is determined to be the CAN communication chip, the second communication chip is the RS485 communication chip, and at this time, the processor may turn off the RS485 communication chip, so that the RS485 communication chip does not process the air conditioner data. There are various methods of turning off the second communication chip, such as cutting off power to the second communication chip, setting the second communication chip to be disabled, and so on.
In one embodiment, the power of the second communication chip may be turned off by the power switching circuit.
In this embodiment, a power switch circuit may be configured for each communication chip, the power switch circuit is mainly used to control the power on-off state of each communication chip, and the power switch circuit may receive a power on-off instruction sent by the processor and control the power on-off state of each communication chip according to the power on-off instruction.
Specifically, referring to fig. 3, a first power switch circuit may be configured for the CAN communication chip in the data transmission device, and a second power switch circuit may be configured for the RS485 communication chip, where the first power switch circuit and the second power switch circuit may receive a power on-off instruction sent by the processor, so as to control power on-off states of the CAN communication chip and the RS485 communication chip, respectively, and taking the RS485 communication chip as the second communication chip as an example, the processor may send a power off instruction to the second power switch circuit, so that the second power switch circuit cuts off power output to the RS485 communication chip, and the power consumption CAN be reduced effectively by turning off the power supply of the communication chip. The power switch circuits including the first power switch circuit and the second power switch circuit may be implemented by a transistor driving circuit, referring to fig. 4, fig. 4 is a schematic diagram of the transistor driving circuit in an embodiment, two ends of a resistor R1 are respectively connected to an IO port of a processor and a base B of a transistor Q, the transistor Q is connected in parallel to a resistor R2 through the base B and an emitter E thereof, the emitter E of the transistor Q is connected to a power supply, and a collector C of the transistor Q is connected to a power pin of a communication chip, so that the transistor Q controls whether to conduct the power supply to the power pin of the communication chip through a power on-off command (such as a high-low level signal) sent by the IO port of the processor.
After the RS485 communication chip is turned off, the air conditioner data is transmitted through the CAN communication chip, if the communication is still unavailable, the polarity of the CAN communication chip CAN be reversed, and the data transmission is carried out in a CAN communication mode of reversing the polarity.
In one embodiment, the second communication chip may be set to a disabled state.
The second communication chip can be set to be in the disabled state by the processor, so that the second communication chip cannot process the air-conditioning data. The processor may be connected to the enable terminal DE of the second communication chip, and enable or disable the second communication chip by sending an enable control command (e.g., a high/low level signal) to the enable terminal DE of the second communication chip. Specifically, referring to fig. 5, fig. 5 is a schematic diagram of a circuit for transmitting air conditioner data in another embodiment, assuming that the RS485 communication chip is used as the second communication chip, the processor may be connected to the enabling end DE of the RS485 communication chip through the I/O port 1 of the processor, the enabling end DE of the RS485 communication chip may be enabled by default, and the processor may set the RS485 communication chip to a disabled state through the I/O port 1, so that the RS485 communication chip cannot process the air conditioner data, and an effect of transmitting the air conditioner data through the first communication chip, i.e., the CAN communication chip, is achieved.
In one embodiment, the step of transmitting the air conditioning data based on the communication protocol may include:
and transmitting the air conditioner data between the server and the air conditioner mainboard according to the communication protocol.
The embodiment is mainly based on the fact that the selected communication protocol transmits the air conditioner data between the server and the air conditioner mainboard, when the data characteristics change, the data transmission device can adaptively select the communication protocol matched with the data characteristics to transmit the air conditioner data between the server and the air conditioner mainboard, so that the instruction data sent by the server can be accurately sent to the air conditioner, the data generated by the air conditioner can be accurately sent to the server, and when different communication modes are compatible, the data can be accurately transmitted.
In one embodiment, the step of transmitting the air conditioner data between the server and the air conditioner mainboard based on the communication protocol may include:
and transmitting the air conditioner data between the server and the air conditioner mainboard through the NB-IoT network based on the communication protocol.
In this embodiment, the data transmission module may transmit the air conditioner data between the server and the air conditioner motherboard through an NB-IoT (Narrow Band Internet of Things) network based on the communication protocol. Referring to fig. 3 or fig. 5, an NB-IoT module may be configured on the data transmission module, the NB-IoT module may be configured to transmit air-conditioning data through an NB-IoT network, the NB-IoT module is provided with an antenna, the antenna may be configured to receive and transmit the air-conditioning data from a carrier base station, the NB-IoT module may transmit the air-conditioning data received by the antenna to the processor, and may also transmit the air-conditioning data transmitted by the processor to the server through the NB-IoT network. The NB-IoT network is an important branch of the internet of everything, and can be deployed in a GSM network, a UMTS network, or an LTE network, so as to reduce the deployment cost and further reduce the energy consumption of the data transmission module.
In an embodiment, an apparatus for transmitting air conditioning data is provided, and referring to fig. 6, fig. 6 is a block diagram illustrating a structure of the apparatus for transmitting air conditioning data according to an embodiment, and the apparatus for transmitting air conditioning data may include:
the data acquisition module 101 is used for acquiring air conditioner data to be transmitted;
a feature extraction module 102, configured to extract data features of the air conditioner data;
a protocol selection module 103, configured to select a communication protocol matching the data feature from a plurality of pre-configured communication protocols;
and the data transmission module 104 is configured to transmit the air conditioner data based on the communication protocol.
In one embodiment, the feature extraction module 102 is further configured to:
analyzing air conditioner data through a plurality of communication chips; the communication chips are respectively configured with a plurality of communication protocols; and acquiring the data characteristics of the air conditioner data according to the analysis result.
In one embodiment, the protocol selection module 103 is further configured to:
acquiring standard data characteristics corresponding to each communication protocol; comparing the data characteristic to a standard data characteristic; and determining a communication protocol matched with the data characteristics according to the comparison result.
In one embodiment, the data transmission module 104 is further configured to:
determining a first communication chip; the first communication chip is a communication chip configured with a communication protocol; and transmitting air conditioner data by utilizing the first communication chip.
In one embodiment, the method may further include:
the turn-off unit is used for turning off the second communication chip; the second communication chip is a communication chip which is not configured with a communication protocol.
In one embodiment, the shutdown unit is further configured to:
the power of the second communication chip can be turned off through the power switch circuit.
In one embodiment, the shutdown unit is further configured to:
the second communication chip may be set to a disabled state.
In one embodiment, the data transmission module 104 is further configured to:
and transmitting the air conditioner data between the server and the air conditioner mainboard according to the communication protocol.
In one embodiment, the data transmission module 104 is further configured to:
and transmitting the air conditioner data between the server and the air conditioner mainboard through the NB-IoT network based on the communication protocol.
In one embodiment, the communication protocol may include an RS485 communication protocol and/or a CAN communication protocol.
In one embodiment, the communication chip may include an RS485 chip and/or a CAN chip.
In one embodiment, the air conditioner data to be transmitted may be air conditioner data sent by a server or air conditioner data sent by an air conditioner motherboard.
The device for transmitting air-conditioning data of the present invention corresponds to the method for transmitting air-conditioning data of the present invention one to one, and for the specific limitations of the device for transmitting air-conditioning data, reference may be made to the limitations of the method for transmitting air-conditioning data in the foregoing. All or part of each module in the device for transmitting air conditioning data can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a processor for transmitting air conditioning data is provided, and the processor is used for transmitting the air conditioning data through the method for transmitting the air conditioning data according to any one of the above embodiments.
The processor can select the corresponding communication protocol according to the data characteristics of the air conditioner data to be transmitted, improves the flexibility of transmitting the air conditioner data, and can flexibly switch to the corresponding communication protocol to transmit the air conditioner data when the data characteristics of the air conditioner data change.
In one embodiment, a circuit for transmitting air conditioning data is provided, and the circuit for transmitting air conditioning data may include a processor and a plurality of communication chips respectively connected to the processor; the processor is connected with the server and is also connected to the air conditioner mainboard through a plurality of communication chips; the processor is used for transmitting the air conditioner data between the server and the air conditioner mainboard according to the method for transmitting the air conditioner data in any one of the embodiments.
Specifically, referring to fig. 3 and 5, the plurality of communication chips may include a CAN communication chip and an RS485 communication chip, the processor may be connected to the CAN communication chip through CAN _ RX and CAN _ TX terminals, the processor may be connected to the RS485 communication chip through UART _ TX/UART _ RX terminals, and a processor interface using multiplexing of CAN and UART may save port resources, the processor may select a communication protocol matching the data characteristics from a plurality of communication protocols (such as CAN communication protocol and RS485 communication protocol) configured in advance according to the data characteristics of the air conditioning data, wherein the communication chip may be configured to compare a data frame format of the air conditioning data with a standard data frame format, may transmit the comparison result to the processor, and may transmit the air conditioning data to the communication protocol matching the data frame format if the comparison result is that the data frame format of the air conditioning data matches the standard data frame format, if the communication protocol is a CAN communication protocol, the air conditioner data CAN be transmitted and processed based on a CAN communication chip configured on the circuit for transmitting the air conditioner data.
Like this, can remain multiple communication mode on same circuit board, the circuit is compacter, save resource saving space, also be favorable to the later maintenance facility, facilitate the use, and need not to distinguish when plugging into with the air conditioner mainboard and what kind of communication mode is adopted to the air conditioner mainboard, the data interface of the circuit connection to the air conditioner mainboard that will transmit air conditioner data can use, the universality has been increased, avoid inserting wrong air conditioner mainboard, and the treater on the circuit through transmitting air conditioner data can select corresponding communication protocol to transmit this air conditioner data, guarantee that this circuit can carry out the compatibility to different communication modes, if the communication is not last, can also in time change communication mode.
In one embodiment, the air conditioner can further comprise an NB-IoT module connected to the processor and the server, respectively, and the NB-IoT module can be configured to send the air conditioner data sent by the server through the NB-IoT network to the air conditioner motherboard through the communication chip and/or send the air conditioner data sent by the processor to the server through the NB-IoT network.
The NB-IoT module can be connected with the processor through the UART _ TX/UART _ RX interface and connected with the server through the NB-IoT network, is provided with an antenna, can be used for receiving and transmitting air conditioning data from a carrier base station, and can transmit the air conditioning data received by the antenna to the processor and also transmit the air conditioning data transmitted by the processor to the server through the NB-IoT network.
In one embodiment, a power switching circuit may also be included; the power switch circuit can be used for receiving a power switch control signal sent by the processor and controlling the power on-off state of the communication chip according to the power switch control signal.
In this embodiment, referring to fig. 3, the power switch circuit may include a first switch circuit and a second switch circuit, the first switch circuit may be configured to control a power on/off state of the CAN communication chip, the second switch circuit may be configured to control a power on/off state of the RS485 communication chip, for example, the processor may send a power switch control signal to the second switch circuit, so that the second switch circuit controls the power on/off state of the RS485 communication chip according to the power switch control signal, and if the CAN communication chip is selected as the communication chip for transmitting the air conditioner data, the processor may send a power off instruction to the second switch circuit, so that the second switch circuit cuts off the power of the RS485 communication chip, and the RS485 communication chip does not process the air conditioner data.
In one embodiment, the processor may be connected to the enable terminal of the communication chip, and configured to send the enable control signal to the enable terminal of the communication chip.
Specifically, referring to fig. 5, the processor may be connected to an enable end DE of the RS485 communication chip, and thus, if the CAN communication chip is used as a communication chip for transmitting air conditioner data, the processor may send an enable control instruction (such as a high-low level signal) to the enable end DE of the RS485 communication chip to enable or disable the RS485 communication chip, so that the RS485 communication chip cannot process the air conditioner data, and the effect of transmitting the air conditioner data through the CAN communication chip is achieved.
The above-described embodiments can reduce power consumption of the circuit by turning off unnecessary communication chips by cutting off power or setting the communication chips to be disabled.
The circuit for transmitting the air conditioner data can select the corresponding communication protocol according to the data characteristics of the air conditioner data to be transmitted, improves the flexibility of transmitting the air conditioner data, and can flexibly switch to the corresponding communication protocol to transmit the air conditioner data when the data characteristics of the air conditioner data change.
It will be understood by those skilled in the art that all or part of the processes of the method for transmitting air-conditioning data according to any of the above embodiments may be implemented by a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the above embodiments of the method. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Accordingly, in an embodiment, there is also provided a computer readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method for transmitting air conditioning data according to any one of the above embodiments.
Accordingly, in one embodiment there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
acquiring air conditioner data to be transmitted; extracting data characteristics of the air conditioner data; selecting a communication protocol matched with the data characteristics from a plurality of communication protocols configured in advance; and transmitting the air conditioner data based on the communication protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing air conditioner data through a plurality of communication chips; the communication chips are respectively configured with a plurality of communication protocols; and acquiring the data characteristics of the air conditioner data according to the analysis result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring standard data characteristics corresponding to each communication protocol; comparing the data characteristic to a standard data characteristic; and determining a communication protocol matched with the data characteristics according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a first communication chip; the first communication chip is a communication chip configured with a communication protocol; and transmitting air conditioner data by utilizing the first communication chip.
In one embodiment, the computer program when executed by the processor further performs the steps of:
turning off the second communication chip; the second communication chip is a communication chip which is not configured with a communication protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the power of the second communication chip can be turned off through the power switch circuit.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the second communication chip may be set to a disabled state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and transmitting the air conditioner data between the server and the air conditioner mainboard according to the communication protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and transmitting the air conditioner data between the server and the air conditioner mainboard through the NB-IoT network based on the communication protocol.
In one embodiment, the communication protocol may include an RS485 communication protocol and/or a CAN communication protocol.
In one embodiment, the communication chip may include an RS485 chip and/or a CAN chip.
In one embodiment, the air conditioner data to be transmitted may be air conditioner data sent by a server or air conditioner data sent by an air conditioner motherboard.
The computer readable storage medium can select the corresponding communication protocol according to the data characteristics of the air conditioner data to be transmitted through the stored computer program, improves the flexibility of transmitting the air conditioner data, and can flexibly switch to the corresponding communication protocol to transmit the air conditioner data when the data characteristics of the air conditioner data change.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A method of transmitting air conditioning data, comprising the steps of:
acquiring air conditioner data to be transmitted; the air conditioner data comprises data carrying running state information of the air conditioner or an instruction for controlling the air conditioner;
extracting data characteristics of the air conditioner data; the method comprises the following steps: analyzing the air conditioner data through a plurality of communication chips; acquiring data characteristics of the air conditioner data according to the analysis result; the communication chips are respectively configured with a plurality of communication protocols;
selecting a communication protocol matched with the data characteristics from a plurality of communication protocols configured in advance; the method comprises the following steps: comparing the data characteristics with standard data characteristics corresponding to the plurality of communication protocols, and determining the communication protocol matched with the data characteristics according to the comparison result;
transmitting the air conditioner data based on the communication protocol matched with the data characteristics; the method comprises the following steps: transmitting the air conditioner data by using a first communication chip, and turning off a second communication chip; the first communication chip is a communication chip which is configured with the communication protocol matched with the data characteristics; the second communication chip is not configured with the communication protocol matched with the data characteristics.
2. The method of claim 1, wherein selecting the communication protocol matching the data characteristics from a plurality of pre-configured communication protocols further comprises:
and acquiring standard data characteristics corresponding to the plurality of communication protocols.
3. The method of claim 1, wherein the step of transmitting the air-conditioning data based on the communication protocol matching the data characteristics comprises:
a first communication chip is determined.
4. The method of transmitting air conditioning data according to claim 1,
the step of turning off the second communication chip comprises the following steps:
turning off the power supply of the second communication chip through a power supply switch circuit;
or
The step of turning off the second communication chip comprises the following steps:
and setting the second communication chip to be in a non-enabled state.
5. The method of any one of claims 1 to 4, wherein the communication protocol comprises an RS485 communication protocol and/or a CAN communication protocol; the communication chip comprises an RS485 chip and/or a CAN chip.
6. The method for transmitting air conditioner data according to claim 1, wherein the air conditioner data to be transmitted is air conditioner data sent by a server or air conditioner data sent by an air conditioner mainboard.
7. The method of claim 1, wherein the step of transmitting the air-conditioning data based on the communication protocol matching the data characteristics comprises:
and transmitting the air conditioner data between the server and the air conditioner mainboard according to the communication protocol matched with the data characteristics.
8. The method for transmitting air-conditioning data according to claim 7, wherein the step of transmitting the air-conditioning data between the server and the air-conditioning mainboard according to the communication protocol matched with the data characteristics comprises the following steps:
and transmitting the air conditioner data between the server and the air conditioner mainboard through an NB-IoT network based on the communication protocol matched with the data characteristics.
9. An apparatus for transmitting air conditioning data, comprising:
the data acquisition module is used for acquiring air conditioner data to be transmitted; the air conditioner data comprises data carrying running state information of the air conditioner or an instruction for controlling the air conditioner;
the characteristic extraction module is used for extracting the data characteristics of the air conditioner data; further for: analyzing the air conditioner data through a plurality of communication chips; acquiring data characteristics of the air conditioner data according to the analysis result; the communication chips are respectively configured with a plurality of communication protocols;
the protocol selection module is used for selecting a communication protocol matched with the data characteristics from a plurality of pre-configured communication protocols; the method comprises the following steps: comparing the data characteristics with standard data characteristics corresponding to the plurality of communication protocols, and determining the communication protocol matched with the data characteristics according to the comparison result;
the data transmission module is used for transmitting the air conditioner data based on the communication protocol matched with the data characteristics; the method comprises the following steps: transmitting the air conditioner data by using a first communication chip, and turning off a second communication chip; the first communication chip is a communication chip which is configured with the communication protocol matched with the data characteristics; the second communication chip is not configured with the communication protocol matched with the data characteristics.
10. A circuit for transmitting air conditioner data is characterized by comprising a processor and a plurality of communication chips respectively connected with the processor; the processor is connected with the server and is also connected to the air conditioner mainboard through the plurality of communication chips; wherein the content of the first and second substances,
the processor is used for transmitting the air conditioning data between the server and the air conditioning mainboard according to the method for transmitting the air conditioning data as claimed in any one of claims 1 to 8.
11. The circuit for transmitting air-conditioning data according to claim 10, further comprising an NB-IoT module connected to the processor and the server, respectively, for sending the air-conditioning data sent by the server through an NB-IoT network to the air-conditioning motherboard and/or for sending the air-conditioning data sent by the processor through the NB-IoT network to the server.
12. The circuit for transmitting air conditioner data according to claim 10, wherein the plurality of communication chips comprise an RS485 chip and a CAN chip.
13. The circuit for transmitting air conditioning data according to claim 10, further comprising a power switching circuit; the power switch circuit is used for receiving the power switch control signal sent by the processor and controlling the power on-off state of the communication chip according to the power switch control signal.
14. The circuit for transmitting air conditioner data according to claim 10, wherein the processor is connected to the enable terminal of the communication chip and configured to send an enable control signal to the enable terminal of the communication chip.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of transmitting air-conditioning data according to any one of claims 1 to 8.
CN201811599136.3A 2018-12-26 2018-12-26 Method, device, processor, circuit and storage medium for transmitting air conditioner data Active CN109714334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811599136.3A CN109714334B (en) 2018-12-26 2018-12-26 Method, device, processor, circuit and storage medium for transmitting air conditioner data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811599136.3A CN109714334B (en) 2018-12-26 2018-12-26 Method, device, processor, circuit and storage medium for transmitting air conditioner data

Publications (2)

Publication Number Publication Date
CN109714334A CN109714334A (en) 2019-05-03
CN109714334B true CN109714334B (en) 2020-11-24

Family

ID=66257715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811599136.3A Active CN109714334B (en) 2018-12-26 2018-12-26 Method, device, processor, circuit and storage medium for transmitting air conditioner data

Country Status (1)

Country Link
CN (1) CN109714334B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110529985A (en) * 2019-08-29 2019-12-03 珠海格力电器股份有限公司 The matching process and device of air-conditioner set and data transmission terminal DTU
CN114157729A (en) * 2021-12-06 2022-03-08 杨金燚 Multi-functional pluggable thing networking module based on LoRaWAN communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200990011Y (en) * 2006-12-19 2007-12-12 广东美泰科技有限公司 Intelligent controller for commercial air conditioner
CN103631248A (en) * 2012-08-21 2014-03-12 珠海格力电器股份有限公司 Testing apparatus for air conditioner unit, testing method and testing system
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
CN105446924A (en) * 2014-08-25 2016-03-30 珠海格力电器股份有限公司 Air conditioner controller communication protocol compatibility processing method and system
CN106302697A (en) * 2016-08-11 2017-01-04 珠海格力电器股份有限公司 Analytic method, device and the air-conditioning of a kind of air-conditioning data
CN107655146A (en) * 2017-09-01 2018-02-02 珠海格力电器股份有限公司 Detection of air-conditioning method, apparatus, storage medium and air-conditioning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532975B (en) * 2013-10-28 2016-08-17 国家电网公司 A kind of can dynamic smoothing extension data collecting system and method
US9883009B2 (en) * 2013-12-27 2018-01-30 International Business Machines Corporation Automatic computer room air conditioning control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200990011Y (en) * 2006-12-19 2007-12-12 广东美泰科技有限公司 Intelligent controller for commercial air conditioner
CN103631248A (en) * 2012-08-21 2014-03-12 珠海格力电器股份有限公司 Testing apparatus for air conditioner unit, testing method and testing system
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
CN105446924A (en) * 2014-08-25 2016-03-30 珠海格力电器股份有限公司 Air conditioner controller communication protocol compatibility processing method and system
CN106302697A (en) * 2016-08-11 2017-01-04 珠海格力电器股份有限公司 Analytic method, device and the air-conditioning of a kind of air-conditioning data
CN107655146A (en) * 2017-09-01 2018-02-02 珠海格力电器股份有限公司 Detection of air-conditioning method, apparatus, storage medium and air-conditioning

Also Published As

Publication number Publication date
CN109714334A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN108270883B (en) Can automatic dispensing device address code method, breaker and storage medium
CN112104654B (en) Multi-protocol automatic identification and conversion method, storage medium and intelligent gateway
US7309018B2 (en) Semiconductor integrated circuit device and noncontact IC card
CN109714334B (en) Method, device, processor, circuit and storage medium for transmitting air conditioner data
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
US8219147B2 (en) Mobile terminal and method of indentifying SIM card thereof
CN104796464A (en) Multi-protocol conversion warning condition information remote transmission system and method based on MODBUS
CN107182046A (en) Network collocating method, device, user terminal and readable storage medium storing program for executing
CN111542081A (en) Communication switching method and device and Internet of things communication module
CN102811454B (en) A kind of method of testing, Apparatus and system of mobile terminal sensitivity
CN112423322A (en) Model information sending method, device, storage medium and electronic device
CN107483236B (en) Method and device for backing up access point of Internet of things
CN108647131B (en) Output system of running log
CN105578571A (en) Network searching method and terminal
CN100484145C (en) Portable terminal, program installed therein, communication method, and communication apparatus
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN110769460B (en) BSR transmission method, device, related equipment and storage medium
CN108616870B (en) Method and device for identifying terminal customized preferentially
EP1675418A1 (en) Method and apparatus for control of data synchronization between a user equipment and a user authentication card
CN108055660A (en) The method and internet-of-things terminal of data are transmitted in network channel
CN104571962A (en) Implementation method of firmware in USBKEY suitable for batch production
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
CN108896849B (en) Wireless charging system fault identification method and device and computer equipment
CN112084076A (en) Test method, electronic device, and storage medium
CN105450548A (en) Router control method, device and system

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