CN111541607A - Communication method, device, equipment, system and storage medium based on gateway equipment - Google Patents

Communication method, device, equipment, system and storage medium based on gateway equipment Download PDF

Info

Publication number
CN111541607A
CN111541607A CN202010309446.8A CN202010309446A CN111541607A CN 111541607 A CN111541607 A CN 111541607A CN 202010309446 A CN202010309446 A CN 202010309446A CN 111541607 A CN111541607 A CN 111541607A
Authority
CN
China
Prior art keywords
radio frequency
equipment
gateway
hardware
data information
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
Application number
CN202010309446.8A
Other languages
Chinese (zh)
Inventor
王旭华
任海斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sundray Technologies Co ltd
Original Assignee
Shenzhen Sundray Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sundray Technologies Co ltd filed Critical Shenzhen Sundray Technologies Co ltd
Priority to CN202010309446.8A priority Critical patent/CN111541607A/en
Publication of CN111541607A publication Critical patent/CN111541607A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/0003Software-defined radio [SDR] systems, i.e. systems wherein components typically implemented in hardware, e.g. filters or modulators/demodulators, are implented using software, e.g. by involving an AD or DA conversion stage such that at least part of the signal processing is performed in the digital domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention discloses a communication method, a device, equipment, a system and a computer readable storage medium based on gateway equipment; in the scheme, the gateway equipment comprises at least two pieces of radio frequency hardware, each piece of radio frequency hardware supports different communication protocols, and by the mode, various communication protocols can be integrated in one gateway equipment, so that one gateway equipment can simultaneously support different communication protocols, and when the internet of things equipment is updated, the internet of things equipment can be quickly switched to other protocols without base station construction again; in addition, the data information sent by the equipment does not need to be forwarded to the platform base end, and the edge strategy can be executed at the edge side of the gateway, so that the millisecond response effect is achieved, and the influence of network disconnection is avoided.

Description

