CN109194620A - Multichannel communication method, intelligent gateway and readable storage medium storing program for executing - Google Patents
Multichannel communication method, intelligent gateway and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109194620A CN109194620A CN201810887446.9A CN201810887446A CN109194620A CN 109194620 A CN109194620 A CN 109194620A CN 201810887446 A CN201810887446 A CN 201810887446A CN 109194620 A CN109194620 A CN 109194620A
- Authority
- CN
- China
- Prior art keywords
- data
- communications protocol
- intelligent gateway
- communication interface
- mapping tables
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Communication Control (AREA)
Abstract
A kind of multichannel communication method, intelligent gateway and readable storage medium storing program for executing, this method is applied in an intelligent gateway, multiple communication interfaces are set on the intelligent gateway, to receive the data of different types of communications protocol respectively, the multiple channel communication method includes: to obtain the data packet of at least one communications protocol of each communication interface input, and the data packet is parsed by the corresponding resolver of the communications protocol, obtain corresponding data;The data mapping tables of corresponding communications protocol are generated according to the data, the data mapping tables include protocol type data and control information data, and the control information data is that the data after the communications protocol are converted to the control instruction of controlled device;Protocol type data and control information data in the data mapping tables are converted into ether data and are sent to server.The embodiment of the present invention can realize the mutual communication between the intelligent terminal and intelligent gateway of different communications protocol, and wide adaptability is met the needs of users.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of multichannel communication method, intelligent gateway and readable deposit
Storage media.
Background technique
With the progress of " internet+" development and application and technology, smart home concept finished product speed is accelerated.Intelligent gateway
It is the center of smart home, the interaction of all wireless, wired data runs and external cloud data is all to pass through intelligent gateway
To realize.
The wireless telecommunications of current intelligent gateway are all single communication architectures, for example, wifi, Zigbee, bluetooth,
The connection type of one of Zwave or Sub1GHz communication architecture, without versatility and adaptability.Eventually due to different intelligence
The communications protocol at end is different, and the intelligent terminal of different manufacturers needs the intelligent gateway with oneself, and which limits users couple
The selection of intelligent terminal manufacturer.
Summary of the invention
In view of the above situation, it is necessary to it is single for intelligent gateway communication connection mode in the prior art, it is not general
The problem of property, provides a kind of multichannel communication method, intelligent gateway and readable storage medium storing program for executing.
A kind of multichannel communication method is applied in an intelligent gateway, multiple communication interfaces is arranged on the intelligent gateway,
To receive the data of different types of communications protocol respectively, the multiple channel communication method includes:
The data packet of at least one communications protocol of each communication interface input is obtained, and passes through the communications protocol
Corresponding resolver parses the data packet, obtains corresponding data;
The data mapping tables of corresponding communications protocol are generated according to the data, the data mapping tables include protocol type number
According to control information data, the control information data is after being converted to the communications protocol to the control instruction of controlled device
Data;
Protocol type data and control information data in the data mapping tables are converted into ether data and are sent to clothes
Business device.
Intelligent gateway in the present invention receives the data of different communications protocol by using multiple communication interface, goes forward side by side
Row decoding and data transmission.The embodiment of the present invention can be realized mutual between the intelligent terminal and intelligent gateway of different communications protocol
Communication, wide adaptability are met the needs of users.
Further, above-mentioned multichannel communication method, wherein described to be parsed by the corresponding resolver of the communications protocol
Before the step of data packet further include:
Judge whether the data of the resolver parsing are correct and complete;
If so, executing the step of parsing the data packet by the corresponding resolver of the communications protocol.
The data packet that intelligent gateway parses each communications protocol also needs the data obtained to parsing to verify later, with
Determine the integrality and correctness of the data.Existing method of calibration can be used to the verification of data to carry out, such as surprise can be used
Even parity bit verification is verified using CRC check algorithm.
Further, above-mentioned multichannel communication method, wherein whether the data for judging the resolver parsing are correct
Include: with complete step
The correctness and integrality of the data are verified using CRC check algorithm.
Further, above-mentioned multichannel communication method, wherein when the data packet for getting multiple communication interface inputs simultaneously
When, the step of data mapping tables that corresponding communications protocol is generated according to the data includes:
According to the data according to preset communications protocol priority orders, the communications protocol for generating each type is corresponding
Data mapping tables;
The information by the data mapping tables is converted to the step of ether data are sent to server
According to the communications protocol priority orders, by the letter in the corresponding data mapping tables of the communications protocol of each type
Breath is converted to ether data and is sent to server.
In order to avoid data congestion, when intelligent gateway parses while obtaining the number of multiple kinds in the embodiment of the present invention
When according to packet, according to preset communications protocol priority orders, the data mapping tables of the communications protocol of each type, priority are generated
The data mapping tables of high communications protocol preferably generate.The preset communications protocol priority orders can carry out according to actual needs
Setting, such as the corresponding communications protocol priority number of Zigbee, Z-wave and Sub-1GHz data successively reduce, and generate each class
The sequence of the data mapping tables of the communications protocol of type is followed successively by Zigbee, Z-wave and Sub-1GHz data.Also, intelligent gateway
According to the communications protocol priority orders, the protocol type data and control information data in each data mapping tables are converted to
Ether data, which are sent in server, to be stored and analyzes.
Further, above-mentioned multichannel communication method, wherein described to be parsed by the corresponding resolver of the communications protocol
The step of data packet includes:
According to the identifier lookup of the communication interface to corresponding decoder;
The data packet is parsed according to the decoder found.
Intelligent gateway obtains the data packet of corresponding communications protocol from one or more communication interfaces, and can be by serial ports simultaneously
Row is input in the fifo controller of intelligent gateway.It is then forwarded in corresponding decoder and is decoded, obtain corresponding number
According to.When it is implemented, the data packet that communication interface is sent to fifo controller has the mark of the communication interface, fifo controller
The communication interface is identified according to the mark, then quickly finds corresponding decoder.The data packet of multiple kinds can divide
Not Cai Yong corresponding decoder be decoded simultaneously so that the data parallel of multiple kinds transmits.
Further, above-mentioned multichannel communication method, wherein the communication interface includes wifi communication interface, Zigbee
At least two in communication interface, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface.
Further, above-mentioned multichannel communication method, wherein when the communication interface is Sub-1GHz communication interface,
The data packet of the Sub-1GHz communication interface input is received by the way of frequency division multiplexing.
The embodiment of the invention also provides a kind of intelligent gateway, multiple communication interfaces are set, to connect on the intelligent gateway
The data of different types of communications protocol are received, the intelligent gateway includes:
Module is obtained, the data packet of at least one communications protocol for obtaining each communication interface input;
Parsing module obtains corresponding number for parsing the data packet by the corresponding resolver of the communications protocol
According to;
Data mapping tables generation module, it is described for generating the data mapping tables of corresponding communications protocol according to the data
Data mapping includes protocol type, controlled device and corresponding control information;
Sending module is sent to server for the information in the data mapping tables to be converted to ether data.
Further, above-mentioned intelligent gateway, further includes:
Judgment module, whether the data for judging the resolver parsing are correct and complete, if so, executing by described
The step of corresponding resolver of communications protocol parses the data packet.
Further, above-mentioned intelligent gateway, wherein whether the data for judging the resolver parsing are correct and complete
The step of include:
The correctness and integrality of the data are verified using CRC check algorithm.
Further, above-mentioned intelligent gateway, wherein when getting the data packet of multiple communication interface inputs simultaneously, institute
Data mapping tables generation module is stated to be specifically used for:
According to the data according to preset communications protocol priority orders, the communications protocol for generating each type is corresponding
Data mapping tables;
The sending module is specifically used for:
According to the communications protocol priority orders, by the letter in the corresponding data mapping tables of the communications protocol of each type
Breath is converted to ether data and is sent to server.
Further, above-mentioned intelligent gateway, wherein the parsing module is specifically used for:
According to the identifier lookup of the communication interface to corresponding decoder;
The data packet is parsed according to the decoder found.
Further, above-mentioned intelligent gateway, wherein the communication interface includes that wifi communication interface, Zigbee communication connect
At least two in mouth, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface.
Further, above-mentioned intelligent gateway, wherein when the communication interface is Sub-1GHz communication interface, using frequency
The data packet for dividing the mode of multiplexing to receive the Sub-1GHz communication interface input.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored thereon with program, described program is by processor
The step of above method is realized when execution.
Detailed description of the invention
Fig. 1 is the flow chart of multichannel communication method in first embodiment of the invention;
Fig. 2 is the JA(junction ambient) figure of intelligent gateway in first embodiment of the invention;
Fig. 3 is the flow chart of multichannel communication method in second embodiment of the invention;
Fig. 4 is the JA(junction ambient) figure of intelligent gateway in third embodiment of the invention;
Fig. 5 is the structural block diagram of intelligent gateway in third embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement implementation of the invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, of the invention
Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Referring to Fig. 1, this method is applied to intelligent gateway for the multichannel communication method in first embodiment of the invention
In, the intelligent gateway, such as router, it is the heart of home intelligence, realizes that the acquisition of system information, information are defeated by it
Enter, information output, the functions such as centralized control.Referring to Fig. 2, the intelligent gateway in the embodiment of the present invention includes that multiple communications connect
Mouthful, to receive the data of different types of communications protocol.The quantity of communication interface can be set according to actual needs when specific implementation,
Each communication interface can receive a kind of data of communications protocol.Specifically, the intelligent gateway is provided with 5 communication interfaces, respectively
For wifi communication interface, Zigbee communication interface, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface,
Be respectively used to receive wifi, Zigbee, Z-wave, Sub-1GHz, blue-teeth data.Each communication interface is controlled by I/O interface
Its working condition (including starting state and closed state) is made, so as to one in the multiple communication interface of setting of selectivity
It is a or it is multiple be starting state, then data of communications protocol required for selective receiving device.
It should be understood that in other embodiments of the invention, the communication interface in the intelligent gateway may include wifi logical
Believe interface, Zigbee communication interface, Z-wave communication interface, two kinds in Sub-1GHz communication interface and bluetooth communication interface,
Three kinds or four kinds, for receiving the data of different types of communications protocol.
One end of the intelligent gateway connects multiple intelligent terminals by each communication interface, which is, for example, intelligence
The mobile devices such as mobile phone, the tablet computer that computer total control equipment or user in house system are held, the intelligent terminal is for connecing
Receive the operation data of each smart home device in smart home system.Intelligence is connected to using the intelligent terminal of different communications protocol
On energy gateway in different communication interfaces.The other end of the intelligent gateway connects server by Ethernet, passes through the intelligent network
It closes for the data of the smart home device operation in smart home system to be sent in server and stores or analyze.
The multichannel communication method includes step S11~S13.
Step S11 obtains the data packet of at least one communications protocol of each communication interface input, and by described
The corresponding resolver of communications protocol parses the data packet, obtains corresponding data.
The communications protocol that intelligent terminal is used according to it will be converted to the number of corresponding agreement to the control instruction of controlled device
Intelligent gateway is sent to according to packet.One FIFO (First Input First Output, i.e., advanced elder generation are set in the intelligent gateway
Dequeue) controller and with the one-to-one decoder of each interface.Each decoder is used for the data to a kind of communications protocol
Packet is decoded.Specifically, when intelligent gateway obtains the data packet of corresponding communications protocol from one or more communication interfaces, it can
It is input in the fifo controller of intelligent gateway, and stored parallel by serial ports.It is then forwarded in corresponding decoder
It is decoded, obtains corresponding data.When it is implemented, communication interface is sent to the data packet of fifo controller with the communication
The mark of interface, fifo controller identify the communication interface according to the mark, then find corresponding decoder.
Further, intelligent gateway parse the data that also need to obtain parsing after the data packet of each communications protocol into
Row verification, to determine the integrality and correctness of the data.Existing method of calibration can be used to the verification of data to carry out, such as
Even-odd check bit check can be used or verified using CRC check algorithm, this present embodiment is not limited.When data check qualification
Step S12 can be performed afterwards, received data packet is parsed or issued again if unqualified warning note.
Step S12, the data mapping tables of corresponding communications protocol are generated according to the data, and the data mapping tables include association
Discuss categorical data and control information data.
When intelligent gateway receives the data packet of each communications protocol, need the data creating to each data packet corresponding
Data mapping tables.The data mapping tables include protocol type and control information data.Signified control information data is to quilt
The data of the control instruction of equipment are controlled, which is smart home device, such as refrigerator, household electrical appliances equipment, the control information
Data are, for example, " control air-conditioning is opened ".
Since the data of different communications protocol use the data of different-format, in order to avoid malfunctioning when follow-up data conversion,
The data that every kind of communications protocol need to be corresponded to generate a data mapping tables.
Protocol type data and control information data in the data mapping tables are converted to ether data by step S13
It is sent to server.
Intelligent gateway is connect with server via Ethernet, and intelligent gateway and each intelligent terminal are (serial by UART
Data/address bus) connection.Therefore, the received serial data of each communication interface of intelligent gateway need to be converted to Ethernet data.
When intelligent gateway is by the data mapping tables of each communications protocol of generation, the information in each communications protocol is converted
It is sent in server for ether data and stores or analyze.Information in data mapping tables, which is converted to ether data, is actually
Serial data is converted into Ethernet data, serial ports turns Ethernet data existing conversion regime can be used to carry out, such as can be with
Turn ethernet module by serial ports to realize.
The data of different communications protocol are converted to Ethernet data using different conversion regimes.When it is implemented, intelligence
Gateway selects corresponding data transfer method will be in the data mapping tables according to the communication protocol type recorded in data mapping tables
Controlled device and corresponding control information be converted to ether data and be sent to server.
Intelligent gateway in the present embodiment receives the data of different communications protocol by using multiple communication interface, and
It is decoded and is transmitted with data.The data of various protocols are handled and are transmitted using multi-channel parallel, guarantee intelligent gateway and service
Data interaction efficiency between device.The present embodiment can be realized mutual between the intelligent terminal and intelligent gateway of different communications protocol
Communication, wide adaptability are met the needs of users.
Referring to Fig. 3, for the multichannel communication method in second embodiment of the invention, including step S21~S26.
Step S21 obtains the data packet of the multiple kinds of each communication interface input, and by each described
The corresponding resolver of communications protocol parses corresponding data packet, obtains corresponding data.
Intelligent gateway gets the data packet of multiple kinds by each logical communication interface, such as in the present embodiment together
When get Zigbee data packet, Z-wave data packet and Sub-1GHz data packet.Wherein, Zigbee data packet and Z-wave number
The communications protocol of 2.4GHz communication frequency is used according to packet, and Sub-1GHz data use the communication association of the communication frequency less than 1GHZ
View.It again include the data of a variety of communication frequencies, such as 315MHz, 433MHz, 470MHz etc., Sub- for Sub-1GHz data
The data of each communication frequency band in 1GHz data can configure the frequency that the communication interface receives data according to the I/O interface of setting
Rate can meet the communication need of the intelligent terminal of different data frequency range.
Further, for Sub-1GHz communication interface, the mode that frequency division multiplexing can be used in intelligent gateway receives the communication
The data packet of interface input.Will be used for transmission the channel of Sub-1GHz data total bandwidth be divided into several sub-bands (or
Claim subchannel), each 1 road signal of subchannel transmission, to achieve the purpose that multiple signals simultaneously in a band transmissions, mention
High data transmission efficiency.
One corresponding FIFO (First Input First Output, i.e. first in first out team are set in the intelligent gateway
Column) controller and with the one-to-one decoder of each interface.Each decoder be used for the data packet of communications protocol a kind of into
Row decoding.Specifically, intelligent gateway obtains the data packet of corresponding communications protocol from one or more communication interfaces, and can pass through
Serial ports is input to parallel in the fifo controller of intelligent gateway.It is then forwarded in corresponding decoder and is decoded, obtain pair
The data answered.When it is implemented, the data packet that communication interface is sent to fifo controller has the mark of the communication interface, FIFO
Controller identifies the communication interface according to the mark, then finds corresponding decoder.The data packet of multiple kinds can
Corresponding decoder is respectively adopted while being decoded, so that the data parallel of multiple kinds transmits.
Step S22 judges whether the data of each resolver parsing are correct and complete, if so, executing step S23.
It is calculated specifically, CRC (Cyclic Redundancy Check, cyclic redundancy check) verification can be used in the present embodiment
Method verifies the correctness and integrality of the data.CRC is a kind of data transmission error-detecting function, carries out multinomial meter to data
It calculates, and obtained result is attached to behind frame, receiving device also executes similar algorithm, to guarantee the correctness of data transmission
And integrality.The method of calibration is characterized in that the length of information field and check field can be arbitrarily selected, therefore, intelligent gateway
The data of certain length can be verified.It verifies and successfully then performs the next step suddenly, return again if verifying failure to data
Packet parse until the data check of parsing is correct or certain time still verifies failure and then stops verifying and issuing prompt
Information.
Step S23, the data obtained according to parsing generate each type according to preset communications protocol priority orders
The data mapping tables of communications protocol, the data mapping includes protocol type data and control information data.
Step S24, according to the communications protocol priority orders, by the data mapping tables protocol type data and
Control information data is converted to ether data and is sent to server.
In order to avoid data congestion, when intelligent gateway parses while obtaining the data packet of multiple kinds in the present embodiment
When, according to preset communications protocol priority orders, the data mapping tables of the communications protocol of each type are generated, priority is high
The data mapping tables of communications protocol preferably generate.The preset communications protocol priority orders can be set according to actual needs
It sets, such as the corresponding communications protocol priority number of Zigbee, Z-wave and Sub-1GHz data successively reduces, and generates each type
The sequence of data mapping tables of communications protocol be followed successively by Zigbee, Z-wave and Sub-1GHz data.
Also, intelligent gateway is according to the communications protocol priority orders, by the protocol type number in each data mapping tables
Storage and analysis in server are sent to according to ether data are converted to control information data.
Further, the information that intelligent gateway is sent can be also uploaded to cloud by server, to be stored beyond the clouds.
Referring to Fig. 4, multiple communications are arranged on the intelligent gateway and connect for the intelligent gateway in third embodiment of the invention
Mouthful, to receive the data of different types of communications protocol.The quantity of communication interface can be set according to actual needs when specific implementation,
Each communication interface can receive a kind of data of communications protocol.The intelligent gateway is provided with wifi communication interface, Zigbee communication
At least two in interface, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface, specifically, this implementation
The intelligent gateway is provided with 5 communication interfaces in example.Each communication interface is controlled its working condition by I/O interface and (including opened
Dynamic state and closed state), it is starting state so as to one or more of multiple communication interface of setting of selectivity,
Then the data of communications protocol required for selective receiving device.
Meanwhile bridging functionality is also equipped between each intelligent gateway, two neighboring intelligent gateway passes through 2.4GHz or 5GHz
The wireless network connection of frequency range.Each intelligent gateway connects respective intelligent terminal by each communication interface, manages oneself
Device node.By the bridge joint effect between intelligent gateway, each intelligent gateway can be connected, and be provided with by one
The intelligent gateway of network data interface connects server, realizes the transmission of data, convenient for the biography of complicated, Anomalistic space data
It passs and interconnects.
As shown in figure 5, the intelligent gateway includes:
Module 100 is obtained, the data packet of at least one communications protocol for obtaining each communication interface input;
Parsing module 200 obtains corresponding for parsing the data packet by the corresponding resolver of the communications protocol
Data;
Data mapping tables generation module 300, for generating the data mapping tables of corresponding communications protocol, institute according to the data
Stating data mapping includes protocol type, controlled device and corresponding control information;
Sending module 400 is sent to server for the information in the data mapping tables to be converted to ether data.
Further, above-mentioned intelligent gateway, further includes:
Judgment module 500, whether the data for judging the resolver parsing are correct and complete, pass through if so, executing
The step of corresponding resolver of the communications protocol parses the data packet.
Further, above-mentioned intelligent gateway, wherein whether the data for judging the resolver parsing are correct and complete
The step of include:
The correctness and integrality of the data are verified using CRC check algorithm.
Further, above-mentioned intelligent gateway, wherein when getting the data packet of multiple communication interface inputs simultaneously, institute
Data mapping tables generation module 300 is stated to be specifically used for:
According to the data according to preset communications protocol priority orders, the communications protocol for generating each type is corresponding
Data mapping tables;
The sending module 400 is specifically used for:
According to the communications protocol priority orders, by the letter in the corresponding data mapping tables of the communications protocol of each type
Breath is converted to ether data and is sent to server.
Further, above-mentioned intelligent gateway, wherein the parsing module 200 is specifically used for:
According to the identifier lookup of the communication interface to corresponding decoder;
The data packet is parsed according to the decoder found.
Further, above-mentioned intelligent gateway, wherein the communication interface includes that wifi communication interface, Zigbee communication connect
At least two in mouth, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface.
Further, above-mentioned intelligent gateway, wherein when the communication interface is Sub-1GHz communication interface, using frequency
The data packet for dividing the mode of multiplexing to receive the Sub-1GHz communication interface input.
The technical effect and preceding method of intelligent gateway provided by the embodiment of the present invention, realization principle and generation are implemented
Example is identical, and to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored thereon with program, described program is by processor
The step of above method is realized when execution.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of multichannel communication method, which is characterized in that be applied in an intelligent gateway, be arranged on the intelligent gateway multiple
Communication interface, to receive the data of different types of communications protocol respectively, the multiple channel communication method includes:
The data packet of at least one communications protocol of each communication interface input is obtained, and corresponding by the communications protocol
Resolver parse the data packet, obtain corresponding data;
Generate the data mapping tables of corresponding communications protocol according to the data, the data mapping tables include protocol type data and
Information data is controlled, the control information data is that the number after the communications protocol is converted to the control instruction of controlled device
According to;
Protocol type data and control information data in the data mapping tables are converted into ether data and are sent to server.
2. multichannel communication method as described in claim 1, which is characterized in that described to pass through the corresponding solution of the communications protocol
Parser parsed before the step of data packet further include:
Judge whether the data of the resolver parsing are correct and complete;
If so, executing the step of parsing the data packet by the corresponding resolver of the communications protocol.
3. multichannel communication method as claimed in claim 2, which is characterized in that the data of the judgement resolver parsing
Whether correct and complete step includes:
The correctness and integrality of the data are verified using CRC check algorithm.
4. multichannel communication method as described in claim 1, which is characterized in that inputted when getting multiple communication interfaces simultaneously
Data packet when, described the step of generating the data mapping tables of corresponding communications protocol according to the number include:
According to the data according to preset communications protocol priority orders, the corresponding data of communications protocol of each type are generated
Mapping table;
The information by the data mapping tables is converted to the step of ether data are sent to server
According to the communications protocol priority orders, the information in the corresponding data mapping tables of the communications protocol of each type is turned
It is changed to ether data and is sent to server.
5. multichannel communication method as described in claim 1, which is characterized in that described to pass through the corresponding solution of the communications protocol
Parser parse the data packet the step of include:
According to the identifier lookup of the communication interface to corresponding decoder;
The data packet is parsed according to the decoder found.
6. multichannel communication method as described in claim 1, which is characterized in that the communication interface includes that wifi communication connects
At least two in mouth, Zigbee communication interface, Z-wave communication interface, Sub-1GHz communication interface and bluetooth communication interface.
7. multichannel communication method as claimed in claim 6, which is characterized in that when the communication interface is Sub-1GHz communication
When interface, the data packet of the Sub-1GHz communication interface input is received by the way of frequency division multiplexing.
8. a kind of intelligent gateway, which is characterized in that multiple communication interfaces are set on the intelligent gateway, it is different types of to receive
The data of communications protocol, the intelligent gateway include:
Module is obtained, the data packet of at least one communications protocol for obtaining each communication interface input;
Parsing module obtains corresponding data for parsing the data packet by the corresponding resolver of the communications protocol;
Data mapping tables generation module, for generating the data mapping tables of corresponding communications protocol, the data according to the data
Mapping table includes protocol type data and control information data;
Sending module, for the protocol type data and control information data in the data mapping tables to be converted to ether data
It is sent to server.
9. intelligent gateway as claimed in claim 8, which is characterized in that further include:
Judgment module, whether the data for judging the resolver parsing are correct and complete, pass through the communication if so, executing
The step of corresponding resolver of agreement parses the data packet.
10. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that realization when described program is executed by processor
Method as claimed in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810887446.9A CN109194620A (en) | 2018-08-06 | 2018-08-06 | Multichannel communication method, intelligent gateway and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810887446.9A CN109194620A (en) | 2018-08-06 | 2018-08-06 | Multichannel communication method, intelligent gateway and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109194620A true CN109194620A (en) | 2019-01-11 |
Family
ID=64920658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810887446.9A Pending CN109194620A (en) | 2018-08-06 | 2018-08-06 | Multichannel communication method, intelligent gateway and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194620A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166455A (en) * | 2019-05-21 | 2019-08-23 | 东信和平科技股份有限公司 | A kind of multi-operator platform data adaptation method and relevant device |
CN110392381A (en) * | 2019-06-11 | 2019-10-29 | 岭澳核电有限公司 | A kind of channel wireless radio multi means of communication, device and terminal device for nuclear power station |
CN110602177A (en) * | 2019-08-26 | 2019-12-20 | 深圳移航通信技术有限公司 | Method, device and system for electric bicycle communication |
CN111010338A (en) * | 2019-12-23 | 2020-04-14 | 深圳物控智联科技有限公司 | Internet of things gateway |
CN111741092A (en) * | 2020-06-11 | 2020-10-02 | 湖南中大检测技术集团有限公司 | Acquisition system, integrated terminal and detection system |
CN111781880A (en) * | 2020-07-16 | 2020-10-16 | 青岛海信日立空调系统有限公司 | Centralized control system for household appliances |
CN111917719A (en) * | 2020-06-24 | 2020-11-10 | 北京金茂绿建科技有限公司 | Method, system, electronic device and storage medium for multi-protocol data integration |
CN112367199A (en) * | 2020-10-30 | 2021-02-12 | 中国兵器科学研究院 | Configurable self-adaptive intelligent gateway and configuration method |
CN112511416A (en) * | 2020-11-23 | 2021-03-16 | 四川长虹电器股份有限公司 | Rule-based data communication protocol conversion system, decoding method and encoding method |
CN112714440A (en) * | 2019-10-25 | 2021-04-27 | 深圳长城开发科技股份有限公司 | Communication method, system, gateway and storage medium compatible with LoRaWAN and self-research protocol |
CN112910744A (en) * | 2019-12-03 | 2021-06-04 | 北京沃东天骏信息技术有限公司 | Intelligent device control method and device, storage medium and electronic device |
CN113014527A (en) * | 2019-12-19 | 2021-06-22 | 南京品尼科自动化有限公司 | Protocol conversion device on communication manager and protocol conversion method thereof |
CN113114583A (en) * | 2021-04-12 | 2021-07-13 | 深圳市欧瑞博科技股份有限公司 | Intelligent gateway control method and device and computer readable storage medium |
CN113676401A (en) * | 2021-08-20 | 2021-11-19 | 深圳市创客工场科技有限公司 | Communication method and event field control device |
CN113810492A (en) * | 2021-09-16 | 2021-12-17 | 南方电网数字电网研究院有限公司 | Data point table generation method and device based on intelligent gateway and computer equipment |
CN115314473A (en) * | 2022-06-21 | 2022-11-08 | 中化学交通建设集团有限公司 | Communication method based on LoRa gateway, related equipment and monitoring system |
CN115333897A (en) * | 2022-08-10 | 2022-11-11 | 上海船舶运输科学研究所有限公司 | Multi-channel mode management system and method for marine gateway |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102713912A (en) * | 2009-10-13 | 2012-10-03 | 心外部有限公司 | Method and apparatus for displaying data from medical devices |
CN103259868A (en) * | 2013-05-31 | 2013-08-21 | 清华大学 | Data collaborative processing system based on intelligent gateway |
CN104038414A (en) * | 2013-08-21 | 2014-09-10 | 江南大学 | Multiprotocol intelligent household gateway apparatus and system thereof |
CN105045743A (en) * | 2015-07-27 | 2015-11-11 | 燕山大学 | Multi-protocol conversion method capable of realizing priority scheduling |
CN105911908A (en) * | 2016-04-26 | 2016-08-31 | 乐视控股(北京)有限公司 | Intelligent gateway equipment and intelligent monitoring system |
CN106790618A (en) * | 2016-12-30 | 2017-05-31 | 重庆前卫科技集团有限公司 | For the multi-function communication device and its data forwarding method of analogue system under water |
CN206922784U (en) * | 2016-09-30 | 2018-01-23 | 西门子(中国)有限公司 | Intelligent gateway |
CN107888488A (en) * | 2016-09-30 | 2018-04-06 | 西门子(中国)有限公司 | Intelligent gateway and its method |
-
2018
- 2018-08-06 CN CN201810887446.9A patent/CN109194620A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102713912A (en) * | 2009-10-13 | 2012-10-03 | 心外部有限公司 | Method and apparatus for displaying data from medical devices |
CN103259868A (en) * | 2013-05-31 | 2013-08-21 | 清华大学 | Data collaborative processing system based on intelligent gateway |
CN104038414A (en) * | 2013-08-21 | 2014-09-10 | 江南大学 | Multiprotocol intelligent household gateway apparatus and system thereof |
CN105045743A (en) * | 2015-07-27 | 2015-11-11 | 燕山大学 | Multi-protocol conversion method capable of realizing priority scheduling |
CN105911908A (en) * | 2016-04-26 | 2016-08-31 | 乐视控股(北京)有限公司 | Intelligent gateway equipment and intelligent monitoring system |
CN206922784U (en) * | 2016-09-30 | 2018-01-23 | 西门子(中国)有限公司 | Intelligent gateway |
CN107888488A (en) * | 2016-09-30 | 2018-04-06 | 西门子(中国)有限公司 | Intelligent gateway and its method |
CN106790618A (en) * | 2016-12-30 | 2017-05-31 | 重庆前卫科技集团有限公司 | For the multi-function communication device and its data forwarding method of analogue system under water |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166455A (en) * | 2019-05-21 | 2019-08-23 | 东信和平科技股份有限公司 | A kind of multi-operator platform data adaptation method and relevant device |
CN110392381A (en) * | 2019-06-11 | 2019-10-29 | 岭澳核电有限公司 | A kind of channel wireless radio multi means of communication, device and terminal device for nuclear power station |
CN110392381B (en) * | 2019-06-11 | 2022-05-24 | 岭澳核电有限公司 | Multi-channel wireless communication method and device for nuclear power station and terminal equipment |
CN110602177A (en) * | 2019-08-26 | 2019-12-20 | 深圳移航通信技术有限公司 | Method, device and system for electric bicycle communication |
CN112714440B (en) * | 2019-10-25 | 2023-09-19 | 深圳长城开发科技股份有限公司 | Communication method, system, gateway and storage medium compatible with LoRaWAN and self-research protocol |
CN112714440A (en) * | 2019-10-25 | 2021-04-27 | 深圳长城开发科技股份有限公司 | Communication method, system, gateway and storage medium compatible with LoRaWAN and self-research protocol |
CN112910744A (en) * | 2019-12-03 | 2021-06-04 | 北京沃东天骏信息技术有限公司 | Intelligent device control method and device, storage medium and electronic device |
CN113014527A (en) * | 2019-12-19 | 2021-06-22 | 南京品尼科自动化有限公司 | Protocol conversion device on communication manager and protocol conversion method thereof |
CN111010338A (en) * | 2019-12-23 | 2020-04-14 | 深圳物控智联科技有限公司 | Internet of things gateway |
CN111741092A (en) * | 2020-06-11 | 2020-10-02 | 湖南中大检测技术集团有限公司 | Acquisition system, integrated terminal and detection system |
CN111917719A (en) * | 2020-06-24 | 2020-11-10 | 北京金茂绿建科技有限公司 | Method, system, electronic device and storage medium for multi-protocol data integration |
CN111781880A (en) * | 2020-07-16 | 2020-10-16 | 青岛海信日立空调系统有限公司 | Centralized control system for household appliances |
CN111781880B (en) * | 2020-07-16 | 2021-10-01 | 青岛海信日立空调系统有限公司 | Centralized control system for household appliances |
CN112367199B (en) * | 2020-10-30 | 2023-08-22 | 中国兵器科学研究院 | Configurable self-adaptive intelligent gateway and configuration method |
CN112367199A (en) * | 2020-10-30 | 2021-02-12 | 中国兵器科学研究院 | Configurable self-adaptive intelligent gateway and configuration method |
CN112511416A (en) * | 2020-11-23 | 2021-03-16 | 四川长虹电器股份有限公司 | Rule-based data communication protocol conversion system, decoding method and encoding method |
CN113114583A (en) * | 2021-04-12 | 2021-07-13 | 深圳市欧瑞博科技股份有限公司 | Intelligent gateway control method and device and computer readable storage medium |
CN113676401A (en) * | 2021-08-20 | 2021-11-19 | 深圳市创客工场科技有限公司 | Communication method and event field control device |
CN113676401B (en) * | 2021-08-20 | 2024-03-01 | 深圳市创客工场科技有限公司 | Communication method and event field control device |
CN113810492A (en) * | 2021-09-16 | 2021-12-17 | 南方电网数字电网研究院有限公司 | Data point table generation method and device based on intelligent gateway and computer equipment |
CN113810492B (en) * | 2021-09-16 | 2024-04-05 | 南方电网数字电网科技(广东)有限公司 | Data point table generation method and device based on intelligent gateway and computer equipment |
CN115314473A (en) * | 2022-06-21 | 2022-11-08 | 中化学交通建设集团有限公司 | Communication method based on LoRa gateway, related equipment and monitoring system |
CN115333897A (en) * | 2022-08-10 | 2022-11-11 | 上海船舶运输科学研究所有限公司 | Multi-channel mode management system and method for marine gateway |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109194620A (en) | Multichannel communication method, intelligent gateway and readable storage medium storing program for executing | |
CN105122656B (en) | A kind of method, apparatus and system of encoding and decoding | |
CN103713608B (en) | Wireless Internet of Things house system hierarchical network framework and its group-net communication method | |
CN106998582A (en) | Consult method, access point and the website of target wakeup time | |
de Oliveira et al. | Medium access control protocols for power line communication: A survey | |
CN106209915A (en) | A kind of real time flow medium radio transmitting method and system thereof | |
CN104581647A (en) | Network access method and device of intelligent equipment | |
CN108306895A (en) | Data transmission method and device | |
CN106792454A (en) | Bluetooth communication method, communicator, communication system and electronic equipment | |
CN107302528A (en) | A kind of transmission method of multi-protocol data and a kind of gateway apparatus | |
CN110505112A (en) | A kind of network performance monitoring method, device and storage medium | |
CN109417533A (en) | Send the method and forwarding device of data | |
CN109150413A (en) | The method and apparatus for sending and receiving feedback information | |
US20190190744A1 (en) | Information transmission network and corresponding network node | |
CN105262740A (en) | Big data transmission method and system | |
CN107222848A (en) | Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame | |
CN106464379B (en) | The method, apparatus and system of optical network unit are waken up in a kind of passive optical network | |
CN109005150A (en) | Based on ethernet mac address without linking communications method and system | |
CN104243246A (en) | Method and device for Zigbee technology-based FlexRay bus test and optimization | |
CN104471888B (en) | Processing method, equipment and the system of free block IDLE in block of burst data | |
CN103179436B (en) | A kind of multi-channel program transmission flow multiplex device | |
Li et al. | A case study of a MIMO SDR implementation | |
CN105376118B (en) | A kind of test method of AFDX interchangers sending performance | |
Di Bert et al. | Enhancements of G3-PLC technology for smart-home/building applications | |
CN105991214B (en) | A kind of data transmission method and its device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |