WO2018233049A1 - 一种物联网数据通信方法及系统 - Google Patents
一种物联网数据通信方法及系统 Download PDFInfo
- Publication number
- WO2018233049A1 WO2018233049A1 PCT/CN2017/100012 CN2017100012W WO2018233049A1 WO 2018233049 A1 WO2018233049 A1 WO 2018233049A1 CN 2017100012 W CN2017100012 W CN 2017100012W WO 2018233049 A1 WO2018233049 A1 WO 2018233049A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- communication interface
- terminal
- data packet
- access node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Definitions
- the present invention relates to the field of Internet of Things technologies, and in particular, to an Internet of Things data communication method and system.
- the Internet of Things is the Internet connected to the Internet. It is a network that extends and expands on the Internet. It uses any terminal equipment such as radio frequency identification equipment, infrared sensing equipment, laser scanners, and gas sensors. Items are connected to the Internet for intelligent identification, location, tracking, monitoring and management. There are a large number of terminal devices in the Internet of Things. These terminal devices are distributed on each device type. The terminal device collects data and reports data according to its own settings or specified by the aggregation unit. For the aggregation unit, some collected data in the mass terminal device is more valuable, and it is more eager to receive the data, but because the terminal device is affected by many factors when reporting the data, one of them is due to limited network resources. If too many terminal devices report data at the same time, some terminal devices may report failures. If they contain more valuable data, it will cause confusion for the aggregation unit to manage the Internet of Things.
- the embodiment of the invention discloses an Internet of Things data communication method and system, which is used for solving the problem that the existing terminal equipment has difficulty in the management of the aggregation unit due to the failure of reporting data, and ensures that the valuable data in the Internet of Things can be stably reported, and the reliability is relatively high. high.
- a first aspect of the present invention discloses an Internet of Things data communication method, which may include:
- the access node receives the report setting information that is sent by the aggregation unit, where the report setting information includes an identity type of the group member, a data reporting time point, a device type, and a communication interface type, where the identity type includes a primary aggregation terminal and a secondary aggregation terminal. And member terminals;
- the access node divides the terminal device of the device type that matches the device setting information into a plurality of groups, and each group includes one primary aggregation terminal and one secondary aggregation terminal, based on the data reporting time point. And a number of member terminals; wherein, the device type of the terminal device of each of the groups matches the device type of the report setting information, and the data reporting time point matches the data reporting time point of the report setting information;
- the primary aggregation terminal When the primary aggregation terminal does not fail, the primary aggregation terminal acquires the current system time, and obtains its own data and data of other terminal devices in the group when the acquired current system time reaches the data reporting time point. Decapsulating the first data packet, and invoking the communication interface corresponding to the communication interface type to report the first data packet to the access node, so that the access node Reporting the first data packet to the convergence unit;
- the secondary aggregation terminal acquires the current system time, and obtains its own data and data package of other terminal devices in the group when the acquired current system time reaches the data reporting time point. Obtaining a second data packet, invoking a communication interface corresponding to the communication interface type, and reporting the second data packet to the access node, so that the access node reports the second data packet to the convergence unit.
- the access node receives the report setting information that is sent by the aggregation unit, and includes:
- the access node invokes the first network interface, and receives the report setting information sent by the aggregation unit by using the first network interface;
- the main aggregation terminal acquires the current system time, and when the acquired current system time reaches the data reporting time point, acquires its own data and data of other terminal devices in the group to obtain the first data packet, and invokes the communication.
- the communication interface corresponding to the interface type reports the first data packet to the access node, including:
- the main aggregation terminal acquires the current system time, and obtains the data of the other terminal device in the group and obtains the first data packet when the obtained system time reaches the data reporting time point, and invokes the communication.
- the communication interface corresponding to the interface type reports the first data packet to the access node, and the communication interface corresponding to the communication interface type is different from the first network interface;
- the secondary aggregation terminal acquires the current system time, and when the acquired current system time reaches the data reporting time point, acquires its own data and data of other terminal devices in the group to obtain a second data packet, and the foregoing
- the two data packets are reported to the access node, including:
- the secondary aggregation terminal acquires the current system time, and when the acquired current system time reaches the data reporting time point, acquires its own data and data of other terminal devices in the group to obtain a second data packet, and invokes the communication.
- the communication interface corresponding to the interface type reports the second data packet to the access node, and the communication interface corresponding to the communication interface type is different from the first network interface.
- the method before the receiving, by the access node, the information about the report sent by the aggregation unit, the method further includes:
- the access node receives the configuration information that is sent by the aggregation unit, where the configuration information includes the device type, the data reporting time point, and the communication interface type;
- the primary aggregation terminal acquires a current system time, and obtains its own data and a group when the acquired current system time reaches the data reporting time point.
- the data packet of the other terminal device is obtained by the first data packet, and the communication interface corresponding to the communication interface type is used to report the first data packet to the access node, including:
- the main aggregation terminal detects the current system time in real time, and collects data and obtains data of other terminal devices in the group to obtain the first data packet when the detected current system time reaches the data collection time point;
- the primary aggregation terminal when the detected current system time reaches the data reporting time point, invokes the communication interface corresponding to the communication interface type to report the first data packet to the access node.
- the secondary aggregation terminal acquires a current system time, and obtains its own data and a group when the acquired current system time reaches the data reporting time point.
- the data packet of the other terminal device is obtained by the second data packet, and the communication interface corresponding to the communication interface type is used to report the second data packet to the access node, including:
- the secondary aggregation terminal detects the current system time in real time, and collects data and obtains data of other terminal devices in the group to obtain the second data packet when the detected current system time reaches the data collection time point;
- the secondary aggregation terminal when the detected current system time reaches the data reporting time point, invokes the communication interface corresponding to the communication interface type to report the second data packet to the access node.
- the second aspect of the present invention discloses a data reporting system based on device type and time, which may include:
- the access node is configured to receive the report setting information that is sent by the aggregation unit, where the report setting information includes an identity type of the group member, a data reporting time point, a device type, and a communication interface type, where the identity type includes a primary aggregation terminal, Secondary aggregation terminal and member terminal;
- the access node is further configured to divide, according to the data reporting time point, the terminal device of the device type that matches the device type with the device type into a plurality of groups, each group includes a primary aggregation terminal, and one a secondary aggregation terminal and a plurality of member terminals; wherein, the device type of the terminal device of each of the groups matches the device type of the report setting information, and the data reporting time point matches the data reporting time point of the report setting information;
- the primary aggregation terminal When the primary aggregation terminal does not fail, the primary aggregation terminal is configured to acquire the current system time, and obtain the data of the user and the other terminal devices in the group when the current system time of the acquisition reaches the data reporting time point.
- the data packet is packetized to obtain a first data packet, and the communication interface corresponding to the communication interface type is invoked to report the first data packet to the access node, so that the access is performed.
- the node reports the first data packet to the convergence unit;
- the secondary aggregation terminal When the primary aggregation terminal is faulty, the secondary aggregation terminal is configured to acquire the current system time, and obtain the data of the other terminal device in the group when the current system time of the acquisition reaches the data reporting time point. Data packet is obtained to obtain a second data packet, and the communication interface corresponding to the communication interface type is invoked to report the second data packet to the access node, so that the access node reports the second data packet to the Said aggregation unit.
- the manner in which the access node is configured to receive the report setting information sent by the aggregation unit is specifically:
- the access node is configured to invoke a first network interface, and receive, by using the first network interface, report sending information that is sent by the aggregation unit;
- the primary aggregation terminal is configured to acquire the current system time, and obtain the first data packet by acquiring the data of the other terminal device in the group when the current system time of the acquired system reaches the data reporting time point.
- the manner in which the communication interface corresponding to the communication interface type reports the first data packet to the access node is specifically:
- the primary aggregation terminal is configured to acquire the current system time, and obtain the first data packet by acquiring the data of the other terminal device in the group and the data packet of the other terminal device in the group when the obtained system time reaches the data reporting time point.
- the communication interface corresponding to the communication interface type reports the first data packet to the access node, and the communication interface corresponding to the communication interface type is different from the first network interface;
- the secondary aggregation terminal is configured to acquire a current system time, obtain the data of the other terminal device in the group and obtain the second data packet when the obtained current system time reaches the data reporting time point, and call the second data packet.
- the manner in which the communication interface corresponding to the communication interface type reports the second data packet to the access node is specifically:
- the secondary aggregation terminal is configured to acquire a current system time, obtain the data of the other terminal device in the group and obtain the second data packet when the obtained current system time reaches the data reporting time point, and call the second data packet.
- the communication interface corresponding to the communication interface type reports the second data packet to the access node, and the communication interface corresponding to the communication interface type is different from the first network interface.
- the method before the access node is configured to receive the report setting information that is sent by the aggregation unit, the method further includes:
- the access node is further configured to: before receiving the report setting information sent by the aggregation unit, receive configuration information that is sent by the aggregation unit, where the configuration information includes the device type, the data reporting time point, and The communication interface type;
- the access node is further configured to send the data reporting time point to its wireless network coverage.
- a terminal device whose device type matches the device type of the configuration information;
- the terminal device is configured to receive the data reporting time point and save, and activate a communication interface corresponding to the communication interface type.
- the primary aggregation terminal is configured to acquire a current system time, and obtain the data and the location of the data when the acquired current system time reaches the data reporting time point.
- the data of the other terminal devices in the group is packaged to obtain the first data packet, and the manner in which the communication interface corresponding to the communication interface type is invoked to report the first data packet to the access node is specifically:
- the primary aggregation terminal is configured to detect the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of other terminal devices in the group is obtained to obtain the first data packet; and, When the detected current system time reaches the data reporting time point, the communication interface corresponding to the communication interface type is invoked to report the first data packet to the access node.
- the secondary aggregation terminal is configured to acquire a current system time, and obtain the data and the location of the data when the acquired current system time reaches the data reporting time point.
- the data of the other terminal devices in the group is packaged to obtain the second data packet, and the manner in which the communication interface corresponding to the communication interface type is used to report the second data packet to the access node is specifically:
- the secondary aggregation terminal is configured to detect the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of other terminal devices in the group is obtained to obtain the second data packet; and, When the detected current system time reaches the data reporting time point, the communication interface corresponding to the communication interface type is invoked to report the second data packet to the access node.
- the embodiment of the invention has the following beneficial effects:
- the access node after receiving the report setting information sent by the aggregation unit, divides the terminal device of the device type that matches the report setting information into several groups, each group based on the data reporting time point.
- a primary aggregation terminal and a secondary aggregation terminal are determined in the group, and the remaining terminal devices are used as member terminals, thereby determining the identity type of the terminal device in the group.
- the primary aggregation terminal of the group does not fail, the primary aggregation terminal acquires the current system time, and obtains its own data and other terminal devices of the group (including secondary aggregation) when the acquired current system time reaches the data reporting time point.
- the data of the terminal and the member terminal are packaged to obtain the first data packet, and then sent to the access node via the communication interface corresponding to the communication interface type, and the access node reports to the aggregation unit again; when the primary aggregation terminal of the group fails, The secondary aggregation terminal acquires the current system time, and obtains its own data and its group when the acquired current system time reaches the data reporting time point.
- the data of the other terminal devices (including the main aggregation terminal and the member terminal) is packaged to obtain the second data packet, and then sent to the access node via the communication interface corresponding to the communication interface type, and the access node reports the information to the aggregation unit.
- the access node determines that the device type matches the terminal device of the device type specified by the aggregation unit, and then determines the time point of the data reporting of the terminal device, and divides the group and the group.
- the terminal device of the group is configured with the identity type, and the data of the terminal device in the group is aggregated and reported by the primary aggregation terminal or the secondary aggregation terminal to implement the centralized reporting and the data of all the terminal devices can be reported and reported directly through the specified communication. If the main aggregation terminal does not fail, the primary aggregation terminal aggregates and reports data. When the primary aggregation terminal fails, the secondary aggregation terminal aggregates and reports data to ensure that valuable data can be reported to the aggregation unit. The reliability is high, and it is convenient for the aggregation unit to better manage the Internet of Things.
- FIG. 1 is a schematic diagram of an Internet of Things architecture disclosed by some embodiments of the present invention.
- FIG. 2 is a schematic flowchart of an Internet of Things data communication method according to an embodiment of the present invention
- FIG. 3 is another schematic flowchart of an Internet of Things data communication method according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an Internet of Things data communication system according to an embodiment of the present invention.
- FIG. 5 is another schematic structural diagram of an Internet of Things data communication system according to an embodiment of the present invention.
- the embodiment of the invention discloses an Internet of Things data communication method, which is used for guaranteeing all terminal devices.
- the data can be reported and reported in time to improve the reliability of the entire IoT data transmission.
- Embodiments of the present invention accordingly disclose an Internet of Things data communication system.
- FIG. 1 is a schematic diagram of an Internet of Things architecture disclosed in some embodiments of the present invention
- the Internet of Things architecture shown in FIG. 1 may include three layers: a terminal layer, an access node layer, and an aggregation layer.
- the terminal layer may include a mass-scale terminal device, such as a hygrometer, a smoke sensor, a ventilation device, a rain sensor, an irrigation valve, etc.;
- the access node layer may include a large number of access nodes connected by a network, and the access node may The device includes a router, a repeater, an access point, and the like, which are not limited by the embodiment of the present invention;
- the access node may use any standard networking protocol, and the access node may implement data parsing between different network standards;
- the aggregation unit may be configured to perform high-level management on each access node of the access node layer, thereby implementing control of data transmission frequency, network topology, and other networking functions; the aggregation unit may not only generate the Internet of Things for the mass terminal equipment.
- each access node can provide IoT data receiving and receiving services for a large number of terminal devices within its own wireless network coverage, wherein each access node has its own wireless network coverage.
- Each terminal device can have a built-in wireless communication module, which enables each access node to communicate wirelessly with each terminal device within its own wireless network coverage by wireless network communication.
- the wireless communication module built into the terminal device can input the upper frequency point 470MHz and the lower frequency point 510MHz during production, so that the wireless communication module can automatically define the communication frequency band as 470MHz ⁇ 510MHz, It complies with the provisions of China's SRRC standard; alternatively, it can input the upper frequency point of 868MHz and the lower frequency point of 908MHz, so that the wireless communication module can automatically define the communication frequency band as 868MHz to 908MHz to comply with the European ETSI standard; or, you can enter The frequency is 918MHz and the lower frequency is 928MHz, so the wireless communication module can automatically define the communication frequency band as 918MHz ⁇ 928MHz to meet the requirements of the US FCC standard.
- the communication frequency band of the wireless communication module can also be defined as conforming to the Japanese ARIB standard or Canada.
- the specification of the IC standard is not limited in the embodiment of the present invention.
- the terminal device can use Frequency Division Multiple Access (FDMA), Frequency-Hopping Spread Spectrum (FHSS), and Dynamic Time Division Multiple Access (Dynamic Time Division Multiple Access). , DTDMA), and backtracking multiplexing (CSMA) are combined to solve the interference problem.
- FDMA Frequency Division Multiple Access
- FHSS Frequency-Hopping Spread Spectrum
- CSMA Dynamic Time Division Multiple Access
- FIG. 2 is a schematic flowchart diagram of an Internet of Things data communication method according to an embodiment of the present invention.
- an Internet of Things data communication method may include:
- the access node receives the report setting information that is sent by the aggregation unit, where the report setting information includes an identity type of the group member, a data reporting time point, a device type, and a communication interface type, where the identity type includes a primary aggregation terminal and a secondary aggregation terminal. And member terminals.
- the identity type of the group member such as the primary aggregation terminal, the secondary aggregation terminal, and the member terminal, is set by the aggregation unit.
- the main aggregation terminal is used to collect the terminal device data in the aggregation group, and then reported to the aggregation unit in a unified manner; and when the primary aggregation terminal fails (for example, the network failure of uploading data to the access node)
- the terminal device data in the group is aggregated by the secondary aggregation terminal, and then reported to the aggregation unit in a unified manner to reduce the competition between the terminal devices, so as to improve the success rate of data reporting.
- the aggregation unit may specify, according to the data reporting time point, the access node to group the terminal devices of a certain device type, and configure the identity type for the terminal devices in the group.
- the device type specified by the aggregation unit is the device type of the aggregation unit. For example, the aggregation unit considers that the data collected by the terminal device corresponding to the device type of a certain mine is valuable. It is hoped that the terminal devices can be timely and stable. By reporting the data, the technical solution of the invention can be implemented for the mine.
- the receiving, by the access node, the sending, by the aggregation unit, the sending, by the first network interface, the sending, by the first node, the sending of the setting information sent by the sending unit is provided with two types of network interfaces, which are referred to as a first network interface and a second network interface in the embodiment of the present invention, wherein the first network interface is used to implement data between the aggregation unit and the aggregation unit. Interaction, the second network interface is used to implement data interaction with the terminal device.
- the access node invokes the first network interface, and receives the report setting information delivered by the aggregation unit.
- the second network interface disclosed in the embodiment of the present invention is a communication interface corresponding to the communication interface type.
- the embodiment of the present invention further includes:
- the access node receives the configuration information that is sent by the aggregation unit, where the configuration information includes the device type, the data reporting time point, and the communication interface type; and the access node sends the data reporting time point to the device in the wireless network coverage range.
- the terminal device of the device type whose type matches the configuration information; and the terminal device receives the data reporting time point and saves, and activates the communication interface corresponding to the communication interface type.
- the data reporting time point of the terminal device is set.
- the access node divides, according to the data reporting time point, the terminal device of the device type that matches the device type with the device type to the group, and each group includes a primary aggregation terminal.
- the access node further configures the identity of the terminal device in the group, and selects one of the plurality of terminal devices to be the primary aggregation terminal, and the other terminal device is configured as the secondary aggregation terminal, and the remaining terminal devices are configured as the member terminals.
- the access node divides the terminal device of a certain device type into groups according to the data reporting time point. Specifically, the terminal device with the same data reporting time point in the device type can be divided into a group, so that the time points of the reported data are staggered between the groups, and for the same group, the same group can pass The data of all the terminal devices in the aggregation group is reported again, so that all the terminal devices can be reported, so that the valuable data that the aggregation unit pays attention to can be stably reported and the transmission reliability is improved.
- the access node may select the terminal device with the best performance from the plurality of terminal devices of the group as the primary aggregation terminal, and select the terminal device with the second performance as the secondary aggregation terminal, and the remaining
- the terminal device is configured as a member terminal.
- the primary aggregation terminal acquires the current system time, and obtains the data of the other terminal devices in the group when the current system time reaches the data reporting time point.
- the data packet is sent to the access node by the communication interface corresponding to the type of the communication interface, so that the access node reports the first data packet to the aggregation unit.
- the other terminal devices in the group in step 203 include the secondary aggregation terminal and the member terminal.
- the access node divides the terminal devices with the same data reporting time point into a group, and the data collected by the multiple terminal devices is aggregated and reported to the aggregation unit at the same time.
- the primary aggregation terminal invoking the communication interface corresponding to the communication interface type to report the first data packet to the access node includes: the primary aggregation terminal sends the first data through the second network interface of the access node. The packet is reported to the access node, and the second network interface is a communication interface corresponding to the type of the communication interface.
- the main aggregation terminal invoking the communication interface corresponding to the communication interface type to report the first data packet to the access node includes: the primary aggregation terminal determines the target transmission frequency band; and establishes a communication connection with the access node in the target transmission frequency band, and The first data packet is reported to the access node by using the communication interface corresponding to the communication interface type.
- the primary aggregation terminal establishes a communication connection with the access node on the target transmission frequency band, and reports the first data packet to the access node by using the communication interface corresponding to the communication interface type according to the established communication connection, which includes: the primary aggregation terminal Determining the time-frequency resource corresponding to the target transmission band, The first data packet is reported to the access node by using the communication interface corresponding to the communication interface type on the time-frequency resource.
- the primary aggregation terminal determines the time-frequency resource corresponding to the target transmission frequency band, and reports the first data packet to the access node by using the communication interface corresponding to the communication interface type on the time-frequency resource, specifically: the primary aggregation terminal passes the frequency hopping And determining, by the target transmission frequency band, a frequency domain location of the physical resource block for reporting the first data packet; the primary aggregation terminal corresponding to the time-frequency resource corresponding to the frequency domain location of the determined physical resource block, corresponding to the communication interface type The communication interface reports the first data packet to the access node.
- the secondary aggregation terminal acquires the current system time, and when the acquired current system time reaches the data reporting time point, obtains its own data and data of other terminal devices in the group to obtain the second data.
- the packet is sent to the access node by the communication interface corresponding to the type of the communication interface, so that the access node reports the second data packet to the aggregation unit.
- the other terminal devices in step 204 include a primary aggregation terminal and a member terminal.
- the secondary aggregation terminal periodically sends a heartbeat data packet to the primary aggregation terminal; when the heartbeat response data packet returned by the primary aggregation terminal is not received within the preset time period, the secondary aggregation terminal determines to monitor the primary convergence.
- the terminal is faulty, and the second data packet is sent to the access node by the communication interface corresponding to the communication interface type, and the second data packet is sent to the access node.
- the secondary aggregation terminal can detect that the primary aggregation terminal is faulty in time, so as to replace the aggregation data of the primary aggregation terminal and report the data as soon as possible.
- the access node acquires the length of time that the primary aggregation terminal does not receive the first data packet, and the access node determines whether the duration is greater than a preset threshold; the access node is longer than the preset threshold. Determining that the primary aggregation terminal is faulty, and sending a notification message to the secondary aggregation terminal, so that the secondary aggregation terminal determines that the primary aggregation terminal is faulty according to the notification message, to perform acquisition of its own data and data packaging of other terminal devices in the group.
- the second data packet is obtained, and the communication interface corresponding to the communication interface type is called to report the second data packet to the access node, so that the access node reports the second data packet to the aggregation unit.
- the access node detects whether the primary aggregation terminal has failed, and notifies the secondary aggregation terminal when a failure occurs.
- the primary aggregation terminal determines that the user has a fault, and notifies the secondary aggregation terminal; Or the primary aggregation terminal detects that it sends the first data packet to the access node. Whether the time is greater than the second threshold, if it is greater than the second threshold, it is determined that the fault has occurred, and the secondary aggregation terminal is notified.
- the access node after receiving the report setting information sent by the aggregation unit, divides the terminal device of the device type that matches the report setting information into several groups, each group based on the data reporting time point.
- a primary aggregation terminal and a secondary aggregation terminal are determined in the group, and the remaining terminal devices are used as member terminals, thereby determining the identity type of the terminal device in the group.
- the primary aggregation terminal of the group does not fail, the primary aggregation terminal acquires the current system time, and obtains its own data and other terminal devices of the group (including secondary aggregation) when the acquired current system time reaches the data reporting time point.
- the data of the terminal and the member terminal are packaged to obtain the first data packet, and then sent to the access node via the communication interface corresponding to the communication interface type, and the access node reports to the aggregation unit again; when the primary aggregation terminal of the group fails, The secondary aggregation terminal obtains the current system time, and obtains the data of its own data and other terminal devices (including the primary aggregation terminal and the member terminal) of the group in which the current system time arrives at the data reporting time point, and obtains the second package. The data packet is then sent to the access node via the communication interface corresponding to the communication interface type, and the access node reports to the aggregation unit.
- the access node determines that the device type matches the terminal device of the device type specified by the aggregation unit, and then determines the time point of the data reporting of the terminal device, and divides the group and the group.
- the terminal device of the group is configured with the identity type, and the data of the terminal device in the group is aggregated and reported by the primary aggregation terminal or the secondary aggregation terminal to implement the centralized reporting and the data of all the terminal devices can be reported and reported directly through the specified communication. If the main aggregation terminal does not fail, the primary aggregation terminal aggregates and reports data. When the primary aggregation terminal fails, the secondary aggregation terminal aggregates and reports data to ensure that valuable data can be reported to the aggregation unit. The reliability is high, and it is convenient for the aggregation unit to better manage the Internet of Things.
- FIG. 3 is another schematic flowchart of an Internet of Things data communication method according to an embodiment of the present invention. As shown in FIG. 3, an Internet of Things data communication method may include:
- the access node receives the report setting information sent by the aggregation unit, where the report setting information includes an identity type of the group member, a data reporting time point, a device type, and a communication interface type, where the identity type includes a primary aggregation terminal and a secondary aggregation terminal. And member terminals.
- the access node after the access node is connected to the network, the access node sends a request for obtaining the report setting information to the aggregation unit, and receives the report setting information sent by the aggregation unit.
- the access node receives the system update configuration information that is sent by the aggregation unit, and performs system update configuration according to the system update configuration information. After the system update configuration is complete, the access node sends the acquisition report setting information to the aggregation unit. The request and the report setting information sent by the receiving unit.
- the access node divides, according to the data reporting time point, the terminal device of the device type that matches the device type to the setting information into a plurality of groups, each group includes a primary aggregation terminal, a secondary aggregation terminal, and several member terminals.
- the device type of the terminal device of each group matches the device type of the report setting information
- the data reporting time point matches the data reporting time point of the report setting information.
- the primary aggregation terminal detects the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of other terminal devices in the group is obtained. A packet of data.
- the main aggregation terminal reports the first data packet to the access node by calling the communication interface corresponding to the communication interface type when the detected current system time reaches the data reporting time point.
- the primary aggregation terminal when the primary aggregation terminal determines the current system time matching data reporting time point, the primary aggregation terminal sends an instant weather query request to the access node that carries the device type of the primary aggregation terminal, so as to enable the connection.
- the ingress node requests the cloud station weather server to match the real-time weather information of the device type of the main aggregation terminal; the main aggregation terminal receives the real-time weather information returned by the access node; and the main aggregation terminal determines whether the real-time weather information matches the weather information of the preset reported data.
- the communication interface corresponding to the communication interface type is called to report the first data packet to the access node.
- the secondary aggregation terminal detects the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of other terminal devices in the group is obtained and packaged to obtain the second. data pack.
- the secondary aggregation terminal sends the second data packet to the access node by using the communication interface corresponding to the communication interface type when the detected current system time reaches the data reporting time point.
- the secondary aggregation terminal when the secondary aggregation terminal determines that the acquired current system time matches the preset reporting data, the secondary aggregation terminal sends an instant weather query request for the device type carrying the secondary aggregation terminal to the access node,
- the access node requests the cloud station weather server to match the real-time weather information of the device type of the secondary aggregation terminal; the secondary aggregation terminal receives the instant weather information returned by the access node; and the secondary aggregation terminal determines whether the instant weather information matches the preset report data.
- the weather information is sent to the access node by calling the communication interface corresponding to the communication interface type when the weather information is matched with the weather information of the preset report data.
- the main aggregation terminal in the group detects the current system time in real time, and when the system time reaches the data collection time point, the data is collected and the data of other terminal devices in the group are obtained.
- the first data packet is then sent to the communication interface corresponding to the communication interface type to report the first data packet when the system time reaches the data reporting time point; when the primary aggregation terminal fails, the secondary aggregation device detects the current system time in real time, in the system Time arrives at data collection During the interval, the data is collected and the data of other terminal devices in the group are obtained to obtain the second data packet, and then when the system time reaches the data reporting time point, the communication interface corresponding to the communication interface type is called to report the second data packet, and the second data packet is used.
- the valuable data in the Internet of Things can be stably reported and the reliability of data transmission is improved.
- FIG. 4 is a schematic structural diagram of an Internet of Things data communication system according to an embodiment of the present invention
- FIG. 5 is another schematic structural diagram of an Internet of Things data communication system according to an embodiment of the present invention
- an Internet of Things data communication system can include:
- the access node 410 is configured to receive the report setting information that is sent by the aggregation unit 420, where the report setting information includes an identity type of the group member, a data reporting time point, a device type, and a communication interface type, where the identity type includes the primary aggregation terminal 4301. , the secondary aggregation terminal 4302 and the member terminal 4303;
- the access node 410 is further configured to divide, according to the data reporting time point, the terminal device 430 of the device type that matches the device type with the device type information into a plurality of groups, each group including a primary aggregation terminal 4301 and a secondary aggregation terminal. 4302 and a plurality of member terminals 4303; wherein the device type of the terminal device 430 of each group matches the device type of the report setting information, and the data reporting time point matches the data reporting time point of the report setting information;
- the primary aggregation terminal 4301 When the primary aggregation terminal 4301 does not fail, the primary aggregation terminal 4301 is configured to acquire the current system time, and obtain the data of the other terminal device 430 in the group in the group when the current system time of the acquisition reaches the data reporting time point.
- the first data packet is obtained, and the communication interface corresponding to the communication interface type is called to report the first data packet to the access node 410, so that the access node 410 reports the first data packet to the convergence unit 420;
- the secondary aggregation terminal 4302 is configured to acquire the current system time.
- the acquired current system time arrives at the data reporting time point, the data is obtained by acquiring the data of the other terminal device 430 in the group.
- the second data packet is sent to the access node 410 by the communication interface corresponding to the communication interface type, so that the access node 410 reports the second data packet to the aggregation unit 420.
- the access node 410 may select the best-optimized terminal device 430 from the plurality of terminal devices 430 of the group to be configured as the primary aggregation terminal 4301, and select the terminal device 430 whose performance is second.
- the aggregation terminal 4302, the remaining terminal devices 430 are configured as member terminals 4303.
- the primary aggregation terminal 4301 invoking the communication interface corresponding to the communication interface type to report the first data packet to the access node 410 specifically includes: the second aggregation interface of the primary aggregation terminal 4301 through the access node 410. Reporting the first data packet to the access node 410, the second network
- the interface is a communication interface corresponding to the type of the communication interface.
- the reporting, by the main aggregation terminal 4301, the first data packet to the access node 410 by using the communication interface corresponding to the communication interface type includes: the primary aggregation terminal 4301 determines the target transmission frequency band; and establishes with the access node 410 in the target transmission frequency band.
- the communication connection, and the first data packet is reported to the access node 410 via the communication interface corresponding to the communication interface type based on the established communication connection.
- the main aggregation terminal 4301 establishes a communication connection with the access node 410 on the target transmission frequency band, and reports the first data packet to the access node 410 by using the communication interface corresponding to the communication interface type based on the established communication connection.
- the primary aggregation terminal 4301 determines the time-frequency resource corresponding to the target transmission frequency band, and reports the first data packet to the access node 410 on the time-frequency resource through the communication interface corresponding to the communication interface type.
- the main aggregation terminal 4301 determines the time-frequency resource corresponding to the target transmission frequency band, and reports the first data packet to the access node 410 on the time-frequency resource through the communication interface corresponding to the communication interface type, which includes: the main aggregation terminal 4301 Determining a frequency domain location of the physical resource block for reporting the first data packet from the target transmission frequency band by using a frequency hopping manner; the primary aggregation terminal 4301 passes the time frequency resource corresponding to the frequency domain location of the determined physical resource block The communication interface corresponding to the communication interface type reports the first data packet to the access node 410.
- the secondary aggregation terminal 4302 periodically sends a heartbeat data packet to the primary aggregation terminal 4303; when the heartbeat response data packet returned by the primary aggregation terminal 4303 is not received within the preset time period, the secondary aggregation terminal 4302 determines The main aggregation terminal 4303 is faulty, and the data of the other terminal device 430 in the group is packaged to obtain the second data packet, and the second data packet is reported and sent through the communication interface corresponding to the communication interface type.
- the inbound node 410 is configured to cause the access node 410 to report the second data packet to the aggregation unit 420.
- the secondary aggregation terminal 4302 determines the primary aggregation.
- the terminal 4303 has not failed.
- the secondary aggregation terminal 4302 can find that the primary aggregation terminal 4303 is faulty in time to replace the aggregation data of the primary aggregation terminal 4303 and report it as soon as possible.
- the access node 410 acquires the length of time when the primary aggregation terminal 4303 does not receive the first data packet, and the access node 410 determines whether the duration is greater than a preset threshold; the access node 410 is in the duration.
- the threshold is greater than the preset threshold, it is determined that the primary aggregation terminal 4303 is faulty, and the secondary aggregation terminal 4302 is sent a notification message, so that the secondary aggregation terminal 4302 determines that the primary aggregation terminal 4303 is faulty according to the notification message, to perform acquisition of its own data and the group.
- the data of the other terminal devices 430 in the group is packaged to obtain the second data packet, and the second data packet is reported to the access node 410 by the communication interface corresponding to the communication interface type, so that the access node 410 reports the second data packet.
- the access node 410 detects whether the primary aggregation terminal 4303 has failed, and notifies the secondary aggregation terminal 4302 when a failure occurs.
- the time that the primary aggregation terminal 4303 receives the data sent by the other terminal device 430 of the group is greater than the first preset. If it is greater than the first preset, it determines that the user has a fault, and notifies the secondary aggregation.
- the terminal 4302; or the primary aggregation terminal 4303 detects whether the time when the first data packet is sent to the access node 410 is greater than a second threshold. If the second aggregation threshold is greater than the second threshold, it is determined that the fault has occurred, and the secondary aggregation terminal 4302 is notified.
- the manner in which the access node 410 is configured to receive the report setting information delivered by the aggregation unit 420 is specifically:
- the access node 410 is configured to invoke the first network interface, and receive, by using the first network interface, the report setting information delivered by the aggregation unit 420.
- the main aggregation terminal 4301 is configured to acquire the current system time, and obtain the data of the other terminal device 430 in the group and obtain the first data packet when the obtained current system time arrives at the data reporting time point, and the first data packet is obtained through the communication interface.
- the manner in which the communication interface corresponding to the type reports the first data packet to the access node 410 is specifically:
- the main aggregation terminal 4301 is configured to acquire the current system time, and obtain the data of the other terminal device 430 in the group and obtain the first data packet when the obtained system time reaches the data reporting time point, and the first data packet is obtained through the communication interface.
- the communication interface corresponding to the type reports the first data packet to the access node 410;
- the secondary aggregation terminal 4302 is configured to acquire the current system time, obtain the data of the other terminal device 430 in the group and obtain the second data packet when the obtained current system time reaches the data reporting time point, and the communication interface type is obtained.
- the manner in which the corresponding communication interface reports the second data packet to the access node 410 is specifically:
- the secondary aggregation terminal 4302 is configured to acquire the current system time, obtain the data of the other terminal device 430 in the group, and obtain the second data packet through the communication interface when the acquired current system time arrives at the data reporting time point.
- the communication interface corresponding to the type reports the second data packet to the access node 410.
- the method further includes:
- the access node 410 is further configured to receive the configuration information that is sent by the convergence unit 420, and the configuration information includes a device type, a data reporting time point, and a communication interface type, before receiving the report setting information sent by the aggregation unit 420.
- the access node 410 is further configured to send the data reporting time point to the terminal device 430 of the device type that matches the configuration information of the device type in the wireless network coverage;
- the terminal device 430 is configured to receive a data reporting time point and save, and activate a communication interface corresponding to the communication interface type.
- the primary aggregation terminal 4301 is configured to acquire the current system time, obtain the data of the other terminal device 430 in the group, and obtain the data of the other terminal device 430 in the group when the current system time of the acquired system reaches the data reporting time point.
- the first data packet, the manner in which the communication interface corresponding to the communication interface type is invoked to report the first data packet to the access node 410 is specifically:
- the main aggregation terminal 4301 is configured to detect the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of the other terminal devices 430 in the group is obtained to obtain the first data packet; and, When the detected current system time reaches the data reporting time point, the communication interface corresponding to the communication interface type is called to report the first data packet to the access node 410.
- the primary aggregation terminal 4301 determines the current system time matching data reporting time point, the primary aggregation terminal 4301 sends an instant weather query request to the access node 410 that carries the device type of the primary aggregation terminal 4301.
- the access node 410 requests the PTZ weather server to match the real-time weather information of the device type of the main aggregation terminal 4301; the main aggregation terminal 4301 receives the real-time weather information returned by the access node 410; the main aggregation terminal 4301 determines whether the real-time weather information is Matching the weather information of the preset report data; the main aggregation terminal 4301, when determining that the weather information matches the weather information of the preset report data, invoking the communication interface corresponding to the communication interface type to report the first data packet to the access node 410.
- the secondary aggregation terminal 4302 is configured to acquire the current system time, obtain the data of the own terminal device 430, and obtain the data of the other terminal devices 430 in the group when the obtained current system time reaches the data reporting time point.
- the second data packet, the manner in which the communication interface corresponding to the communication interface type is invoked to report the second data packet to the access node 410 is specifically:
- the secondary aggregation terminal 4302 is configured to detect the current system time in real time. When the detected current system time reaches the data collection time point, the data is collected and the data of the other terminal devices 430 in the group is obtained to obtain the second data packet; and, When the detected current system time reaches the data reporting time point, the communication interface corresponding to the communication interface type is called to report the second data packet to the access node 410.
- the secondary aggregation terminal 4302 transmits the instant of the device type carrying the secondary aggregation terminal 4302 to the access node 410.
- the weather query request is such that the access node 410 requests the cloud station weather server to match the real-time weather information of the device type of the secondary aggregation terminal 4302; the secondary aggregation terminal 4302 receives the instant weather information returned by the access node 410; the secondary aggregation terminal 4302 determines the instant.
- the secondary aggregation terminal 4302 determines the instant When the weather information matches the weather information of the preset report data, the communication interface corresponding to the communication interface type is called to report the first data packet to the access node 410.
- ROM Read-Only Memory
- RAM Random Access Memory
- PROM Programmable Read-Only Memory
- EPROM Erasable Programmable Read Only Memory
- OTPROM One-Time Programmable Read-Only Memory
- EEPROM Electronically-Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开一种物联网数据通信方法及系统,该方法包括:接入节点接收汇聚单元下发的上报设置信息,以数据上报时间点为依据,将设备类型匹配上报设置信息的设备类型的终端设备划分成若干群组,群组包括一主汇聚终端、一次汇聚终端和若干成员终端;主汇聚终端在未发生故障时,在到达数据上报时间点时,获取其自身数据以及其它终端设备的数据打包得到第一数据包并调用通信接口类型对应的通信接口上报给接入节点;主汇聚终端在发生故障时,次汇聚终端在到达数据上报时间点时,获取其自身数据以及其它终端设备的数据打包得到第二数据包并调用该通信接口上报给接入节点;本发明确保有价值的数据能够稳定上报,便于汇聚单元更好地管理物联网。
Description
本发明涉及物联网技术领域,具体涉及一种物联网数据通信方法及系统。
物联网(Internet of Things,简称IOT)就是物物相连的互联网,是在互联网基础上延伸和扩展得到的网络,通过射频识别设备、红外感应设备、激光扫描器、气体感应器等终端设备把任何物品与互联网连接起来,以实现智能化识别、定位、跟踪、监控和管理。物联网中存在海量终端设备,这些终端设备分布在各个设备类型上,终端设备根据自身设置或者汇聚单元的指定采集数据和上报数据。对于汇聚单元而言,海量终端设备中有一些采集的数据是比较有价值的,其更渴望能够接收到这些数据,但是由于终端设备在上报数据时受到很多因素影响,其中一个是由于网络资源有限,在同一时间若有过多终端设备上报数据,可能造成部分终端设备上报失败,如果其中包含比较有价值的数据,会给汇聚单元管理物联网造成困扰。
发明内容
本发明实施例公开了一种物联网数据通信方法及系统,用于解决现有终端设备因上报数据失败导致汇聚单元管理困难的问题,确保物联网中有价值的数据能够稳定上报,可靠性较高。
本发明第一方面公开一种物联网数据通信方法,可包括:
接入节点接收汇聚单元下发的上报设置信息,所述上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,所述身份类型包括主汇聚终端、次汇聚终端和成员终端;
所述接入节点以所述数据上报时间点为依据,将设备类型匹配所述上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、一个次汇聚终端和若干成员终端;其中,每一个所述群组的终端设备的设备类型匹配所述上报设置信息的设备类型、数据上报时间点匹配所述上报设置信息的数据上报时间点;
在所述主汇聚终端未发生故障时,所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,以使所述接入节点
将所述第一数据包上报给所述汇聚单元;
在所述主汇聚终端发生故障时,所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,以使所述接入节点将所述第二数据包上报给所述汇聚单元。
作为一种可选的实施方式,在本发明第一方面中,所述接入节点接收汇聚单元下发的上报设置信息,包括:
所述接入节点调用第一网络接口,通过所述第一网络接口接收所述汇聚单元下发的上报设置信息;
所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,包括:
所述主汇聚终端获取当前系统时间,在获取的前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口;
所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,将所述第二数据包上报给所述接入节点,包括:
所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口。
作为一种可选的实施方式,在本发明第一方面中,所述接入节点接收汇聚单元下发的上报设置信息之前,所述方法还包括:
所述接入节点接收所述汇聚单元下发的配置信息,所述配置信息包括所述设备类型、所述数据上报时间点和所述通信接口类型;
所述接入节点将所述数据上报时间点发送给其无线网络覆盖范围内设备类型匹配所述配置信息的设备类型的终端设备;
所述终端设备接收所述数据上报时间点并保存,以及激活所述通信接口
类型对应的通信接口。
作为一种可选的实施方式,在本发明第一方面中,所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,包括:
所述主汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第一数据包;
所述主汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点。
作为一种可选的实施方式,在本发明第一方面中,所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,包括:
所述次汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第二数据包;
所述次汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点。
本发明第二方面公开一种基于设备类型和时间的数据上报系统,可包括:
接入节点,用于接收汇聚单元下发的上报设置信息,所述上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,所述身份类型包括主汇聚终端、次汇聚终端和成员终端;
所述接入节点还用于以所述数据上报时间点为依据,将设备类型匹配所述上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、一个次汇聚终端和若干成员终端;其中,每一个所述群组的终端设备的设备类型匹配所述上报设置信息的设备类型、数据上报时间点匹配所述上报设置信息的数据上报时间点;
在所述主汇聚终端未发生故障时,所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,以使所述接入
节点将所述第一数据包上报给所述汇聚单元;
在所述主汇聚终端发生故障时,所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,以使所述接入节点将所述第二数据包上报给所述汇聚单元。
作为一种可选的实施方式,在本发明第二方面中,所述接入节点用于接收汇聚单元下发的上报设置信息的方式具体为:
所述接入节点用于调用第一网络接口,通过所述第一网络接口接收所述汇聚单元下发的上报设置信息;
所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点的方式具体为:
所述主汇聚终端用于获取当前系统时间,在获取的前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口;
所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点的方式具体为:
所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口。
作为一种可选的实施方式,在本发明第二方面中,所述接入节点用于接收汇聚单元下发的上报设置信息之前,所述方法还包括:
所述接入节点还用于在接收所述汇聚单元下发的上报设置信息之前,接收所述汇聚单元下发的配置信息,所述配置信息包括所述设备类型、所述数据上报时间点和所述通信接口类型;
所述接入节点还用于将所述数据上报时间点发送给其无线网络覆盖范围
内设备类型匹配所述配置信息的设备类型的终端设备;
所述终端设备用于接收所述数据上报时间点并保存,以及激活所述通信接口类型对应的通信接口。
作为一种可选的实施方式,在本发明第二方面中,所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点的方式具体为:
所述主汇聚终端用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第一数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点。
作为一种可选的实施方式,在本发明第二方面中,所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点的方式具体为:
所述次汇聚终端用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第二数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点。
与现有技术相比,本发明实施例具有以下有益效果:
在本发明实施例中,接入节点在接收汇聚单元下发的上报设置信息后,以数据上报时间点为依据,将匹配上报设置信息的设备类型的终端设备划分成若干群组,每一个群组中确定出一个主汇聚终端、一个次汇聚终端,剩余的终端设备作为成员终端,从而确定群组中的终端设备的身份类型。在群组的主汇聚终端没有发生故障时,主汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及其所在群组的其它终端设备(包括次汇聚终端和成员终端)的数据,打包得到第一数据包,然后经通信接口类型对应的通信接口发送给接入节点,接入节点再上报给汇聚单元;在群组的主汇聚终端发生故障时,次汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取自身的数据和其所在群组
的其它终端设备(包括主汇聚终端和成员终端)的数据,打包得到第二数据包,然后经通信接口类型对应的通信接口发送给接入节点,接入节点再上报给汇聚单元。可以看出,在本发明实施例中,接入节点确定出设备类型匹配汇聚单元指定的设备类型的终端设备,然后以确定出的终端设备的数据上报时间点为依据,划分群组以及对群组的终端设备配置身份类型,通过主汇聚终端或者次汇聚终端统一汇聚群组中终端设备的数据并上报,实现集中上报且所有终端设备的数据均可上报,且通过指定的通信直接上报,具体地,在主汇聚终端没有发生故障时,集中由主汇聚终端汇聚并上报数据,在主汇聚终端发生故障时,集中由次汇聚终端汇聚并上报数据,确保有价值的数据能够稳定上报给汇聚单元,可靠性较高,而且便于汇聚单元更好地管理物联网。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一些实施例公开的物联网架构示意图;
图2为本发明实施例公开的物联网数据通信方法的流程示意图;
图3为本发明实施例公开的物联网数据通信方法的另一流程示意图;
图4为本发明实施例公开的物联网数据通信系统的结构示意图;
图5为本发明实施例公开的物联网数据通信系统的另一结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本发明实施例公开了一种物联网数据通信方法,用于保证全部终端设备
的数据均可上报且能及时上报,提高整个物联网数据传输的可靠性。本发明实施例相应地公开了一种物联网数据通信系统。
在介绍本发明实施例之前,先简单介绍一下本发明一些实施例公开的物联网架构。如图1所示,图1为本发明一些实施例公开的物联网架构示意图;图1所示的物联网架构按照功能划分可以包括终端层、接入节点层以及汇聚层三个层。其中,终端层可以包括海量规模的终端设备,例如湿度计、烟感器、通风设备、雨量传感器、灌溉阀等等;接入节点层可以包括网络连接的大量的接入节点,接入节点可以包括路由器、中继器、接入点等设备,本发明实施例不作限定;接入节点可以使用任何标准的组网协议,而且接入节点可以在不同的网络制式之间实现数据解析;汇聚层可以包括汇聚单元,汇聚单元可以对接入节点层的各个接入节点进行高层管理,从而实现数据传输频率、网络拓扑以及其他组网功能的控制;汇聚单元不仅可以对海量终端设备产生的物联网数据进行分析和决策,还可以通过发指令去获取信息或者配置终端设备参数(此时数据的传输指向终端设备);汇聚单元还可以引入各种业务,从大数据到社交网络、甚至从社交工具“点赞”到天气分享等。在图1所示的物联网架构中,每一个接入节点可以为其自身无线网络覆盖范围内的海量终端设备提供物联网数据收发服务,其中,每一个接入节点自身无线网络覆盖范围内的每一个终端设备可以内置有无线通讯模块,这使得每一接入节点可以通过无线网络通讯方式与自身无线网络覆盖范围内的每一个终端设备进行无线通讯。在图1所示的物联网架构中,终端设备内置的无线通讯模块在生产时,可以输入上频点470MHz,下频点510MHz,这样无线通讯模块可以自动将通讯频段定义为470MHz~510MHz,以符合中国SRRC标准的规定;或者,也可以输入上频点868MHz,下频点908MHz,这样无线通讯模块可以自动将通讯频段定义为868MHz~908MHz,以符合欧洲ETSI标准的规定;或者,可以输入上频点918MHz,下频点928MHz,这样无线通讯模块可以自动将通讯频段定义为918MHz~928MHz,以符合美国FCC标准的规定;或者,无线通讯模块的通讯频段也可以定义为符合日本ARIB标准或加拿大IC标准的规定,本发明实施例不作限定。在图1所示的物联网架构中,终端设备可以采用频分复用(Frequency Division Multiple Access,FDMA)、跳频(Frequency-Hopping Spread Spectrum,FHSS)、动态时分复用(Dynamic Time Division Multiple Access,DTDMA)、退避复用(CSMA)相结合的方法来解决干扰问题。
下面将从图1所示的物联网架构的角度出发,并结合具体实施例对本发明技术方案进行详细说明。
实施例一
请参阅图2,图2为本发明实施例公开的物联网数据通信方法的流程示意图;如图2所示,一种物联网数据通信方法可包括:
201、接入节点接收汇聚单元下发的上报设置信息,该上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,该身份类型包括主汇聚终端、次汇聚终端和成员终端。
在本发明实施例中,由汇聚单元设置群组成员的身份类型,比如主汇聚终端、次汇聚终端和成员终端。其中,主汇聚终端为群组中主要用于汇聚群组里的终端设备数据,然后统一上报给汇聚单元;而在主汇聚终端发生故障(如无法将数据上传给接入节点的网络故障)时,由次汇聚终端汇聚群组中的终端设备数据,然后统一上报给汇聚单元,减少终端设备之间的竞争,以提高数据上报的成功率。
进一步地,在本发明实施例中,汇聚单元可以指定接入节点以数据上报时间点为依据,针对某一设备类型的终端设备划分群组,对群组中的终端设备配置身份类型。其中,汇聚单元指定的某一设备类型为该汇聚单元感兴趣设备类型,比如,汇聚单元觉得某一个矿井对应设备类型所在的终端设备采集的数据比较有价值,希望这些终端设备都能及时且稳定上报数据,那么可以针对该矿井实施本发明技术方案。
作为一种可选的实施方式,该接入节点接收汇聚单元下发的上报设置信息具体包括:接入节点调用第一网络接口,通过第一网络接口接收汇聚单元下发的上报设置信息。可以理解,接入节点设置有两种类型的网络接口,在本发明实施例中称之为第一网络接口和第二网络接口,其中,第一网络接口用于实现与汇聚单元之间的数据交互,第二网络接口用于实现与终端设备之间的数据交互。在该实施方式中,接入节点调用第一网络接口,接收汇聚单元下发的上报设置信息。可以理解,本发明实施例公开的第二网络接口为该通信接口类型对应的通信接口。
作为一种可选的实施方式,该接入节点接收汇聚单元下发的上报设置信息之前,本发明实施例还包括:
该接入节点接收汇聚单元下发的配置信息,该配置信息包括上述设备类型、上述数据上报时间点和通信接口类型;以及,接入节点将数据上报时间点发送给其无线网络覆盖范围内设备类型匹配配置信息的设备类型的终端设备;以及,终端设备接收数据上报时间点并保存,以及激活该通信接口类型对应的通信接口。通过该实施方式,用于设置终端设备的数据上报时间点。
202、接入节点以数据上报时间点为依据,将设备类型匹配上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、
一个次汇聚终端和若干成员终端;其中,每一个群组的终端设备的设备类型匹配上报设置信息的设备类型、数据上报时间点匹配上报设置信息的数据上报时间点。
接入节点进一步对群组中的终端设备配置身份,从多个终端设备中选择一个终端设备配置为主汇聚终端,选择另外一个终端设备配置为次汇聚终端,剩余的终端设备配置为成员终端。
具体地,接入节点以数据上报时间点为依据,对某一个设备类型的终端设备划分群组。具体地,可以将该设备类型中的数据上报时间点相同的终端设备划分成一个群组,从而在各个群组之间实现错开上报数据的时间点,而对于同一个群组而言,能够通过汇聚群组中的所有终端设备的数据再上报,确保所有终端设备均可上报,从而保证汇聚单元重视的有价值的数据都能够稳定上报,提高传输可靠性。
作为一种可选的实施方式,接入节点可以从群组的多个终端设备中选择性能最优的终端设备配置为主汇聚终端,选择性能次之的终端设备配置为次汇聚终端,剩余的终端设备配置为成员终端。
203、在主汇聚终端未发生故障时,主汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点,以使接入节点将第一数据包上报给汇聚单元。
步骤203中的所在群组中的其它终端设备包括次汇聚终端和成员终端。
接入节点将数据上报时间点相同的终端设备划分到一个群组,能够实现在同一时间将多个终端设备采集的数据汇聚后上报给汇聚单元。
作为一种可选的实施方式,主汇聚终端调用该通信接口类型对应的通信接口将第一数据包上报给接入节点具体包括:主汇聚终端通过接入节点的第二网络接口将第一数据包上报给接入节点,第二网络接口为该通信接口类型对应的通信接口。
进一步地,主汇聚终端调用该通信接口类型对应的通信接口将第一数据包上报给接入节点具体包括:主汇聚终端确定目标传输频段;在目标传输频段上与接入节点建立通信连接,以及基于建立的通信连接通过该通信接口类型对应的通信接口将第一数据包上报给接入节点。
进一步地,主汇聚终端在目标传输频段上与接入节点建立通信连接,以及基于建立的通信连接通过该通信接口类型对应的通信接口将第一数据包上报给接入节点具体包括:主汇聚终端确定目标传输频段所对应的时频资源,
在时频资源上通过该通信接口类型对应的通信接口将第一数据包上报给接入节点。
进一步地,主汇聚终端确定目标传输频段所对应的时频资源,在时频资源上通过该通信接口类型对应的通信接口将第一数据包上报给接入节点具体包括:主汇聚终端通过跳频方式从目标传输频段中确定用于上报第一数据包的物理资源块的频域位置;主汇聚终端在确定的物理资源块的频域位置所对应的时频资源上,通过该通信接口类型对应的通信接口将第一数据包上报给接入节点。实施上述实施方式,能够解决数据干扰问题,提高数据传输效率。
204、在主汇聚终端发生故障时,次汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点,以使接入节点将第二数据包上报给汇聚单元。
步骤204中的其它终端设备包括主汇聚终端和成员终端。
作为一种可选的实施方式,次汇聚终端周期性向主汇聚终端发送心跳数据包;在预设时间段内未接收到主汇聚终端返回的心跳响应数据包时,次汇聚终端确定监听到主汇聚终端发生故障,从而执行获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点,以使接入节点将第二数据包上报给汇聚单元的步骤;在预设时间段内接收到主汇聚终端返回的心跳响应数据包时,次汇聚终端确定主汇聚终端未发生故障。通过该实施方式,次汇聚终端能够及时发现主汇聚终端出现故障,以尽快替换主汇聚终端汇聚数据并上报。
作为另一种可选的实施方式,接入节点获取未接收到主汇聚终端发送第一数据包的时长;接入节点判断该时长是否大于预设阈值;接入节点在该时长大于预设阈值时,确定主汇聚终端发生故障,并向次汇聚终端发送通知消息,以使得次汇聚终端根据通知消息确定主汇聚终端发生故障,以执行获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点,以使接入节点将第二数据包上报给汇聚单元的步骤。通过该实施方式,由接入节点来检测主汇聚终端是否发生故障,并在发生故障时通知次汇聚终端。
作为另一种可选的实施方式,主汇聚终端接收所在群组的其它终端设备发送的数据的时间是否大于第一预置,如果大于第一预置,确定自身出现故障,通知次汇聚终端;或者,主汇聚终端检测其发送第一数据包给接入节点
的时间是否大于第二阈值,如果大于第二阈值,确定自身出现故障,通知次汇聚终端。
在本发明实施例中,接入节点在接收汇聚单元下发的上报设置信息后,以数据上报时间点为依据,将匹配上报设置信息的设备类型的终端设备划分成若干群组,每一个群组中确定出一个主汇聚终端、一个次汇聚终端,剩余的终端设备作为成员终端,从而确定群组中的终端设备的身份类型。在群组的主汇聚终端没有发生故障时,主汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及其所在群组的其它终端设备(包括次汇聚终端和成员终端)的数据,打包得到第一数据包,然后经通信接口类型对应的通信接口发送给接入节点,接入节点再上报给汇聚单元;在群组的主汇聚终端发生故障时,次汇聚终端获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取自身的数据和其所在群组的其它终端设备(包括主汇聚终端和成员终端)的数据,打包得到第二数据包,然后经通信接口类型对应的通信接口发送给接入节点,接入节点再上报给汇聚单元。可以看出,在本发明实施例中,接入节点确定出设备类型匹配汇聚单元指定的设备类型的终端设备,然后以确定出的终端设备的数据上报时间点为依据,划分群组以及对群组的终端设备配置身份类型,通过主汇聚终端或者次汇聚终端统一汇聚群组中终端设备的数据并上报,实现集中上报且所有终端设备的数据均可上报,且通过指定的通信直接上报,具体地,在主汇聚终端没有发生故障时,集中由主汇聚终端汇聚并上报数据,在主汇聚终端发生故障时,集中由次汇聚终端汇聚并上报数据,确保有价值的数据能够稳定上报给汇聚单元,可靠性较高,而且便于汇聚单元更好地管理物联网。
实施例二
请参阅图3,图3为本发明实施例公开的物联网数据通信方法的另一流程示意图;如图3所示,一种物联网数据通信方法可包括:
301、接入节点接收汇聚单元下发的上报设置信息,该上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,该身份类型包括主汇聚终端、次汇聚终端和成员终端。
作为一种可选的实施方式,接入节点在接入网络并启动后,向汇聚单元发送获取上报设置信息的请求,以及接收汇聚单元下发的上报设置信息。
作为另一种可选的实施方式,接入节点接收汇聚单元下发的系统更新配置信息,根据该系统更新配置信息进行系统更新配置,在系统更新配置完成后,向汇聚单元发送获取上报设置信息的请求,以及接收汇聚单元下发的上报设置信息。
302、接入节点以数据上报时间点为依据,将设备类型匹配上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、一个次汇聚终端和若干成员终端;其中,每一个群组的终端设备的设备类型匹配上报设置信息的设备类型、数据上报时间点匹配上报设置信息的数据上报时间点。
303、在主汇聚终端未发生故障时,主汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第一数据包。
304、主汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点。
作为一种可选的实施方式,主汇聚终端在确定获取的当前系统时间匹配数据上报时间点时,主汇聚终端向接入节点发送携带主汇聚终端的设备类型的即时天气查询请求,以使接入节点向云台天气服务器请求匹配主汇聚终端的设备类型的即时天气信息;主汇聚终端接收接入节点返回的即时天气信息;主汇聚终端判断即时天气信息是否匹配预设的上报数据的天气信息;主汇聚终端在确定出即时天气信息匹配预设的上报数据的天气信息时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点。
305、在主汇聚终端发生故障时,次汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第二数据包。
306、次汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点。
作为一种可选的实施方式,次汇聚终端在确定获取的当前系统时间匹配预设的上报数据的时间时,次汇聚终端向接入节点发送携带次汇聚终端的设备类型的即时天气查询请求,以使接入节点向云台天气服务器请求匹配次汇聚终端的设备类型的即时天气信息;次汇聚终端接收接入节点返回的即时天气信息;次汇聚终端判断即时天气信息是否匹配预设的上报数据的天气信息;次汇聚终端在确定出即时天气信息匹配预设的上报数据的天气信息时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点。
在本发明实施例中,在划分群组后,群组中的主汇聚终端实时检测当前系统时间,在系统时间到达数据采集时间点时,采集数据和获取群组中其它终端设备的数据打包得到第一数据包,然后在系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口上报第一数据包;在主汇聚终端发生故障时,次汇聚设备实时检测当前系统时间,在系统时间到达数据采集时
间点时,采集数据和获取群组中其它终端设备的数据打包得到第二数据包,然后在系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口上报第二数据包,用于解决现有终端设备因上报数据失败导致汇聚单元管理困难的问题,确保物联网中有价值的数据能够稳定上报,提高数据传输的可靠性。
实施例三
请参阅图4和图5,图4为本发明实施例公开的物联网数据通信系统的结构示意图,图5为本发明实施例公开的物联网数据通信系统的另一结构示意图;如图4所示,一种物联网数据通信系统可包括:
接入节点410,用于接收汇聚单元420下发的上报设置信息,该上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,该身份类型包括主汇聚终端4301、次汇聚终端4302和成员终端4303;
接入节点410还用于以数据上报时间点为依据,将设备类型匹配上报设置信息的设备类型的终端设备430划分成若干群组,每一个群组包括一个主汇聚终端4301、一个次汇聚终端4302和若干成员终端4303;其中,每一个群组的终端设备430的设备类型匹配上报设置信息的设备类型、数据上报时间点匹配上报设置信息的数据上报时间点;
在主汇聚终端4301未发生故障时,主汇聚终端4301用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第一数据包,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410,以使接入节点410将第一数据包上报给汇聚单元420;
在主汇聚终端4301发生故障时,次汇聚终端4302用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点410,以使接入节点410将第二数据包上报给汇聚单元420。
作为一种可选的实施方式,接入节点410可以从群组的多个终端设备430中选择性能最优的终端设备430配置为主汇聚终端4301,选择性能次之的终端设备430配置为次汇聚终端4302,剩余的终端设备430配置为成员终端4303。
作为一种可选的实施方式,主汇聚终端4301调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410具体包括:主汇聚终端4301通过接入节点410的第二网络接口将第一数据包上报给接入节点410,第二网络
接口为该通信接口类型对应的通信接口。
进一步地,主汇聚终端4301通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410具体包括:主汇聚终端4301确定目标传输频段;在目标传输频段上与接入节点410建立通信连接,以及基于建立的通信连接通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410。
进一步地,主汇聚终端4301在目标传输频段上与接入节点410建立通信连接,以及基于建立的通信连接通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410具体包括:主汇聚终端4301确定目标传输频段所对应的时频资源,在时频资源上通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410。
进一步地,主汇聚终端4301确定目标传输频段所对应的时频资源,在时频资源上通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410具体包括:主汇聚终端4301通过跳频方式从目标传输频段中确定用于上报第一数据包的物理资源块的频域位置;主汇聚终端4301在确定的物理资源块的频域位置所对应的时频资源上,通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410。实施上述实施方式,能够解决数据干扰问题,提高数据传输效率。
作为一种可选的实施方式,次汇聚终端4302周期性向主汇聚终端4303发送心跳数据包;在预设时间段内未接收到主汇聚终端4303返回的心跳响应数据包时,次汇聚终端4302确定监听到主汇聚终端4303发生故障,从而执行获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,通过该通信接口类型对应的通信接口将第二数据包上报给接入节点410,以使接入节点410将第二数据包上报给汇聚单元420的步骤;在预设时间段内接收到主汇聚终端4303返回的心跳响应数据包时,次汇聚终端4302确定主汇聚终端4303未发生故障。通过该实施方式,次汇聚终端4302能够及时发现主汇聚终端4303出现故障,以尽快替换主汇聚终端4303汇聚数据并上报。
作为另一种可选的实施方式,接入节点410获取未接收到主汇聚终端4303发送第一数据包的时长;接入节点410判断该时长是否大于预设阈值;接入节点410在该时长大于预设阈值时,确定主汇聚终端4303发生故障,并向次汇聚终端4302发送通知消息,以使得次汇聚终端4302根据通知消息确定主汇聚终端4303发生故障,以执行获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,通过该通信接口类型对应的通信接口将第二数据包上报给接入节点410,以使接入节点410将第二数据包上报
给汇聚单元420的步骤。通过该实施方式,由接入节点410来检测主汇聚终端4303是否发生故障,并在发生故障时通知次汇聚终端4302。
作为另一种可选的实施方式,主汇聚终端4303接收所在群组的其它终端设备430发送的数据的时间是否大于第一预置,如果大于第一预置,确定自身出现故障,通知次汇聚终端4302;或者,主汇聚终端4303检测其发送第一数据包给接入节点410的时间是否大于第二阈值,如果大于第二阈值,确定自身出现故障,通知次汇聚终端4302。
作为一种可选的实施方式,接入节点410用于接收汇聚单元420下发的上报设置信息的方式具体为:
接入节点410用于调用第一网络接口,通过第一网络接口接收汇聚单元420下发的上报设置信息;
主汇聚终端4301用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第一数据包,通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410的方式具体为:
主汇聚终端4301用于获取当前系统时间,在获取的前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第一数据包,通过该通信接口类型对应的通信接口将第一数据包上报给接入节点410;
次汇聚终端4302用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,该通信接口类型对应的通信接口将第二数据包上报给接入节点410的方式具体为:
次汇聚终端4302用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,通过该通信接口类型对应的通信接口将第二数据包上报给接入节点410。
作为一种可选的实施方式,接入节点410用于接收汇聚单元420下发的上报设置信息之前,方法还包括:
接入节点410还用于在接收汇聚单元420下发的上报设置信息之前,接收汇聚单元420下发的配置信息,配置信息包括设备类型、数据上报时间点和通信接口类型;
接入节点410还用于将数据上报时间点发送给其无线网络覆盖范围内设备类型匹配配置信息的设备类型的终端设备430;
终端设备430用于接收数据上报时间点并保存,以及激活该通信接口类型对应的通信接口。
作为一种可选的实施方式,主汇聚终端4301用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第一数据包,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410的方式具体为:
主汇聚终端4301用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备430的数据打包得到第一数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410。
作为一种可选的实施方式,主汇聚终端4301在确定获取的当前系统时间匹配数据上报时间点时,主汇聚终端4301向接入节点410发送携带主汇聚终端4301的设备类型的即时天气查询请求,以使接入节点410向云台天气服务器请求匹配主汇聚终端4301的设备类型的即时天气信息;主汇聚终端4301接收接入节点410返回的即时天气信息;主汇聚终端4301判断即时天气信息是否匹配预设的上报数据的天气信息;主汇聚终端4301在确定出即时天气信息匹配预设的上报数据的天气信息时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410。
作为一种可选的实施方式,次汇聚终端4302用于获取当前系统时间,在获取的当前系统时间到达数据上报时间点时,获取其自身数据以及所在群组中其它终端设备430的数据打包得到第二数据包,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点410的方式具体为:
次汇聚终端4302用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备430的数据打包得到第二数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用该通信接口类型对应的通信接口将第二数据包上报给接入节点410。
作为一种可选的实施方式,次汇聚终端4302在确定获取的当前系统时间匹配预设的上报数据的时间时,次汇聚终端4302向接入节点410发送携带次汇聚终端4302的设备类型的即时天气查询请求,以使接入节点410向云台天气服务器请求匹配次汇聚终端4302的设备类型的即时天气信息;次汇聚终端4302接收接入节点410返回的即时天气信息;次汇聚终端4302判断即时天气信息是否匹配预设的上报数据的天气信息;次汇聚终端4302在确定出即时
天气信息匹配预设的上报数据的天气信息时,调用该通信接口类型对应的通信接口将第一数据包上报给接入节点410。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。
以上对本发明实施例公开的一种物联网数据通信方法及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
Claims (10)
- 一种物联网数据通信方法,其特征在于,包括:接入节点接收汇聚单元下发的上报设置信息,所述上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,所述身份类型包括主汇聚终端、次汇聚终端和成员终端;所述接入节点以所述数据上报时间点为依据,将设备类型匹配所述上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、一个次汇聚终端和若干成员终端;其中,每一个所述群组的终端设备的设备类型匹配所述上报设置信息的设备类型、数据上报时间点匹配所述上报设置信息的数据上报时间点;在所述主汇聚终端未发生故障时,所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,以使所述接入节点将所述第一数据包上报给所述汇聚单元;在所述主汇聚终端发生故障时,所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,以使所述接入节点将所述第二数据包上报给所述汇聚单元。
- 根据权利要求1所述的方法,其特征在于,所述接入节点接收汇聚单元下发的上报设置信息,包括:所述接入节点调用第一网络接口,通过所述第一网络接口接收所述汇聚单元下发的上报设置信息;所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,包括:所述主汇聚终端获取当前系统时间,在获取的前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口;所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,包括:所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口。
- 根据权利要求1或2所述的方法,其特征在于,所述接入节点接收汇聚单元下发的上报设置信息之前,所述方法还包括:所述接入节点接收所述汇聚单元下发的配置信息,所述配置信息包括所述设备类型、所述数据上报时间点和所述通信接口类型;所述接入节点将所述数据上报时间点发送给其无线网络覆盖范围内设备类型匹配所述配置信息的设备类型的终端设备;所述终端设备接收所述数据上报时间点并保存,以及激活所述通信接口类型对应的通信接口。
- 根据权利要求1所述的方法,其特征在于,所述主汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,包括:所述主汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第一数据包;所述主汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点。
- 根据权利要求1~4任一项所述的方法,其特征在于,所述次汇聚终端获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,包括:所述次汇聚终端实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第二数据包;所述次汇聚终端在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点。
- 一种物联网数据通信系统,其特征在于,包括:接入节点,用于接收汇聚单元下发的上报设置信息,所述上报设置信息包括群组成员的身份类型、数据上报时间点、设备类型和通信接口类型,所述身份类型包括主汇聚终端、次汇聚终端和成员终端;所述接入节点还用于以所述数据上报时间点为依据,将设备类型匹配所述上报设置信息的设备类型的终端设备划分成若干群组,每一个群组包括一个主汇聚终端、一个次汇聚终端和若干成员终端;其中,每一个所述群组的终端设备的设备类型匹配所述上报设置信息的设备类型、数据上报时间点匹配所述上报设置信息的数据上报时间点;在所述主汇聚终端未发生故障时,所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,以使所述接入节点将所述第一数据包上报给所述汇聚单元;在所述主汇聚终端发生故障时,所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,以使所述接入节点将所述第二数据包上报给所述汇聚单元。
- 根据权利要求6所述的系统,其特征在于,所述接入节点用于接收汇聚单元下发的上报设置信息的方式具体为:所述接入节点用于调用第一网络接口,通过所述第一网络接口接收所述汇聚单元下发的上报设置信息;所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点的方式具体为:所述主汇聚终端用于获取当前系统时间,在获取的前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第一网络接口;所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点的方式具体为:所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点,所述通信接口类型对应的通信接口不同于所述第 一网络接口。
- 根据权利要求6或7所述的系统,其特征在于,所述接入节点用于接收汇聚单元下发的上报设置信息之前,所述方法还包括:所述接入节点还用于在接收所述汇聚单元下发的上报设置信息之前,接收所述汇聚单元下发的配置信息,所述配置信息包括所述设备类型、所述数据上报时间点和所述通信接口类型;所述接入节点还用于将所述数据上报时间点发送给其无线网络覆盖范围内设备类型匹配所述配置信息的设备类型的终端设备;所述终端设备用于接收所述数据上报时间点并保存,以及激活所述通信接口类型对应的通信接口。
- 根据权利要求6所述的系统,其特征在于,所述主汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第一数据包,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点的方式具体为:所述主汇聚终端用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第一数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第一数据包上报给所述接入节点。
- 根据权利要求6~9任一项所述的系统,其特征在于,所述次汇聚终端用于获取当前系统时间,在获取的当前系统时间到达所述数据上报时间点时,获取其自身数据以及所在群组中其它终端设备的数据打包得到第二数据包,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点的方式具体为:所述次汇聚终端用于实时检测当前系统时间,在检测到的当前系统时间到达数据采集时间点时,采集数据并获取所在群组中其它终端设备的数据打包得到第二数据包;以及,在检测到的当前系统时间到达数据上报时间点时,调用所述通信接口类型对应的通信接口将所述第二数据包上报给所述接入节点。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710473214.4 | 2017-06-21 | ||
| CN201710473214.4A CN107370790A (zh) | 2017-06-21 | 2017-06-21 | 一种物联网数据通信方法及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018233049A1 true WO2018233049A1 (zh) | 2018-12-27 |
Family
ID=60305534
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/100012 Ceased WO2018233049A1 (zh) | 2017-06-21 | 2017-08-31 | 一种物联网数据通信方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107370790A (zh) |
| WO (1) | WO2018233049A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108566299B (zh) * | 2018-04-20 | 2021-02-19 | 浪潮集团有限公司 | 一种物联网云平台终端组管理方法 |
| CN110913496B (zh) * | 2018-09-14 | 2022-05-20 | 大唐移动通信设备有限公司 | 一种信息上报方法、信息获取方法、终端及网络设备 |
| CN115277400A (zh) * | 2022-07-15 | 2022-11-01 | 浪潮思科网络科技有限公司 | 一种基于园区网环境的终端入网方法、设备及介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102932751A (zh) * | 2012-10-17 | 2013-02-13 | 中国联合网络通信集团有限公司 | 物联网数据传输方法和物联网 |
| CN104359196A (zh) * | 2014-10-10 | 2015-02-18 | 深圳市共济科技有限公司 | 一种基于数据中心多联空调的控制系统及实现方法 |
| CN105915616A (zh) * | 2016-04-29 | 2016-08-31 | 无锡中科智能农业发展有限责任公司 | 一种基于物联网技术的蛋鸡养殖环境智能监测系统及方法 |
| CN106101238A (zh) * | 2016-06-22 | 2016-11-09 | 深圳市慧云物联网技术有限公司 | 一种物联网终端通信管控的方法和装置 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102594911B (zh) * | 2012-03-15 | 2015-07-08 | 招商局重庆交通科研设计院有限公司 | 基于无线传感器的地质灾害物联网监测系统及方法 |
| CN102761402A (zh) * | 2012-07-20 | 2012-10-31 | 深圳数字电视国家工程实验室股份有限公司 | Ism频段数据通信实现方法、装置和一种无线通信系统 |
| CN103067497A (zh) * | 2012-12-27 | 2013-04-24 | 北京时代凌宇科技有限公司 | 一种物联网系统 |
| US9438440B2 (en) * | 2013-07-29 | 2016-09-06 | Qualcomm Incorporated | Proximity detection of internet of things (IoT) devices using sound chirps |
| CN105376766A (zh) * | 2014-08-11 | 2016-03-02 | 无锡市嘉邦电力管道厂 | 一种物联网数据传输方法 |
| WO2016154959A1 (zh) * | 2015-04-01 | 2016-10-06 | 深圳市大疆创新科技有限公司 | 一种通信方法、无人飞行器以及无人飞行器控制装置 |
| CN106060109A (zh) * | 2016-05-06 | 2016-10-26 | 东莞中科智城软件有限公司 | 一种基于路灯的城市物联网系统 |
| CN106550468B (zh) * | 2016-11-07 | 2020-03-31 | 北京佰才邦技术有限公司 | 数据传输方法和基站 |
-
2017
- 2017-06-21 CN CN201710473214.4A patent/CN107370790A/zh active Pending
- 2017-08-31 WO PCT/CN2017/100012 patent/WO2018233049A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102932751A (zh) * | 2012-10-17 | 2013-02-13 | 中国联合网络通信集团有限公司 | 物联网数据传输方法和物联网 |
| CN104359196A (zh) * | 2014-10-10 | 2015-02-18 | 深圳市共济科技有限公司 | 一种基于数据中心多联空调的控制系统及实现方法 |
| CN105915616A (zh) * | 2016-04-29 | 2016-08-31 | 无锡中科智能农业发展有限责任公司 | 一种基于物联网技术的蛋鸡养殖环境智能监测系统及方法 |
| CN106101238A (zh) * | 2016-06-22 | 2016-11-09 | 深圳市慧云物联网技术有限公司 | 一种物联网终端通信管控的方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107370790A (zh) | 2017-11-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018232970A1 (zh) | 一种应用于物联网的终端设备状态检测方法及系统 | |
| CN107396416B (zh) | 一种基于数据类型的通信控制方法及系统 | |
| WO2018232966A1 (zh) | 一种基于边缘转发节点的终端设备离线检测方法及系统 | |
| CN107318168B (zh) | 一种控制物联网终端设备通信的方法及系统 | |
| WO2018233030A1 (zh) | 一种基于传输时长的物联网数据上报控制方法及转发节点 | |
| WO2018233036A1 (zh) | 一种物联网数据的上报控制方法及设备 | |
| CN107222876B (zh) | 一种物联网无线信号调整方法及系统 | |
| WO2018232973A1 (zh) | 一种物联网终端设备工作状态的控制方法及系统 | |
| WO2018233045A1 (zh) | 一种物联网通信模式的切换控制方法及系统 | |
| WO2018232976A1 (zh) | 一种终端设备的工作状态的确定方法及设备 | |
| WO2018233034A1 (zh) | 一种物联网数据的传输控制方法及系统 | |
| WO2018233020A1 (zh) | 一种基于物联网的数据封装方法及系统 | |
| WO2018233050A1 (zh) | 一种物联网信号强度的检测方法及系统 | |
| WO2018232967A1 (zh) | 一种基于接入节点的物联网终端设备检测方法及系统 | |
| CN107360217B (zh) | 一种基于地理位置和时间的数据上报方法及系统 | |
| CN111130680B (zh) | 一种同步物联网接入节点与汇聚单元时间的方法及系统 | |
| WO2018233043A1 (zh) | 一种物联网中基于地理位置的数据上报控制方法及系统 | |
| CN107257375B (zh) | 一种基于过滤网关的终端设备工作状态检测方法及系统 | |
| WO2018233031A1 (zh) | 一种基于物联网的数据传输控制方法及系统 | |
| WO2018232962A1 (zh) | 一种物联网接入节点网络覆盖范围的调整方法及系统 | |
| CN107370790A (zh) | 一种物联网数据通信方法及系统 | |
| CN107196824B (zh) | 一种确定被监测设备的工作状态的方法及汇聚单元 | |
| CN107360097B (zh) | 一种结合汇聚单元信息的物联网路由表更新方法及系统 | |
| CN107249172B (zh) | 一种基于终端设备数量的数据封装控制方法及系统 | |
| CN107249033B (zh) | 一种控制物联网中数据封装的方法及系统 |
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: 17914557 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.05.2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17914557 Country of ref document: EP Kind code of ref document: A1 |