Communication method, device, equipment, system and storage medium based on gateway equipment
Technical Field
The present invention relates to the field of gateway technologies, and in particular, to a communication method, apparatus, device, system and computer-readable storage medium based on a gateway device.
Background
At present, no matter Software-Defined Wireless network (SDWN) or Software-Defined radio (SDR), radio frequency hardware of a gateway cannot be unified, so that hardware ACK (acknowledgement character) cannot be replied, and a collision detection mechanism cannot be used together; moreover, radio frequency antennas, frequency bands, filtering, interference and hardware cannot be simultaneously supported, and hardware specification limitation exists; secondly, radio frequency is defined by software, different protocols can only be switched with each other and cannot exist simultaneously, and when equipment with multiple protocols is connected, multiple gateways still need to be deployed.
Disclosure of Invention
The invention aims to provide a communication method, a communication device, communication equipment, a communication system and a computer readable storage medium based on gateway equipment, so that the gateway equipment overcomes the limitation of radio frequency hardware and realizes the simultaneous connection of the gateway equipment and equipment with multiple protocols.
In order to achieve the above object, the present invention provides a communication method based on a gateway device, where the communication method includes:
receiving data information sent by first equipment through radio frequency hardware of gateway equipment; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol;
processing the data information by utilizing an edge strategy, determining a target operation corresponding to the data information and second equipment executing the target operation;
and sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation.
Before receiving the data information sent by the first device through the radio frequency hardware of the gateway device, the method further includes:
receiving working mode configuration information issued by a platform base end; the working mode configuration information carries identification information of target radio frequency hardware to be started by the gateway equipment;
and starting the target radio frequency hardware of the gateway equipment by using the identification information.
Wherein the starting the target radio frequency hardware of the gateway device by using the identification information includes:
judging whether the gateway equipment supports target radio frequency hardware corresponding to the identification information;
if yes, starting the corresponding target radio frequency hardware.
Before receiving the data information sent by the first device through the radio frequency hardware of the gateway device, the method further includes:
receiving and storing an edge policy issued by a platform base end; the edge policy states: the correspondence between the data information of the different devices and the operations performed by the different devices.
Wherein the radio frequency hardware comprises: the radio frequency chip and the radio frequency interface; the radio frequency chip includes: 433 radio frequency chip, zigbee radio frequency chip, remote radio frequency chip, the radio frequency interface includes the RS485 interface.
Wherein the processing the data information by using the edge policy, determining a target operation corresponding to the data information, and executing a second device of the target operation, includes:
determining, by a protocol determination module, a target communication protocol corresponding to the first device;
analyzing the data information by using the target communication protocol to obtain analyzed data;
and cleaning the analysis data, matching the cleaned analysis data with the edge strategy, and determining a target operation to be executed and second equipment for executing the target operation.
Wherein, if the cleaned analysis data is not matched with the edge policy, the communication method further includes: and uploading the data information sent by the first equipment to a platform base end.
To achieve the above object, the present invention further provides a communication apparatus based on a gateway device, the communication apparatus comprising:
the receiving module is used for receiving data information sent by the first equipment through radio frequency hardware of the gateway equipment; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol;
the determining module is used for processing the data information by utilizing an edge policy, determining a target operation corresponding to the data information and second equipment executing the target operation;
and the sending module is used for sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation.
To achieve the above object, the present invention further provides a gateway device, comprising: a memory, a processor, and at least two radio frequency hardware supporting different communication protocols; wherein:
the memory for storing a computer program;
the processor is configured to implement the steps of the above communication method based on the gateway device when executing the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the above-mentioned gateway device-based communication method.
As can be seen from the above solutions, the communication method based on the gateway device provided in the embodiment of the present invention includes: receiving data information sent by first equipment through radio frequency hardware of gateway equipment; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol; processing the data information by utilizing an edge strategy, determining a target operation corresponding to the data information and second equipment executing the target operation; and sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation.
Therefore, the gateway equipment in the scheme comprises at least two pieces of radio frequency hardware, each piece of radio frequency hardware supports different communication protocols, and by the method, various communication protocols can be integrated in one gateway equipment, so that one gateway equipment can simultaneously support different communication protocols, and when the internet of things equipment is updated, the internet of things equipment can be quickly switched to other protocols without base station construction again; in addition, the scheme does not need to forward the data information sent by the equipment to the platform base end, and can execute the edge strategy at the edge side of the gateway, thereby achieving the millisecond response effect and being not influenced by network disconnection; the invention also discloses a communication device, equipment and a system based on the gateway equipment and a computer readable storage medium, which can also realize the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a communication system based on a gateway device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a communication method based on a gateway device according to an embodiment of the present invention;
fig. 3 is a hardware schematic block diagram of a gateway device according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a platform-side configuration according to an embodiment of the present invention;
fig. 5 is a flowchart of the overall operation at the gateway side according to the embodiment of the present invention;
fig. 6 is a schematic block diagram of software of a gateway device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a product user interface according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a communication apparatus based on a gateway device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a gateway device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, only one rf hardware exists on the gateway side at present, and different rf protocols are simulated by the one rf hardware. However, radio frequency ranges corresponding to different radio frequency hardware are repeated, so that when communication is performed through the conventional gateway device, problems that hardware ACK cannot be replied, a collision detection mechanism cannot be used together, radio frequency antennas, frequency bands, filtering, interference and the like cannot be simultaneously supported on hardware, different protocols in software defined radio frequency cannot be simultaneously provided, and the like occur. In addition, when the current platform base end executes a linkage strategy, the platform base end can process data information sent by different internet of things devices only after the gateway device forwards the data information to the platform base end, and the processing mode is slow in response speed, so that the platform base end cannot timely respond to the data information of the internet of things devices if the internet is disconnected.
Therefore, the present application discloses a communication method, device, equipment, system and computer readable storage medium based on gateway equipment, which can enable the gateway equipment to overcome the limitation of radio frequency hardware, realize that the gateway equipment is simultaneously connected with equipment of multiple protocols, and quickly respond to data information sent by the equipment. For convenience of understanding, a system architecture to which the technical solution of the present application is applied is introduced below, and with reference to fig. 1, a schematic structural diagram of a communication system based on a gateway device disclosed in an embodiment of the present invention is shown, where the communication system includes: the system comprises an internet of things device 11, a gateway device 12 and a platform base end 13.
Wherein, thing networking device 11 specifically is equipment such as sensor or industrial controller, if: temperature sensors, status detectors, etc. In the present application, the device 11 is divided into a first device and a second device according to different functions implemented by the devices; the first device is primarily used to send data information to the gateway device 12 and the second device is used to perform the operations sent by the gateway device.
The gateway device 12 in this application is an Internet of things communication Protocol conversion device, and is responsible for connecting an Internet of things terminal, converting the Internet of things terminal into an IP (Internet Protocol) message, and communicating with a platform base, such as a router, a switch, and the like; the gateway device 12 includes at least two radio frequency hardware, each supporting a different communication protocol; the hardware of the device can be 433 radio frequency chip, ZigBee radio frequency chip, LoRa radio frequency chip, RS485 interface and the like. When the gateway device 12 is in communication, it is specifically configured to: receiving data information sent by first equipment through radio frequency hardware, processing the data information by utilizing an edge strategy, determining target operation corresponding to the data information and second equipment executing the target operation; and sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation. Specifically, the edge policy describes a correspondence between data information of different devices and operations performed by the different devices, such as: if the edge policy is: when a key of the first device is pressed down, a lamp of the second device is turned on, and at the moment, if data information sent by the first device is: when the switch presses data, the gateway device 12 analyzes the data through the edge policy, and determines that the target operation corresponding to the data information is to turn on a light.
Platform base end 13 is the aggregate of thing networking integrated service, contains equipment management, state show, policy configuration, data analysis, application layer service etc. can deploy in local or high in the clouds, specifically is equipment such as server, computer, and mainly used sends down configuration and marginal strategy to gateway equipment, and this configuration includes: configuring the basic attribute configuration of the gateway device, such as: default configurations such as an IP (Internet Protocol) address of a gateway, a number of supported users, and the like; the configuration may further include: configuring the working mode configuration information of which radio frequency hardware is started by a gateway; the edge policy is configured according to information such as the type and function of the connected gateway device after the platform is powered on.
Referring to fig. 2, a schematic flow chart of a communication method based on a gateway device disclosed in the embodiment of the present invention is shown; the communication method specifically comprises the following steps:
s101, receiving data information sent by first equipment through radio frequency hardware of gateway equipment; the gateway device comprises at least two pieces of radio frequency hardware, and each piece of radio frequency hardware supports different communication protocols;
in this application, the gateway device includes at least two radio frequency hardware, each supporting a different communication protocol, and specifically, the radio frequency hardware may include: the radio frequency chip and the radio frequency interface; the radio frequency chip includes: 433 radio frequency chip, zigBee radio frequency chip, loRa radio frequency chip, radio frequency interface includes the RS485 interface, and its communication protocol that corresponds is respectively: 433 radio frequency communication protocol, ZigBee communication protocol, LoRa communication protocol, modbus communication protocol, therefore the gateway device in this application can include at least two above-mentioned radio frequency hardware. Referring to fig. 3, a schematic hardware block diagram of a gateway device disclosed in the embodiment of the present invention is shown; as can be seen from fig. 3, in the gateway device, various radio frequency hardware such as: ZigBee radio frequency chip, loRa radio frequency chip, 433 radio frequency chip and RS485 interface, ZigBee radio frequency chip, loRa radio frequency chip, 433 radio frequency chip link to each other with corresponding antenna respectively. By the method, a plurality of communication protocols can be integrated in one gateway hardware, and LoRa/ZigBee/Sub-G (433MHz)/Modbus is supported for data communication without mutual interference.
S102, processing the data information by using an edge strategy, determining a target operation corresponding to the data information and second equipment for executing the target operation;
s103, sending the target operation to the second equipment through corresponding radio frequency hardware so that the second equipment executes the target operation.
It should be noted that, in the current multi-device linkage strategy: the method is characterized in that control linkage among devices comprises control linkage among devices of the same type and devices of different types, and in a specific implementation process, after the gateway device is required to send data information of the Internet of things device to the platform base end, the platform base end responds through a linkage strategy. The edge policy in the present application plays the same role as the linkage policy, except that the edge policy is not used by the platform base side, but is used by the gateway device. That is to say, in the present application, after receiving the data information sent by the first device, the gateway device does not need to send the data information to the platform base, but directly responds by using the edge policy stored in the gateway device.
Specifically, the edge policy describes a correspondence of conditions and actions, such as: when the condition that the key is pressed is met, the action of turning on the light is executed. Therefore, the data information is processed, and the corresponding relation between the conditions and the actions recorded in the edge policy is matched, so that the action corresponding to the data information, namely the target operation in the scheme, can be determined, and then the target operation is issued to the second device executing the target operation, and the target operation is executed through the second device. It should be noted that, because the gateway device in this scheme includes different radio frequency hardware, and different internet of things devices may need to use different radio frequency hardware for communication, when sending data, after the radio frequency hardware sending the data needs to be determined, the target operation is sent to the second device through the corresponding radio frequency hardware.
In conclusion, the gateway device in the scheme comprises at least two pieces of radio frequency hardware, each piece of radio frequency hardware supports different communication protocols, and by the method, various communication protocols can be integrated in one gateway device, so that one gateway device can simultaneously support different communication protocols, and when the internet of things device is updated, the internet of things device can be quickly switched to other protocols without base station construction again; in addition, the data information sent by the equipment does not need to be forwarded to the platform base end, and the edge strategy can be executed at the edge side of the gateway, so that the millisecond response effect is achieved, and the influence of network disconnection is avoided.
Based on the foregoing embodiment, in this embodiment, before receiving the data information sent by the first device through the radio frequency hardware of the gateway device, the platform base needs to configure the working mode and the edge policy of the gateway device, so as to start the corresponding radio frequency hardware and respond to the data information.
1. The operating mode configuration mode of the gateway device is as follows: receiving working mode configuration information issued by a platform base end; the working mode configuration information carries identification information of target radio frequency hardware to be started by the gateway equipment; and starting the target radio frequency hardware of the gateway equipment by using the identification information.
Specifically, after the platform base terminal is powered on, whether the gateway device is connected needs to be checked, if the gateway device is in a connected state, the gateway device needs to be issued with working mode configuration information, wherein the working mode configuration information carries identification information of target radio frequency hardware to be started by the gateway device; for example: if the gateway device needs to start the radio frequency hardware of any combination of the ZigBee radio frequency hardware, the LoRa radio frequency hardware, the 433 radio frequency hardware and the RS485 interface, the identification information is respectively the identification information of the corresponding radio frequency hardware.
In addition, in order to ensure that the gateway device correctly starts the corresponding radio frequency hardware, whether the gateway device supports the target radio frequency hardware corresponding to the identification information may be judged first; if yes, starting the corresponding target radio frequency hardware. Otherwise, the notification information that the radio frequency hardware cannot be started is fed back to the platform base end. Specifically, when determining whether the gateway device supports the corresponding rf chip and interface, it may be checked whether the device connected to the interface corresponds to the interface type, for example: and if the equipment connected with the RS485 interface is RE485 equipment, the corresponding radio frequency hardware is supported. When the corresponding hardware is enabled, if the radio frequency hardware is a radio frequency chip, the radio frequency chip needs to be powered on, reset and the like, and if the radio frequency hardware is a radio frequency interface, the up/down state of the interface needs to be adjusted.
2. The configuration mode of the edge policy in the gateway device is as follows: receiving and storing an edge policy issued by a platform base end; the edge policy states: the correspondence between the data information of the different devices and the operations performed by the different devices. It can be understood that after the platform is powered on, it is necessary to check whether the internet of things device is connected, configure a corresponding edge policy according to the connected internet of things device, and issue the edge policy to the gateway device, so that the gateway device executes a corresponding response operation.
Referring to fig. 4, a flowchart of a platform side configuration disclosed in the embodiment of the present invention is shown; as can be seen from the figure, after the platform is powered on, whether the gateway device is connected or not is judged, and if so, gateway parameters are configured; then judging whether the equipment is connected, and if so, configuring an edge strategy; and the configured gateway parameters and the edge policy are issued to the gateway equipment together, thereby realizing the configuration of the gateway equipment. It should be noted that, the gateway device may, in addition to actively receiving the configuration issued by the platform base end, periodically detect whether the configuration is updated, so as to update the gateway configuration and the edge policy issued by the platform base end at regular time. And if new sensor/hardware equipment is updated, the gateway can update the configuration only by updating the corresponding gateway configuration at the platform base end, and the corresponding hardware is started and the edge policy is loaded. The device can be quickly switched to other protocols without newly building a base station and deploying more gateways.
Based on the foregoing embodiment, in this embodiment, when the data information is processed by using an edge policy, and a target operation corresponding to the data information and a second device executing the target operation are determined, the method specifically includes:
determining, by a protocol determination module, a target communication protocol corresponding to the first device;
analyzing the data information by using the target communication protocol to obtain analyzed data;
and cleaning the analysis data, matching the cleaned analysis data with the edge strategy, and determining a target operation to be executed and second equipment for executing the target operation.
It can be understood that, since the gateway device in the present application has a plurality of rf hardware, and each rf hardware performs data transmission, the communication protocol used is different, such as: the 433 radio frequency chip, the zigBee radio frequency chip, the loRa radio frequency chip, the communication protocol that the RS485 interface corresponds are respectively: 433 radio frequency communication protocol, ZigBee communication protocol, LoRa communication protocol, modbus communication protocol, therefore this application need confirm the target communication protocol that corresponds with this first equipment through protocol determination module after receiving the data message that first equipment sent, only after this target communication protocol confirms, just can utilize this target communication protocol to carry out the analysis to the data message that first equipment sent, through this kind of mode, can be when gateway equipment gathers multiple communication protocol, carry out accurate analysis to the data message that uses different communication protocol to send. For example: the first device sends data information to the gateway device through the 433 rf chip, and then the target communication protocol corresponding to the first device determined by the protocol determination module is the 433 rf communication protocol, and subsequently, the 433 rf communication protocol may be used to analyze the data information sent by the first device.
It should be noted that, after receiving the edge policy sent by the platform base, the gateway device may operate a policy engine of the gateway device to load the edge policy, and perform policy matching through data reported by the device. Specifically, each device performs network access interaction with the gateway according to the network access mode of each protocol, after the device network access and the device binding are completed, the device network access and the device binding are performed, the data information is reported to the gateway through respective protocols and the gateway, so that the gateway performs data conversion and analysis on the data information to obtain analysis data, and further, the policy engine performs cleaning and matching on the analysis data to determine a target operation and a second device. The data cleaning mainly comprises two aspects: if the same data is reported by the same equipment for multiple times, the duplicate is removed; and secondly, equipment identification, because the RS485 interface is connected with a serial line, data received through the RS485 interface is data of a plurality of equipment, and in order to identify the equipment to which the data is specifically sent, the equipment to which the data is specifically sent needs to be determined according to a channel number carried in the data and a corresponding relationship between a pre-stored channel number and the equipment.
Further, after the analysis data is cleaned, the analysis data needs to be matched with the edge policy. Specifically, the data information specifically sent by which device and what operation the device has performed can be known from the analyzed data after the cleaning, and then the following operations are performed with the device as described in the edge policy: and matching the data information of the different equipment with the corresponding relation between the operations executed by the different equipment, and searching a target operation to be executed and second equipment executing the target operation. If the cleaned analysis data is matched with the edge policy, the gateway device can directly process the policy content, trigger various corresponding policy actions, generate a target operation and send the target operation to the corresponding second device. However, if the cleaned analysis data is not matched with the edge policy, in order to avoid the problem of mismatching caused by the fact that the edge policy is not updated, the data information sent by the first device can be uploaded to the platform base end, and the cloud platform can process the data information.
When the target operation is sent to the second device, the target operation is distributed to corresponding radio frequency hardware and interfaces for communication inside the gateway device. It can be seen that, by the gateway device in the scheme, multiple protocols can be interconnected without being limited by the protocols. And a plurality of protocols can simultaneously carry out data communication without mutual interference. Referring to fig. 5, it is a flowchart of the overall operation at the gateway side disclosed in the embodiment of the present invention; as can be seen from the figure, the gateway is powered on to actively connect with the platform, checks whether the configuration is updated, and starts corresponding hardware if the configuration is updated. And each device performs network access interaction with the gateway according to the network access mode of each protocol to complete the network access and device binding of the device. And then the gateway operates a policy engine to load an edge policy and performs policy matching on the data reported by the equipment. If the policy condition is met, the gateway directly processes the policy content and issues the action to the corresponding equipment, which indicates that the policy condition is matched with the policy.
Referring to fig. 6, which is a schematic block diagram of gateway device software disclosed in an embodiment of the present invention, the figure shows that the all-in-one internet of things gateway described in the present application is different from an existing gateway in that: the gateway is equal to the combination of different gateways containing different radio frequency hardware, different communication protocols can be simultaneously realized, different edge strategies are stored in the strategy linkage library, and data information sent by equipment is stored in a Message Queue (MQ) library. Referring to fig. 7, for a product user interface schematic diagram disclosed in the embodiment of the present invention, it can be seen from fig. 7 that three internet of things devices are bound to the gateway device, and since the gateway device in the present application has multiple radio frequency hardware and supports different communication protocols, the three internet of things devices in fig. 7 can access different communication protocols.
In conclusion, the gateway equipment can integrate a plurality of communication protocols into one gateway hardware, simultaneously supports LoRa/ZigBee/Sub-G (433MHz)/Modbus for data communication, is not interfered with each other, has high availability, and can quickly switch to other protocols without base station construction again when the equipment of the Internet of things is updated; in addition, on the all-in-one gateway, the linkage strategy at the platform side can also be used as an edge strategy to normally operate on the gateway, and is not influenced by network disconnection, so that the millisecond-level response effect is achieved, and the data effect efficiency is improved.
In the following, the communication device provided by the embodiment of the present invention is introduced, and the communication device described below and the communication method described above may be referred to each other.
Referring to fig. 8, a schematic structural diagram of a communication apparatus based on a gateway device according to an embodiment of the present invention is provided; the communication device includes:
a receiving module 21, configured to receive, through radio frequency hardware of the gateway device, data information sent by the first device; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol;
a determining module 22, configured to process the data information by using an edge policy, determine a target operation corresponding to the data information, and determine a second device that executes the target operation;
a sending module 23, configured to send the target operation to the second device through corresponding radio frequency hardware, so that the second device executes the target operation.
Wherein, this device still includes:
the configuration information receiving module is used for receiving the working mode configuration information issued by the platform base end; the working mode configuration information carries identification information of target radio frequency hardware to be started by the gateway equipment;
and the starting module is used for starting the target radio frequency hardware of the gateway equipment by utilizing the identification information.
Wherein the starting module is specifically configured to: judging whether the gateway equipment supports target radio frequency hardware corresponding to the identification information; if yes, starting the corresponding target radio frequency hardware.
Wherein the apparatus further comprises:
the strategy receiving module is used for receiving and storing the edge strategy issued by the platform base end; the edge policy states: the correspondence between the data information of the different devices and the operations performed by the different devices.
Wherein the radio frequency hardware comprises: the radio frequency chip and the radio frequency interface; the radio frequency chip includes: 433 radio frequency chip, zigbee radio frequency chip, remote radio frequency chip, the radio frequency interface includes the RS485 interface.
Wherein the determining module comprises:
a determining unit, configured to determine a target communication protocol corresponding to the first device;
the analysis unit is used for analyzing the data information by using the target communication protocol to obtain analysis data;
the cleaning unit is used for cleaning the analytic data;
and the matching unit is used for matching the cleaned analysis data with the edge strategy, determining a target operation to be executed and a second device for executing the target operation.
Wherein, this device still includes:
and the sending module is used for uploading the data information sent by the first equipment to a platform base end when the cleaned analysis data is not matched with the edge strategy.
Fig. 9 is a schematic structural diagram of a gateway device disclosed in the embodiment of the present invention; the device comprises a memory 31, a processor 32 and at least two radio frequency hardware 33 supporting different communication protocols;
a memory 31 for storing a computer program;
a processor 32 adapted to implement the steps of the gateway device based communication method according to any of the above-mentioned method embodiments when executing said computer program.
The memory 31 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program, and the memory provides an environment for the operating system and the execution of computer readable instructions in the non-volatile storage medium. The processor 32 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and provides computing and controlling capability for the gateway device, and when executing the computer program stored in the memory 31, the steps of the communication method disclosed in any of the foregoing embodiments may be implemented.
The radio frequency hardware 33 may be radio frequency hardware of any combination of ZigBee radio frequency hardware, LoRa radio frequency hardware, 433 radio frequency hardware, and RS485 interface;
further, the device may further include a bus 34, which may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
Fig. 9 shows only the device with the components 31-34, and it will be understood by those skilled in the art that the structure shown in fig. 9 does not constitute a limitation of the device, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the steps of the communication method based on the gateway device according to any method embodiment.
Wherein the storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A communication method based on a gateway device, the communication method comprising:
receiving data information sent by first equipment through radio frequency hardware of gateway equipment; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol;
processing the data information by utilizing an edge strategy, determining a target operation corresponding to the data information and second equipment executing the target operation;
and sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation.
2. The communication method according to claim 1, wherein before receiving the data information sent by the first device through the rf hardware of the gateway device, the method further comprises:
receiving working mode configuration information issued by a platform base end; the working mode configuration information carries identification information of target radio frequency hardware to be started by the gateway equipment;
and starting the target radio frequency hardware of the gateway equipment by using the identification information.
3. The communication method according to claim 2, wherein the starting target radio frequency hardware of the gateway device by using the identification information comprises:
judging whether the gateway equipment supports target radio frequency hardware corresponding to the identification information;
if yes, starting the corresponding target radio frequency hardware.
4. The communication method according to claim 1, wherein before receiving the data information sent by the first device through the rf hardware of the gateway device, the method further comprises:
receiving and storing an edge policy issued by a platform base end; the edge policy states: the correspondence between the data information of the different devices and the operations performed by the different devices.
5. The communication method of claim 1, wherein the radio frequency hardware comprises: the radio frequency chip and the radio frequency interface; the radio frequency chip includes: 433 radio frequency chip, zigbee radio frequency chip, remote radio frequency chip, the radio frequency interface includes the RS485 interface.
6. The communication method according to any one of claims 1 to 5, wherein the processing the data information by using the edge policy, determining a target operation corresponding to the data information, and executing a second device of the target operation comprises:
determining, by a protocol determination module, a target communication protocol corresponding to the first device;
analyzing the data information by using the target communication protocol to obtain analyzed data;
and cleaning the analysis data, matching the cleaned analysis data with the edge strategy, and determining a target operation to be executed and second equipment for executing the target operation.
7. The communication method according to claim 6, wherein if the cleaned parsed data does not match the edge policy, the communication method further comprises:
and uploading the data information sent by the first equipment to a platform base end.
8. A communication apparatus based on a gateway device, the communication apparatus comprising:
the receiving module is used for receiving data information sent by the first equipment through radio frequency hardware of the gateway equipment; the gateway device comprises at least two radio frequency hardware, each radio frequency hardware supporting a different communication protocol;
the determining module is used for processing the data information by utilizing an edge policy, determining a target operation corresponding to the data information and second equipment executing the target operation;
and the sending module is used for sending the target operation to the second equipment through corresponding radio frequency hardware so as to enable the second equipment to execute the target operation.
9. A gateway device, comprising: a memory, a processor, and at least two radio frequency hardware supporting different communication protocols; wherein:
the memory for storing a computer program;
the processor, when executing the computer program, is configured to implement the steps of the gateway device based communication method according to any of claims 1 to 7.
10. A communication system, comprising: an internet of things device, a platform infrastructure and a gateway device as claimed in claim 9.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the gateway device based communication method according to any one of claims 1 to 7.
CN202010309446.8A 2020-04-17 2020-04-17 Communication method, device, equipment, system and storage medium based on gateway equipment Pending CN111541607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010309446.8A CN111541607A (en) 2020-04-17 2020-04-17 Communication method, device, equipment, system and storage medium based on gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010309446.8A CN111541607A (en) 2020-04-17 2020-04-17 Communication method, device, equipment, system and storage medium based on gateway equipment

