WO2018177174A1 - Iot data reporting method, apparatus and system - Google Patents

Iot data reporting method, apparatus and system Download PDF

Info

Publication number
WO2018177174A1
WO2018177174A1 PCT/CN2018/079805 CN2018079805W WO2018177174A1 WO 2018177174 A1 WO2018177174 A1 WO 2018177174A1 CN 2018079805 W CN2018079805 W CN 2018079805W WO 2018177174 A1 WO2018177174 A1 WO 2018177174A1
Authority
WO
WIPO (PCT)
Prior art keywords
iot
data
real
mode
module
Prior art date
Application number
PCT/CN2018/079805
Other languages
French (fr)
Chinese (zh)
Inventor
何小康
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018177174A1 publication Critical patent/WO2018177174A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present invention relates to the field of Internet of Things (IoT), and more particularly to a data reporting method, apparatus, and system for the IoT field.
  • IoT Internet of Things
  • multiple sensors deployed in the near-field network access the IoT gateway through the near-field protocol, such as ZigBee, Z-Wave, etc., and the IoT gateway receives the data reported by the sensor and reports the data to the IoT platform.
  • the IoT platform connects and manages multiple IoT gateways and opens the received data to IoT application servers, such as car network servers, smart home servers, smart medical servers, etc., to enable IoT application servers to provide a variety of rich IoT services, such as fleets. Management, smart home, old-age care, etc.
  • the IoT gateway Since a large number of sensors deployed in the near-field network generate a large amount of data, in order to reduce the performance impact of the massive data on the transmission network and the IoT platform, the IoT gateway performs the collected data according to preset data processing rules or data filtering rules. Pre-processing, and then report the processed data to the IoT platform. For example, the IoT gateway filters the data reported by the sensor and reports only the abnormal data to the IoT platform.
  • the single data reporting mode of the IoT gateway cannot meet the requirements in different scenarios. For example, in the normal scenario, the IoT platform may only need to monitor abnormal data, and in the remote emergency fault location scenario, the IoT platform needs to report the sensor.
  • the embodiment of the invention provides an IoT data reporting method, device and system to meet the requirements of the IoT platform or the IoT application server for service data in different service scenarios and network environments.
  • the embodiment of the present invention provides a method for reporting IoT data, where the method includes that the IoT gateway supports three working modes for reporting data to the IoT platform or the IoT application server, including real-time mode, non-real-time mode, real-time mode, and non- The mode in which the real-time mode is simultaneously turned on.
  • the IoT gateway flexibly changes the data reporting mode according to the environmental information (such as the strength of the wireless network signal) or the control commands of the IoT platform or the IoT application server to ensure that the IoT gateway satisfies the IoT in different network environments or in different service scenarios.
  • the IoT gateway collects data from the IoT device, which includes devices with data monitoring or command control functions, or devices with both data monitoring and command control functions, such as sensors, controllers, etc.; IoT gateway The data is reported to the IoT platform or the IoT application server in any working mode; when the environmental information changes and the environmental information meets the mode change rule, the IoT gateway changes the working mode to conform to the working mode of the current environment to the IoT platform or the IoT application server. Report data.
  • the IoT gateway collects data from the IoT device, which includes devices with data monitoring or command control functions, or devices with both data monitoring and command control functions, such as sensors, controllers, etc.; IoT gateway The data is reported to the IoT platform or the IoT application server in any working mode. When the reported data cannot meet the service scenario requirements of the IoT platform or the IoT application server, the IoT platform or the IoT application server sends a control command to change the working mode to the IoT gateway. The IoT gateway changes the working mode according to the control command to meet the needs of the business scenario.
  • the data reported by the IoT gateway to the IoT platform or the IoT application server in the real-time mode is the data processed by the IoT gateway according to the data processing rule for the received IoT device data, and the data processing rule. It can be preset in the IoT gateway, or it can be delivered by the IoT platform or the IoT application server.
  • the IoT platform or the IoT application server sets the data processing rules on the IoT gateway according to the service requirements, and can achieve a better balance between the real-time performance of the data reported by the IoT gateway and the data volume reported by the IoT gateway.
  • the data transmission between the IoT gateway and the IoT platform or the IoT application server is transmitted by using a real-time transmission channel, and the real-time transmission channel may be a connection established by a protocol such as MQTT or CoAP.
  • the IoT gateway reports the data in real-time mode according to the real-time data reporting rule that is preset in the IoT gateway or the IoT platform or the IoT application server.
  • the real-time data reporting rules include data reporting periods and reporting frequency rules to meet the needs of the IoT platform or the IoT application server for business data.
  • the IoT gateway saves the data of the received IoT device to a file format in non-real-time mode, and then reports the file to the IoT platform or the IoT application server. This way of saving data as a file ensures data integrity.
  • the file transfer between the IoT gateway and the IoT platform or the IoT application server is transmitted by using a non-real-time transmission channel, and the non-real-time transmission channel may be a connection established by a protocol such as HTTP or FTP, which is more suitable for file transmission.
  • the IoT gateway reports the file storing the IoT device data in the non-real-time mode according to the non-real-time data reporting rule that is preset in the IoT gateway or the IoT platform or the IoT application server.
  • the non-real-time data reporting rules include rules such as file reporting period and reporting frequency to meet the requirements of the IoT platform or the IoT application server for service data.
  • the IoT gateway uses a non-real-time transmission channel to report data to the IoT platform or the IoT application server in a non-real-time mode, and uses a real-time transmission channel to receive control commands issued by the IoT platform or the IoT application server.
  • the mode change rule is a rule preset in the IoT gateway, or a rule sent by the IoT platform or the IoT application server to the IoT gateway, and the mode change rule includes a trigger.
  • the IoT gateway changes the environment information of the mode, and the IoT gateway can collect environmental information independently or through other devices.
  • the IoT gateway collects data from the IoT device according to the data collection rules.
  • the data collection rule can be locally preset, or sent by the IoT platform, or sent by the IoT application server.
  • an embodiment of the present invention provides an IoT gateway device, where the IoT gateway has the function of implementing an IoT gateway in the foregoing data reporting method.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the IoT gateway includes a data acquisition module, a data processing module, a data storage module, a real-time transmission module, a non-real-time transmission module, and a mode decision module.
  • the data acquisition module is configured to connect the IoT device and receive the data reported by the IoT device, and send the data reported by the IoT device to the data processing module or the data storage module according to the instruction of the mode decision module, or simultaneously send the data to the data processing module and the data saving module. Send the data reported by the IoT device.
  • the data processing module is configured to receive and process data sent by the data acquisition module, and send the processed data to the real-time transmission module.
  • the data saving module is configured to receive data sent by the data collection module, save the data as a file, and send the saved file to the non-real-time transmission module.
  • the real-time transmission module is configured to receive data processed by the data processing module, and send the data processed by the data processing module to the IoT platform or the IoT application server; and also receive the control command of the IoT platform or the IoT application server.
  • the non-real-time transmission module is configured to receive the file saved by the data saving module and send the file to the IoT platform or the IoT application server.
  • the mode decision module determines the working mode of the IoT gateway according to the mode switching control command received by the real-time transmission module, and instructs the data processing module to send data to the data processing module or the data saving module, or simultaneously sends the data to the data processing module and the data saving module. data.
  • the IoT gateway includes a data acquisition module, a data processing module, a data storage module, a real-time transmission module, a non-real-time transmission module and a mode decision module, and an environment information collection module for collecting the current IoT gateway.
  • the non-real-time transmission module determines the working mode of the IoT gateway according to the environmental information collected by the environment information collecting module, and instructs the data processing module to send data to the data processing module or the data saving module, or simultaneously sends data to the data processing module and the data saving module.
  • the data acquisition module sends the collected data of the IoT device to the data processing module, and the data processing module sends the processed data to the IoT platform through the real-time transmission module or IoT application server.
  • the data collection module sends the collected data of the IoT device to the data saving module, and the data saving module sends the saved file to the IoT platform or the IoT application server through the non-real-time transmission module.
  • the data acquisition module sends the collected data of the IoT device to the data processing module and the data saving module respectively, and the data processing module sends the processed data to the IoT platform through the real-time transmission module.
  • the data saving module sends the saved file to the IoT platform or the IoT application server through the non-real time transmission module.
  • the data processing module processes the data sent by the data collection module according to the data processing rule;
  • the data processing rule is a rule that is preset in the data processing module or sent by the IoT platform or the IoT application server.
  • the real-time transmission module sends the data processed by the data processing module to the IoT platform or the IoT application server according to the real-time data reporting rule; the real-time data reporting rule is preset in the data processing module or the IoT platform or the IoT The rules delivered by the application server.
  • the non-real-time transmission module sends the file saved by the data saving module to the IoT platform or the IoT application server according to the non-real-time data reporting rule; the non-real-time data reporting rule is preset in the data processing module or sent by the IoT platform or the IoT application server. the rule of.
  • the mode decision module determines the working mode according to the environment information as a mode change rule, and the mode decision module determines to change the working mode when the environment information satisfies the condition of the mode change in the mode change rule.
  • the data collection module requests data from the IoT device or receives data sent by the IoT device according to a data collection rule, where the data collection rule is preset in the IoT gateway or the IoT platform or the Rules issued by the IoT application server.
  • an embodiment of the present invention provides an IoT gateway, including: a processor, a memory, a bus, and a communication interface; wherein, the communication interface is configured to receive data from the IoT device, and through a real-time communication interface and a non-real-time communication interface At least one communication interface sends the processor-processed data or the memory-stored file to the IoT platform or the IoT application server; the memory stores the computer-executed instructions and the data reported by the IoT device stored in the file; the processor passes the bus In connection with the memory and communication interface, the processor executes computer executed instructions stored in the memory to perform the functions of the IoT gateway in the method of the first aspect.
  • the communication interface of the IoT gateway is also used to collect environmental information, and the processor executes computer-executed instructions stored in the memory for mode decision; the modes include real-time mode, non-real-time mode, and dual channel mode.
  • the IoT gateway sends the processor-processed data to the IoT platform or the IoT application server through the real-time communication interface; the IoT gateway sends the storage to the IoT platform or the IoT application server in the memory through the non-real-time communication interface.
  • an embodiment of the present invention provides a method for reporting IoT data, where the method includes that the IoT platform supports receiving data from an IoT gateway in a real-time mode, or a non-real-time mode, or a mode in which the real-time mode and the non-real-time mode are simultaneously turned on.
  • the IoT platform sends a mode change control command to the IoT gateway according to the service requirement or the request of the IoT application server, requesting the IoT gateway to change the data reporting mode.
  • the IoT platform receives the data reported by the IoT gateway in real-time mode through the real-time transmission channel; the IoT platform receives the data reported by the IoT gateway in a non-real-time mode through the non-real-time transmission channel; the real-time transmission channel may be MQTT or A connection established by a protocol such as CoAP; a non-real time channel may be a connection established by a protocol suitable for file transfer such as HTTP or FTP.
  • the IoT platform receives data and files from the IoT gateway through both real-time and non-real-time transport channels.
  • the IoT platform can not only perform real-time data presentation to the IoT application server, but also perform in-depth analysis and mining of data files reported by the IoT gateway to provide more comprehensive and systematic data analysis results to the IoT application server.
  • an embodiment of the present invention provides an IoT platform, including a connection management module, a real-time analysis module, a non-real-time analysis module, and an application enablement module.
  • the connection management module supports real-time transmission channels and non-real-time transmission channels with the IoT gateway, and sends control commands to the IoT gateway.
  • the real-time analysis module supports analysis and processing of data reported by the IoT gateway through the real-time transmission channel, and analyzes and processes the data.
  • the post-data is opened to the IoT application server through the application enablement module;
  • the non-real-time analysis module supports analysis and processing of files uploaded by the IoT gateway through the non-real-time transmission channel, and the analyzed and processed data is opened to the IoT through the application enablement module.
  • the application server; the application enablement module supports opening the interface to the IoT application server or sending the analyzed data of the real-time analysis module or the non-real-time analysis module to the IoT application server.
  • an embodiment of the present invention provides an IoT platform, including: a processor, a memory, a bus, and a communication interface; wherein the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus. While the device is running, the processor executes the computer-executed instructions stored by the memory to cause the IoT platform to perform the method of the fourth aspect above.
  • an embodiment of the present invention provides a system for reporting IoT data, including an IoT device, an IoT platform, and an IoT gateway according to the foregoing aspect.
  • the IoT device is configured to report data to the IoT gateway.
  • the IoT gateway is configured to send to the IoT platform in a real-time mode or a non-real-time mode or a mode in which the real-time mode and the non-real-time mode are simultaneously enabled in the method described in the foregoing method embodiment.
  • Data or file; IoT platform for receiving data or files from the IoT gateway through real-time or non-real-time transmission channels or from both real-time and non-real-time transmission channels.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores instructions, when executed on a computer, causing the computer to perform the foregoing first or fourth aspect Methods.
  • an embodiment of the present invention provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method of the first aspect or the fourth aspect.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a possible IoT gateway according to an embodiment of the present invention.
  • FIG. 3 is a comparison diagram of possible real-time modes and non-real-time modes according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart diagram of a possible method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a possible computer device according to an embodiment of the present invention.
  • FIG. 1 shows a typical networking of the technical solutions provided by the embodiments of the present invention, including an IoT device, an IoT gateway, an IoT platform, and an IoT application server. among them,
  • IoT device refers to a device that has data monitoring or command control functions, or a device that has both data monitoring and command control functions.
  • a temperature sensor that can detect temperature
  • a door magnetic device that can detect whether a door is opened or closed
  • a switch device that can control power on and off
  • CANBus Controller Area Network Bus
  • IoT devices are typically deployed in field domains and are therefore also referred to as end-side devices.
  • the IoT gateway refers to an IoT gateway that can connect multiple IoT devices in an IoT network. It can be deployed in the field with IoT devices, like a building, the same home or the same factory, or deployed in the cloud with the IoT platform.
  • the IoT device can report data to the IoT gateway through a short-range communication protocol, such as WiFi, Bluetooth, ZigBee, Z-Wave, etc.; when the distance between the IoT gateway and the IoT device is long, The IoT device and the IoT gateway can use LPWA (low power wide area) and other protocols suitable for long-distance communication (such as LoRa, NB-IoT, etc.) for communication and data reporting.
  • the IoT gateway receives the data reported by the IoT device, and can also send control commands to the IoT device.
  • the IoT gateway is deployed in the field domain as an example.
  • the IoT gateway and the IoT device are connected and communicated by using a short-range communication protocol.
  • the IoT gateway deployed in the field domain can also be referred to as an end-side IoT gateway or a near-field IoT gateway.
  • the IoT gateway also connects to the IoT platform, and reports the data reported by the sensor to the IoT platform. It also receives the control commands sent to the device by the IoT platform and forwards them to the IoT device for execution.
  • the IoT gateway connects to the IoT platform based on an IP network. It can be a wireless IP network, such as a 2G/3G/4G data network, or a wired IP network such as Cable, xDSL, or optical network.
  • the IoT gateway can also be a mobile device. For example, if the mobile IoT gateway does not have wireless signals in the field, the data of the IoT device is collected and stored on the IoT gateway. After returning to the station, the IoT platform is connected and stored in the IoT gateway. The data on it is reported to the IoT platform.
  • the IoT gateway can also collect the network status information of the IoT gateway through its own environment information collection function or by using an external environmental information collection device, such as the IP network status between the IoT gateway and the IoT platform, the wireless signal strength, and the current IoT gateway. Geographic location information, etc.
  • the IoT gateway in Figure 1 supports two modes of reporting data to the IoT platform, real-time mode and non-real-time mode.
  • the data collected by the data acquisition module is directly reported to the IoT platform through the real-time transmission channel after being processed by the data processing module.
  • the data of the IoT device received by the IoT gateway is filtered in the RAM memory. Report to the IOT platform in seconds or even faster.
  • the real-time transmission channel is an IoT domain instant messaging protocol or a restricted device application protocol between the IoT gateway and the IoT platform, such as MQTT (message queuing telemetry transport) or CoAP (restricted application protocol, Constrained Application Protocol)
  • MQTT messages queuing telemetry transport
  • CoAP restricted application protocol, Constrained Application Protocol
  • the connection channel established by the IoT gateway can be used not only for the IoT gateway to report data to the IoT platform, but also for the IoT gateway to receive control commands issued by the IoT platform.
  • the data collected by the data acquisition module is saved in a file format (such as a file in a binary format or a file in a text format or a file in JSON format or other types of files) on a local disk or a solid state drive or other data.
  • a file format such as a file in a binary format or a file in a text format or a file in JSON format or other types of files
  • files that save data may be compressed; files are reported to the IoT platform through non-real-time transmission channels in minutes or longer.
  • the non-real-time transmission channel is a connection channel established between the IoT gateway and the IoT platform by using a protocol suitable for file transmission, such as HTTP, SFTP, and the like.
  • Real-time mode and non-real-time mode provide two data processing and reporting modes, each of which is suitable for different business and network scenarios.
  • the real-time mode is suitable for business scenarios that require high real-time data processing and service response, and requires a good network connection between the IoT gateway and the IoT platform.
  • the non-real-time mode can be selected, and the IoT gateway can be selected.
  • the collected raw data is completely reported to the IoT platform in the form of a file, which makes the big data analysis of the IoT platform more accurate and comprehensive.
  • the IoT gateway can use the non-real-time mode to save the data locally on the IoT gateway.
  • the file is reported to the IoT platform through the non-real-time transmission channel.
  • the IoT gateway can automatically select or switch data processing and reporting modes between real-time mode and non-real-time mode according to network conditions or service requirements, or according to network conditions and service requirements. For example, in a harsh outdoor operation scenario, when there is no wireless signal, the historical data can be saved in the form of a file on the IoT gateway. When it is returned to a relatively strong signal area, it is uploaded to the IoT platform through a non-real-time transmission channel.
  • the IoT gateway can also switch to real-time mode or non-real-time mode according to the control commands of the IoT platform. For example, in some service scenarios, such as remote fault location, the IoT platform hopes to obtain complete information in order to improve the accuracy of the data analysis of the IoT platform.
  • the IoT platform can issue a control command to the IoT gateway, requesting the IoT gateway to report the data of the historical data IoT device in the form of a file.
  • the IoT gateway can also enable real-time mode and non-real-time mode at the same time. For example, in the area where the network quality is normal, in order to prevent data loss in the real-time transmission channel, the IoT gateway can simultaneously open the non-real-time mode and collect all or part of the data of the IoT device.
  • the IoT platform may have some urgent control commands that need to be sent to the IoT device through the IoT gateway in time, or when the IoT gateway detects an important event or an emergency alarm, it needs to be reported to the IoT platform in real time.
  • the IoT gateway Even if the IoT gateway works in non-real-time mode, the IoT gateway maintains the non-real-time transmission channel while maintaining the normal transmission of the file and ensuring the immediate delivery or reporting of high-priority commands or high-priority data.
  • the real-time transport channel needs to be turned on simultaneously to transfer high-priority commands and data.
  • the working mode in which the real-time mode and the non-real-time mode are simultaneously turned on on the IoT gateway is referred to as a dual channel mode.
  • IoT platform connects the IoT gateway and the IoT application server, supports the IoT device to report data through the IoT gateway, and provides data to the IoT application server for viewing, or allows the IoT application server to send control commands to the IoT device.
  • the IoT platform is generally deployed in a node with a higher position in the IoT network, such as the cloud. In some cases, the IoT platform is also referred to as a cloud platform or a cloud server or a network side server.
  • the IoT platform connects and manages the IoT gateway through the connection management module.
  • the connection management module supports the real-time transmission channel and the non-real-time transmission channel to connect with the IoT gateway.
  • the real-time analysis module corresponds to the real-time mode of the IoT gateway, and the IoT gateway reports through the real-time transmission channel.
  • the data is analyzed and processed by the real-time analysis model;
  • the non-real-time analysis module corresponds to the non-real-time mode of the IoT gateway, and the IoT gateway performs data analysis and processing through the non-real-time analysis module through the file reported by the non-real-time transmission channel;
  • the application enablement module passes the IoT platform.
  • the interface protocol with the IoT application server (such as the RESTful (Representational State Transfer) HTTP protocol) is connected to the IoT application server, and the open interface, such as the Open API (Open Application Interface) form, is given to the IoT.
  • the application server, the IoT application server can issue control commands through the open interface, and can also view data in the IoT platform.
  • the IoT application is a solution software with strong industry attributes based on the IoT platform. Such as smart home, car networking and so on.
  • FIG. 1 only shows a networking architecture in a typical scenario, and a person skilled in the art has the capability to design a flexible and diverse IoT data reporting implementation solution according to the content of the embodiment of the present invention.
  • the IoT gateway can also directly connect to the IoT application server to directly report data to the IoT application server through a real-time transmission channel or a non-real-time transmission channel.
  • the technical solutions provided by the embodiments of the present invention are further introduced based on the networking architecture shown in FIG. 1.
  • the IoT gateway can also use the embodiment of the present invention.
  • the data reporting solution in the report directly reports data to the IoT application server.
  • the IoT gateway can divide the function modules. For example, each function module can be divided for each function, or two or more functions can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 2 is a schematic diagram showing a possible structure of an IoT gateway in an embodiment of the present invention.
  • the IoT gateway 200 includes a data collection module 201, a data storage module 202, a non-real time transmission module 203, a data processing module 204, a real-time transmission module 205, an environment information collection module 206, and a mode decision module 207.
  • the data collection module 201 is configured to connect to the IoT device and collect data from the IoT device, such as sending a data request command to the IoT device and receiving the data reported by the IoT device, or sending a control command to the IoT device to request the IoT device according to the data collection period or a certain period.
  • the rules report data and receive data reported by the IoT device cycle.
  • the embodiment of the present invention does not limit the connection mode and communication protocol between the data collection module 201 and the IoT device, that is, may be a near field protocol suitable for short-distance communication, such as WiFi, Bluetooth, ZigBee, Z-Wave, etc., or may be a wide area.
  • Low-power protocols such as the NB-IoT protocol, may also be other communication protocols or connections that are not mentioned in the embodiments of the present invention.
  • the data collection module 201 collects data from the IoT device according to the data collection rule, and transmits the collected data to the data processing module 204 or/and the data storage module 202 according to the indication of the working mode sent by the mode decision module 207.
  • the data collection module 201 When the indication sent by the mode decision module 207 is in the dual channel mode, the data collection module 201 simultaneously distributes the data of the IoT device to the data processing module 204 and the data saving module 202; when the indication sent by the mode decision module 207 is in the non-real time mode, the data The acquisition module 201 distributes the data of the IoT device to the data saving module 202; when the indication sent by the mode decision module 207 is the real-time mode, the data collection module 201 distributes the data of the IoT device to the data processing module 204.
  • the data saving module 202 is configured to save the data of the IoT device collected by the data collection module 201 in the non-real-time mode or the dual channel mode, and pass the non-real-time transmission module 203 to the IoT according to the non-real-time data reporting rule.
  • the platform reports the file. It should be noted that, in order to ensure the integrity of the data, the data saving module saves all the data of the collected IoT device as a file, but can also save the processed part of the data as a file according to certain data processing rules. .
  • the non-real-time transmission module 203 is configured to establish a file transmission channel with the protocol suitable for file transmission with the IoT platform, and report the file saved by the data storage module 203 to the IoT platform.
  • the non-real-time transmission module 203 can always maintain a file transmission channel with the IoT platform, and upload files to the IoT platform through the channel only in the non-real time mode or the dual channel mode; or when the non-real time mode or the dual channel mode is enabled, That is, when the file sent by the data saving module 202 and needs to be uploaded to the IoT platform is received, the file transmission channel is established with the IoT platform.
  • the data processing module 204 is configured to perform data processing on the data of the IoT device collected by the data collection module 201 in the real-time mode or the dual-channel mode in the mode determination module 207, and perform data processing according to a certain data processing rule, and report the data according to the real-time data.
  • the rule reports the data of the processed IoT device to the IoT platform through the real-time transmission module 205.
  • the real-time transmission module 205 is configured to use the IoT domain instant communication protocol or the restricted device application protocol to establish a real-time transmission channel, report the data processed by the data processing module 204 to the IoT platform, and receive the control issued by the IoT platform. command.
  • the data processed by the data processing module 204 is uploaded to the IoT platform through the real-time transmission channel between the real-time transmission module 205 and the IoT platform, and the control commands issued by the IoT platform are received; in the non-real-time mode.
  • the control command sent by the IoT platform can also be received through the real-time transmission channel between the real-time transmission module 205 and the IoT platform.
  • the control command received by the real-time transmission module 205 for indicating mode switching is forwarded to the mode decision module 207 for processing.
  • the environment information collection module 206 is configured to collect environment information of the location of the IoT gateway, including but not limited to, the IP network status between the IoT gateway and the IoT platform, the wireless signal strength, and the current geographic location information of the IoT gateway.
  • the environment information collecting module 206 needs to be connected to an external environment information collecting device to obtain environment information.
  • the environment information collecting module 206 processes or processes the environment information collected by the external device through the data processing module 204/real-time transmission module 205, or the data storage module 202/non-real-time transmission module 203, or After saving, report it to the IoT platform.
  • the environment information collection module is not a mandatory module. In the absence of the environment information collection module, the gateway can change the working mode according to the mode switching control command of the IoT platform or the IoT application server.
  • the mode decision module 207 is configured to determine the working mode of the IoT gateway according to the environment information collected by the environment information collecting module 206 or the mode switching control command received by the real-time transmission module 205, and whether a mode change is required.
  • the mode decision module 207 instructs the data collection module 201 to operate the current IoT gateway, that is, which module (data processing module 204 or/and data storage module 202) should be sent to the collected IoT device for processing.
  • the function modules of the IoT gateway 200 can perform functions such as data collection, data processing, data storage, and data transmission according to rules preset in the IoT gateway or rules issued by the IoT platform.
  • the rules mentioned here include, but are not limited to, the frequency of data collection, the rules of data processing, the rate or period of data reporting, and the like.
  • Table 1 shows an example of specific rules in real-time mode and non-real-time mode sent to the IoT gateway by the IoT platform in a car networking scenario.
  • the CANID refers to the ID (identification) of the CANBus reported by the vehicle.
  • the data collection module 201 collects data from the IoT device according to the service data collection period in Table 1.
  • the data processing module 204 processes the service data collected by the data collection module 201 according to the data processing rules in the first embodiment, and then sends the data to the real-time transmission module 205, and the real-time transmission module 205 reports the rate to the IoT platform at a reporting rate of X6 seconds.
  • the data saving module 202 saves the service data collected by the data collection module 201 as a file in the GZIP format, and the non-real-time transmission module 203 reports the file to the IoT platform every Y6 hours.
  • the environment information collection module 206 collects the wireless signal quality in a period of X1 milliseconds, and collects the location information in a period of X2 milliseconds.
  • the collected wireless signal data and location information data are reported to the IoT platform at a rate of X4 seconds and X5 seconds respectively through the real-time transmission channel;
  • the IoT gateway is in the non-real-time mode, the collected wireless The signal data and the location information data are respectively saved by the data saving module 202 as a wireless signal file and a location information file, and are reported to the IoT platform by the real-time transmission channel at a rate of Y4 hours and Y5 hours, respectively.
  • the real-time transmission module reports data to the IoT platform at a faster reporting rate than the non-real-time mode, but because the data processing module performs certain filtering and processing on the collected data, The data reported to the IoT platform will have some distortion and data loss compared to the original data collected; in the non-real-time mode, the data saving module saves the collected data as a file format, and does not execute data processing that may lose the original data. The logic will only compress the file. It should be noted that in Table 1, data processing rules other than compression, such as data filtering and filtering, may be set according to business requirements. In this case, the data saved by the data saving module is processed according to the data processing rule. data.
  • Figure 3 shows the effect of the IoT gateway reporting data to the IoT platform in real-time mode or non-real-time mode.
  • the data acquisition module collects data from five transmitters in a certain period, and the data reported by the sensors 1-5 in each cycle are 20, 30, 40, 50, and 60, respectively.
  • the data processing module performs some filtering operations, and filters the original 200 data filters into 50 pieces and reports them to the IoT gateway in time; instead of the real-time mode, the data saving module will all the original 200 data. Save as a file and upload it all to the IoT platform.
  • the IoT gateway can occupy smaller bandwidth and report data to the IoT platform at a faster speed.
  • the IoT gateway reports a longer period of data, but the reported data is more comprehensive.
  • the real-time mode and the non-real-time mode are respectively adapted to different network environments and service scenarios.
  • the IoT gateway needs to flexibly select an appropriate mode according to different scenarios, or according to the IoT platform control commands, according to the requirements of the IoT platform. Switch between the two modes.
  • Figure 4 shows a schematic flow chart of a possible IoT gateway reporting data. The figure assumes that the IoT gateway and the IoT platform are connected by means of a wireless channel, and the IoT platform is deployed in the cloud.
  • Pre-set IoT gateway data processing rule The IoT application server delivers (such as 402 message) data processing rules to the IoT gateway through the IoT platform (such as 401 message) according to the service feature. It includes data processing rules in real-time mode and non-real-time mode. For details, see the example shown in Table 1.
  • Pre-set IoT gateway mode switching rule The IoT application server delivers a mode switching rule (such as 402 message) to the IoT gateway through the IoT platform (such as 401 message) according to the service feature.
  • a mode switching rule such as 402 message
  • the data transmission rate is taken as an example to measure the state of the wireless signal between the IoT gateway and the IoT platform.
  • other measurement indicators such as packet loss rate, signal strength, etc., may be used. The example is not limited.
  • IoT gateway still saves the original data backup
  • the IoT gateway caches the saved file locally, waiting for the signal connection After recovery, upload the file to the IoT platform.
  • the 403a and IoT platforms receive the mode switching rules of the IoT application server, and enable or disable some functions. For example, to support transmission in non-real-time mode, open the IP address and port of the file transfer path.
  • the 404a and IoT platforms send IoT gateway configuration commands to the south. After receiving the command, the IoT gateway records and refreshes the local mode switching rules.
  • the IoT gateway can automatically select or automatically switch the working mode according to the delivered or preset mode switching rules. It can also be forced to switch the working mode according to the control commands sent by the IoT application server or the IoT platform. Different from the automatic switching mode, the IoT gateway will immediately start the working mode in the control command after receiving the control command.
  • the 403b and the IoT platform receive the control command of the IoT application server, and turn on or off some functions according to the working mode required to be opened in the control command. For example, if the control command requires non-real-time mode to be enabled, the IoT platform opens the IP address and port of the file transfer path.
  • the 404b and IoT platforms send control commands to the south. After receiving the command, the IoT gateway works according to the working mode defined in the control command. It should be noted that, according to the data of the IoT device reported by the IoT gateway or the environmental information data collected by the reported IoT gateway, the IoT platform can determine whether the IoT gateway needs to switch the data reporting mode according to the locally set rules, and does not receive the IoT. When the application server requests, the mode switching control command is sent to the IoT gateway.
  • the IoT platform actively requests the IoT gateway to report data in a non-real-time mode or a dual-channel mode, in order to obtain richer and more comprehensive data.
  • the IoT gateway collects data of the sensor according to the data collection rule in Table 1.
  • IoT gateway works in real-time mode
  • the 406a and the IoT gateway process the collected data (including the collected sensor data and the environmental information data) according to the rules of data processing in the real-time mode in Table 1.
  • the simple data processing (such as filtering, merging, summarizing, etc.) on the IoT gateway side ensures the real-time performance of data reporting, and it will not Reporting too large raw data to the IoT platform saves network transmission resources.
  • the IoT gateway directly processes data of the received IoT device in memory, ensuring real-time data processing.
  • the 407a and the IoT gateway report the processed data to the IoT platform according to the data reporting rules in the real-time mode in Table 1.
  • IoT gateway works in non-real time mode
  • the 406b and the IoT gateway save the collected data (including the collected sensor data and environmental information data) on a local disk (such as a solid state hard disk) and save the file format.
  • the data processing logic that may discard the original data is not executed, and generally only the file is compressed. Because there is file format conversion and disk storage, it is not suitable for high-time data reporting requirements, but it ensures the completeness of the data.
  • the 407b and the IoT gateway report the file to the cloud IoT platform through the file transfer protocol.
  • the IoT gateway when the IoT gateway works in the 4-3 real-time mode and the 4-4 non-real-time mode, it also needs to continuously collect environment information, and according to the switching rules in Table 2, it is determined whether the working mode needs to be switched. When the network status satisfies the handover trigger condition in Table 2, the IoT gateway starts the corresponding working mode according to the switching rule.
  • the IoT gateway when the IoT gateway is in the dual channel mode, the IoT gateway simultaneously performs the data processing and reporting processes in the real-time mode and the non-real-time mode described by 406a, 407a, 406b, and 407b.
  • the data collection module 201 in FIG. 2 needs to simultaneously report data to the data processing module 204 and the data storage module 202.
  • the IoT gateway and the IoT platform need to simultaneously open the real-time transmission channel and the non-real-time transmission channel to perform real-time transmission and non-real-time transmission.
  • the cloud-based IoT platform also has real-time analysis and non-real-time analysis modes, corresponding to the real-time mode and non-real-time mode of the IoT gateway, respectively processing the data or files reported by the IoT gateway from the real-time transmission channel and the non-real-time transmission channel.
  • the IoT platform uses real-time analysis to report data to the IoT application server in real time. For example, the IoT platform processes the data reported by the IoT gateway from the real-time transmission channel according to the preset data processing rules, and does not save to the IoT platform database and directly sends it to the IoT. application server.
  • the IoT platform uses non-real-time analysis to save the files uploaded by the IoT gateway through the non-real-time transmission channel to the database, and then uses the big data analysis technology for data mining, and sends the in-depth analyzed data to the IoT application server. It can be seen that real-time analysis focuses on real-time, non-real-time analysis focuses on depth and comprehensive data analysis.
  • the IoT platform reports the data to the IoT application server, so that the IoT application server implements or conducts services based on the reported data.
  • the cloud (IoT platform), the tube (the transmission channel between the IoT platform and the IoT gateway), and the end (IoT gateway) realize the cooperation of the data analysis and the data transmission mode, thereby improving the cooperation of the IoT network. effectiveness.
  • each network element such as an IoT platform, an IoT gateway, etc.
  • each network element includes corresponding hardware structures and/or software modules for performing various functions.
  • the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the IoT gateway can be implemented by the computer device (or system) in FIG.
  • FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
  • Computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
  • the processor 501 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present invention. integrated circuit.
  • CPU general purpose central processing unit
  • ASIC application-specific integrated circuit
  • the processor 501 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
  • computer device 500 can include multiple processors, such as processor 501 and processor 508 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • the processor 501 can implement the function of the data processing module 204 to process the data of the IoT device collected by the communication interface 504; the processor 508 can implement the function of the data saving module 202, and the communication interface 504
  • the collected data of the IoT device is stored in a file in the form of a file; it is conceivable that the processor 501 or 508 or other processor can also implement the functions of the mode decision module.
  • Communication bus 502 can include a path for communicating information between the components described above.
  • Communication interface 504 using any type of transceiver, for communicating with an IoT device or an IoT platform or an IoT application server or communication network, such as Ethernet, radio access network (RAN), wireless local area network (wireless) Local area networks, WLAN), etc.
  • the communication interface can be subdivided into real-time interfaces, non-real-time interfaces, device interfaces and other types of interfaces.
  • the real-time interface is used to report the processed data to the IoT platform or the IoT application server in the real-time or dual-channel mode; the non-real-time interface is used to the IoT platform or the IoT application server in the non-real-time or dual-channel mode.
  • the file stored in the storage is reported; the device interface is used to communicate with other devices, such as communicating with the IoT device, to collect data of the IoT device.
  • the IoT gateway may also include an information collection interface, such as a GPS, a Beidou satellite interface, and the like.
  • the memory 503 can be a random access memory (RAM) or other type of dynamic access storage device that can store information and instructions, or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital general purpose). Optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 503 can be used to store files in a non-real-time mode, and can also be used to store data processing rules in real-time mode, data reporting rules in real-time or non-real-time mode, data collection rules, and the like.
  • the memory 503 is also used to store application code that implements the inventive arrangements and is controlled by the processor 501 for execution.
  • the processor 501 is configured to execute application code stored in the memory 503 to implement the functions in the method of the present patent.
  • computer device 500 may also include an output device 505 and an input device 506 as an embodiment.
  • Output device 505 is in communication with processor 501 and can display information in a variety of ways.
  • the output device 505 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait.
  • Input device 506 is in communication with processor 501 and can accept user input in a variety of ways.
  • input device 506 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
  • the computer device 500 described above can be a general purpose computer device or a special purpose computer device.
  • the computer device 200 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or have FIG. A device of similar structure.
  • PDA personal digital assistant
  • Embodiments of the invention do not limit the type of computer device 500.
  • the IoT gateway 200 of FIG. 2 can take the form shown in FIG.
  • the data processing module 204 in FIG. 2 can be implemented by calling the code in the memory 503 by the processor 501 in FIG. 5.
  • the data saving module 202 in FIG. 2 can call the memory through the processor 501 in FIG.
  • the storage resource in 503 is implemented.
  • the real-time transmission module 205 and the non-real-time transmission module 203 in FIG. 2 can call the code in the memory 503 through the processor 501 in FIG. 5 and implement the communication interface 504.
  • the embodiment of the present invention does not limit the specific implementation form.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Abstract

