CN109714334A - 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 PDFInfo
- Publication number
- CN109714334A CN109714334A CN201811599136.3A CN201811599136A CN109714334A CN 109714334 A CN109714334 A CN 109714334A CN 201811599136 A CN201811599136 A CN 201811599136A CN 109714334 A CN109714334 A CN 109714334A
- Authority
- CN
- China
- Prior art keywords
- air
- data
- conditioning
- conditioning data
- communications protocol
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004891 communication Methods 0.000 claims abstract description 346
- 238000004378 air conditioning Methods 0.000 claims description 315
- 230000005540 biological transmission Effects 0.000 claims description 105
- 238000004590 computer program Methods 0.000 claims description 19
- 239000000284 extract Substances 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005265 energy consumption Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Air Conditioning Control Device (AREA)
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
Technical field
The present invention relates to air-conditioning technical field of data processing, more particularly to a kind of method for transmitting air-conditioning data, transmission
The device of air-conditioning data, the processor for transmitting air-conditioning data, the circuit and computer readable storage medium for transmitting air-conditioning data.
Background technique
As the development of electronics technology, such as the intelligence degree of air-conditioning electronic product are higher and higher, to electronic product into
The acquisition of row data and monitoring can be improved the user experience of the electronic product.It, can be corresponding for air-conditioning configuration by taking air-conditioning as an example
The data of operation of air conditioner can be sent to server in real time by the data transmission module by data transmission module, so that clothes
Device of being engaged in is capable of the data informations such as operating status, the environmental parameter of the air-conditioning of the real-time monitoring air-conditioning, to realize to air-conditioning more
Regulate and control well.
Used communications protocol usually needs to be carried out according to actual data transmission scenarios when due to transmission air-conditioning data
Variation, however the difference of hardware circuit used in different communications protocol is based in traditional technology, it often requires to use different
Bill of materials detail and mainboard coding lead to the data under multiple kinds to select and replace corresponding data transmission circuit
Transmission circuit becomes complicated, and the flexibility for transmitting air-conditioning data is poor.
Summary of the invention
Based on this, it is necessary to for the technical problem of the flexibility difference of traditional technology transmission air-conditioning data, provide a kind of biography
The methods of defeated air-conditioning data, the device for transmitting air-conditioning data, the processor for transmitting air-conditioning data, the circuit for transmitting air-conditioning data and
Computer readable storage medium.
A method of transmission air-conditioning data, comprising steps of
Obtain air-conditioning data to be transmitted;
Extract the data characteristics of the air-conditioning data;
The communications protocol to match with the data characteristics is selected from preconfigured multiple communications protocol;
The air-conditioning data are transmitted based on the communications protocol.
A kind of device transmitting air-conditioning data, comprising:
Data acquisition module, for obtaining air-conditioning data to be transmitted;
Characteristic extracting module, for extracting the data characteristics of the air-conditioning data;
Protocol selection module matches for selecting from preconfigured multiple communications protocol with the data characteristics
Communications protocol;
Data transmission module, for transmitting the air-conditioning data based on the communications protocol.
A kind of processor transmitting air-conditioning data transmits air-conditioning for the method by transmitting air-conditioning data as described above
Data.
A kind of circuit transmitting air-conditioning data, including processor and it is connected to the processor multiple communication cores respectively
Piece;The processor is connect with server, is also connected to air-conditioning mainboard by the multiple communication chip;Wherein, the processing
Device be used for according to the methods of transmission air-conditioning data as described above by the air-conditioning data the server and air-conditioning mainboard it
Between transmitted.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method of transmission air-conditioning data as described above is realized when row.
Method, apparatus, processor, circuit and the storage medium of above-mentioned transmission air-conditioning data obtain air-conditioning number to be transmitted
According to, extract the data characteristics of the air-conditioning data, selected from multiple preconfigured communications protocol according to the data characteristics with should
The communications protocol that data characteristics matches is then based on the communications protocol and transmits the air-conditioning data, can be to be transmitted according to this
The data characteristics of air-conditioning data selects corresponding communications protocol, improves the flexibility of transmission air-conditioning data, and work as air-conditioning number
According to data characteristics change when can also neatly be switched under corresponding communications protocol and transmit the air-conditioning data.
Detailed description of the invention
Fig. 1 is the application scenario diagram that the method for air-conditioning data is transmitted in one embodiment;
Fig. 2 is the flow diagram that the method for air-conditioning data is transmitted in one embodiment;
Fig. 3 is the schematic diagram that the circuit of air-conditioning data is transmitted in one embodiment;
Fig. 4 is the schematic diagram of transistor drive circuit in one embodiment;
Fig. 5 is the schematic diagram that the circuit of air-conditioning data is transmitted in another embodiment;
Fig. 6 is the structural block diagram that the device of air-conditioning data is transmitted in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not
For limiting the present invention.
It should be noted that term involved in the embodiment of the present invention " first second " be only be similar pair of difference
As not representing the particular sorted for object, it is possible to understand that ground, " first second " can be interchanged specific in the case where permission
Sequence or precedence.It should be understood that the object that " first second " is distinguished is interchangeable under appropriate circumstances, so as to retouch here
The embodiment of the present invention stated can be performed in other sequences than those illustrated or described herein.
The method of transmission air-conditioning data provided by the invention, can be applied in application scenarios as shown in Figure 1, Fig. 1 is
Transmit the application scenario diagram of the method for air-conditioning data in one embodiment, server can by data transmission device and air-conditioning into
Row communication connection.Wherein, air-conditioning is equipped with air-conditioning mainboard, which refers to the main control panel of air-conditioning, various for controlling
Cut-offfing for load, is the kernel control chip of air-conditioning, and server is the equipment that air-conditioning data are acquired analysis, technology people
Member can be analyzed and processed air-conditioning data based on the server, and data transmission device is as between air-conditioning and server
Bridge, the communication connection for that will establish between air-conditioning and server, the data transmission device can obtain air-conditioning number from air-conditioning
According to server is sent to, corresponding air-conditioning data (such as temperature adjustment instructions) can also be received from server and be sent to air-conditioning.
Specifically, the available air-conditioning data to be transmitted of data transmission device, which can be air-conditioning transmission, can also be with
It is that server is sent, then can extracts the data characteristics of the air-conditioning data, according to the data characteristics from data transmission device
Pre-configured multiple communications protocol select the communications protocol to match with the data characteristics in the middle, and (communications protocol can wrap
Include but be not limited to RS485 communications protocol, CAN communication agreement and IO-LINK communications protocol), it then can be based on the communication
Agreement transmits the air-conditioning data between server and air-conditioning.Wherein, the quantity of the air-conditioning can be multiple, server
It can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, a kind of method for transmitting air-conditioning data is provided, is in one embodiment with reference to Fig. 2, Fig. 2
The flow diagram of the method for air-conditioning data is transmitted, this method can be realized by data transmission device as shown in Figure 1,
The method of the transmission air-conditioning data may comprise steps of:
Step S101 obtains air-conditioning data to be transmitted.
This step is mainly the available air-conditioning data to be transmitted of data transmission device, which can be service
Device is sent to the data of air-conditioning mainboard, is also possible to the data that air-conditioning mainboard is sent to server.Wherein, which can be with
Data including taking air-conditioned running state information are also possible to server for controlling the data such as the dependent instruction of air-conditioning.
Specifically, server can send temperature adjustment instructions to air-conditioning mainboard, so that the temperature of air-conditioning is adjusted to setting
Numerical value, the available temperature adjustment instructions of data transmission device are as the air-conditioning data to be transmitted to air-conditioning mainboard at this time;It is empty
Adjust mainboard the real-time running data of air-conditioning such as real time temperature can also be sent to server, data transmission device can obtain at this time
Take real time temperature as the air-conditioning data to be transmitted to server.
Step S102 extracts the data characteristics of air-conditioning data.
In this step, data transmission device can extract the data characteristics of the air-conditioning data after obtaining air-conditioning data,
The data characteristics may include the characteristic information of the data such as data frame format, check bit, the air-conditioning data itself can also be made
For data characteristics.Since various communications protocol would generally stated number data characteristicses such as specific data frame format, check bit accordingly
It is transmitted, under specific communications protocol, server and air-conditioning mainboard can be based on specific data frame format, check bit
Etc. forms air-conditioning data to be transmitted are packaged, in this way, air-conditioning data to be transmitted just have and specific data frame lattice
The data characteristics that formula or check bit match, and this step passes through the data characteristics for extracting air-conditioning data, to be based on the data
Feature is so that it is determined that be used for transmission the communications protocol of the air-conditioning data.
Step S103 selects the communications protocol to match with data characteristics from preconfigured multiple communications protocol.
This step is mainly data transmission device after the data characteristics for extracting air-conditioning data, can be from preconfigured
The communications protocol to match with the data characteristics is selected in multiple communications protocol, wherein communications protocol can be pre-configured in
In corresponding communication chip, such as communications protocol can include but is not limited to be RS485 communications protocol, CAN communication agreement etc.,
Can be realized by installing RS485 communication chip and CAN communication chip in data transmission device RS485 communications protocol and
CAN communication agreement is pre-configured with, and the communications protocol to match with the data characteristics then can be selected from communication chip.Its
In, according to actual data transfer demands, the communications protocol of data transmission device configuration and corresponding communication chip can increase,
That is the data transmission device can be compatible with more communications protocol according to actual needs, to increase the data transmission device
The applicability under multiple kinds.
Specifically, assuming the data characteristics A of air-conditioning data, match with communications protocol A, and in data transmission device in advance
Configured with communications protocol A, communications protocol B and communications protocol C, then data transmission device is receiving the air-conditioning data and is obtaining the sky
After the data characteristics A of adjusting data, can be selected from communications protocol A, communications protocol B and communications protocol C communications protocol A as
The communications protocol to match with data characteristics A.
Step S104 transmits air-conditioning data based on communications protocol.
Wherein it is possible to realize the transmission of air-conditioning data by the communication chip configured with the communications protocol.For example, data
It can be configured with the communication chip A to match with communications protocol A, the communication chip to match with communications protocol B in transmitting device
B, the then communications protocol that this step selects communications protocol A to match as the data characteristics with air-conditioning data in data transmission device
After, data transmission device can realize the transmission of air-conditioning data based on communication chip A between server and air-conditioning mainboard, this
It is because usually only could accurately be parsed to air-conditioning data with matched communications protocol, if using unmatched communication
Agreement transmits air-conditioning data, then can not identify accurate data and generate data messy code, lead to server and air-conditioning master
Effective data transmission can not be carried out between plate.
The method of above-mentioned transmission air-conditioning data obtains air-conditioning data to be transmitted, extracts the data characteristics of the air-conditioning data,
The communications protocol to match with the data characteristics is selected from multiple preconfigured communications protocol according to the data characteristics, then
The air-conditioning data are transmitted based on the communications protocol, can be selected according to the data characteristics of the air-conditioning data to be transmitted corresponding logical
Agreement is interrogated, the flexibility of transmission air-conditioning data is improved, and can also spirit when the data characteristics of air-conditioning data changes
It is switched under corresponding communications protocol livingly and transmits the air-conditioning data.
In one embodiment, the step of data characteristics of extraction air-conditioning data may include:
Air-conditioning data are parsed by multiple communication chips;Wherein, multiple communications are respectively configured in multiple communication chips
Agreement;The data characteristics of air-conditioning data is obtained according to parsing result.
The present embodiment mainly parses air-conditioning data to be transmitted using multiple communication chips, thus according to solution
Analysis result obtains the data characteristics of the air-conditioning data.Wherein, each communication chip is each configured with different communications protocol, also
It is to say, communication chip A, communication chip B and communication chip C can be equipped on data transmission device, wherein communication chip A configuration
There are communications protocol A, communication chip B configured with communications protocol B and communication chip C configured with communications protocol C.
Data transmission device can receive and parse through the air-conditioning data respectively by each communication chip, obtain each communication
Then the parsing result of chip obtains the data characteristics of the air-conditioning data according to the parsing result.Specifically, with reference to Fig. 3, Fig. 3
For the schematic diagram of the circuit of transmission air-conditioning data in one embodiment, which can pass through processor, CAN communication
Chip and RS485 communication chip are realized, wherein processor carries out communication link with CAN communication chip and RS485 communication chip respectively
It connects, and is connected to the communication interface of air-conditioning mainboard by CAN communication chip and RS485 communication chip, so that data transmission device
The air-conditioning data that air-conditioning mainboard is sent can be obtained by the communication interface of the air-conditioning mainboard, wherein processor can pass through CAN
Communication chip and RS485 communication chip receive and parse through the air-conditioning data of air-conditioning mainboard transmission, CAN communication chip and RS485
Communication chip can parse the parsing result of the information such as data frame format, the check bit for carrying the air-conditioning data respectively, then
The data such as the available parsing result of processor and data frame format, check bit that air-conditioning data are extracted from the parsing result
Feature.
The present embodiment parses air-conditioning data to be transmitted by multiple communication chips, to be based on each communication
The parsing result of chip can accurately obtain out the data characteristics of air-conditioning data, match for subsequent determination with the data characteristics
Communications protocol accurate data basis is provided.
In one embodiment, the communication to match with data characteristics is selected to assist from preconfigured multiple communications protocol
The step of view may include:
Obtain normal data feature corresponding with each communications protocol;Data characteristics and normal data feature are compared
Compared with;According to the determining communications protocol to match with data characteristics of comparison result.
In the present embodiment, data transmission device can obtain and lead to each after the data characteristics for determining air-conditioning data
The corresponding normal data feature of agreement is interrogated, is then compared data characteristics with normal data feature, according to comparison result
The communications protocol to match with the data characteristics of the air-conditioning data can be determined, to be based on the communications protocol for the air-conditioning data
It is transmitted.
The each communications protocol configured on data transmission device would generally have specific normal data feature (such as standard
Data frame format, check bit etc.), in this way, after the data characteristics for obtaining air-conditioning data to be transmitted, it can be by data spy
Sign is compared with the specific normal data feature of each communications protocol, if the data characteristics and some communications protocol provide
Normal data feature it is identical, then can determine that the communications protocol is exactly the communications protocol to match with the data characteristics.And it is right
In the case where configured with multiple communication chips, since each communication chip is provided with corresponding communications protocol, institute in advance respectively
Whether can be compared with normal data feature by multiple communication chips come the data characteristics to air-conditioning data, if
Compare the selection that coincide and can then realize using the communication chip to match with the data characteristics to communications protocol.
Specifically, parse obtaining to air-conditioning data in CAN communication chip and RS485 communication chip with reference to Fig. 3
After the data characteristics of the air-conditioning data, it is assumed that the data characteristics of the air-conditioning data of acquisition is " data frame format 1010 ", false
If the normal data frame format of CAN communication chip is " 1010 ", the normal data frame format of RS485 communication chip is " 1110 ",
The data frame format of air-conditioning data can be then compared by CAN communication chip with the normal data frame format of CAN, be passed through
The data frame format of air-conditioning data is compared by RS485 communication chip with the normal data frame format of RS485, process and CAN
After the comparison of the normal data frame format of communication chip and RS485 communication chip, corresponding comparison result can be sent to processing
Device, then processor can determine the data characteristics of the air-conditioning data and the communications protocol i.e. CAN communication agreement of CAN communication chip
Match, so as to realize that the air-conditioning data between air-conditioning mainboard and server are transmitted based on the CAN communication chip.
The present embodiment can be determined efficiently and accurately and air-conditioning data based on the normal data feature of each communications protocol
The communications protocol that matches of data characteristics, improve the efficiency and accuracy of the transmission of air-conditioning data, additionally it is possible to compatible multiple logical
Agreement is interrogated, the applicability that air-conditioning data are transmitted under multiple communications protocol is improved.
In one embodiment, may include: based on the step of communications protocol transmission air-conditioning data
Determine the first communication chip;First communication chip is the communication chip for configuring communications protocol;Utilize the first communication core
Piece transmits air-conditioning data.
The present embodiment, can be true mainly after the communications protocol for having selected to match with the data characteristics of air-conditioning data
Surely it is configured with the communication chip of the communications protocol, i.e. the first communication chip, then transmits the air-conditioning using first communication chip
Data.Specifically, with reference to Fig. 3, it is assumed that the communications protocol to match with the data characteristics of air-conditioning data is CAN communication agreement, then
CAN communication chip of the determining configuration on data transmission device utilizes first communication chip as first communication chip
Come to air-conditioning data carry out as receive, send and parsing etc. reason, thus based on first communication chip realize air-conditioning mainboard and
Data transmission between server.
Further, in one embodiment, can with comprising steps of
Turn off the second communication chip;Second communication chip is the communication chip that communications protocol is not configured.
After the first communication chip has been determined, due to first communication chip be for air-conditioning mainboard and server it
Between parsing data transmission, and if be not configured the communications protocol communication chip also receives air-conditioning mainboard or server transmission sky
On the other hand adjusting data, the then confusion on the one hand be easy to causeing data to transmit also will increase the power consumption of data transmission device, institute
With in the present embodiment, processor can be turned off the second communication chip, so that second communication chip does not carry out air-conditioning data
Processing is transmitted chaotic, additionally it is possible to reduce the energy consumption of data transmission device to avoid data.
Specifically, with reference to Fig. 3, it is assumed that the first communication chip is confirmed as CAN communication chip, then the second communication chip is just
It is RS485 communication chip, processor can turn off the RS485 communication chip at this time, so that the RS485 communication chip is not to air-conditioning
Data are handled.There are many ways to turning off the second communication chip, such as cut off the power supply of the second communication chip, lead to second
News chip is set as not enabling etc..
In one embodiment, the power supply of the second communication chip can be turned off by power switch circuit.
It can be respectively each communication chip configuration power switch circuit in the present embodiment, the power switch circuit is main
For controlling the on/off state of each communication chip, which can receive the on/off of processor transmission
Instruction, and according to the on/off state of each communication chip of on/off instruction control.
Specifically, can be the first power switch circuit of CAN communication chip configuration in data transmission device with reference to Fig. 3,
Second source switching circuit is configured for RS485 communication chip, and first power switch circuit and second source switching circuit can be with
The on/off instruction that processor is sent is received, to control the on/off of CAN communication chip and RS485 communication chip respectively
State, using RS485 communication chip as the second communication chip for, processor can to second source switching circuit send power supply
Open command exports so that the second source switching circuit is cut off to the power supply of RS485 communication chip, and turns off communication chip electricity
Source can be effectively reduced power consumption.Wherein, including the power switch circuits such as the first power switch circuit, second source switching circuit
It can be realized by transistor drive circuit, be the signal of transistor drive circuit in one embodiment with reference to Fig. 4, Fig. 4
Figure, the both ends of resistance R1 are separately connected the I/O port of processor and the base stage B of triode Q, and triode Q passes through its base stage B and transmitting
Pole E is parallel to resistance R2, and the emitter E of triode Q is connected to power supply, and the collector C of triode Q is connected to the electricity of communication chip
Source pin, so that on/off instruction (such as low and high level signal) control that triode Q is sent by the I/O port of processor is
The no power pins that power supply is conducting to communication chip.
After RS485 communication chip is turned off, air-conditioning data are transmitted by CAN communication chip, if still communicated not
On, polarity reversion can be carried out to CAN communication chip, be carried out data transmission using the CAN communication mode of reversed polarity.
In one embodiment, not enabled state can be set by the second communication chip.
The present embodiment is mainly that processor can set not enabled state for the second communication chip so that this second
Communication chip can not be handled air-conditioning data.Wherein, processor can be connect with the enable end DE of the second communication chip, be led to
It crosses to the enable end DE of the second communication chip transmission enabled control instruction (such as low and high level signal) and makes second communication chip
In enabled or not enabled state.Specifically, with reference to Fig. 5, Fig. 5 is to transmit the circuits of air-conditioning data in another embodiment to show
It is intended to, it is assumed that RS485 communication chip can connect RS485 by its I/O mouth 1 and communicate core as the second communication chip, processor
The enable end DE of piece, the enable end DE of the RS485 communication chip can default it is enabled, processor can pass through I/O mouth 1 will
RS485 communication chip is set as not enabled state, so that the RS485 communication chip can not handle air-conditioning data, reaches by
The effect that one communication chip, that is, CAN communication chip transmits air-conditioning data.
In one embodiment, may include: based on the step of communications protocol transmission air-conditioning data
Air-conditioning data are transmitted between server and air-conditioning mainboard according to communications protocol.
The communications protocol that the present embodiment is mainly based upon selection carries out air-conditioning data between server and air-conditioning mainboard
Transmission, and when data characteristics changes, the selection of being adapted to property of data transmission device and the data characteristics phase
The communications protocol matched transmits the air-conditioning data between server and air-conditioning mainboard, so that the instruction that server issues
Data can accurately be sent to air-conditioning, but also the data that air-conditioning generates can accurately be sent to server, will be different
While communication modes are compatible with, guarantee that data being capable of accurate delivery.
In one embodiment, air-conditioning data are transmitted between server and air-conditioning mainboard based on communications protocol
Step may include:
Air-conditioning data are transmitted between server and air-conditioning mainboard based on communications protocol and by NB-IoT network.
In the present embodiment, data transmission module can be based on the communications protocol, by NB-IoT (narrowband Internet of Things,
Narrow Band Internet of Things) network transmits air-conditioning data between server and air-conditioning mainboard.
Wherein, with reference to Fig. 3 or Fig. 5, NB-IoT module can be configured on data transmission module, which can be used for will be empty
Adjusting data is transmitted by NB-IoT network, which is equipped with antenna, which can be used for from operator base station
Air-conditioning data are sended and received, which can be sent to processor for the received air-conditioning data of antenna, can also incite somebody to action
The air-conditioning data that processor is sent are sent to server by NB-IoT network.Wherein, which interconnects as all things on earth
One important branch of network, can be deployed in GSM network, UMTS network or LTE network, to reduce lower deployment cost, moreover it is possible into
The energy consumption of one step reduction data transmission module.
In one embodiment, a kind of device for transmitting air-conditioning data is provided, is in one embodiment with reference to Fig. 6, Fig. 6
The structural block diagram of the device of air-conditioning data is transmitted, the device of the transmission air-conditioning data may include:
Data acquisition module 101, for obtaining air-conditioning data to be transmitted;
Characteristic extracting module 102, for extracting the data characteristics of the air-conditioning data;
Protocol selection module 103, for the selection from preconfigured multiple communications protocol and the data characteristics phase
The communications protocol matched;
Data transmission module 104, for transmitting the air-conditioning data based on the communications protocol.
In one embodiment, characteristic extracting module 102 is further used for:
Air-conditioning data are parsed by multiple communication chips;Wherein, multiple communications are respectively configured in multiple communication chips
Agreement;The data characteristics of air-conditioning data is obtained according to parsing result.
In one embodiment, protocol selection module 103 is further used for:
Obtain normal data feature corresponding with each communications protocol;Data characteristics and normal data feature are compared
Compared with;According to the determining communications protocol to match with data characteristics of comparison result.
In one embodiment, data transmission module 104 is further used for:
Determine the first communication chip;First communication chip is the communication chip for configuring communications protocol;Utilize the first communication core
Piece transmits air-conditioning data.
In one embodiment, can also include:
Unit is turned off, for turning off the second communication chip;Second communication chip is the communication chip that communications protocol is not configured.
In one embodiment, shutdown unit is further used for:
The power supply of the second communication chip can be turned off by power switch circuit.
In one embodiment, shutdown unit is further used for:
Not enabled state can be set by the second communication chip.
In one embodiment, data transmission module 104 is further used for:
Air-conditioning data are transmitted between server and air-conditioning mainboard according to communications protocol.
In one embodiment, data transmission module 104 is further used for:
Air-conditioning data are transmitted between server and air-conditioning mainboard based on communications protocol and by NB-IoT network.
In one embodiment, communications protocol may include RS485 communications protocol and/or CAN communication agreement.
In one embodiment, communication chip may include RS485 chip and/or CAN chip.
In one embodiment, air-conditioning data to be transmitted can be the air-conditioning data or air-conditioning mainboard hair of server transmission
The air-conditioning data sent.
The method of the device of transmission air-conditioning data of the invention and transmission air-conditioning data of the invention corresponds, about biography
The specific of the device of defeated air-conditioning data limits the restriction that may refer to the method above for transmission air-conditioning data, in above-mentioned biography
Technical characteristic and its advantages that the embodiment of the method for defeated air-conditioning data illustrates are suitable for transmitting the device of air-conditioning data
Embodiment in, details are not described herein.Modules in the device of above-mentioned transmission air-conditioning data can be fully or partially through soft
Part, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in the form of hardware or independently of the processing in computer equipment
It in device, can also be stored in a software form in the memory in computer equipment, in order to which processor calls execution above each
The corresponding operation of a module.
In one embodiment, a kind of processor for transmitting air-conditioning data is provided, which is used for by such as taking up an official post
The method that air-conditioning data are transmitted described in one embodiment transmits air-conditioning data.
Above-mentioned processor can select corresponding communications protocol according to the data characteristics of the air-conditioning data to be transmitted, mention
The high flexibility of transmission air-conditioning data, and can also be neatly switched to when the data characteristics of air-conditioning data changes
The air-conditioning data are transmitted under corresponding communications protocol.
In one embodiment, a kind of circuit for transmitting air-conditioning data is provided, the circuits of the transmission air-conditioning data can be with
Multiple communication chips are connect with processor including processor and respectively;Processor is attached with server, also by multiple
Communication chip is connected to air-conditioning mainboard;Wherein, processor is used for the transmission air-conditioning data according to embodiment any one of as above
Method air-conditioning data are transmitted between server and air-conditioning mainboard.
Specifically, with reference to Fig. 3 and Fig. 5, multiple communication chip may include CAN communication chip and RS485 communication chip,
Processor can be connect with CAN communication chip by the end CAN_RX and CAN_TX, and processor can pass through with RS485 communication chip
The connection of the end UART_TX/UART_RX, and the processor interface for selecting CAN and UART to be multiplexed can save port resource, the processing
Device can from preconfigured multiple communications protocol, (such as CAN communication agreement and RS485 be logical according to the data characteristicses of the air-conditioning data
News agreement) in the communications protocol that matches with the data characteristics of selection, wherein communication chip can be used for the number of air-conditioning data
It is compared according to frame format with normal data frame format, which can be sent to processor, if comparison result is
The data frame format of air-conditioning data matches with normal data frame format, then can lead to using with the data frame format to matched
Agreement is interrogated to transmit the air-conditioning data, wherein if the communications protocol is CAN communication agreement, the transmission air-conditioning can be based on
The CAN communication chip of the circuit configuration of data to the air-conditioning data is transmitted and is handled.
In this way, can retain multiple communication modes on same circuit board, circuit is more compact, saves resource-effective sky
Between, it is also beneficial to later maintenance convenience, it is using which kind of that air-conditioning mainboard is not needed to distinguish when being easy to use, and plugging into air-conditioning mainboard
The data-interface of the circuit connection for transmitting air-conditioning data to air-conditioning mainboard can be used, increases universality, keep away by communication modes
Exempt from wrong plug air-conditioning mainboard, and the processor on the circuit by transmitting air-conditioning data can choose corresponding communications protocol to transmit
The air-conditioning data guarantee that the circuit can be compatible with different communication modes, if do not communicated, can also replace in time logical
News mode.
It in one embodiment, can also include the NB-IoT module being connect respectively with processor and server, the NB-
IoT module can be used for the air-conditioning data that server is sent by NB-IoT network being sent to air-conditioning mainboard by communication chip
And/or the air-conditioning data for sending processor are sent to server by NB-IoT network.
Wherein, NB-IoT module can be by UART_TX/UART_RX processor of interface connection, and passes through NB-IoT network
It is connected to server, which is equipped with antenna, which can be used for sending and receiving air-conditioning number from operator base station
According to the received air-conditioning data of antenna can be sent to processor by the NB-IoT module, the air-conditioning that processor can also be sent
Data are sent to server by NB-IoT network.
It in one embodiment, can also include power switch circuit;The power switch circuit can be used for receiving processing
The power switch control signal that device is sent, according to the on/off state of power switch control signal communication control chip.
In the present embodiment, with reference to Fig. 3, which may include first switch circuit and second switch circuit,
The first switch circuit can be used for controlling the on/off state of CAN communication chip, and second switch circuit can be used for controlling
The on/off state of RS485 communication chip, such as processor can send power switch control signal to second switch circuit,
So that the second switch circuit controls the on/off state of RS485 communication chip according to power switch control signal, it is assumed that choosing
Communication chip of the CAN communication chip as transmission air-conditioning data is selected, then processor can send power supply to second switch circuit and close
Instruction is closed, so that the power supply of second switch circuitry cuts RS485 communication chip, so that RS485 communication chip is not to air-conditioning data
It is handled.
In one embodiment, processor can connect the enable end of communication chip, for the enable end of communication chip
Transmission makes to can control signal.
Specifically, processor can connect the enable end DE of RS485 communication chip, in this way, it is assumed that CAN communication with reference to Fig. 5
Chip is as the communication chip for being used for transmission air-conditioning data, then processor can be sent out to the enable end DE of RS485 communication chip
Send enabled control instruction (such as low and high level signal) that the RS485 communication chip is made to be in enabled or not enabled state, so that should
RS485 communication chip can not handle air-conditioning data, achieve the effect that transmit air-conditioning data by CAN communication chip.
Above-described embodiment can be by cutting off the power or being set as not enabling closing by communication chip unwanted logical
Chip is interrogated, can reduce the power consumption of circuit.
The circuit of above-mentioned transmission air-conditioning data can select corresponding according to the data characteristics of the air-conditioning data to be transmitted
Communications protocol improves the flexibility of transmission air-conditioning data, and can also when the data characteristics of air-conditioning data changes
It is neatly switched under corresponding communications protocol and transmits the air-conditioning data.
Those of ordinary skill in the art will appreciate that realizing the side for transmitting air-conditioning data described in as above any one embodiment
All or part of the process in method is relevant hardware can be instructed to complete by computer program, the computer
Program can be stored in a non-volatile computer read/write memory medium, and the computer program is when being executed, it may include as above
State the process of the embodiment of each method.Wherein, to memory, storage, number used in each embodiment provided by the present invention
According to any reference of library or other media, non-volatile and/or volatile memory may each comprise.Nonvolatile memory can wrap
Include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM
(EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.Make
To illustrate rather than limit to, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram
(SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM
(SLDRAM), memory bus (Rambus) directly RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and
Memory bus dynamic ram (RDRAM) etc..
Accordingly, a kind of computer readable storage medium is also provided in one embodiment, is stored thereon with computer program,
Wherein, the method that air-conditioning data are transmitted described in as above any one embodiment is realized when which is executed by processor.
Accordingly, a kind of computer readable storage medium is provided in one embodiment, is stored thereon with computer program,
It is performed the steps of when computer program is executed by processor
Obtain air-conditioning data to be transmitted;Extract the data characteristics of the air-conditioning data;From preconfigured multiple communications
The communications protocol to match with the data characteristics is selected in agreement;The air-conditioning data are transmitted based on the communications protocol.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Air-conditioning data are parsed by multiple communication chips;Wherein, multiple communications are respectively configured in multiple communication chips
Agreement;The data characteristics of air-conditioning data is obtained according to parsing result.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain normal data feature corresponding with each communications protocol;Data characteristics and normal data feature are compared
Compared with;According to the determining communications protocol to match with data characteristics of comparison result.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Determine the first communication chip;First communication chip is the communication chip for configuring communications protocol;Utilize the first communication core
Piece transmits air-conditioning data.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Turn off the second communication chip;Second communication chip is the communication chip that communications protocol is not configured.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The power supply of the second communication chip can be turned off by power switch circuit.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Not enabled state can be set by the second communication chip.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Air-conditioning data are transmitted between server and air-conditioning mainboard according to communications protocol.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Air-conditioning data are transmitted between server and air-conditioning mainboard based on communications protocol and by NB-IoT network.
In one embodiment, communications protocol may include RS485 communications protocol and/or CAN communication agreement.
In one embodiment, communication chip may include RS485 chip and/or CAN chip.
In one embodiment, air-conditioning data to be transmitted can be the air-conditioning data or air-conditioning mainboard hair of server transmission
The air-conditioning data sent.
Above-mentioned computer readable storage medium can be according to the air-conditioning to be transmitted by the computer program that it is stored
The data characteristics of data selects corresponding communications protocol, improves the flexibility of transmission air-conditioning data, and when air-conditioning data
Data characteristics can also neatly be switched under corresponding communications protocol when changing and transmit the air-conditioning data.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (18)
1. a kind of method for transmitting air-conditioning data, which is characterized in that comprising steps of
Obtain air-conditioning data to be transmitted;
Extract the data characteristics of the air-conditioning data;
The communications protocol to match with the data characteristics is selected from preconfigured multiple communications protocol;
The air-conditioning data are transmitted based on the communications protocol.
2. the method for transmission air-conditioning data according to claim 1, which is characterized in that the extraction air-conditioning data
The step of data characteristics includes:
The air-conditioning data are parsed by multiple communication chips;Wherein, the multiple communication chip is respectively configured described
Multiple communications protocol;
The data characteristics of the air-conditioning data is obtained according to parsing result.
3. the method for transmission air-conditioning data according to claim 1, which is characterized in that described from preconfigured multiple logical
News agreement in select match with the data characteristics communications protocol the step of include:
Obtain normal data feature corresponding with each communications protocol;
The data characteristics is compared with the normal data feature;
The communications protocol to match with the data characteristics is determined according to comparison result.
4. the method for transmission air-conditioning data according to claim 1, which is characterized in that described to be passed based on the communications protocol
The step of defeated air-conditioning data includes:
Determine the first communication chip;First communication chip is the communication chip for configuring the communications protocol;
The air-conditioning data are transmitted using first communication chip.
5. the method for transmission air-conditioning data according to claim 4, which is characterized in that further comprise the steps of:
Turn off the second communication chip;Second communication chip is the communication chip that the communications protocol is not configured.
6. the method for transmission air-conditioning data according to claim 5, which is characterized in that
The step of the second communication chip of the shutdown includes:
The power supply of second communication chip is turned off by power switch circuit;
Or
The step of the second communication chip of the shutdown includes:
Not enabled state is set by second communication chip.
7. according to the method for the described in any item transmission air-conditioning data of claim 2 to 6, which is characterized in that the communications protocol
Including RS485 communications protocol and/or CAN communication agreement;The communication chip includes RS485 chip and/or CAN chip.
8. the method for transmission air-conditioning data according to claim 1, which is characterized in that the air-conditioning data to be transmitted are
The air-conditioning data that the air-conditioning data or air-conditioning mainboard that server is sent are sent.
9. the method for transmission air-conditioning data according to claim 1, which is characterized in that described to be passed based on the communications protocol
The step of defeated air-conditioning data includes:
The air-conditioning data are transmitted between server and air-conditioning mainboard according to the communications protocol.
10. the method for transmission air-conditioning data according to claim 9, which is characterized in that described according to the communications protocol
The step of air-conditioning data are transmitted between server and air-conditioning mainboard include:
Based on the communications protocol and by NB-IoT network by the air-conditioning data between the server and air-conditioning mainboard
It is transmitted.
11. a kind of device for transmitting air-conditioning data characterized by comprising
Data acquisition module, for obtaining air-conditioning data to be transmitted;
Characteristic extracting module, for extracting the data characteristics of the air-conditioning data;
Protocol selection module, for selecting the communication to match with the data characteristics from preconfigured multiple communications protocol
Agreement;
Data transmission module, for transmitting the air-conditioning data based on the communications protocol.
12. a kind of processor for transmitting air-conditioning data, which is characterized in that processor is used for by as claims 1 to 10 is any
The method of transmission air-conditioning data described in transmits air-conditioning data.
13. a kind of circuit for transmitting air-conditioning data, which is characterized in that be connected to the processor including processor and respectively more
A communication chip;The processor is connect with server, is also connected to air-conditioning mainboard by the multiple communication chip;Wherein,
The processor is used for the method according to transmission air-conditioning data as described in any one of claim 1 to 10 for the air-conditioning
Data are transmitted between the server and air-conditioning mainboard.
14. it is according to claim 13 transmission air-conditioning data circuit, which is characterized in that further include respectively with the processing
The NB-IoT module that device is connected with server, the air-conditioning data for sending the server by NB-IoT network are sent to
The air-conditioning mainboard and/or air-conditioning data for sending the processor are sent to the clothes by the NB-IoT network
Business device.
15. the circuit of transmission air-conditioning data according to claim 13, which is characterized in that the multiple communication chip includes
RS485 chip and CAN chip.
16. the circuit of transmission air-conditioning data according to claim 13, which is characterized in that further include power switch circuit;
The power switch circuit is used to receive the power switch control signal that the processor is sent, and is controlled according to the power switch
Signal controls the on/off state of the communication chip.
17. the circuit of transmission air-conditioning data according to claim 13, which is characterized in that the processor connection is described logical
The enable end for interrogating chip makes to can control signal for sending to the enable end of the communication chip.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method of the described in any item transmission air-conditioning data of claims 1 to 10 is realized when being executed by processor.
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 true CN109714334A (en) | 2019-05-03 |
CN109714334B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110529985A (en) * | 2019-08-29 | 2019-12-03 | 珠海格力电器股份有限公司 | Matching method and device of air conditioning unit and data transmission terminal DTU |
CN114157729A (en) * | 2021-12-06 | 2022-03-08 | 杨金燚 | Multi-functional pluggable thing networking module based on LoRaWAN communication |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN200990011Y (en) * | 2006-12-19 | 2007-12-12 | 广东美泰科技有限公司 | Intelligent controller for commercial air conditioner |
CN103532975A (en) * | 2013-10-28 | 2014-01-22 | 国家电网公司 | Dynamically and smoothly expandable data acquisition system and method |
CN103631248A (en) * | 2012-08-21 | 2014-03-12 | 珠海格力电器股份有限公司 | Testing device, testing method and testing system for air conditioner unit |
CN104202222A (en) * | 2014-08-20 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Smart home controller and communication method thereof |
US20150184883A1 (en) * | 2013-12-27 | 2015-07-02 | International Business Machines Corporation | Automatic Computer Room Air Conditioning Control Method |
CN105446924A (en) * | 2014-08-25 | 2016-03-30 | 珠海格力电器股份有限公司 | Compatible processing method and system for communication protocol of air conditioner controller |
CN106302697A (en) * | 2016-08-11 | 2017-01-04 | 珠海格力电器股份有限公司 | Air conditioner data analysis method and device and air conditioner |
CN107655146A (en) * | 2017-09-01 | 2018-02-02 | 珠海格力电器股份有限公司 | Air conditioner detection method and device, storage medium and air conditioner |
-
2018
- 2018-12-26 CN CN201811599136.3A patent/CN109714334B/en active Active
Patent Citations (8)
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 device, testing method and testing system for air conditioner unit |
CN103532975A (en) * | 2013-10-28 | 2014-01-22 | 国家电网公司 | Dynamically and smoothly expandable data acquisition system and method |
US20150184883A1 (en) * | 2013-12-27 | 2015-07-02 | International Business Machines Corporation | Automatic Computer Room Air Conditioning Control Method |
CN104202222A (en) * | 2014-08-20 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Smart home controller and communication method thereof |
CN105446924A (en) * | 2014-08-25 | 2016-03-30 | 珠海格力电器股份有限公司 | Compatible processing method and system for communication protocol of air conditioner controller |
CN106302697A (en) * | 2016-08-11 | 2017-01-04 | 珠海格力电器股份有限公司 | Air conditioner data analysis method and device and air conditioner |
CN107655146A (en) * | 2017-09-01 | 2018-02-02 | 珠海格力电器股份有限公司 | Air conditioner detection method and device, storage medium and air conditioner |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110529985A (en) * | 2019-08-29 | 2019-12-03 | 珠海格力电器股份有限公司 | Matching method and device of air conditioning unit and data transmission terminal DTU |
CN114157729A (en) * | 2021-12-06 | 2022-03-08 | 杨金燚 | Multi-functional pluggable thing networking module based on LoRaWAN communication |
Also Published As
Publication number | Publication date |
---|---|
CN109714334B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240114324A1 (en) | Method and device for managing information exchange between nfc controller and auxiliary elements | |
US8989724B2 (en) | Method of managing incoming commands related to contactless applications within a wireless apparatus such as an NFC enabled mobile phone | |
US8843065B2 (en) | Method and device for managing information exchange between for example a NFC controller and a set of at least two secure elements | |
CN101977263B (en) | Method and mobile terminal for encrypting double-card mobile terminal | |
CN109714334A (en) | Method, device, processor, circuit and storage medium for transmitting air conditioner data | |
CN107707565B (en) | UDF message parsing chip | |
US9214986B2 (en) | Non-volatile memory for NFC router | |
CN106605443B (en) | Circuit and system for exchanging Subscriber Identity Module (SIM) information over a distance | |
CN104507147A (en) | Device and method for controlling power amplifier | |
CN201904819U (en) | Three-card double-standby mobile phone | |
US9350831B2 (en) | System and method for enabling a dual-wire protocol | |
CN207164210U (en) | A kind of test device of smart card | |
CN102054152A (en) | Radio frequency identification (RFID) tag as well as radio-frequency gain control method and device thereof | |
CN103414574A (en) | PoE equipment and output power control method thereof | |
US6996726B1 (en) | Mobile data carrier with data-independent supply current and voltage | |
US6669098B2 (en) | Data carrier having a chip including means for the controllable voltage supply to a further component of the data carrier | |
CN100538721C (en) | Read the method for second generation control of identity cards number and sequence number with equipment | |
CN103345610A (en) | Device and method for quickly verifying data integrity of intelligent card | |
CN108282493A (en) | A kind of Wireless clock module and wireless calibration method | |
JP2008152525A (en) | Device equipped with function to output monitoring state and computer equipment | |
CN109347671B (en) | System and method for realizing in-band OAM Metadata editing in chip | |
CN107590086A (en) | A kind of communication connecting apparatus and method, communication veneers | |
US20170205793A1 (en) | Parameterizable automation technology device | |
CN109522256A (en) | A kind of serial port communication method, the network equipment, control equipment and storage medium | |
JP7244041B2 (en) | User behavior management 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 |