Publications (1)

Publication Number Publication Date
CN111541607A true CN111541607A (en) 2020-08-14

Family

ID=71978783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010309446.8A Pending CN111541607A (en) 2020-04-17 2020-04-17 Communication method, device, equipment, system and storage medium based on gateway equipment

Country Status (1)

Country Link
CN (1) CN111541607A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112105040A (en) * 2020-08-17 2020-12-18 成都极企科技有限公司 Wireless data communication method and system
CN113472786A (en) * 2021-06-30 2021-10-01 京东方科技集团股份有限公司 Data transmission method, device, equipment and medium based on multiple radio frequency communication modules
CN115001884A (en) * 2021-02-26 2022-09-02 星络家居云物联科技有限公司 Computer readable storage medium, gateway device and communication protocol authorization method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070183449A1 (en) * 2005-09-07 2007-08-09 Vantage Controls, Inc. Radio frequency multiple protocol bridge
CN101977449A (en) * 2010-11-03 2011-02-16 中国地质大学(武汉) Heterogeneous network interconnection Gateway device based on WiFi (Wireless Fidelity), ZigBee and Internet
CN104426754A (en) * 2013-08-27 2015-03-18 陕西天思信息科技有限公司 Realization method for smart home gateway based on three-network integration
CN105516185A (en) * 2015-12-30 2016-04-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 Multi-protocol gateway equipment
CN107396462A (en) * 2017-08-30 2017-11-24 湖南恒茂高科股份有限公司 Home gateway device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070183449A1 (en) * 2005-09-07 2007-08-09 Vantage Controls, Inc. Radio frequency multiple protocol bridge
CN101977449A (en) * 2010-11-03 2011-02-16 中国地质大学(武汉) Heterogeneous network interconnection Gateway device based on WiFi (Wireless Fidelity), ZigBee and Internet
CN104426754A (en) * 2013-08-27 2015-03-18 陕西天思信息科技有限公司 Realization method for smart home gateway based on three-network integration
CN105516185A (en) * 2015-12-30 2016-04-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 Multi-protocol gateway equipment
CN107396462A (en) * 2017-08-30 2017-11-24 湖南恒茂高科股份有限公司 Home gateway device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112105040A (en) * 2020-08-17 2020-12-18 成都极企科技有限公司 Wireless data communication method and system
CN115001884A (en) * 2021-02-26 2022-09-02 星络家居云物联科技有限公司 Computer readable storage medium, gateway device and communication protocol authorization method thereof
CN113472786A (en) * 2021-06-30 2021-10-01 京东方科技集团股份有限公司 Data transmission method, device, equipment and medium based on multiple radio frequency communication modules