The present invention relates to the field of IoT (Internet of things), and particularly relates to a data reporting method, apparatus and system in the field of IoT. In the IoT data reporting method, an IoT gateway supports three working modes for reporting data to an IoT platform or an IoT application server, comprising a real-time mode, a non-real-time mode and a mode with the real-time mode and the non-real-time mode simultaneously enabled. The IoT gateway flexibly changes, according to environment information (such as the signal strength of a wireless network) or a control instruction of the IoT platform or the IoT application server, the mode for reporting the data, so as to ensure the IoT gateway in order to satisfy, under different network environments or different service scenarios, the requirements of the IoT platform or the IoT application server for service data.

Description

一种IoT数据上报的方法、装置和系统Method, device and system for reporting IoT data
本申请要求于2017年3月30日提交中国专利局、申请号为201710204276.5、发明名称为“一种IoT数据上报的方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on March 30, 2017, filed on Jan. 30, 2011, filed Jan. In this application.
技术领域Technical field
本发明涉及IoT(Internet of things,物联网)领域,尤其涉及一种IoT领域的数据上报方法、装置和系统。The present invention relates to the field of Internet of Things (IoT), and more particularly to a data reporting method, apparatus, and system for the IoT field.
背景技术Background technique
在IoT网络中,部署在近场网络中的多个传感器通过近场协议,如ZigBee,Z-Wave等,接入IoT网关,IoT网关接收传感器上报的数据,并将数据上报给IoT平台。IoT平台连接并管理多个IoT网关,并将接收的数据开放给IoT应用服务器,如车联网服务器,智慧家庭服务器,智能医疗服务器等,以使IoT应用服务器提供各类丰富的IoT服务,如车队管理,智能家居,老年看护等。由于部署在近场网络的大量传感器会产生海量的数据,为减少海量数据对传输网络和IoT平台的性能冲击,IoT网关会根据预置的数据处理规则或数据过滤规则,对采集到的数据进行预处理,然后将处理后的部分数据上报IoT平台,比如,IoT网关对传感器上报的数据进行过滤,只向IoT平台上报数值异常的数据。然而,IoT网关这种单一的数据上报模式,却无法满足不同场景下的诉求,比如,正常场景下,IoT平台可能只需要监测异常数据,而远程紧急故障定位场景下,IoT平台就需要传感器上报的所有数据;又比如,由于IoT网关对数据预处理后会即时向IoT平台上报数据,当IoT网关与IoT平台间的网络中断时,会造成大量的数据丢失。因此,需要一种灵活的、自适应的IoT数据上报方案,以满足不同业务场景和网络环境的需要。In the IoT network, multiple sensors deployed in the near-field network access the IoT gateway through the near-field protocol, such as ZigBee, Z-Wave, etc., and the IoT gateway receives the data reported by the sensor and reports the data to the IoT platform. The IoT platform connects and manages multiple IoT gateways and opens the received data to IoT application servers, such as car network servers, smart home servers, smart medical servers, etc., to enable IoT application servers to provide a variety of rich IoT services, such as fleets. Management, smart home, old-age care, etc. Since a large number of sensors deployed in the near-field network generate a large amount of data, in order to reduce the performance impact of the massive data on the transmission network and the IoT platform, the IoT gateway performs the collected data according to preset data processing rules or data filtering rules. Pre-processing, and then report the processed data to the IoT platform. For example, the IoT gateway filters the data reported by the sensor and reports only the abnormal data to the IoT platform. However, the single data reporting mode of the IoT gateway cannot meet the requirements in different scenarios. For example, in the normal scenario, the IoT platform may only need to monitor abnormal data, and in the remote emergency fault location scenario, the IoT platform needs to report the sensor. All data; for example, because the IoT gateway will report data to the IoT platform immediately after pre-processing the data, when the network between the IoT gateway and the IoT platform is interrupted, a large amount of data will be lost. Therefore, a flexible and adaptive IoT data reporting solution is needed to meet the needs of different business scenarios and network environments.
发明内容Summary of the invention
本发明实施例提供了一种IoT数据上报方法,装置和系统,以满足不同业务场景和网络环境下,IoT平台或IoT应用服务器对业务数据的需求。The embodiment of the invention provides an IoT data reporting method, device and system to meet the requirements of the IoT platform or the IoT application server for service data in different service scenarios and network environments.
一方面,本发明实施例提供一种IoT数据上报的方法,该方法包括,IoT网关支持三种向IoT平台或IoT应用服务器上报数据的工作模式,包括实时模式,非实时模式,实时模式和非实时模式同时开启的模式。IoT网关根据环境信息(如无线网络信号强度),或IoT平台或IoT应用服务器的控制命令,灵活地变更数据上报模式,以保证IoT网关在不 同的网络环境下或不同的业务场景下,满足IoT平台或IoT应用服务器对业务数据的需求。In one aspect, the embodiment of the present invention provides a method for reporting IoT data, where the method includes that the IoT gateway supports three working modes for reporting data to the IoT platform or the IoT application server, including real-time mode, non-real-time mode, real-time mode, and non- The mode in which the real-time mode is simultaneously turned on. The IoT gateway flexibly changes the data reporting mode according to the environmental information (such as the strength of the wireless network signal) or the control commands of the IoT platform or the IoT application server to ensure that the IoT gateway satisfies the IoT in different network environments or in different service scenarios. The need for business data from the platform or IoT application server.
在一种可能的设计中,IoT网关从IoT设备采集数据,IoT设备包括具有数据监测或命令控制功能的设备,或同时具有数据监测和命令控制功能的设备,如传感器,控制器等;IoT网关以任一工作模式向IoT平台或IoT应用服务器上报数据;当环境信息发生变化,且环境信息满足模式变更规则时,IoT网关变更工作模式,以符合当前环境的工作模式向IoT平台或IoT应用服务器上报数据。In one possible design, the IoT gateway collects data from the IoT device, which includes devices with data monitoring or command control functions, or devices with both data monitoring and command control functions, such as sensors, controllers, etc.; IoT gateway The data is reported to the IoT platform or the IoT application server in any working mode; when the environmental information changes and the environmental information meets the mode change rule, the IoT gateway changes the working mode to conform to the working mode of the current environment to the IoT platform or the IoT application server. Report data.
在一种可能的设计中,IoT网关从IoT设备采集数据,IoT设备包括具有数据监测或命令控制功能的设备,或同时具有数据监测和命令控制功能的设备,如传感器,控制器等;IoT网关以任一工作模式向IoT平台或IoT应用服务器上报数据;当上报的数据无法满足IoT平台或IoT应用服务器的业务场景需求时,IoT平台或IoT应用服务器向IoT网关下发变更工作模式的控制命令,IoT网关根据控制命令变更工作模式,以满足业务场景的需求。In one possible design, the IoT gateway collects data from the IoT device, which includes devices with data monitoring or command control functions, or devices with both data monitoring and command control functions, such as sensors, controllers, etc.; IoT gateway The data is reported to the IoT platform or the IoT application server in any working mode. When the reported data cannot meet the service scenario requirements of the IoT platform or the IoT application server, the IoT platform or the IoT application server sends a control command to change the working mode to the IoT gateway. The IoT gateway changes the working mode according to the control command to meet the needs of the business scenario.
在一种可能的设计中,IoT网关在实时模式下,向IoT平台或IoT应用服务器上报的数据,为IoT网关根据数据处理规则对收到的IoT设备的数据进行处理后的数据,数据处理规则可以是预置在IoT网关中的,也可以是IoT平台或IoT应用服务器下发的。IoT平台或IoT应用服务器根据业务需求在IoT网关设置数据处理规则,可以在IoT网关上报数据的实时性和IoT网关上报数据的数据量之间取得更好的平衡。实时模式下,IoT网关与IoT平台或IoT应用服务器间的数据传输采用实时传输通道进行传输,实时传输通道可以是采用MQTT或CoAP等协议建立的连接。In a possible design, the data reported by the IoT gateway to the IoT platform or the IoT application server in the real-time mode is the data processed by the IoT gateway according to the data processing rule for the received IoT device data, and the data processing rule. It can be preset in the IoT gateway, or it can be delivered by the IoT platform or the IoT application server. The IoT platform or the IoT application server sets the data processing rules on the IoT gateway according to the service requirements, and can achieve a better balance between the real-time performance of the data reported by the IoT gateway and the data volume reported by the IoT gateway. In real-time mode, the data transmission between the IoT gateway and the IoT platform or the IoT application server is transmitted by using a real-time transmission channel, and the real-time transmission channel may be a connection established by a protocol such as MQTT or CoAP.
在一种可能的设计中,IoT网关在实时模式下,根据预置在IoT网关中,或IoT平台或IoT应用服务器下发的实时数据上报规则上报数据。实时数据上报规则中包含数据上报周期,上报频率等规则,以满足IoT平台或IoT应用服务器对业务数据的需求。In a possible design, the IoT gateway reports the data in real-time mode according to the real-time data reporting rule that is preset in the IoT gateway or the IoT platform or the IoT application server. The real-time data reporting rules include data reporting periods and reporting frequency rules to meet the needs of the IoT platform or the IoT application server for business data.
在一种可能的设计中,IoT网关在非实时模式下,将收到的IoT设备的数据保存为文件格式,然后将文件上报给IoT平台或IoT应用服务器。这种将数据保存为文件的方式,保证了数据的完整性。非实时模式下,IoT网关与IoT平台或IoT应用服务器间的文件传输采用非实时传输通道进行传输,非实时传输通道可以是采用更适合文件传输的HTTP,FTP等协议建立的连接。In a possible design, the IoT gateway saves the data of the received IoT device to a file format in non-real-time mode, and then reports the file to the IoT platform or the IoT application server. This way of saving data as a file ensures data integrity. In non-real-time mode, the file transfer between the IoT gateway and the IoT platform or the IoT application server is transmitted by using a non-real-time transmission channel, and the non-real-time transmission channel may be a connection established by a protocol such as HTTP or FTP, which is more suitable for file transmission.
在一种可能的设计中,IoT网关在非实时模式下,根据预置在IoT网关中,或IoT平台或IoT应用服务器下发的非实时数据上报规则上报保存IoT设备数据的文件。非实时数据上报规则中包含文件上报周期,上报频率等规则,以满足IoT平台或IoT应用服务器对业务数据的需求。In a possible design, the IoT gateway reports the file storing the IoT device data in the non-real-time mode according to the non-real-time data reporting rule that is preset in the IoT gateway or the IoT platform or the IoT application server. The non-real-time data reporting rules include rules such as file reporting period and reporting frequency to meet the requirements of the IoT platform or the IoT application server for service data.
在一种可能的设计中,IoT网关在非实时模式下,采用非实时传输通道向IoT平台或IoT应用服务器上报数据,同时采用实时传输通道接收IoT平台或IoT应用服务器下发的控制命令。In a possible design, the IoT gateway uses a non-real-time transmission channel to report data to the IoT platform or the IoT application server in a non-real-time mode, and uses a real-time transmission channel to receive control commands issued by the IoT platform or the IoT application server.
在一种可能的设计中,模式变更规则为预置在所述IoT网关中的规则,或所述IoT平台或所述IoT应用服务器下发给所述IoT网关的规则,模式变更规则中包含触发所述IoT网关变更模式的环境信息,IoT网关可以独立或通过其它设备采集环境信息。In a possible design, the mode change rule is a rule preset in the IoT gateway, or a rule sent by the IoT platform or the IoT application server to the IoT gateway, and the mode change rule includes a trigger. The IoT gateway changes the environment information of the mode, and the IoT gateway can collect environmental information independently or through other devices.
在一种可能的设计中,IoT网关根据数据采集规则从IoT设备采集数据,数据采集规 则可以是本地预置的,或IoT平台下发的,或IoT应用服务器下发的。In a possible design, the IoT gateway collects data from the IoT device according to the data collection rules. The data collection rule can be locally preset, or sent by the IoT platform, or sent by the IoT application server.
第二方面,本发明实施例提供一种IoT网关设备,该IoT网关具有实现上述数据上报方法中IoT网关的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an embodiment of the present invention provides an IoT gateway device, where the IoT gateway has the function of implementing an IoT gateway in the foregoing data reporting method. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
在一种可能的设计中,IoT网关包括数据采集模块,数据处理模块,数据保存模块,实时传输模块,非实时传输模块和模式判决模块。数据采集模块,用于连接IoT设备并接收IoT设备上报的数据,并根据模式判决模块的指示,向数据处理模块或数据保存模块发送IoT设备上报的数据,或同时向数据处理模块和数据保存模块发送IoT设备上报的数据。数据处理模块,用于接收并处理数据采集模块发送的数据,并将处理后的数据发送给实时传输模块。数据保存模块,用于接收数据采集模块发送的数据,将数据保存为文件,并将保存的文件发送给非实时传输模块。实时传输模块,用于接收数据处理模块处理后的数据,并将经数据处理模块处理后的数据发送给IoT平台或IoT应用服务器;还用于接收IoT平台或IoT应用服务器的控制命令。非实时传输模块,用于接收数据保存模块保存的文件,并将文件发送给IoT平台或IoT应用服务器。模式判决模块,根据实时传输模块收到的模式切换控制命令,判决IoT网关的工作模式,并指示数据处理模块向数据处理模块或数据保存模块发送数据,或同时向数据处理模块和数据保存模块发送数据。In one possible design, the IoT gateway includes a data acquisition module, a data processing module, a data storage module, a real-time transmission module, a non-real-time transmission module, and a mode decision module. The data acquisition module is configured to connect the IoT device and receive the data reported by the IoT device, and send the data reported by the IoT device to the data processing module or the data storage module according to the instruction of the mode decision module, or simultaneously send the data to the data processing module and the data saving module. Send the data reported by the IoT device. The data processing module is configured to receive and process data sent by the data acquisition module, and send the processed data to the real-time transmission module. The data saving module is configured to receive data sent by the data collection module, save the data as a file, and send the saved file to the non-real-time transmission module. The real-time transmission module is configured to receive data processed by the data processing module, and send the data processed by the data processing module to the IoT platform or the IoT application server; and also receive the control command of the IoT platform or the IoT application server. The non-real-time transmission module is configured to receive the file saved by the data saving module and send the file to the IoT platform or the IoT application server. The mode decision module determines the working mode of the IoT gateway according to the mode switching control command received by the real-time transmission module, and instructs the data processing module to send data to the data processing module or the data saving module, or simultaneously sends the data to the data processing module and the data saving module. data.
在一种可能的设计中,IoT网关除了包含数据采集模块,数据处理模块,数据保存模块,实时传输模块,非实时传输模块和模式判决模块,还包含环境信息采集模块,用于采集IoT网关当前的环境信息。非实时传输模块根据环境信息采集模块采集的环境信息,判决IoT网关的工作模式,并指示数据处理模块向数据处理模块或数据保存模块发送数据,或同时向数据处理模块和数据保存模块发送数据。In a possible design, the IoT gateway includes a data acquisition module, a data processing module, a data storage module, a real-time transmission module, a non-real-time transmission module and a mode decision module, and an environment information collection module for collecting the current IoT gateway. Environmental information. The non-real-time transmission module determines the working mode of the IoT gateway according to the environmental information collected by the environment information collecting module, and instructs the data processing module to send data to the data processing module or the data saving module, or simultaneously sends data to the data processing module and the data saving module.
在一种可能的设计中,实时模式下,数据采集模块将采集到的IoT设备的数据发送给数据处理模块,数据处理模块将处理后的数据通过所述实时传输模块发送给所述IoT平台或IoT应用服务器。非实时模式下,数据采集模块将采集到的IoT设备的数据发送给数据保存模块,数据保存模块将保存的文件通过非实时传输模块发送给所述IoT平台或IoT应用服务器。实时模式和非实时模式同时开启的模式下,数据采集模块将采集到的IoT设备的数据分别发送给数据处理模块和数据保存模块,数据处理模块将处理后的数据通过实时传输模块发送给IoT平台或IoT应用服务器,数据保存模块将保存的文件通过非实时传输模块发送给IoT平台或IoT应用服务器。In a possible design, in the real-time mode, the data acquisition module sends the collected data of the IoT device to the data processing module, and the data processing module sends the processed data to the IoT platform through the real-time transmission module or IoT application server. In the non-real-time mode, the data collection module sends the collected data of the IoT device to the data saving module, and the data saving module sends the saved file to the IoT platform or the IoT application server through the non-real-time transmission module. In the mode in which the real-time mode and the non-real-time mode are simultaneously turned on, the data acquisition module sends the collected data of the IoT device to the data processing module and the data saving module respectively, and the data processing module sends the processed data to the IoT platform through the real-time transmission module. Or the IoT application server, the data saving module sends the saved file to the IoT platform or the IoT application server through the non-real time transmission module.
在一种可能的设计中,数据处理模块根据数据处理规则对数据采集模块发送的数据进行处理;数据处理规则为预置在数据处理模块中的或IoT平台或IoT应用服务器下发的规则。In a possible design, the data processing module processes the data sent by the data collection module according to the data processing rule; the data processing rule is a rule that is preset in the data processing module or sent by the IoT platform or the IoT application server.
在一种可能的设计中,实时传输模块根据实时数据上报规则向IoT平台或IoT应用服务器发送数据处理模块处理后的数据;实时数据上报规则为预置在数据处理模块中的或IoT平台或IoT应用服务器下发的规则。非实时传输模块根据非实时数据上报规则向IoT平台或IoT应用服务器发送数据保存模块保存的文件;非实时数据上报规则为预置在所述数据处理模块中的或IoT平台或IoT应用服务器下发的规则。In a possible design, the real-time transmission module sends the data processed by the data processing module to the IoT platform or the IoT application server according to the real-time data reporting rule; the real-time data reporting rule is preset in the data processing module or the IoT platform or the IoT The rules delivered by the application server. The non-real-time transmission module sends the file saved by the data saving module to the IoT platform or the IoT application server according to the non-real-time data reporting rule; the non-real-time data reporting rule is preset in the data processing module or sent by the IoT platform or the IoT application server. the rule of.
在一种可能的设计中,模式判决模块根据环境信息判决工作模式的依据为模式变更规 则,模式判决模块判断所述环境信息满足模式变更规则中变更模式的条件时,决定变更工作模式。In a possible design, the mode decision module determines the working mode according to the environment information as a mode change rule, and the mode decision module determines to change the working mode when the environment information satisfies the condition of the mode change in the mode change rule.
在一种可能的设计中,数据采集模块根据数据采集规则从IoT设备请求数据或接收IoT设备发送的数据,该数据采集规则为预置在所述IoT网关中的或所述IoT平台或所述IoT应用服务器下发的规则。In a possible design, the data collection module requests data from the IoT device or receives data sent by the IoT device according to a data collection rule, where the data collection rule is preset in the IoT gateway or the IoT platform or the Rules issued by the IoT application server.
第三方面,本发明的实施例提供一种IoT网关,包括:处理器、存储器、总线和通信接口;其中,通信接口,用于从IoT设备接收数据,并通过实时通信接口和非实时通信接口中至少一个通信接口向IoT平台或IoT应用服务器发送经过处理器处理的数据或存储器存储的文件;存储器,用于存储计算机执行指令和以文件形式存储的IoT设备上报的数据;处理器,通过总线与存储器和通信接口连接,处理器执行存储器中存储的计算机执行指令,以完成第一方面所述方法中IoT网关的功能。In a third aspect, an embodiment of the present invention provides an IoT gateway, including: a processor, a memory, a bus, and a communication interface; wherein, the communication interface is configured to receive data from the IoT device, and through a real-time communication interface and a non-real-time communication interface At least one communication interface sends the processor-processed data or the memory-stored file to the IoT platform or the IoT application server; the memory stores the computer-executed instructions and the data reported by the IoT device stored in the file; the processor passes the bus In connection with the memory and communication interface, the processor executes computer executed instructions stored in the memory to perform the functions of the IoT gateway in the method of the first aspect.
在一种可能的设计中,IoT网关的通信接口还用于采集环境信息,处理器执行存储器中存储的计算机执行指令,以进行模式判决;模式包括实时模式,非实时模式和双通道模式。In one possible design, the communication interface of the IoT gateway is also used to collect environmental information, and the processor executes computer-executed instructions stored in the memory for mode decision; the modes include real-time mode, non-real-time mode, and dual channel mode.
在一种可能的设计中,IoT网关通过实时通信接口向IoT平台或IoT应用服务器发送经过处理器处理的数据;IoT网关通过所述非实时通信接口向IoT平台或IoT应用服务器发送存储在存储器中的文件。In a possible design, the IoT gateway sends the processor-processed data to the IoT platform or the IoT application server through the real-time communication interface; the IoT gateway sends the storage to the IoT platform or the IoT application server in the memory through the non-real-time communication interface. document.
第四方面,本发明实施例提供一种IoT数据上报的方法,该方法包括,IoT平台支持以实时模式,或非实时模式,或实时模式和非实时模式同时开启的模式从IoT网关接收数据。IoT平台根据业务需求或IoT应用服务器的请求,向IoT网关发送模式变更控制命令,请求IoT网关变更数据上报模式。In a fourth aspect, an embodiment of the present invention provides a method for reporting IoT data, where the method includes that the IoT platform supports receiving data from an IoT gateway in a real-time mode, or a non-real-time mode, or a mode in which the real-time mode and the non-real-time mode are simultaneously turned on. The IoT platform sends a mode change control command to the IoT gateway according to the service requirement or the request of the IoT application server, requesting the IoT gateway to change the data reporting mode.
在一种可能的设计中,IoT平台通过实时传输通道接收IoT网关以实时模式上报的数据;IoT平台通过非实时传输通道接收IoT网关以非实时模式上报的数据;实时传输通道可以是采用MQTT或CoAP等协议建立的连接;非实时通道可以是采用HTTP,FTP等适合文件传输的协议建立的连接。In a possible design, the IoT platform receives the data reported by the IoT gateway in real-time mode through the real-time transmission channel; the IoT platform receives the data reported by the IoT gateway in a non-real-time mode through the non-real-time transmission channel; the real-time transmission channel may be MQTT or A connection established by a protocol such as CoAP; a non-real time channel may be a connection established by a protocol suitable for file transfer such as HTTP or FTP.
在一种可能的设计中,IoT平台同时通过实时传输通道和非实时传输通道从IoT网关接收数据和文件。IoT平台不仅可以向IoT应用服务器进行实时数据呈现,还可以对IoT网关上报的数据文件进行深度分析和挖掘,向IoT应用服务器提供更为全面和系统的数据分析结果。In one possible design, the IoT platform receives data and files from the IoT gateway through both real-time and non-real-time transport channels. The IoT platform can not only perform real-time data presentation to the IoT application server, but also perform in-depth analysis and mining of data files reported by the IoT gateway to provide more comprehensive and systematic data analysis results to the IoT application server.
第五方面,本发明实施例提供一种IoT平台,包括连接管理模块,实时分析模块,非实时分析模块,应用使能模块。其中连接管理模块支持与IoT网关建立实时传输通道和非实时传输通道,并向IoT网关下发控制命令;实时分析模块支持对IoT网关通过实时传输通道上报的数据进行分析、处理,并将分析处理后的数据通过应用使能模块开放给IoT应用服务器;非实时分析模块支持对IoT网关通过非实时传输通道上传的文件进行分析和处理,并将分析处理后的数据通过应用使能模块开放给IoT应用服务器;应用使能模块支持向IoT应用服务器开放接口或向IoT应用服务器发送实时分析模块或非实时分析模块分析后的数据。In a fifth aspect, an embodiment of the present invention provides an IoT platform, including a connection management module, a real-time analysis module, a non-real-time analysis module, and an application enablement module. The connection management module supports real-time transmission channels and non-real-time transmission channels with the IoT gateway, and sends control commands to the IoT gateway. The real-time analysis module supports analysis and processing of data reported by the IoT gateway through the real-time transmission channel, and analyzes and processes the data. The post-data is opened to the IoT application server through the application enablement module; the non-real-time analysis module supports analysis and processing of files uploaded by the IoT gateway through the non-real-time transmission channel, and the analyzed and processed data is opened to the IoT through the application enablement module. The application server; the application enablement module supports opening the interface to the IoT application server or sending the analyzed data of the real-time analysis module or the non-real-time analysis module to the IoT application server.
第六方面,本发明实施例提供一种IoT平台,包括:处理器、存储器、总线和通信接 口;其中,该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当该设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使该IoT平台执行如上述第四方面中的方法。In a sixth aspect, an embodiment of the present invention provides an IoT platform, including: a processor, a memory, a bus, and a communication interface; wherein the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus. While the device is running, the processor executes the computer-executed instructions stored by the memory to cause the IoT platform to perform the method of the fourth aspect above.
第七方面,本发明实施例提供一种IoT数据上报的系统,包括IoT设备,IoT平台和上述方面所述的IoT网关。其中,IoT设备用于向IoT网关上报数据;IoT网关,用于以上述方法实施例中所述的方法,通过实时模式或非实时模式或实时模式和非实时模式同时开启的模式向IoT平台发送数据或文件;IoT平台,用于通过实时传输通道或非实时传输通道或同时从实时和非实时传输通道从IoT网关接收数据或文件。In a seventh aspect, an embodiment of the present invention provides a system for reporting IoT data, including an IoT device, an IoT platform, and an IoT gateway according to the foregoing aspect. The IoT device is configured to report data to the IoT gateway. The IoT gateway is configured to send to the IoT platform in a real-time mode or a non-real-time mode or a mode in which the real-time mode and the non-real-time mode are simultaneously enabled in the method described in the foregoing method embodiment. Data or file; IoT platform for receiving data or files from the IoT gateway through real-time or non-real-time transmission channels or from both real-time and non-real-time transmission channels.
第八方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第四方面所述的方法。In an eighth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores instructions, when executed on a computer, causing the computer to perform the foregoing first or fourth aspect Methods.
第九方面,本发明实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第四方面所述的方法。In a ninth aspect, an embodiment of the present invention provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method of the first aspect or the fourth aspect.
附图说明DRAWINGS
图1所示为本发明实施例提供的一种可能的系统架构图;FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present invention;
图2所示为本发明实施例提供的一种可能的IoT网关结构示意图;2 is a schematic structural diagram of a possible IoT gateway according to an embodiment of the present invention;
图3所示为本发明实施例提供的一种可能的实时模式和非实时模式效果对比图;3 is a comparison diagram of possible real-time modes and non-real-time modes according to an embodiment of the present invention;
图4所示为本发明实施例提供的一种可能的方法流程示意图;FIG. 4 is a schematic flowchart diagram of a possible method according to an embodiment of the present invention;
图5所示为本发明实施例提供的一种可能的计算机设备示意图。FIG. 5 is a schematic diagram of a possible computer device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
图1给出了本发明实施例所提供技术方案的一种典型组网,包括IoT设备,IoT网关,IoT平台和IoT应用服务器。其中,FIG. 1 shows a typical networking of the technical solutions provided by the embodiments of the present invention, including an IoT device, an IoT gateway, an IoT platform, and an IoT application server. among them,
IoT设备,指具有数据监测或命令控制功能的设备,或同时具有数据监测和命令控制功能的设备。例如可检测温度的温度传感器,可检测门打开或关闭的门磁设备,可控制电源通断的开关设备,汽车或工业领域的CANBus(Controller Area Network Bus,控制单元局域网总线)设备等。IoT设备一般部署在现场域(field domain),因此也被称为端侧设备。IoT device refers to a device that has data monitoring or command control functions, or a device that has both data monitoring and command control functions. For example, a temperature sensor that can detect temperature, a door magnetic device that can detect whether a door is opened or closed, a switch device that can control power on and off, a CANBus (Controller Area Network Bus) device in an automobile or industrial field, and the like. IoT devices are typically deployed in field domains and are therefore also referred to as end-side devices.
IoT网关,指IoT网络中可以连接多个IoT设备的IoT网关,可以和IoT设备部署在现场域,如同一个楼,同一个家庭或同一个工厂等场所,也可以和IoT平台部署在云端。当IoT网关和IoT设备的距离较近时,IoT设备可以通过短距离通信协议向IoT网关上报数据,如WiFi,蓝牙,ZigBee,Z-Wave等;当IoT网关和IoT设备的距离较远时,IoT设备和IoT网关间可以采用LPWA(low power wide area,低功耗广域)等适合较长距离通信的协议(如LoRa,NB-IoT等)进行通信和数据上报。IoT网关接收IoT设备上报的数据, 也可以给IoT设备下发控制命令。图1中以IoT网关部署在现场域为例,IoT网关和IoT设备间采用短距通信协议连接和通信。部署于现场域的IoT网关也可以被称为端侧IoT网关或近场IoT网关。IoT网关同时连接IoT平台,将传感器上报的数据上报给IoT平台,也接收IoT平台下发给设备的控制命令,并转发给IoT设备执行。IoT网关连接IoT平台一般基于IP网络,可以是无线的IP网络,如2G/3G/4G数据网络,也可以是有线的IP网络,如Cable,xDSL,光纤网络等。IoT网关还可以是移动的设备,比如移动IoT网关在野外没有无线信号的环境下,采集IoT设备的数据后,保存在IoT网关上,待回到驻地后再连接IoT平台,将存储在IoT网关上的数据上报到IoT平台。IoT网关还可以通过自身的环境信息采集功能或借助外部的环境信息采集设备采集IoT网关当前所处的网络状态信息,比如IoT网关和IoT平台间的IP网络状态,无线信号强度,IoT网关当前的地理位置信息等。The IoT gateway refers to an IoT gateway that can connect multiple IoT devices in an IoT network. It can be deployed in the field with IoT devices, like a building, the same home or the same factory, or deployed in the cloud with the IoT platform. When the distance between the IoT gateway and the IoT device is relatively close, the IoT device can report data to the IoT gateway through a short-range communication protocol, such as WiFi, Bluetooth, ZigBee, Z-Wave, etc.; when the distance between the IoT gateway and the IoT device is long, The IoT device and the IoT gateway can use LPWA (low power wide area) and other protocols suitable for long-distance communication (such as LoRa, NB-IoT, etc.) for communication and data reporting. The IoT gateway receives the data reported by the IoT device, and can also send control commands to the IoT device. In Figure 1, the IoT gateway is deployed in the field domain as an example. The IoT gateway and the IoT device are connected and communicated by using a short-range communication protocol. The IoT gateway deployed in the field domain can also be referred to as an end-side IoT gateway or a near-field IoT gateway. The IoT gateway also connects to the IoT platform, and reports the data reported by the sensor to the IoT platform. It also receives the control commands sent to the device by the IoT platform and forwards them to the IoT device for execution. The IoT gateway connects to the IoT platform based on an IP network. It can be a wireless IP network, such as a 2G/3G/4G data network, or a wired IP network such as Cable, xDSL, or optical network. The IoT gateway can also be a mobile device. For example, if the mobile IoT gateway does not have wireless signals in the field, the data of the IoT device is collected and stored on the IoT gateway. After returning to the station, the IoT platform is connected and stored in the IoT gateway. The data on it is reported to the IoT platform. The IoT gateway can also collect the network status information of the IoT gateway through its own environment information collection function or by using an external environmental information collection device, such as the IP network status between the IoT gateway and the IoT platform, the wireless signal strength, and the current IoT gateway. Geographic location information, etc.
图1中的IoT网关支持两种向IoT平台上报数据的模式,即实时模式和非实时模式。The IoT gateway in Figure 1 supports two modes of reporting data to the IoT platform, real-time mode and non-real-time mode.
实时模式下,数据采集模块采集到的数据,经过数据处理模块的处理后,直接通过实时传输通道上报IoT平台,如IoT网关将收到的IoT设备的数据,在RAM内存中进行过滤处理后,以秒级甚至更快的速度上报IOT平台。实时传输通道为IoT网关和IoT平台间采用IoT领域的即时通信协议或受限设备应用协议,如MQTT(消息队列遥测传输协议,message queuing telemetry transport)或CoAP(受限制的应用协议,Constrained Application Protocol)等,而建立的连接通道,不仅可以用于IoT网关向IoT平台上报数据,还可以用于IoT网关接收IoT平台下发的控制命令。In real-time mode, the data collected by the data acquisition module is directly reported to the IoT platform through the real-time transmission channel after being processed by the data processing module. For example, the data of the IoT device received by the IoT gateway is filtered in the RAM memory. Report to the IOT platform in seconds or even faster. The real-time transmission channel is an IoT domain instant messaging protocol or a restricted device application protocol between the IoT gateway and the IoT platform, such as MQTT (message queuing telemetry transport) or CoAP (restricted application protocol, Constrained Application Protocol) The connection channel established by the IoT gateway can be used not only for the IoT gateway to report data to the IoT platform, but also for the IoT gateway to receive control commands issued by the IoT platform.
非实时模式下,数据采集模块采集到的数据被保存模块以某种文件格式(如二进制格式的文件或文本格式的文件或JSON格式的文件或其它类型文件)保存在本地磁盘或固态硬盘或其它形式的存储器中,不执行可能会丢失原始数据的数据处理,为节省存储和传输空间,保存数据的文件可能会被压缩;文件以分钟或者更长的时间周期通过非实时传输通道上报IoT平台,非实时传输通道为IoT网关和IoT平台间采用适合文件传输的协议,如HTTP,SFTP等,而建立的连接通道。In non-real-time mode, the data collected by the data acquisition module is saved in a file format (such as a file in a binary format or a file in a text format or a file in JSON format or other types of files) on a local disk or a solid state drive or other data. In the form of memory, data processing that may lose original data is not performed. To save storage and transmission space, files that save data may be compressed; files are reported to the IoT platform through non-real-time transmission channels in minutes or longer. The non-real-time transmission channel is a connection channel established between the IoT gateway and the IoT platform by using a protocol suitable for file transmission, such as HTTP, SFTP, and the like.
实时模式和非实时模式提供了两种数据处理和上报模式,两种模式各自适合不同的业务和网络场景。实时模式适合对对数据处理和业务响应的实时性要求较高的业务场景,需要IoT网关和IoT平台间有较好的网络连接。但由于IoT网关的数据处理能力相比IoT平台而言较弱,因此对于实时性要求不高,但对数据分析的全面性和精确性要求较高的业务场景,可以选择非实时模式,IoT网关将采集的原始数据以文件的形式完整上报IoT平台,使得IoT平台的大数据分析更加准确和全面。同时,在网络信号或网络连接质量较差时,IoT网关可以采用非实时模式将数据先在IoT网关本地保存,待网络质量变好时,再将文件通过非实时传输通道上报给IoT平台,一方面避免了由于网络质量问题造成的数据丢失,另外一方面也避免了频繁丢包而导致的反复重发,节省了网络传输资源。Real-time mode and non-real-time mode provide two data processing and reporting modes, each of which is suitable for different business and network scenarios. The real-time mode is suitable for business scenarios that require high real-time data processing and service response, and requires a good network connection between the IoT gateway and the IoT platform. However, because the data processing capability of the IoT gateway is weaker than that of the IoT platform, the real-time requirements are not high, but for the business scenarios where the comprehensiveness and accuracy of the data analysis are required, the non-real-time mode can be selected, and the IoT gateway can be selected. The collected raw data is completely reported to the IoT platform in the form of a file, which makes the big data analysis of the IoT platform more accurate and comprehensive. At the same time, when the network signal or network connection quality is poor, the IoT gateway can use the non-real-time mode to save the data locally on the IoT gateway. When the network quality is better, the file is reported to the IoT platform through the non-real-time transmission channel. The aspect avoids data loss caused by network quality problems, and on the other hand avoids repeated retransmissions caused by frequent packet loss, thereby saving network transmission resources.
IoT网关可以根据网络情况或者业务需求,或者同时根据网络情况和业务需求,在实时模式或非实时模式间自动选择或切换数据处理和上报模式。比如,在严苛的户外作业场景,没有无线信号时,历史数据可以以文件的形式保存在IoT网关上,待回到信号比较强的区域时,再通过非实时传输通道上传给IoT平台。IoT网关还可以根据IoT平台的控制 命令切换到实时模式或非实时模式,比如,在某些业务场景下,如远程故障定位,IoT平台为了提升IoT平台的数据分析的准确性,希望得到完整的IoT设备上报的数据,但同时考虑到IoT设备数据量巨大,因此IoT平台可以下发控制命令给IoT网关,请求IoT网关以文件的形式将历史数据IoT设备的数据全部上报。The IoT gateway can automatically select or switch data processing and reporting modes between real-time mode and non-real-time mode according to network conditions or service requirements, or according to network conditions and service requirements. For example, in a harsh outdoor operation scenario, when there is no wireless signal, the historical data can be saved in the form of a file on the IoT gateway. When it is returned to a relatively strong signal area, it is uploaded to the IoT platform through a non-real-time transmission channel. The IoT gateway can also switch to real-time mode or non-real-time mode according to the control commands of the IoT platform. For example, in some service scenarios, such as remote fault location, the IoT platform hopes to obtain complete information in order to improve the accuracy of the data analysis of the IoT platform. The data reported by the IoT device, but considering the huge amount of data of the IoT device, the IoT platform can issue a control command to the IoT gateway, requesting the IoT gateway to report the data of the historical data IoT device in the form of a file.
IoT网关还可以同时开启实时模式和非实时模式,比如在网络质量一般的区域,为防止实时传输通道数据丢失,IoT网关可以同时开启非实时模式,将采集到的IoT设备的全部数据或部分数据保存为文件,在实时传输通道正常工作的同时,并行开启非实时传输通道,将文件通过非实时传输通道上报给IoT平台;再比如,在一些对实时性要求较高的行业应用中,如工业控制领域,车联网领域,IoT平台可能有一些紧急的控制命令需要及时通过IoT网关下发给IoT设备,或IoT网关检测到重要事件或紧急告警时需要实时上报给IoT平台,这种场景下,即使IoT网关工作在非实时模式下,为不影响文件的正常传输,同时保证高优先级的命令或高优先级的数据的即时下发或上报,IoT网关在保持非实时传输通道的同时,还需要同时开启实时传输通道,以传输高优先级命令和数据。为方便实施例描述,本发明实施例中将IoT网关上同时开启实时模式和非实时模式的工作模式称为双通道模式。The IoT gateway can also enable real-time mode and non-real-time mode at the same time. For example, in the area where the network quality is normal, in order to prevent data loss in the real-time transmission channel, the IoT gateway can simultaneously open the non-real-time mode and collect all or part of the data of the IoT device. Save as a file, while the real-time transmission channel works normally, open the non-real-time transmission channel in parallel, and report the file to the IoT platform through the non-real-time transmission channel; for example, in some industrial applications with high real-time requirements, such as industry In the field of control, in the field of the Internet of Vehicles, the IoT platform may have some urgent control commands that need to be sent to the IoT device through the IoT gateway in time, or when the IoT gateway detects an important event or an emergency alarm, it needs to be reported to the IoT platform in real time. Even if the IoT gateway works in non-real-time mode, the IoT gateway maintains the non-real-time transmission channel while maintaining the normal transmission of the file and ensuring the immediate delivery or reporting of high-priority commands or high-priority data. The real-time transport channel needs to be turned on simultaneously to transfer high-priority commands and data. To facilitate the description of the embodiments, in the embodiment of the present invention, the working mode in which the real-time mode and the non-real-time mode are simultaneously turned on on the IoT gateway is referred to as a dual channel mode.
IoT平台:连接IoT网关和IoT应用服务器,支持IoT设备通过IoT网关上报数据,并提供数据给IoT应用服务器查看,或者允许IoT应用服务器给IoT设备下发控制命令。IoT平台一般部署于IoT网络中位置较高的节点,如云端,有些情况下,也称IoT平台为云平台或云服务器或网络侧服务器。图1中IoT平台通过联接管理模块连接管理IoT网关,联接管理模块同时支持以实时传输通道和非实时传输通道与IoT网关连接;实时分析模块对应IoT网关的实时模式,IoT网关通过实时传输通道上报的数据通过实时分析模型进行数据分析处理;非实时分析模块对应IoT网关的非实时模式,IoT网关通过非实时传输通道上报的文件通过非实时分析模块进行数据分析处理;应用使能模块通过IoT平台与IoT应用服务器间的接口协议(如采用RESTful(Representational State Transfer,表现层状态转换)HTTP协议)与IoT应用服务器连接,开放接口,如Open API(open application interface,开放应用接口)形式,给IoT应用服务器,IoT应用服务器可以通过开放接口下发控制命令,也可以查看IoT平台中的数据。IoT platform: connects the IoT gateway and the IoT application server, supports the IoT device to report data through the IoT gateway, and provides data to the IoT application server for viewing, or allows the IoT application server to send control commands to the IoT device. The IoT platform is generally deployed in a node with a higher position in the IoT network, such as the cloud. In some cases, the IoT platform is also referred to as a cloud platform or a cloud server or a network side server. In Figure 1, the IoT platform connects and manages the IoT gateway through the connection management module. The connection management module supports the real-time transmission channel and the non-real-time transmission channel to connect with the IoT gateway. The real-time analysis module corresponds to the real-time mode of the IoT gateway, and the IoT gateway reports through the real-time transmission channel. The data is analyzed and processed by the real-time analysis model; the non-real-time analysis module corresponds to the non-real-time mode of the IoT gateway, and the IoT gateway performs data analysis and processing through the non-real-time analysis module through the file reported by the non-real-time transmission channel; the application enablement module passes the IoT platform. The interface protocol with the IoT application server (such as the RESTful (Representational State Transfer) HTTP protocol) is connected to the IoT application server, and the open interface, such as the Open API (Open Application Interface) form, is given to the IoT. The application server, the IoT application server can issue control commands through the open interface, and can also view data in the IoT platform.
IoT应用服务器:IoT应用是基于IoT平台的具有强行业属性的解决方案软件。如智慧家庭、车联网等。IoT Application Server: The IoT application is a solution software with strong industry attributes based on the IoT platform. Such as smart home, car networking and so on.
需要说明的,图1仅介绍了一种典型场景下的组网架构,本领域技术人员有能力根据本发明实施例的内容,设计灵活多样的IoT数据上报实现方案,比如,在实际部署中,IoT网关也可以直接和IoT应用服务器连接,通过实时传输通道或非实时传输通道直接上报数据给IoT应用服务器。下面,将基于图1所示的组网架构对本发明实施例所提供的技术方案做进一步的介绍,本领域技术人员应该明白,无论未来这些网元的名称、位置、交互关系如何变化,只要具备了本发明实施例中IoT数据上报技术方案的功能,则均在本发明保护范围之内,比如,在IoT网关和IoT应用服务器直连的组网架构下,IoT网关同样可以使用本发明实施例中的数据上报方案直接向IoT应用服务器上报数据。It should be noted that FIG. 1 only shows a networking architecture in a typical scenario, and a person skilled in the art has the capability to design a flexible and diverse IoT data reporting implementation solution according to the content of the embodiment of the present invention. For example, in actual deployment, The IoT gateway can also directly connect to the IoT application server to directly report data to the IoT application server through a real-time transmission channel or a non-real-time transmission channel. In the following, the technical solutions provided by the embodiments of the present invention are further introduced based on the networking architecture shown in FIG. 1. Those skilled in the art should understand that no matter how the names, locations, and interactions of these network elements change in the future, as long as they have The functions of the IoT data reporting technical solution in the embodiment of the present invention are all within the protection scope of the present invention. For example, in the networking architecture in which the IoT gateway and the IoT application server are directly connected, the IoT gateway can also use the embodiment of the present invention. The data reporting solution in the report directly reports data to the IoT application server.
IoT网关可以进行功能模块划分,例如,可以对应各个功能划分各个功能模块,也可 以将两个或两个以上的功能集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以此采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。图2给出了本发明实施例中IoT网关的一种可能的结构示意图。IoT网关200包括数据采集模块201,数据保存模块202,非实时传输模块203,数据处理模块204,实时传输模块205,环境信息采集模块206和模式判决模块207。The IoT gateway can divide the function modules. For example, each function module can be divided for each function, or two or more functions can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner. FIG. 2 is a schematic diagram showing a possible structure of an IoT gateway in an embodiment of the present invention. The IoT gateway 200 includes a data collection module 201, a data storage module 202, a non-real time transmission module 203, a data processing module 204, a real-time transmission module 205, an environment information collection module 206, and a mode decision module 207.
数据采集模块201:用于连接IoT设备,从IoT设备采集数据,如向IoT设备发送数据请求命令并接收IoT设备上报的数据,或向IoT设备下发控制命令请求IoT设备按照数据采集周期或一定的规则上报数据,并接收IoT设备周期上报的数据。本发明实施例不限定数据采集模块201和IoT设备间的连接方式和通信协议,即可以是适合短距通信的近场协议,如WiFi,蓝牙,ZigBee,Z-Wave等,也可以是广域低功耗协议,如NB-IoT协议,还可以是其它本发明实施例尚未提及的通信协议或连接方式。数据采集模块201根据数据采集规则从IoT设备采集数据,并根据模式判决模块207发送的工作模式的指示,向数据处理模块204或/和数据保存模块202发送采集到的数据。当模式判决模块207发送的指示为双通道模式时,数据采集模块201同时向数据处理模块204和数据保存模块202分发IoT设备的数据;当模式判决模块207发送的指示为非实时模式时,数据采集模块201向数据保存模块202分发IoT设备的数据;当模式判决模块207发送的指示为实时模式时,数据采集模块201向数据处理模块204分发IoT设备的数据。The data collection module 201 is configured to connect to the IoT device and collect data from the IoT device, such as sending a data request command to the IoT device and receiving the data reported by the IoT device, or sending a control command to the IoT device to request the IoT device according to the data collection period or a certain period. The rules report data and receive data reported by the IoT device cycle. The embodiment of the present invention does not limit the connection mode and communication protocol between the data collection module 201 and the IoT device, that is, may be a near field protocol suitable for short-distance communication, such as WiFi, Bluetooth, ZigBee, Z-Wave, etc., or may be a wide area. Low-power protocols, such as the NB-IoT protocol, may also be other communication protocols or connections that are not mentioned in the embodiments of the present invention. The data collection module 201 collects data from the IoT device according to the data collection rule, and transmits the collected data to the data processing module 204 or/and the data storage module 202 according to the indication of the working mode sent by the mode decision module 207. When the indication sent by the mode decision module 207 is in the dual channel mode, the data collection module 201 simultaneously distributes the data of the IoT device to the data processing module 204 and the data saving module 202; when the indication sent by the mode decision module 207 is in the non-real time mode, the data The acquisition module 201 distributes the data of the IoT device to the data saving module 202; when the indication sent by the mode decision module 207 is the real-time mode, the data collection module 201 distributes the data of the IoT device to the data processing module 204.
数据保存模块202,用于在模式判决模块207判决为非实时模式或双通道模式下,保存数据采集模块201采集的IoT设备的数据,并根据非实时数据上报规则通过非实时传输模块203向IoT平台上报文件。需要说明的是,通常情况下,为保证数据的完整性,数据保存模块将采集到的IoT设备的所有数据保存为文件,但也可以根据一定的数据处理规则将处理后的部分数据保存为文件。The data saving module 202 is configured to save the data of the IoT device collected by the data collection module 201 in the non-real-time mode or the dual channel mode, and pass the non-real-time transmission module 203 to the IoT according to the non-real-time data reporting rule. The platform reports the file. It should be noted that, in order to ensure the integrity of the data, the data saving module saves all the data of the collected IoT device as a file, but can also save the processed part of the data as a file according to certain data processing rules. .
非实时传输模块203,用于与IoT平台采用适合文件传输的协议建立文件传输通道,将数据保存模块203保存的文件上报给IoT平台。非实时传输模块203可以一直与IoT平台保持文件传输通道,仅在非实时模式或双通道模式下,通过该通道向IoT平台上传文件;也可以在开启非实时模式或双通道模式的情况下,即收到数据保存模块202发送的需要上传到IoT平台的文件时,才与IoT平台建立文件传输通道。The non-real-time transmission module 203 is configured to establish a file transmission channel with the protocol suitable for file transmission with the IoT platform, and report the file saved by the data storage module 203 to the IoT platform. The non-real-time transmission module 203 can always maintain a file transmission channel with the IoT platform, and upload files to the IoT platform through the channel only in the non-real time mode or the dual channel mode; or when the non-real time mode or the dual channel mode is enabled, That is, when the file sent by the data saving module 202 and needs to be uploaded to the IoT platform is received, the file transmission channel is established with the IoT platform.
数据处理模块204,用于在在模式判决模块207判决为实时模式或双通道模式下,对数据采集模块201采集的IoT设备的数据,根据一定的数据处理规则进行数据处理,并根据实时数据上报规则通过实时传输模块205向IoT平台上报处理后的IoT设备的数据。The data processing module 204 is configured to perform data processing on the data of the IoT device collected by the data collection module 201 in the real-time mode or the dual-channel mode in the mode determination module 207, and perform data processing according to a certain data processing rule, and report the data according to the real-time data. The rule reports the data of the processed IoT device to the IoT platform through the real-time transmission module 205.
实时传输模块205,用于与IoT平台采用IoT领域的即时通信协议或受限设备应用协议,建立实时传输通道,向IoT平台上报数据处理模块204处理后的数据,并接收IoT平台下发的控制命令。在实时模式或双通道模式下,通过实时传输模块205与IoT平台间的实时传输通道向IoT平台上传数据处理模块204处理后的数据,并接收IoT平台下发的控制命令;在非实时模式下,也可以通过实时传输模块205与IoT平台间的实时传输通道接收IoT平台下发的控制命令。实时传输模块205接收到的用于指示模式切换的控制命令转发给模式判决模块207进行处理。The real-time transmission module 205 is configured to use the IoT domain instant communication protocol or the restricted device application protocol to establish a real-time transmission channel, report the data processed by the data processing module 204 to the IoT platform, and receive the control issued by the IoT platform. command. In the real-time mode or the dual-channel mode, the data processed by the data processing module 204 is uploaded to the IoT platform through the real-time transmission channel between the real-time transmission module 205 and the IoT platform, and the control commands issued by the IoT platform are received; in the non-real-time mode. The control command sent by the IoT platform can also be received through the real-time transmission channel between the real-time transmission module 205 and the IoT platform. The control command received by the real-time transmission module 205 for indicating mode switching is forwarded to the mode decision module 207 for processing.
环境信息采集模块206,用于采集IoT网关所在位置的环境信息,包括但不限于,IoT网关和IoT平台间的IP网络状态,无线信号强度,IoT网关当前的地理位置信息等。当IoT网关不支持采集环境信息时,环境信息采集模块206需要与外部的环境信息采集设备相连,以获取环境信息。在实时模式或非实时模式下,环境信息采集模块206通过自身能力或外部设备采集的环境信息,经过数据处理模块204/实时传输模块205,或数据保存模块202/非实时传输模块203,处理或保存后,上报给IoT平台。需要说明的是,环境信息采集模块不是必选的模块,在没有环境信息采集模块的情况下,网关可以根据IoT平台或IoT应用服务器的模式切换控制命令来变更工作模式。The environment information collection module 206 is configured to collect environment information of the location of the IoT gateway, including but not limited to, the IP network status between the IoT gateway and the IoT platform, the wireless signal strength, and the current geographic location information of the IoT gateway. When the IoT gateway does not support collecting environment information, the environment information collecting module 206 needs to be connected to an external environment information collecting device to obtain environment information. In the real-time mode or the non-real-time mode, the environment information collecting module 206 processes or processes the environment information collected by the external device through the data processing module 204/real-time transmission module 205, or the data storage module 202/non-real-time transmission module 203, or After saving, report it to the IoT platform. It should be noted that the environment information collection module is not a mandatory module. In the absence of the environment information collection module, the gateway can change the working mode according to the mode switching control command of the IoT platform or the IoT application server.
模式判决模块207,用于根据环境信息采集模块206采集的环境信息,或实时传输模块205接收到的模式切换控制命令,判决IoT网关的工作模式,以及是否需要进行模式变更。模式判决模块207指示数据采集模块201当前IoT网关的工作模式,即应该把采集到的IoT设备的数据发给哪个模块(数据处理模块204或/和数据保存模块202)进行处理。The mode decision module 207 is configured to determine the working mode of the IoT gateway according to the environment information collected by the environment information collecting module 206 or the mode switching control command received by the real-time transmission module 205, and whether a mode change is required. The mode decision module 207 instructs the data collection module 201 to operate the current IoT gateway, that is, which module (data processing module 204 or/and data storage module 202) should be sent to the collected IoT device for processing.
如上IoT网关200的各功能模块可以根据预置在IoT网关中的规则或IoT平台下发的规则,执行数据采集,数据处理/数据保存和数据传输等功能。这里所说的规则包括但不限于,数据采集频率,数据处理的规则,数据上报的速率或周期等。表一给出了一种车联网场景下,IoT平台下发给IoT网关的,实时模式和非实时模式下的具体规则示例。其中CANID指车机上报的CANBus的ID(identification,标识)。The function modules of the IoT gateway 200 can perform functions such as data collection, data processing, data storage, and data transmission according to rules preset in the IoT gateway or rules issued by the IoT platform. The rules mentioned here include, but are not limited to, the frequency of data collection, the rules of data processing, the rate or period of data reporting, and the like. Table 1 shows an example of specific rules in real-time mode and non-real-time mode sent to the IoT gateway by the IoT platform in a car networking scenario. The CANID refers to the ID (identification) of the CANBus reported by the vehicle.
Figure PCTCN2018079805-appb-000001
Figure PCTCN2018079805-appb-000001
Figure PCTCN2018079805-appb-000002
Figure PCTCN2018079805-appb-000002
表一Table I
数据采集模块201根据表一中的业务数据采集周期从IoT设备采集数据。实时模式下,数据处理模块204根据表一中的数据处理规则处理数据采集模块201采集到的业务数据,然后发给实时传输模块205,实时传输模块205以X6秒的上报速率上报给IoT平台。非实时模式下,数据保存模块202将数据采集模块201采集到的业务数据保存为GZIP格式的文件,非实时传输模块203每Y6小时向IoT平台上报一次文件。另外,环境信息采集模块206以X1毫秒的周期采集无线信号质量,以X2毫秒的周期采集位置信息。当IoT网关处于实时模式下时,采集到的无线信号数据和位置信息数据经实时传输通道分别以X4秒和X5秒的速率上报IoT平台;当IoT网关处于非实时模式下时,采集到的无线信号数据和位置信息数据分别被数据保存模块202保存为无线信号文件和位置信息文件,并由实时传输通道分别以每Y4小时和每Y5小时一次的速度上报给IoT平台。The data collection module 201 collects data from the IoT device according to the service data collection period in Table 1. In the real-time mode, the data processing module 204 processes the service data collected by the data collection module 201 according to the data processing rules in the first embodiment, and then sends the data to the real-time transmission module 205, and the real-time transmission module 205 reports the rate to the IoT platform at a reporting rate of X6 seconds. In the non-real-time mode, the data saving module 202 saves the service data collected by the data collection module 201 as a file in the GZIP format, and the non-real-time transmission module 203 reports the file to the IoT platform every Y6 hours. In addition, the environment information collection module 206 collects the wireless signal quality in a period of X1 milliseconds, and collects the location information in a period of X2 milliseconds. When the IoT gateway is in the real-time mode, the collected wireless signal data and location information data are reported to the IoT platform at a rate of X4 seconds and X5 seconds respectively through the real-time transmission channel; when the IoT gateway is in the non-real-time mode, the collected wireless The signal data and the location information data are respectively saved by the data saving module 202 as a wireless signal file and a location information file, and are reported to the IoT platform by the real-time transmission channel at a rate of Y4 hours and Y5 hours, respectively.
从表一可以看出,实时模式下,相比非实时模式,实时传输模块以更快的上报速率向IoT平台上报数据,但由于数据处理模块会对采集到的数据进行一定的过滤等处理,上报给IoT平台的数据相比采集到的原始数据会有一定的失真和数据损失;非实时模式下,数据保存模块将采集到的数据保存为文件格式,不执行可能会丢失原始数据的数据处理逻辑,只会对文件进行压缩操作。需要说明的是,表一中也可以根据业务需求设置除压缩之外的数据处理规则,如数据过滤,筛选等规则,这种情况下,数据保存模块保存的数据为根据数据处理规则处理后的数据。As can be seen from Table 1, in real-time mode, the real-time transmission module reports data to the IoT platform at a faster reporting rate than the non-real-time mode, but because the data processing module performs certain filtering and processing on the collected data, The data reported to the IoT platform will have some distortion and data loss compared to the original data collected; in the non-real-time mode, the data saving module saves the collected data as a file format, and does not execute data processing that may lose the original data. The logic will only compress the file. It should be noted that in Table 1, data processing rules other than compression, such as data filtering and filtering, may be set according to business requirements. In this case, the data saved by the data saving module is processed according to the data processing rule. data.
图3给出了IoT网关在实时模式或非实时模式下,向IoT平台上报数据的效果示意图。如图3所示,假设数据采集模块以一定的周期从5个传输器采集数据,传感器1-5每周期上报的数据分别为20条,30条,40条,50条和60条。实时模式下,数据处理模块会执行一些过滤操作,将原始总共200条的数据过滤筛选为50条后,及时上报给IoT网关;而非实时模式下,数据保存模块会将原始的200条数据全部保存为文件,全部上传到IoT平台。可见,实时模式下,IoT网关可以占用更小的带宽,以更快的速度向IoT平台上报数据;非实时模式下,IoT网关上报数据的周期较长,但上报的数据更加全面。Figure 3 shows the effect of the IoT gateway reporting data to the IoT platform in real-time mode or non-real-time mode. As shown in FIG. 3, it is assumed that the data acquisition module collects data from five transmitters in a certain period, and the data reported by the sensors 1-5 in each cycle are 20, 30, 40, 50, and 60, respectively. In the real-time mode, the data processing module performs some filtering operations, and filters the original 200 data filters into 50 pieces and reports them to the IoT gateway in time; instead of the real-time mode, the data saving module will all the original 200 data. Save as a file and upload it all to the IoT platform. It can be seen that in real-time mode, the IoT gateway can occupy smaller bandwidth and report data to the IoT platform at a faster speed. In the non-real-time mode, the IoT gateway reports a longer period of data, but the reported data is more comprehensive.
如上所述,实时模式和非实时模式各自适合不同的网络环境和业务场景,IoT网关需要根据不同的场景,灵活的选择合适的模式,或根据IoT平台的控制命令,按照IoT平台的需求,在两种模式间切换。图4给出了一种可能的IoT网关上报数据的流程示意图,图中假设IoT网关和IoT平台通过无线信道的方式连接,IoT平台部署在云端。As described above, the real-time mode and the non-real-time mode are respectively adapted to different network environments and service scenarios. The IoT gateway needs to flexibly select an appropriate mode according to different scenarios, or according to the IoT platform control commands, according to the requirements of the IoT platform. Switch between the two modes. Figure 4 shows a schematic flow chart of a possible IoT gateway reporting data. The figure assumes that the IoT gateway and the IoT platform are connected by means of a wireless channel, and the IoT platform is deployed in the cloud.
4-1:预置IoT网关数据处理规则:IoT应用服务器根据业务特征,通过IoT平台(如401消息)向IoT网关下发(如402消息)数据处理规则。包括实时模式和非实时模式下的数据处理规则,具体可以参见表一所示示例。4-1: Pre-set IoT gateway data processing rule: The IoT application server delivers (such as 402 message) data processing rules to the IoT gateway through the IoT platform (such as 401 message) according to the service feature. It includes data processing rules in real-time mode and non-real-time mode. For details, see the example shown in Table 1.
4-2a:预置IoT网关模式切换规则:IoT应用服务器根据业务特征,通过IoT平台(如 401消息)向IoT网关下发(如402消息)模式切换规则,具体参见表二所示示例。表二中以数据传输速率为例,作为衡量IoT网关和IoT平台间的无线信号状态的指标,实际部署中,当然还可以采用其他的衡量指标,比如丢包率,信号强度等,本发明实施例不做限定。4-2a: Pre-set IoT gateway mode switching rule: The IoT application server delivers a mode switching rule (such as 402 message) to the IoT gateway through the IoT platform (such as 401 message) according to the service feature. For details, see the example shown in Table 2. In Table 2, the data transmission rate is taken as an example to measure the state of the wireless signal between the IoT gateway and the IoT platform. In actual deployment, other measurement indicators, such as packet loss rate, signal strength, etc., may be used. The example is not limited.
Figure PCTCN2018079805-appb-000003
Figure PCTCN2018079805-appb-000003
表二Table II
表二中定义了根据无线信号状态作为切换触发条件的切换规则,根据切换规则,当无线信号状态较好时(上行速率>=100Kbps),IoT网关将切换到实时模式;当无线信号状态较差时(上行速率<=50Kbps),IoT网关将切换到非实时模式;当无线信号状态一般时(50Kbps<上行速率<100Kbps),IoT网关将同时开启实时模式和非实时模式,既保证了数据传输的实时性,又可以防止由于无线信号状态不稳定而导致的数据丢包(IoT网关仍然保存有原始数据备份);当无线信号完全中断时,IoT网关将保存的文件缓存在本地,待信号连接恢复后,上传文件给IoT平台。Table 2 defines the switching rules based on the wireless signal status as the handover trigger condition. According to the handover rule, when the wireless signal status is good (uplink rate>=100Kbps), the IoT gateway will switch to the real-time mode; when the wireless signal status is poor When the uplink rate is <=50Kbps, the IoT gateway will switch to the non-real-time mode; when the wireless signal status is normal (50Kbps <uplink rate <100Kbps), the IoT gateway will enable both real-time mode and non-real-time mode, ensuring data transmission. Real-time, it can prevent data loss due to unstable wireless signal status (IoT gateway still saves the original data backup); when the wireless signal is completely interrupted, the IoT gateway caches the saved file locally, waiting for the signal connection After recovery, upload the file to the IoT platform.
403a、IoT平台接收到IoT应用服务器的模式切换规则,开启或关闭一些功能。比如:为了支持非实时模式的传输,打开文件传输路径的IP地址和端口。The 403a and IoT platforms receive the mode switching rules of the IoT application server, and enable or disable some functions. For example, to support transmission in non-real-time mode, open the IP address and port of the file transfer path.
404a、IoT平台往南向下发IoT网关配置命令。IoT网关收到命令后,记录并刷新本地的模式切换规则。The 404a and IoT platforms send IoT gateway configuration commands to the south. After receiving the command, the IoT gateway records and refreshes the local mode switching rules.
4-2b:IoT网关可以根据下发的或预置的模式切换规则自动选择或自动切换工作模式,还可以根据IoT应用服务器或IoT平台下发的控制命令,被强制切换工作模式。与自动切换工作模式不同的是,IoT网关收到控制命令后,将立即启动控制命令中的工作模式。4-2b: The IoT gateway can automatically select or automatically switch the working mode according to the delivered or preset mode switching rules. It can also be forced to switch the working mode according to the control commands sent by the IoT application server or the IoT platform. Different from the automatic switching mode, the IoT gateway will immediately start the working mode in the control command after receiving the control command.
403b、IoT平台接收到IoT应用服务器的控制命令,根据控制命令中要求开启的工作模式,开启或关闭一些功能。比如:控制命令中要求开启非实时模式,则IoT平台打开文件传输路径的IP地址和端口。The 403b and the IoT platform receive the control command of the IoT application server, and turn on or off some functions according to the working mode required to be opened in the control command. For example, if the control command requires non-real-time mode to be enabled, the IoT platform opens the IP address and port of the file transfer path.
404b、IoT平台往南向下发控制命令。IoT网关收到命令后,按照控制命令中制定的工作模式工作。需要说明的是,IoT平台还可以根据IoT网关上报的IoT设备的数据或上报的IoT网关采集的环境信息数据,根据本地设置的规则,判断是否需要IoT网关切换数据上报模式,在没有收到IoT应用服务器的请求的情况下,主动向IoT网关下发模式切换 控制命令。比如当IoT网关以实时模式上报的数据不能满足业务分析的精确度要求时,IoT平台主动要求IoT网关以非实时模式或双通道模式上报数据,以期获得更加丰富和全面的数据。The 404b and IoT platforms send control commands to the south. After receiving the command, the IoT gateway works according to the working mode defined in the control command. It should be noted that, according to the data of the IoT device reported by the IoT gateway or the environmental information data collected by the reported IoT gateway, the IoT platform can determine whether the IoT gateway needs to switch the data reporting mode according to the locally set rules, and does not receive the IoT. When the application server requests, the mode switching control command is sent to the IoT gateway. For example, when the data reported by the IoT gateway in the real-time mode cannot meet the accuracy requirements of the service analysis, the IoT platform actively requests the IoT gateway to report data in a non-real-time mode or a dual-channel mode, in order to obtain richer and more comprehensive data.
405、IoT网关根据表一中的数据采集规则,采集传感器的数据。405. The IoT gateway collects data of the sensor according to the data collection rule in Table 1.
4-3:IoT网关在实时模式下工作4-3: IoT gateway works in real-time mode
406a、IoT网关根据表一中实时模式下数据处理的规则,对采集的数据(包括采集的传感器数据和环境信息数据)进行处理。通常情况下,由于IoT网关的资源有限,因此无法完成过于复杂的数据处理,但IoT网关侧简单的数据处理(如过滤,合并,汇总等),保证了数据上报的实时性,同时也不会将过于庞大的原始数据全部上报给IoT平台,节省了网络传输资源。IoT网关在实时模式下,将接收的IoT设备的数据在内存中直接进行数据处理,保证了数据处理的实时性。The 406a and the IoT gateway process the collected data (including the collected sensor data and the environmental information data) according to the rules of data processing in the real-time mode in Table 1. Usually, due to the limited resources of the IoT gateway, it is impossible to complete the overly complex data processing. However, the simple data processing (such as filtering, merging, summarizing, etc.) on the IoT gateway side ensures the real-time performance of data reporting, and it will not Reporting too large raw data to the IoT platform saves network transmission resources. In real-time mode, the IoT gateway directly processes data of the received IoT device in memory, ensuring real-time data processing.
407a、IoT网关根据表一中实时模式下的数据上报规则,向IoT平台上报处理后的数据。The 407a and the IoT gateway report the processed data to the IoT platform according to the data reporting rules in the real-time mode in Table 1.
4-4:IoT网关在非实时模式下工作4-4: IoT gateway works in non-real time mode
406b、IoT网关将采集的数据(包括采集的传感器数据和环境信息数据)保存在本地磁盘(如固态硬盘等),保存为文件格式。不执行可能会丢弃原始数据的数据处理逻辑,一般只会对文件进行压缩操作。因为会有文件格式的转换和磁盘存储,所以不适合实时性高的数据上报要求,但保证了数据的完备性。The 406b and the IoT gateway save the collected data (including the collected sensor data and environmental information data) on a local disk (such as a solid state hard disk) and save the file format. The data processing logic that may discard the original data is not executed, and generally only the file is compressed. Because there is file format conversion and disk storage, it is not suitable for high-time data reporting requirements, but it ensures the completeness of the data.
407b、IoT网关通过文件传输协议将文件上报到云端IoT平台。The 407b and the IoT gateway report the file to the cloud IoT platform through the file transfer protocol.
需要说明的是,IoT网关在4-3实时模式和4-4非实时模式下工作时,还需要不断的采集环境信息,根据表二中的切换规则,判断是否需要切换工作模式。当网络状态满足表二中的切换触发条件时,IoT网关按照切换规则开启相应的工作模式。It should be noted that when the IoT gateway works in the 4-3 real-time mode and the 4-4 non-real-time mode, it also needs to continuously collect environment information, and according to the switching rules in Table 2, it is determined whether the working mode needs to be switched. When the network status satisfies the handover trigger condition in Table 2, the IoT gateway starts the corresponding working mode according to the switching rule.
还需要说明的是,当IoT网关处于双通道模式时,IoT网关同时执行406a,407a,406b,407b所描述的实时模式和非实时模式下的数据处理和上报流程。图2中的数据采集模块201需要同时上报数据给数据处理模块204和数据保存模块202,IoT网关和IoT平台需要同时开启实时传输通道和非实时传输通道,以执行实时传输和非实时传输。It should also be noted that when the IoT gateway is in the dual channel mode, the IoT gateway simultaneously performs the data processing and reporting processes in the real-time mode and the non-real-time mode described by 406a, 407a, 406b, and 407b. The data collection module 201 in FIG. 2 needs to simultaneously report data to the data processing module 204 and the data storage module 202. The IoT gateway and the IoT platform need to simultaneously open the real-time transmission channel and the non-real-time transmission channel to perform real-time transmission and non-real-time transmission.
4-5:云端处理:4-5: Cloud processing:
408a/408b、位于云端的IoT平台同样具备实时分析和非实时分析两种模式,对应IoT网关的实时模式和非实时模式,分别处理IoT网关从实时传输通道和非实时传输通道上报的数据或文件。IoT平台采用实时分析实时向IoT应用服务器上报数据,如IoT平台根据预置的数据处理规则,对IoT网关从实时传输通道上报的数据进行处理后,不保存到IoT平台的数据库,直接发送到IoT应用服务器。IoT平台采用非实时分析,将IoT网关通过非实时传输通道上传的文件保存到数据库,然后采用大数据分析技术进行数据挖掘,将深度分析后的数据发送给IoT应用服务器。可见,实时分析偏重实时性,非实时分析偏重深度和全面的数据分析。408a/408b, the cloud-based IoT platform also has real-time analysis and non-real-time analysis modes, corresponding to the real-time mode and non-real-time mode of the IoT gateway, respectively processing the data or files reported by the IoT gateway from the real-time transmission channel and the non-real-time transmission channel. . The IoT platform uses real-time analysis to report data to the IoT application server in real time. For example, the IoT platform processes the data reported by the IoT gateway from the real-time transmission channel according to the preset data processing rules, and does not save to the IoT platform database and directly sends it to the IoT. application server. The IoT platform uses non-real-time analysis to save the files uploaded by the IoT gateway through the non-real-time transmission channel to the database, and then uses the big data analysis technology for data mining, and sends the in-depth analyzed data to the IoT application server. It can be seen that real-time analysis focuses on real-time, non-real-time analysis focuses on depth and comprehensive data analysis.
409、IoT平台经过实时分析或非实时分析后,上报数据给IoT应用服务器,以使IoT应用服务器基于上报的数据实施或开展业务。409. After real-time analysis or non-real-time analysis, the IoT platform reports the data to the IoT application server, so that the IoT application server implements or conducts services based on the reported data.
通过本发明实施例提供的技术方案,云(IoT平台),管(IoT平台和IoT网关间的传 输通道),端(IoT网关)实现数据分析和数据传输模式的协同,提升了IoT网络的协作效率。Through the technical solution provided by the embodiment of the present invention, the cloud (IoT platform), the tube (the transmission channel between the IoT platform and the IoT gateway), and the end (IoT gateway) realize the cooperation of the data analysis and the data transmission mode, thereby improving the cooperation of the IoT network. effectiveness.
上述主要从各个IoT网络架构和IoT网络各网元之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个网元,例如IoT平台,IoT网关等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The solution provided by the embodiment of the present invention is mainly introduced from the perspective of interaction between the network elements of the IoT network and the network elements of the IoT network. It can be understood that each network element, such as an IoT platform, an IoT gateway, etc., in order to implement the above functions, includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art will readily appreciate that the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
例如,IoT网关可以通过图5中的计算机设备(或系统)来实现。For example, the IoT gateway can be implemented by the computer device (or system) in FIG.
图5所示为本发明实施例提供的计算机设备示意图。计算机设备500包括至少一个处理器501,通信总线502,存储器503以及至少一个通信接口504。FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. Computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
处理器501可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。The processor 501 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present invention. integrated circuit.
在具体实现中,作为一种实施例,处理器501可以包括一个或多个CPU,例如图5中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 501 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
在具体实现中,作为一种实施例,计算机设备500可以包括多个处理器,例如图5中的处理器501和处理器508。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a particular implementation, as an embodiment, computer device 500 can include multiple processors, such as processor 501 and processor 508 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
在一种可能的实现中,处理器501可以实现数据处理模块204的功能,对通信接口504采集到的IoT设备的数据进行处理;处理器508可以实现数据保存模块202的功能,将通信接口504采集到的IoT设备的数据以文件的形式保存在存储器中;可以想到的是,处理器501或508或其它处理器还可以实现模式判决模块的功能。In a possible implementation, the processor 501 can implement the function of the data processing module 204 to process the data of the IoT device collected by the communication interface 504; the processor 508 can implement the function of the data saving module 202, and the communication interface 504 The collected data of the IoT device is stored in a file in the form of a file; it is conceivable that the processor 501 or 508 or other processor can also implement the functions of the mode decision module.
通信总线502可包括一通路,在上述组件之间传送信息。Communication bus 502 can include a path for communicating information between the components described above.
通信接口504,使用任何收发器一类的装置,用于与IoT设备或IoT平台或IoT应用服务器或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口中可以细分为实时接口,非实时接口,设备接口和其它类型的接口。其中,实时接口用于在实时或双通道模式下,向IoT平台或IoT应用服务器上报处理器处理后的数据;非实时接口用于在非实时或双通道模式下,向IoT平台或IoT应用服务器上报存储其中保存的文件;设备接口用于与其它设备通信,如与IoT设备通信,以采集IoT设备的数据。可选的,当IoT网关自己具备环境信息采集能力时,还可以包含信息采集接口,如GPS,北斗卫星接口等。 Communication interface 504, using any type of transceiver, for communicating with an IoT device or an IoT platform or an IoT application server or communication network, such as Ethernet, radio access network (RAN), wireless local area network (wireless) Local area networks, WLAN), etc. The communication interface can be subdivided into real-time interfaces, non-real-time interfaces, device interfaces and other types of interfaces. The real-time interface is used to report the processed data to the IoT platform or the IoT application server in the real-time or dual-channel mode; the non-real-time interface is used to the IoT platform or the IoT application server in the non-real-time or dual-channel mode. The file stored in the storage is reported; the device interface is used to communicate with other devices, such as communicating with the IoT device, to collect data of the IoT device. Optionally, when the IoT gateway has its own environment information collection capability, it may also include an information collection interface, such as a GPS, a Beidou satellite interface, and the like.
存储器503可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存取存储设备,或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任 何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。存储器503可以用于存储非实时模式下的文件,还可以用于存储实时模式下的数据处理规则,实时或非实时模式下的数据上报规则,数据采集规则等。The memory 503 can be a random access memory (RAM) or other type of dynamic access storage device that can store information and instructions, or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital general purpose). Optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor. The memory 503 can be used to store files in a non-real-time mode, and can also be used to store data processing rules in real-time mode, data reporting rules in real-time or non-real-time mode, data collection rules, and the like.
存储器503还用于存储执行本发明方案的应用程序代码,并由处理器501来控制执行。处理器501用于执行存储器503中存储的应用程序代码,从而实现本专利方法中的功能。The memory 503 is also used to store application code that implements the inventive arrangements and is controlled by the processor 501 for execution. The processor 501 is configured to execute application code stored in the memory 503 to implement the functions in the method of the present patent.
在具体实现中,作为一种实施例,计算机设备500还可以包括输出设备505和输入设备506。输出设备505和处理器501通信,可以以多种方式来显示信息。例如,输出设备505可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备506和处理器501通信,可以以多种方式接受用户的输入。例如,输入设备506可以是鼠标、键盘、触摸屏设备或传感设备等。In a particular implementation, computer device 500 may also include an output device 505 and an input device 506 as an embodiment. Output device 505 is in communication with processor 501 and can display information in a variety of ways. For example, the output device 505 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait. Input device 506 is in communication with processor 501 and can accept user input in a variety of ways. For example, input device 506 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
上述的计算机设备500可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备200可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备或有图5中类似结构的设备。本发明实施例不限定计算机设备500的类型。The computer device 500 described above can be a general purpose computer device or a special purpose computer device. In a specific implementation, the computer device 200 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or have FIG. A device of similar structure. Embodiments of the invention do not limit the type of computer device 500.
本领域的技术人员可以想到图2中的IoT网关200可以采用图5所示的形式。比如,图2中的数据处理模块204可以通过图5中的处理器501调用存储器503中的代码来实现,又比如,图2中的数据保存模块202可以通过图5中的处理器501调用存储器503中的存储资源来实现,再比如,图2中的实时传输模块205和非实时传输模块203可以通过图5中的处理器501调用存储器503中的代码,并通过通信接口504来实现。本发明实施例对具体实现形式不作任何限定。Those skilled in the art will appreciate that the IoT gateway 200 of FIG. 2 can take the form shown in FIG. For example, the data processing module 204 in FIG. 2 can be implemented by calling the code in the memory 503 by the processor 501 in FIG. 5. For example, the data saving module 202 in FIG. 2 can call the memory through the processor 501 in FIG. The storage resource in 503 is implemented. For example, the real-time transmission module 205 and the non-real-time transmission module 203 in FIG. 2 can call the code in the memory 503 through the processor 501 in FIG. 5 and implement the communication interface 504. The embodiment of the present invention does not limit the specific implementation form.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,本领域技术人员应该理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。在权利要求中,“包括”一次不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其它单元可以实现权利 要求中列举的若干项功能。相互不同的从事权利要求中记载了某些措施,但这并不表示这些措施不能结合起来产生良好的效果。The specific embodiments of the present invention have been described in detail with reference to the embodiments of the present invention. The scope of the present invention is to be construed as being included in the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., are included in the scope of the present invention. In the claims, the <RTIgt; "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill several of the functions recited in the claims. Certain measures are described in mutually different claims, but this does not mean that these measures cannot be combined to produce good results.

Claims (19)

  1. 一种IoT(Internet of things,物联网)数据上报的方法,其特征在于,A method for reporting data of IoT (Internet of things, Internet of Things), characterized in that
    IoT网关从IoT设备采集数据,所述IoT设备包括具有数据监测或命令控制功能的设备;The IoT gateway collects data from an IoT device, the IoT device including a device having data monitoring or command control functions;
    所述IoT网关以第一模式向IoT平台或IoT应用服务器上报数据;The IoT gateway reports data to the IoT platform or the IoT application server in the first mode;
    所述IoT网关判断环境信息符合模式变更规则,或所述IoT网关根据所述IoT平台或所述IoT应用服务器下发的模式变更控制命令,以第二模式向所述IoT平台或IoT应用服务器上报数据;The IoT gateway determines that the environment information conforms to the mode change rule, or the IoT gateway reports the mode change control command sent by the IoT platform or the IoT application server to the IoT platform or the IoT application server in the second mode. data;
    所述第一模式或第二模式为如下任一工作模式,包括实时模式,非实时模式和双通道模式,所述双通道模式为实时模式和非实时模式同时开启的工作模式,所述第一模式和第二模式为不同的工作模式。The first mode or the second mode is any one of the following working modes, including a real-time mode, a non-real-time mode, and a dual channel mode, where the dual channel mode is a working mode in which the real-time mode and the non-real-time mode are simultaneously turned on, the first mode The mode and the second mode are different working modes.
  2. 如权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述实时模式下,所述IoT网关向所述IoT平台或IoT应用服务器上报的数据,为所述IoT网关根据数据处理规则对所述IoT设备的数据进行处理后的数据;所述数据处理规则为预置在所述IoT网关中,或所述IoT平台或所述IoT应用服务器下发的规则。The data reported by the IoT gateway to the IoT platform or the IoT application server in the real-time mode is data processed by the IoT gateway to the data of the IoT device according to a data processing rule; the data processing rule A rule that is preset to be sent in the IoT gateway, or the IoT platform or the IoT application server.
  3. 如权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述非实时模式下,所述IoT网关向所述IoT平台或IoT应用服务器上报的数据为文件,所述文件存储所述IoT网关从所述IoT设备采集到的数据。In the non-real-time mode, the data reported by the IoT gateway to the IoT platform or the IoT application server is a file, and the file stores data collected by the IoT gateway from the IoT device.
  4. 如权利要求1-3任一所述的方法,其特征在于,A method according to any of claims 1-3, wherein
    所述实时模式下,所述IoT网关采用实时传输通道向所述IoT平台或所述IoT应用服务器上报数据,所述实时传输通道为所述IoT网关与所述IoT平台或所述IoT应用服务器间建立的数据传输通道;In the real-time mode, the IoT gateway reports data to the IoT platform or the IoT application server by using a real-time transmission channel, where the real-time transmission channel is between the IoT gateway and the IoT platform or the IoT application server. Established data transmission channel;
    所述非实时模式下,所述IoT网关采用非实时传输通道向所述IoT平台上报数据,所述非实时传输通道为所述IoT网关与所述IoT平台或所述IoT应用服务器间建立的文件传输通道。In the non-real-time mode, the IoT gateway reports data to the IoT platform by using a non-real-time transmission channel, where the non-real-time transmission channel is a file established between the IoT gateway and the IoT platform or the IoT application server. Transmission channel.
  5. 如权利要求4所述的方法,其特征在于,所述非实时模式下,所述IoT网关还采用实时传输通道从所述IoT平台或所述IoT应用服务器接收控制命令。The method according to claim 4, wherein in the non-real time mode, the IoT gateway further receives a control command from the IoT platform or the IoT application server by using a real-time transmission channel.
  6. 如权利要求1-5任一所述的方法,其特征在于,A method according to any of claims 1-5, wherein
    所述实时模式下,所述IoT网关根据实时数据上报规则,向所述IoT平台或所述IoT应用服务器上报数据;In the real-time mode, the IoT gateway reports data to the IoT platform or the IoT application server according to a real-time data reporting rule;
    所述非实时模式下,所述IoT网关根据非实时数据上报规则,向所述IoT平台或所述IoT应用服务器上报存储数据的文件。In the non-real-time mode, the IoT gateway reports a file storing data to the IoT platform or the IoT application server according to a non-real-time data reporting rule.
  7. 如权利要求1-6任一所述的方法,其特征在于,所述模式变更规则为预置在所述IoT网关中的规则,或所述IoT平台或所述IoT应用服务器下发给所述IoT网关的规则;所述模式变更规则中包含触发所述IoT网关变更工作模式的环境信息。The method according to any one of claims 1 to 6, wherein the mode change rule is a rule preset in the IoT gateway, or the IoT platform or the IoT application server sends the rule The rule of the IoT gateway; the mode change rule includes environment information that triggers the IoT gateway to change the working mode.
  8. 如权利要求1-7任一所述的方法,其特征在于,所述IoT网关支持独立或通过其它设备采集所述环境信息,所述环境信息包括网络信号状态。The method according to any one of claims 1-7, wherein the IoT gateway supports collecting the environmental information independently or through other devices, the environmental information including a network signal status.
  9. 一种IoT网关设备,其特征在于,包括数据采集模块,数据处理模块,数据保存 模块,实时传输模块,非实时传输模块,和模式判决模块,其中,An IoT gateway device, comprising: a data acquisition module, a data processing module, a data saving module, a real-time transmission module, a non-real-time transmission module, and a mode decision module, wherein
    所述数据采集模块,用于连接IoT设备并接收IoT设备上报的数据,并根据所述模式判决模块的指示,向所述数据处理模块或所述数据保存模块发送IoT设备上报的数据,或同时向所述数据处理模块和所述数据保存模块发送IoT设备上报的数据;The data collection module is configured to connect to the IoT device and receive the data reported by the IoT device, and send the data reported by the IoT device to the data processing module or the data storage module according to the indication of the mode decision module, or simultaneously Sending data reported by the IoT device to the data processing module and the data saving module;
    所述数据处理模块,用于接收并处理所述数据采集模块发送的数据,并将处理后的数据发送给所述实时传输模块;The data processing module is configured to receive and process data sent by the data collection module, and send the processed data to the real-time transmission module;
    所述数据保存模块,用于接收所述数据采集模块发送的数据,将数据保存为文件,并将所述保存的文件发送给所述非实时传输模块;The data saving module is configured to receive data sent by the data collection module, save the data as a file, and send the saved file to the non-real time transmission module;
    所述实时传输模块,用于接收所述数据处理模块处理后的数据,并将所述经数据处理模块处理后的数据发送给IoT平台或IoT应用服务器;还用于接收所述IoT平台或IoT应用服务器的控制命令;The real-time transmission module is configured to receive data processed by the data processing module, and send the data processed by the data processing module to an IoT platform or an IoT application server; and further, receive the IoT platform or the IoT Application server control command;
    所述非实时传输模块,用于接收所述数据保存模块保存的文件,并将所述文件发送给IoT平台或IoT应用服务器;The non-real-time transmission module is configured to receive a file saved by the data saving module, and send the file to an IoT platform or an IoT application server;
    所述模式判决模块,用于根据所述实时传输模块收到的模式切换控制命令,判决所述IoT网关的工作模式,并指示所述数据采集模块向所述数据处理模块或数据保存模块发送数据,或同时向数据处理模块和数据保存模块发送数据。The mode decision module is configured to determine a working mode of the IoT gateway according to a mode switching control command received by the real-time transmission module, and instruct the data collecting module to send data to the data processing module or the data saving module. Or send data to both the data processing module and the data saving module.
  10. 如权利要求9所述的IoT网关,其特征在于,所述IoT网关还包括环境信息采集模块,所述环境信息采集模块,用于采集所述IoT网关当前的环境信息;所述模式判决模块,根据所述环境信息采集模块采集的环境信息,判决所述IoT网关的工作模式,并指示所述数据采集模块向所述数据处理模块或数据保存模块发送数据,或同时向数据处理模块和数据保存模块发送数据。The IoT gateway according to claim 9, wherein the IoT gateway further comprises an environment information collecting module, wherein the environment information collecting module is configured to collect current environmental information of the IoT gateway; Determining an operation mode of the IoT gateway according to the environment information collected by the environment information collection module, and instructing the data collection module to send data to the data processing module or the data storage module, or simultaneously to the data processing module and the data storage The module sends data.
  11. 如权利要求9或10所述的IoT网关,其特征在于,所述IoT网关的工作模式包括,实时模式,非实时模式和实时模式与非实时模式同时开启的模式;The IoT gateway according to claim 9 or 10, wherein the working mode of the IoT gateway comprises: a real-time mode, a non-real-time mode, and a mode in which the real-time mode and the non-real-time mode are simultaneously turned on;
    所述实时模式下,所述数据采集模块将采集到的IoT设备的数据发送给所述数据处理模块,所述数据处理模块将处理后的数据通过所述实时传输模块发送给所述IoT平台或IoT应用服务器;In the real-time mode, the data collection module sends the collected data of the IoT device to the data processing module, and the data processing module sends the processed data to the IoT platform through the real-time transmission module or IoT application server;
    所述非实时模式下,所述数据采集模块将采集到的IoT设备的数据发送给所述数据保存模块,所述数据保存模块将保存的文件通过所述非实时传输模块发送给所述IoT平台或IoT应用服务器;In the non-real-time mode, the data collection module sends the collected data of the IoT device to the data saving module, and the data saving module sends the saved file to the IoT platform through the non-real-time transmission module. Or IoT application server;
    所述实时模式与非实时模式同时开启的模式下,所述数据采集模块将采集到的IoT设备的数据分别发送给所述数据处理模块和所述数据保存模块,所述数据处理模块将处理后的数据通过所述实时传输模块发送给所述IoT平台或IoT应用服务器,所述数据保存模块将保存的文件通过所述非实时传输模块发送给所述IoT平台或IoT应用服务器。The data acquisition module sends the collected data of the IoT device to the data processing module and the data saving module respectively, and the data processing module processes the data in the real-time mode and the non-real-time mode. The data is sent to the IoT platform or the IoT application server by the real-time transmission module, and the data saving module sends the saved file to the IoT platform or the IoT application server through the non-real-time transmission module.
  12. 如权利要求9-11任一所述的IoT网关,其特征在于,所述数据处理模块根据数据处理规则对所述数据采集模块发送的数据进行处理;所述数据处理规则为预置在所述数据处理模块中的或所述IoT平台或所述IoT应用服务器下发的规则。The IoT gateway according to any one of claims 9-11, wherein the data processing module processes data sent by the data collection module according to a data processing rule; the data processing rule is preset in the A rule issued by the IoT platform or the IoT application server in the data processing module.
  13. 如权利要求9-11任一所述的IoT网关,其特征在于,所述实时传输模块根据实时数据上报规则向所述IoT平台或所述IoT应用服务器发送数据处理模块处理后的数据; 所述实时数据上报规则为为预置在所述数据处理模块中的或所述IoT平台或所述IoT应用服务器下发的规则。The IoT gateway according to any one of claims 9-11, wherein the real-time transmission module sends data processed by the data processing module to the IoT platform or the IoT application server according to a real-time data reporting rule; The real-time data reporting rule is a rule that is preset to be sent in the data processing module or sent by the IoT platform or the IoT application server.
  14. 如权利要求9-11任一所述的IoT网关,其特征在于,所述非实时传输模块根据非实时数据上报规则向所述IoT平台或所述IoT应用服务器发送数据保存模块保存的文件;所述非实时数据上报规则为预置在所述数据处理模块中的或所述IoT平台或所述IoT应用服务器下发的规则。The IoT gateway according to any one of claims 9-11, wherein the non-real time transmission module sends a file saved by the data saving module to the IoT platform or the IoT application server according to a non-real time data reporting rule; The non-real-time data reporting rule is a rule that is preset in the data processing module or sent by the IoT platform or the IoT application server.
  15. 如权利要求10或11所述的IoT网关,其特征在于,所述模式判决模块根据所述环境信息判决工作模式的依据为模式变更规则,所述模式判决模块判断所述环境信息满足所述模式变更规则中变更模式的条件时,决定变更工作模式。The IoT gateway according to claim 10 or 11, wherein the mode decision module determines a mode of operation according to the environment information as a mode change rule, and the mode decision module determines that the environment information satisfies the mode When changing the conditions of the change mode in the rule, it is decided to change the work mode.
  16. 一种IoT网关设备,其特征在于,包括:An IoT gateway device, comprising:
    通信接口,用于从IoT设备接收数据,并通过实时通信接口和非实时通信接口中至少一个通信接口向IoT平台或IoT应用服务器发送经过处理器处理的数据或存储器存储的文件;所述IoT设备包括具有数据监测或命令控制功能的设备;a communication interface for receiving data from the IoT device and transmitting the processor-processed data or the memory-stored file to the IoT platform or the IoT application server through at least one of the real-time communication interface and the non-real-time communication interface; the IoT device Includes devices with data monitoring or command control capabilities;
    存储器,用于存储计算机执行指令和以文件形式存储的IoT设备上报的数据;a memory for storing computer execution instructions and data reported by the IoT device stored in a file format;
    处理器,通过总线与存储器和通信接口连接,处理器执行存储器中存储的计算机执行指令,以完成权利要求1-8中任一所述方法中IoT网关的功能。The processor is coupled to the memory and the communication interface via a bus, and the processor executes computer executed instructions stored in the memory to perform the functions of the IoT gateway in the method of any of claims 1-8.
  17. 一种IoT数据上报的系统,其特征在于,包括IoT设备,IoT网关和IoT平台,其中A system for reporting IoT data, including an IoT device, an IoT gateway, and an IoT platform, wherein
    所述IoT设备,包括具有数据监测或命令控制功能的设备,用于向所述IoT网关上报数据;The IoT device includes a device with data monitoring or command control function for reporting data to the IoT gateway;
    所述IoT网关,用于以权利要求1-8所述的任一项所述的方法,通过实时模式或非实时模式或双通道模式向所述IoT平台发送数据或文件;The IoT gateway, configured to send data or a file to the IoT platform in a real-time mode or a non-real-time mode or a dual channel mode, according to the method of any one of claims 1-8;
    所述IoT平台,用于通过实时传输通道或非实时传输通道或双通道从所述IoT网关接收数据或文件。The IoT platform is configured to receive data or files from the IoT gateway through a real-time transmission channel or a non-real-time transmission channel or dual channels.
  18. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-8任意一项所述的方法。A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1-8.
  19. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1-8中任意一项所述的方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-8.