Similar Documents

Publication Publication Date Title
CN111541607A (en) Communication method, device, equipment, system and storage medium based on gateway equipment
US10116489B2 (en) Apparatus and method for managing network access device
RU2009141603A (en) SERVER DETECTION MECHANISM
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
US11581915B2 (en) Device control method and apparatus, storage medium, processor, and terminal
CN110071855B (en) Equipment linkage control method, device, system, gateway and storage medium
CN104836848A (en) Method for remotely upgrading intelligent household electrical appliances
CN111866063B (en) Online updating system, method and device for AI algorithm of industrial Internet of things
CN111585801A (en) ZigBee device upgrading method and related device
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
CN112004245A (en) Robot control method, robot control device, storage medium, and electronic device
CN107483234B (en) Method and device for split backup of access point of Internet of things
CN106534342B (en) Connect control method, host and system
US10489055B2 (en) Z-wave controller shift in thermostats
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN107483236B (en) Method and device for backing up access point of Internet of things
JP6612151B2 (en) Network equipment monitoring device
CN112887416A (en) Frequency adjustment method and device for sending keep-alive packets
CN111736871A (en) FPGA chip upgrading method, device and system
KR20210071614A (en) Car to home service system and method
KR20210123583A (en) Communication method for distribution intelligence communication apparatus using integrated wired and wireless mesh network
CN107528898B (en) Method and device for realizing Internet of things module
CN110912946A (en) Control method of washing system
CN106304241B (en) Data transmission method, repeater and gateway
CN110824343A (en) Detection method, device, equipment and medium of communication chip

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200814