PCT/CN2018/079805 2017-03-30 2018-03-21 Iot data reporting method, apparatus and system WO2018177174A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710204276.5 2017-03-30
CN201710204276.5A CN108667870B (en) 2017-03-30 2017-03-30 IoT data reporting method, device and system

Publications (1)

Publication Number Publication Date
WO2018177174A1 true WO2018177174A1 (en) 2018-10-04

Family

ID=63674193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/079805 WO2018177174A1 (en) 2017-03-30 2018-03-21 Iot data reporting method, apparatus and system

Country Status (2)

Country Link
CN (1) CN108667870B (en)
WO (1) WO2018177174A1 (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193780A (en) * 2019-12-17 2020-05-22 国电南瑞科技股份有限公司 Modularized Internet of things platform data transmission system
CN111414255A (en) * 2020-03-24 2020-07-14 武汉慧联无限科技有限公司 Data issuing control method, device and equipment and computer storage medium
CN112433920A (en) * 2019-08-26 2021-03-02 北京京东尚科信息技术有限公司 Buried point data reporting method, device, equipment and medium
CN113259881A (en) * 2021-05-07 2021-08-13 隆讯(徐州)智能科技有限公司 NB-IoT (NB-IoT) Internet of things terminal system and method for realizing self-adaptive service model
CN113472862A (en) * 2021-06-18 2021-10-01 广州鲁邦通物联网科技有限公司 Intelligent gateway, data acquisition method and Internet of things system
CN113473406A (en) * 2021-07-06 2021-10-01 江苏智冷物联技术有限公司 Method, device, computer storage medium and terminal for realizing equipment management
CN113592451A (en) * 2021-07-30 2021-11-02 四川省建筑科学研究院有限公司 Civil engineering accidental state monitoring data acquisition method, storage medium, gateway and system
CN113709253A (en) * 2021-09-02 2021-11-26 云知声(上海)智能科技有限公司 IOT platform cloud-side full-duplex real-time communication system and method
CN114025323A (en) * 2021-10-19 2022-02-08 国网浙江省电力有限公司宁波供电公司 Power grid equipment data interaction system and method based on LoRa communication
CN114172918A (en) * 2021-12-08 2022-03-11 天翼物联科技有限公司 Data synchronization method and device, computer equipment and storage medium
CN114222319A (en) * 2021-12-08 2022-03-22 天翼物联科技有限公司 Data transmission method and device for terminal of Internet of things and storage medium
CN114488903A (en) * 2022-02-11 2022-05-13 上海雷诺尔科技股份有限公司 Communication optical fiber communication composite coding system and method for high-voltage frequency converter unit
CN114723375A (en) * 2022-06-07 2022-07-08 成都秦川物联网科技股份有限公司 Industrial Internet of things for regulating and controlling inventory of accessories and control method thereof
CN114900388A (en) * 2022-05-11 2022-08-12 深圳绿米联创科技有限公司 Device control method, device and storage medium
CN114928576A (en) * 2022-05-19 2022-08-19 广东电网有限责任公司 Data exchange apparatus, data exchange method, and computer-readable storage medium
CN113259881B (en) * 2021-05-07 2024-04-30 隆讯(徐州)智能科技有限公司 NB-IoT (network management entity-internet of things) terminal system and method for realizing self-adaptive service model

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687995B (en) * 2018-12-04 2021-07-20 重庆邮电大学 CoAP-based OPC UA message transmission method suitable for resource-limited industrial field equipment
CN110365643A (en) * 2019-06-04 2019-10-22 菜鸟智能物流控股有限公司 Communication method and device
CN110213379B (en) * 2019-06-10 2022-05-10 深圳云里物里科技股份有限公司 Gateway setting method, system, gateway and computer readable storage medium
CN110519383A (en) * 2019-08-30 2019-11-29 山东浪潮商用系统有限公司 A kind of electronic document submission method suitable for self-help terminal equipment
CN110972097B (en) * 2019-11-13 2022-02-18 中国地震局地震预测研究所 Method and equipment for determining data transmission network
CN111132386A (en) * 2019-12-05 2020-05-08 深圳市新科聚合网络技术有限公司 Edge computing gateway based on narrowband Internet of things
CN111224868B (en) * 2020-04-10 2022-04-26 科通工业技术(深圳)有限公司 Control system and control method of gateway of Internet of things
CN112769598B (en) * 2020-12-25 2022-06-07 武汉华中数控股份有限公司 Network communication system and communication implementation method thereof
CN112929238B (en) * 2021-03-19 2022-12-16 中网道科技集团股份有限公司 Network information acquisition method, device and equipment and readable storage medium
CN115129022A (en) * 2021-03-29 2022-09-30 华为技术有限公司 Data transmission method and device
CN215117214U (en) * 2021-05-20 2021-12-10 江苏星瀚智慧信息科技有限公司 Signal acquisition device for power environment monitoring system
CN113347591B (en) * 2021-08-05 2021-10-15 四川省公路规划勘察设计研究院有限公司 LoRa gateway, control method and field engineering structure monitoring system
CN114257883A (en) * 2021-11-05 2022-03-29 深圳市敏泰智能科技有限公司 NB-IoT water meter daily freezing data reporting method and NB-IoT water meter
CN114500605A (en) * 2022-02-18 2022-05-13 百斯特(广州)信息技术有限公司 Industrial Internet of things data transmission method based on 5G and intelligent gateway
CN115879160B (en) * 2023-02-08 2023-05-26 杭州海康威视数字技术股份有限公司 Customizable privacy protection method, system, device and equipment based on semantic perception
CN116915877B (en) * 2023-09-08 2024-01-05 锱云(上海)物联网科技有限公司 Data processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047974A (en) * 2006-03-29 2007-10-03 华为技术有限公司 Gradual network system and data transmission method when the system switchover
WO2012097758A2 (en) * 2012-03-06 2012-07-26 华为终端有限公司 Data transmission method and system, electrical gateway and master station
CN205179379U (en) * 2015-11-30 2016-04-20 成都华程通讯技术有限公司 Two base station systems of wireless transmission

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594911B (en) * 2012-03-15 2015-07-08 招商局重庆交通科研设计院有限公司 Wireless-sensor-based Internet of things monitoring system and method for geological disaster
WO2013184877A2 (en) * 2012-06-08 2013-12-12 Airbiquity Inc. Assessment of electronic sensor data to remotely identify a motor vehicle and monitor driver behavior
CN102843718A (en) * 2012-09-17 2012-12-26 无锡创灵科技有限公司 System and method for realizing data acquisition of terminal
CN104052759B (en) * 2013-03-11 2017-05-10 中国科学院计算技术研究所 System for realizing add-and-play technology of internet of things
CN104715598A (en) * 2013-12-11 2015-06-17 陕西天思信息科技有限公司 Electricity consumption information acquisition system and method based on home gateway
CN204013609U (en) * 2013-12-20 2014-12-10 南京邮电大学 A kind of heat transfer agent device of plug and play
CN105228079A (en) * 2014-05-30 2016-01-06 中兴通讯股份有限公司 M2M business data processing method, device and M2M terminal equipment
CN105825388B (en) * 2016-05-09 2022-03-08 上海孚恩电子科技有限公司 Finished automobile physical object tracing system and method based on RFID technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047974A (en) * 2006-03-29 2007-10-03 华为技术有限公司 Gradual network system and data transmission method when the system switchover
WO2012097758A2 (en) * 2012-03-06 2012-07-26 华为终端有限公司 Data transmission method and system, electrical gateway and master station
CN205179379U (en) * 2015-11-30 2016-04-20 成都华程通讯技术有限公司 Two base station systems of wireless transmission

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433920A (en) * 2019-08-26 2021-03-02 北京京东尚科信息技术有限公司 Buried point data reporting method, device, equipment and medium
CN111193780B (en) * 2019-12-17 2021-11-30 国电南瑞科技股份有限公司 Modularized Internet of things platform data transmission system
CN111193780A (en) * 2019-12-17 2020-05-22 国电南瑞科技股份有限公司 Modularized Internet of things platform data transmission system
CN111414255B (en) * 2020-03-24 2023-05-23 武汉慧联无限科技有限公司 Data issuing control method, device, equipment and computer storage medium
CN111414255A (en) * 2020-03-24 2020-07-14 武汉慧联无限科技有限公司 Data issuing control method, device and equipment and computer storage medium
CN113259881A (en) * 2021-05-07 2021-08-13 隆讯(徐州)智能科技有限公司 NB-IoT (NB-IoT) Internet of things terminal system and method for realizing self-adaptive service model
CN113259881B (en) * 2021-05-07 2024-04-30 隆讯(徐州)智能科技有限公司 NB-IoT (network management entity-internet of things) terminal system and method for realizing self-adaptive service model
CN113472862A (en) * 2021-06-18 2021-10-01 广州鲁邦通物联网科技有限公司 Intelligent gateway, data acquisition method and Internet of things system
CN113473406A (en) * 2021-07-06 2021-10-01 江苏智冷物联技术有限公司 Method, device, computer storage medium and terminal for realizing equipment management
CN113592451A (en) * 2021-07-30 2021-11-02 四川省建筑科学研究院有限公司 Civil engineering accidental state monitoring data acquisition method, storage medium, gateway and system
CN113709253A (en) * 2021-09-02 2021-11-26 云知声(上海)智能科技有限公司 IOT platform cloud-side full-duplex real-time communication system and method
CN114025323A (en) * 2021-10-19 2022-02-08 国网浙江省电力有限公司宁波供电公司 Power grid equipment data interaction system and method based on LoRa communication
CN114172918A (en) * 2021-12-08 2022-03-11 天翼物联科技有限公司 Data synchronization method and device, computer equipment and storage medium
CN114172918B (en) * 2021-12-08 2023-08-01 天翼物联科技有限公司 Data synchronization method, device, computer equipment and storage medium
CN114222319B (en) * 2021-12-08 2024-03-26 天翼物联科技有限公司 Data transmission method, device and storage medium of internet of things terminal
CN114222319A (en) * 2021-12-08 2022-03-22 天翼物联科技有限公司 Data transmission method and device for terminal of Internet of things and storage medium
CN114488903A (en) * 2022-02-11 2022-05-13 上海雷诺尔科技股份有限公司 Communication optical fiber communication composite coding system and method for high-voltage frequency converter unit
CN114900388A (en) * 2022-05-11 2022-08-12 深圳绿米联创科技有限公司 Device control method, device and storage medium
CN114900388B (en) * 2022-05-11 2023-11-07 深圳绿米联创科技有限公司 Equipment control method, device, equipment and storage medium
CN114928576A (en) * 2022-05-19 2022-08-19 广东电网有限责任公司 Data exchange apparatus, data exchange method, and computer-readable storage medium
CN114723375A (en) * 2022-06-07 2022-07-08 成都秦川物联网科技股份有限公司 Industrial Internet of things for regulating and controlling inventory of accessories and control method thereof
CN114723375B (en) * 2022-06-07 2022-09-13 成都秦川物联网科技股份有限公司 Industrial Internet of things for regulating and controlling inventory of accessories and control method thereof
US11782424B1 (en) 2022-06-07 2023-10-10 Chengdu Qinchuan Iot Technology Co., Ltd. Industrial internet of things for regulating an inventory of accessories and control methods thereof

Also Published As

Publication number Publication date
CN108667870A (en) 2018-10-16
CN108667870B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
WO2018177174A1 (en) Iot data reporting method, apparatus and system
US11729105B2 (en) Offloading application traffic to a shared communication channel for signal optimization in a wireless network for traffic utilizing proprietary and non-proprietary protocols
US9961584B2 (en) Mobile device equipped with mobile network congestion recognition to make intelligent decisions regarding connecting to an operator network
EP3456082B1 (en) Measuring and controlling the performance of a wireless network using remote devices
KR102415845B1 (en) Internet of Things Resource Subscription Methods, Devices, and Systems
JP2022547748A (en) Methods and apparatus for transmitting data in IoT systems, gateway devices and their storage media
WO2020207371A1 (en) Data processing system and method, apparatus, and electronic device
US20150312102A1 (en) Policy management for signaling optimization in a wireless network for traffic utilizing proprietary and non-proprietary protocols
JPWO2016159126A1 (en) Gateway device and bearer setting control method
JP2018005431A (en) Operation monitoring server and operation monitoring system
CN114710499A (en) Load balancing method, device and medium for edge computing gateway based on computational power routing
CN110169108A (en) A kind of high speed data transfer down method, equipment and system
WO2021226784A1 (en) Node configuration method and apparatus, distributed system, and computer readable medium
WO2019036851A1 (en) Channel state information measurement and feedback method and related product
CN110213155B (en) Communication processing method, communication processing device, related equipment and storage medium
US20230171150A1 (en) Methods and Devices for Notification with Improved Reliability
CN113905104B (en) Communication method and protocol conversion system for elevator intelligent networking
JP2014041404A (en) Terminal service monitoring device
US20070198218A1 (en) Protocol analyser arrangement, analyser module, and method of managing resources
US9681328B2 (en) Multiple modem device including notification modem
WO2023221911A1 (en) Message transmission method, and device, system and storage medium
Chen Design and Implementation of Wireless Sensor Cellular Network Based on Android Platform.
US11954996B2 (en) System and method for improving network connection reliability of IoT tracking and emergency response devices
CN115361251A (en) Multi-robot cooperative communication system based on polling MAC protocol
KR101421936B1 (en) System and methdo for controlling device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18774692

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18774692

Country of ref document: EP

Kind code of ref document: A1