WO2018232973A1 - Method and system for controlling working state of internet of things terminal equipment - Google Patents
Method and system for controlling working state of internet of things terminal equipment Download PDFInfo
- Publication number
- WO2018232973A1 WO2018232973A1 PCT/CN2017/098641 CN2017098641W WO2018232973A1 WO 2018232973 A1 WO2018232973 A1 WO 2018232973A1 CN 2017098641 W CN2017098641 W CN 2017098641W WO 2018232973 A1 WO2018232973 A1 WO 2018232973A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- time
- data
- routing node
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- 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/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q2209/00—Arrangements in telecontrol or telemetry systems
- H04Q2209/80—Arrangements in the sub-station, i.e. sensing device
- H04Q2209/88—Providing power supply at the sub-station
- H04Q2209/883—Providing power supply at the sub-station where the sensing device enters an active or inactive mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the invention relates to the technical field of the Internet of things, and particularly relates to a method and a system for controlling the working state of an Internet of Things terminal device.
- the Internet of Things connects all items to information sensing devices such as radio frequency identification, infrared sensors, global positioning systems, laser scanners, etc., and connects to the Internet in accordance with agreed protocols for information exchange and communication.
- information sensing devices such as radio frequency identification, infrared sensors, global positioning systems, laser scanners, etc.
- These information sensing devices are called terminal devices in the entire Internet of Things.
- the terminal device simply "broadcasts” a small amount of data, or “listens” directly to its own data, which can also be called a “dumb device.”
- the replacement of the battery of the terminal device is troublesome, and some terminal devices may need to be placed in some dangerous places. Therefore, the terminal device battery needs to maintain the working time of the terminal device for a long time, for several months, several years or even several Ten years, therefore, there is a higher demand in the art for the life of terminal equipment.
- the embodiment of the invention discloses a method and a system for controlling the working state of the Internet of Things terminal device, which are used for controlling the terminal devices specified by the convergence unit to realize different working states at different stages, thereby improving the battery life of the terminal device, thereby improving the life of the terminal device. .
- a first aspect of the present invention discloses a method for controlling an operating state of an Internet of Things terminal device, which may include:
- the edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, an operation status when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for And indicating a working state when the terminal device corresponding to the device type reports data and a time for reporting the data;
- the edge routing node forwards the working status indication information to a terminal device in the wireless network coverage that matches the device type;
- the terminal device After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time, and when monitoring the time when the system time reaches the collected data indicated by the working status indication information, The working state of the terminal device is switched to the working state when collecting data indicated by the working state indication information, and data is collected;
- the terminal device monitors the time when the system time reaches the reported data indicated by the working state indication information, when the operating state of the terminal device is switched to the reported data indicated by the working state indication information, Working state, and sending the collected information to the edge routing node Data, such that the edge routing node reports the received data to the aggregation unit;
- the terminal device switches the working state of the terminal device to a sleep state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported.
- the terminal device monitors the time when the system time reaches the reported data indicated by the working state indication information
- the terminal is The working state of the device is switched to the working state when the data is reported by the working state indication information, and the collected data is sent to the edge routing node, including:
- the terminal device When the power supply mode of the terminal device is a preset power supply mode, the terminal device sends a first instant weather acquisition request that carries the device identifier of the terminal device to the edge routing node, so that the edge routing node Determining location information of the terminal device according to the device identifier, and sending, by using an instant weather acquisition interface, a second real-time weather acquisition request carrying location information of the terminal device to the weather server to request real-time weather information;
- the terminal device suspends performing an operation state when the working state of the terminal device is switched to the reported data indicated by the working state indication information, and routing to the edge The step of the node transmitting the collected data;
- the terminal device When the determination result of the terminal device is NO, the terminal device performs an operation state when the working state of the terminal device is switched to the reported data indicated by the working state indication information, and routes the node to the edge. The step of sending the collected data.
- the method further includes:
- the edge routing node After the edge routing node forwards the working status indication information to the terminal device, the edge routing node monitors in real time whether the time that the terminal device reports the data indicated by the working status indication information is reached;
- the edge routing node detects whether the data sent by the terminal device is received
- the edge routing node When detecting that the data sent by the terminal device is not received, the edge routing node acquires a power supply mode of the terminal device, and determines whether the power supply mode of the terminal device is a preset power supply mode;
- the edge routing section when the power supply mode of the terminal device is the preset power supply mode Pointing the instant weather acquisition interface to send a third instant weather acquisition request carrying the location information of the terminal device to the weather server;
- the edge routing node receives third instant weather information corresponding to the location information of the terminal device returned by the weather server;
- the edge routing node reports the first report information to the aggregation unit, where the first report information is used to describe the terminal.
- the edge routing node When it is determined that the third real-time weather information is not the weather information that affects the power supply of the terminal device, the edge routing node reports the second report information to the convergence unit, where the second report information is used to describe the terminal. The device failed to report data on time for unknown reasons.
- the edge routing node when determining that the third real-time weather information is not weather information that affects power supply of the terminal device, the edge routing node reports to the aggregation unit Second reporting information, including:
- the edge routing node broadcasts a listening message to the terminal device when it is determined that the third real-time weather information is not weather information that affects power supply of the terminal device;
- the edge routing node monitors whether a response message for the interception message returned by the terminal device is received
- the edge routing node reports the second report information to the aggregation unit.
- the method further includes:
- the edge routing node When the power supply mode of the terminal device is the preset power supply mode, the edge routing node detects whether the instant weather acquisition interface is in an active state, and if in the active state, the edge routing node performs an instant weather acquisition interface.
- the weather server sends the third instant weather acquisition request carrying the location information of the terminal device.
- the second aspect of the present invention discloses a control system for an operating state of an Internet of Things terminal device, which may include:
- the aggregation unit is configured to send the working status indication information to the edge routing node, where the working status indication information includes a device type, a working status when the terminal device corresponding to the device type collects data, and a time for collecting data, and The working status of the terminal device corresponding to the device type and the time when the data is reported;
- the edge routing node is configured to receive the working status indication information
- the edge routing node is further configured to: forward the working status indication information to a terminal device that matches the device type in a coverage of the wireless network;
- the terminal device is configured to monitor, in real time, the system time of the terminal device after receiving the working state indication information, when monitoring the time when the system time reaches the collected data indicated by the working state indication information And switching the working state of the terminal device to the working state when collecting data indicated by the working state indication information, and collecting data;
- the terminal device is further configured to: when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, switch the working state of the terminal device to be indicated by the working state indication information The working state when the data is reported, and the collected data is sent to the edge routing node, so that the edge routing node reports the received data to the aggregation unit;
- the terminal device is further configured to switch the working state of the terminal device to a sleep state when monitoring that the system time does not belong to the time of collecting data indicated by the working state indication information and the time for reporting data;
- the aggregation unit is further configured to receive data reported by the terminal device sent by the edge routing node.
- the terminal device is further configured to: when monitoring, that the system time reaches a time for reporting data indicated by the working state indication information,
- the manner in which the working state of the terminal device is switched to the working state when the data is reported by the working state indication information, and the collected data is sent to the edge routing node is specifically:
- the terminal device is further configured to acquire a power supply mode of the terminal device when monitoring the time when the system time reaches the reporting data indicated by the working state indication information; and when the power supply mode of the terminal device is a preset And sending, by the edge routing node, a first instant weather acquisition request that carries the device identifier of the terminal device, so that the edge routing node determines the location information of the terminal device according to the device identifier, And sending, by the real-time weather acquisition interface, a second instant weather acquisition request carrying the location information of the terminal device to the weather server to request the real-time weather information; and receiving the location information of the terminal device returned by the edge routing node a real-time weather information; determining whether the first real-time weather information is weather information that affects power supply of the terminal device; when the determination result of the terminal device is YES, suspending execution to switch the working state of the terminal device to the The working state when the data is reported as indicated by the working status indication information, and The edge routing node sends the collected data; when the determination result
- the edge routing node is further configured to monitor, in real time, whether the working status indication is reached after forwarding the working status indication information to the terminal device.
- the time indicated by the terminal device for reporting data When the time when the terminal device reports the data indicated by the working status indication information, detecting whether the data sent by the terminal device is received, and detecting that the data sent by the terminal device is not received, acquiring the terminal device a power supply mode, determining whether the power supply mode of the terminal device is a preset power supply mode; and when the power supply mode of the terminal device is the preset power supply mode, calling an instant weather acquisition interface to send the carrying a third instant weather acquisition request of the location information of the terminal device; and receiving third instant weather information corresponding to the location information of the terminal device returned by the weather server; determining whether the third instant weather information is affecting the terminal
- the first report information is reported to the aggregation unit, and the first report information is used to describe the weather information when the third real-time weather information is determined to be
- the edge routing node is further configured to: when determining that the third real weather information is not weather information affecting power supply of the terminal device,
- the method for reporting the second report information by the aggregation unit is as follows:
- the edge routing node is further configured to: when determining that the third instant weather information is not weather information that affects power supply of the terminal device, broadcast a listening message to the terminal device; and monitor whether the terminal device returns a response message to the listening message; if the response message is not detected within a certain period of time, reporting the second report information to the aggregation unit.
- the edge routing node is further configured to detect an instant weather acquisition interface when determining that the power supply mode of the terminal device is the preset power supply mode. Is it active?
- the edge routing node is further configured to: when it is determined that the instant weather acquisition interface is in an active state, perform a call to the real-time weather acquisition interface to send a third instant weather acquisition request that carries the location information of the terminal device to the weather server.
- the embodiment of the invention has the following beneficial effects:
- the edge routing node forwards the working status indication information sent by the aggregation unit to the terminal device in the coverage of the wireless network that matches the device type in the working status indication information, and the terminal device receives the After the working status indication information, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working status indication information, the terminal device switches the working state to the collected data indicated by the working status indication information. Work status, then data collection. Further, after the data is collected, when the system time reaches the time when the system time reaches the reported data indicated by the working state indication information, the terminal device switches the working state to the working state when the data is reported by the working state indication information.
- the terminal device switches the working state to the sleep state. It can be seen that, in the embodiment of the present invention, the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods. When no data is collected or data is reported, the terminal device is in a dormant state, thereby being able to reduce The power consumption of the battery of the terminal device improves the battery life of the terminal device, thereby improving the service life of the terminal device.
- 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 a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention
- FIG. 3 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention
- FIG. 4 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention
- FIG. 5 is a schematic structural diagram of a control system for an operating state of an Internet of Things terminal device according to an embodiment of the present invention.
- the embodiment of the invention discloses a method for controlling the working state of the object network terminal device, which is used for controlling the terminal device specified by the convergence unit to realize different working states at different stages, thereby improving the battery life of the terminal device, thereby improving the life of the terminal device.
- the embodiment of the invention also correspondingly discloses an object association A control system for the working state of the network terminal equipment.
- 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 device layer, a routing node layer, and an aggregation layer according to functions.
- the terminal device 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 routing node layer may include a large number of routing nodes connected by a network, and the routing node may include a router.
- the device, the repeater, the access point, and the like are not limited in the embodiment of the present invention;
- the routing node can use any standard networking protocol, and the routing node can implement data parsing between different network standards;
- the convergence layer can include the aggregation unit.
- the aggregation unit performs high-level management on each routing node of the routing node layer, thereby realizing control of data transmission frequency, network topology, and other networking functions; the aggregation unit can not only analyze and make decisions on the Internet of Things data generated by the mass terminal equipment, but also The command can be used to obtain information or configure terminal device parameters (at this time, the data transmission is directed to the terminal device); the aggregation unit can also introduce various services, from big data to social networks, and even from social tools "likes" to weather sharing. Wait.
- each routing node (such a wireless network covering a routing node of a terminal device, also known as an edge routing node) can provide a mass of terminal devices within its own wireless network coverage.
- each terminal device in each wireless network coverage of each routing node can have a built-in wireless communication module, which enables each routing node to communicate with each other within the coverage of its own wireless network through wireless network communication
- a terminal device performs wireless 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 of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention
- a method for controlling an operating state of an Internet of Things terminal device may be include:
- the edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, an operating status when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for indicating The working status of the terminal device corresponding to the device type when reporting data and the time when the data is reported.
- the aggregation unit can specify the time for collecting the data and the time for reporting the data to the terminal device that is more interested in the terminal device, so as to be able to receive the data reported by the terminal devices on time, thereby analyzing and processing the data to obtain the desired one. information.
- the aggregation unit can specify the humidity sensor of a certain farm, and collect the humidity data of the soil at two o'clock every afternoon (the time point when the sun is strong), and report the collected data to the convergence unit at four o'clock every afternoon, so that the convergence unit can pass. Analyze the data to get a conclusion on whether you need to irrigate the farm's crops.
- the edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
- the terminal device After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time;
- the terminal device After receiving the working status indication information, the terminal device reads the clock information of the clock module in the terminal device in real time to obtain the system time of the terminal device.
- the edge routing node periodically sends a broadcast message in its wireless network coverage, where the broadcast message includes a first time label sent by the edge routing node to the broadcast message; the edge routing node receives the terminal device a response message of the broadcast message, the response message includes a terminal device type, a first time tag, a second time tag in which the terminal device receives the broadcast message, and a third time tag in which the terminal device sends the response message; the edge routing node determines the terminal device Whether the type matches the device type specified by the working status indication information; if matched, the edge routing node obtains the edge according to the first time label, the second time label, the third time label, and the fourth time label receiving the response message
- the time difference between the routing node and the terminal device is sent to the terminal device; the terminal device performs time synchronization adjustment according to the time difference.
- the terminal device switches the working state of the terminal device to the working state when collecting data indicated by the working state indication information, and collects data when monitoring the time when the system time reaches the data collected by the working state indication information.
- the working state of the terminal device may include a sleep state (the terminal device is not activated, and the wireless network is also in the off state), an active state, and the wireless network is turned off, the activated state is turned on, and the wireless network is turned on.
- the terminal device is in a dormant state, can release wireless network resources, and can also allow the terminal device to be retired and improve its service life.
- the terminal device consumes less battery energy, thereby improving the battery. Endurance.
- the terminal device When the terminal device is in the sleep state, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working state indication information, the terminal device will work from the rest state.
- the "active state and the wireless network is turned off" of the terminal device can be set as the working state when the data is collected.
- the terminal device starts collecting data when the time for collecting data arrives, until the data is collected. After the terminal device collects the data and monitors the time when the data has not been reported, the terminal device switches the working state from the working state when the data is collected to the sleep state, so as to enter the rest and release the wireless network resource again.
- the terminal device When monitoring the time when the system time reaches the reporting data indicated by the working state indication information, the terminal device switches the working state of the terminal device to the working state when the data is reported by the working state indication information, and routes the node to the edge.
- the collected data is sent, so that the edge routing node reports the received data to the aggregation unit.
- the terminal device collects the data or in the sleep state
- the working state (from the sleep state or the working state when the data is collected) is switched to the report.
- the working state of the data since the terminal device reports data according to the wireless network, the "active state and the wireless network is enabled" of the terminal device can be set to the working state when the data is reported.
- the terminal device After the terminal device reports the data, if the system time has not reached the time when the data is collected again, the terminal device switches the working state from the working state when the data is reported to the sleep state again.
- the terminal device sends the collected data to the edge routing node, where the terminal device acquires the target transmission frequency band, and then determines the time-frequency resource corresponding to the target transmission frequency band, and routes the edge to the edge on the time-frequency resource.
- the node sends the collected data.
- the edge routing node reports the received data to the aggregation unit, where the edge routing node determines, by using a frequency hopping manner, a frequency domain location of the physical resource block used for sending data from the target transmission frequency band.
- the received data is sent to the aggregation unit on the time-frequency resource corresponding to the determined frequency domain location of the physical resource block.
- the terminal device switches the working state of the terminal device to the dormant state when monitoring the time when the system time does not belong to the data collected by the working state indication information and the time when the data is reported.
- the terminal device enters the sleep state when it is not the time to collect data and the time when the data is reported.
- the edge routing node forwards the working status indication information sent by the aggregation unit to the terminal device in the coverage of the wireless network that matches the device type in the working status indication information, and the terminal device receives the After the working status indication information, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working status indication information, the terminal device switches the working state to the collected data indicated by the working status indication information. Work status, then data collection. Further, after the data is collected, when the system time is monitored to reach the time of reporting the data indicated by the working state indication information, the terminal device will work.
- the terminal device switches the working state to the sleep state. It can be seen that, in the embodiment of the present invention, the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods. When no data is collected or data is reported, the terminal device is in a dormant state, thereby being able to reduce The power consumption of the battery of the terminal device improves the battery life of the terminal device, thereby improving the service life of the terminal device.
- FIG. 3 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention.
- a method for controlling an operating state of an Internet of Things terminal device may include:
- the edge routing node receives the working state indication information that is sent by the aggregation unit, where the working state indication information includes a device type, an operating state when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for indicating The working status of the terminal device corresponding to the device type when reporting data and the time when the data is reported.
- the working state indication information includes a device type, an operating state when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for indicating The working status of the terminal device corresponding to the device type when reporting data and the time when the data is reported.
- the edge routing node When the access routing node is connected to the network, the edge routing node sends a request message for obtaining the working status indication information to the aggregation unit, and receives the working status indication information sent by the aggregation unit.
- the edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
- the terminal device After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time, and switches the working state of the terminal device to the working state when monitoring the time when the system time reaches the data collected by the working state indication information. Indicates the working status when the data is collected as indicated by the information, and collects data.
- the terminal device acquires a power supply mode of the terminal device when monitoring the time when the system time reaches the reporting data indicated by the working state indication information.
- the terminal device sends a first instant weather acquisition request that carries the device identifier of the terminal device to the edge routing node, so that the edge routing node determines the terminal device according to the device identifier.
- the location information is sent to the weather server via the instant weather acquisition interface to send a second instant weather acquisition request carrying the location information of the terminal device to request instant weather information.
- the terminal device may adopt a solar power supply mode or a battery that uses a relatively large amount of energy to store energy (after the battery is exhausted, the terminal device is scrapped, etc.).
- solar power mode the terminal equipment needs to be able to work under the sun.
- strain sensors there are hundreds of strain sensors in different positions of the highway bridge. These strain sensors are usually utilized. "Solar" powers it. Strain gauge sensor due to solar radiation on sunny days Data can be collected normally and reported; in rainy days, strain sensors may not be able to collect data and report data due to lack of sunlight.
- the edge routing node invokes an instant weather acquisition interface, and sends a second instant weather acquisition request carrying the location information of the terminal device to the weather server. Further, before the edge routing node invokes the instant weather acquisition interface and sends the second instant weather acquisition request to the corresponding weather server through the instant weather acquisition interface, the edge routing node detects whether the instant weather acquisition interface is in an active state, if the instant weather is acquired The interface is in an active state, and sends a second instant weather acquisition request carrying the location information of the terminal device to the weather server.
- the edge routing node determines whether the number of edge routing nodes accessed by the instant weather acquisition interface exceeds a threshold, and if not, sends a second instant weather acquisition request that carries the location information of the terminal device to the weather server through the instant weather acquisition interface.
- the terminal device receives first instant weather information that is returned by the edge routing node for location information of the terminal device.
- the terminal device determines whether the first real-time weather information is weather information that affects the power supply of the terminal device. If the determination result is yes, the process proceeds to step 308. If the determination result is no, the process proceeds to step 309.
- the terminal device pauses execution to switch the working state of the terminal device to the working state when the data is reported by the working state indication information, and sends the collected data to the edge routing node.
- the terminal device switches the working state of the terminal device to the working state when the data is reported by the working state indication information, and sends the collected data to the edge routing node.
- the terminal device switches the working state of the terminal device to the dormant state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported.
- the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods.
- the terminal device When no data is collected or data is reported, the terminal device is in a dormant state, thereby reducing the battery of the terminal device.
- the power consumption increases the battery life of the terminal device, thereby improving the service life of the terminal device.
- the data can be reported when the weather returns to the power supply without affecting the power supply.
- FIG. 4 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention.
- a method for controlling an operating state of an Internet of Things terminal device may include:
- the edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, and is used to indicate that the terminal device corresponding to the device type collects data.
- the status and the time when the data is collected, and the working status when the terminal device corresponding to the device type reports the data and the time when the data is reported.
- the edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
- the edge routing node After the edge routing node forwards the working status indication information to the terminal device, the edge routing node monitors in real time whether the time of reporting the data by the terminal device indicated by the working status indication information is reached. If the result of the determination is YES, the process proceeds to step 404. If the result of the determination is no, the process ends.
- the edge routing node detects whether the data sent by the terminal device is received. If the determination result is no, the process proceeds to step 405. If the determination result is yes, the process ends.
- the edge routing node obtains the power supply mode of the terminal device, and determines whether the power supply mode of the terminal device is a preset power supply mode. If the determination result is yes, the process proceeds to step 406. If the determination result is no, the process proceeds to step 410.
- the edge routing node invokes the instant weather acquisition interface to send a third instant weather acquisition request that carries the location information of the terminal device to the weather server.
- the edge routing node receives the third instant weather information corresponding to the location information of the terminal device returned by the weather server.
- the edge routing node determines whether the third real-time weather information is weather information that affects the power supply of the terminal device. If the determination result is yes, the process proceeds to step 409. If the determination result is no, the process proceeds to step 410.
- the edge routing node reports the first report information to the aggregation unit, where the first report information is used to indicate that the terminal device fails to report the data on time due to the weather.
- the edge routing node reports the second report information to the aggregation unit, where the second report information is used to indicate that the terminal device fails to report the data on time due to an unknown reason.
- reporting the second report information to the aggregation unit includes:
- the edge routing node broadcasts a listening message to the terminal device when determining that the third instant weather information is not weather information that affects the power supply of the terminal device; and monitoring whether a response message for the listening message returned by the terminal device is received; The response message is not detected in the time, and the second report information is reported to the aggregation unit. In this embodiment, it is further detected whether the terminal device can normally connect to the wireless network to further determine the reason why the data is not reported.
- the edge routing node sends the third real-time weather carrying the location information of the terminal device to the weather server when the power supply mode of the terminal device is the preset power supply mode, and the edge routing node invokes the instant weather acquisition interface.
- the edge routing node detects whether the instant weather acquisition interface is in an active state. If it is in the active state, the edge routing node performs an instant weather acquisition interface to send the location information carrying the terminal device to the weather server. The third instant weather acquisition request.
- the edge routing node also monitors whether the terminal device reports the data on time, and when the data is not reported on time, further analyzes the reason for the unreported data, and reports the reason to the aggregation unit, so that the aggregation unit can understand the situation, and It allows managers to detect terminal devices and so on.
- FIG. 5 is a schematic structural diagram of a control system for an operating state of an Internet of Things terminal device according to an embodiment of the present invention. As shown in FIG. 5, a control system for an IoT terminal device working state may include:
- the aggregation unit 510 is configured to send the working status indication information to the edge routing node 520, where the working status indication information includes a device type, a working state when the terminal device 530 corresponding to the device type is used to collect data, and a time for collecting data, and The working state when reporting data on the terminal device 530 corresponding to the device type and the time when the data is reported;
- An edge routing node 520 configured to receive working status indication information
- the edge routing node 520 is further configured to forward the working status indication information to the terminal device 530 of the matching device type in the coverage of the wireless network;
- the terminal device 530 is configured to monitor the system time of the terminal device 530 in real time after receiving the working state indication information, and when the system time reaches the time when the system time reaches the data collected by the working state indication information, the working state of the terminal device 530 is used. Switching to the working state when collecting data indicated by the working state indication information, and collecting data;
- the terminal device 530 is further configured to switch the working state of the terminal device 530 to the working state when reporting the data indicated by the working state indication information, when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, and Sending the collected data to the edge routing node 520, so that the edge routing node 520 reports the received data to the aggregation unit 510;
- the terminal device 530 is further configured to switch the working state of the terminal device 530 to the sleep state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported;
- the aggregation unit 510 is further configured to receive the data reported by the terminal device 530 sent by the edge routing node 520.
- the edge routing node 520 sends a request message for acquiring the working status indication information to the aggregation unit 510, and receives the working status indication information delivered by the aggregation unit 510.
- the sending, by the terminal device 530, the collected data to the edge routing node 520 includes: the terminal device 530 acquires the target transmission frequency band, and then determines the time-frequency resource corresponding to the target transmission frequency band, on the time-frequency resource.
- the collected data is sent to the edge routing node 520.
- the edge routing node 520 reports the received data to the sink.
- the aggregation unit 510 specifically includes: the edge routing node 520 determines, by using a frequency hopping manner, a frequency domain location of a physical resource block used for transmitting data from a target transmission frequency band; and on a time-frequency resource corresponding to a frequency domain location of the determined physical resource block. The received data is transmitted to the aggregation unit 510.
- the terminal device 530 is further configured to switch the working state of the terminal device 530 to the working state indication information when monitoring the time when the system time reaches the reporting data indicated by the working state indication information.
- the working status when the data is reported and the collected data is sent to the edge routing node 520 is specifically as follows:
- the terminal device 530 is further configured to acquire a power supply mode of the terminal device 530 when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, and when the power supply mode of the terminal device 530 is the preset power supply mode, to the edge
- the routing node 520 sends a first instant weather acquisition request that carries the device identifier of the terminal device 530, so that the edge routing node 520 determines the location information of the terminal device 530 according to the device identifier, and sends the mobile terminal device to the weather server through the instant weather acquisition interface.
- a second instant weather acquisition request of the location information of 530 to request instant weather information a second instant weather acquisition request of the location information of 530 to request instant weather information; and receiving first instant weather information for the location information of the terminal device 530 returned by the edge routing node 520; determining whether the first instant weather information is an influencing terminal device 530-powered weather information; when the determination result of the terminal device 530 is YES, the execution of the operation state when the working state of the terminal device 530 is switched to the reporting data indicated by the working state indication information is suspended, and the collection is sent to the edge routing node 520.
- Data to; at terminal device 530 Off result is NO, the terminal device 530 performs the operation state to the operation state report indicating the operation state when the data indicated by the information, and send the collected data to the edge routing node 520.
- the edge routing node 520 is further configured to monitor, in real time, whether the terminal device 530 indicated by the working state indication information reports the time when the data is forwarded after the working state indication information is forwarded to the terminal device 530; When the terminal device 530 indicates the time when the data is reported by the working status indication information, it is detected whether the data transmitted by the terminal device 530 is received. When the data transmitted by the terminal device 530 is not received, the power supply mode of the terminal device 530 is acquired and determined.
- the instant weather acquisition interface is invoked to send the third real-time weather carrying the location information of the terminal device 530 to the weather server.
- the aggregation unit 510 reports the first report information, where the first report information is used to indicate that the terminal device 530 fails to report the data on time due to the weather; when the third instant weather information is determined not to affect the weather information provided by the terminal device 530, the convergence is performed.
- the unit 510 reports the second report information, and the second report information is used to indicate that the terminal device 530 fails to report the data on time due to an unknown reason.
- the edge routing node 520 is further configured to determine the third instant.
- the method for reporting the second report information to the aggregation unit 510 is specifically as follows:
- the edge routing node 520 is further configured to: when determining that the third real weather information is not weather information that affects the power supply of the terminal device 530, broadcast a listening message to the terminal device 530; monitor whether a response to the listening message returned by the terminal device 530 is received. If the response message is not detected within a certain period of time, the second reporting information is reported to the aggregation unit 510.
- the edge routing node 520 is further configured to detect whether the instant weather acquisition interface is in an active state when determining that the power supply mode of the terminal device 530 is a preset power supply mode;
- the edge routing node 520 is further configured to: after determining that the instant weather acquisition interface is in an active state, perform a third instant weather acquisition request that invokes the instant weather acquisition interface to send the location information of the terminal device 530 to the weather server.
- the terminal device 530 after receiving the working status indication information, the terminal device 530 reads the clock information of the clock module in the terminal device 530 in real time to obtain the system time of the terminal device 530.
- the edge routing node 520 periodically sends a broadcast message within its wireless network coverage, the broadcast message includes a first time label sent by the edge routing node 520 to the broadcast message; and the edge routing node 520 receives the terminal.
- the device 530 responds to the broadcast message, the response message includes a terminal device type, a first time label, a second time label that the terminal device 530 receives the broadcast message, and a third time label that the terminal device 530 sends the response message;
- the routing node 520 determines whether the terminal device type matches the device type specified by the working status indication information; if matched, the edge routing node 520 receives the response message according to the first time label, the second time label, the third time label, and the third time label.
- the fourth time label obtains the time difference between the edge routing node 520 and the terminal device 530 and sends it to the terminal device 530; the terminal device 530 performs time synchronization adjustment according to the time difference.
- the terminal device specified by the aggregation unit when the terminal device specified by the aggregation unit does not collect data or reports data, enters a dormant state to release the wireless network resources, and can also allow the terminal device to be rested, improve its service life, and in a sleep state.
- the terminal device also consumes less battery energy, thereby improving the battery life.
- the terminal device collects data or reports data, it can ensure the normal operation of the terminal device and improve the reliability of the Internet of Things.
- 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
- 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)
- Telephonic Communication Services (AREA)
Abstract
L'invention concerne un procédé et un système pour commander l'état de fonctionnement d'un dispositif terminal de l'Internet des objets. Le procédé comprend les étapes suivantes : un nœud de routage d'extrémité reçoit des informations d'indication d'état de fonctionnement émises par une unité de convergence ; le nœud de routage d'extrémité transmet les informations d'indication d'état de fonctionnement à un dispositif terminal ayant un type de dispositif apparié dans sa plage de couverture de réseau sans fil ; lorsque le dispositif terminal détecte que le temps système atteint le moment de collecte des données, commutation de l'état de fonctionnement du dispositif terminal à l'état de fonctionnement de collecte de données, et collecte des données ; lorsque le dispositif terminal détecte que le temps système atteint le moment de notification des données, commutation de l'état de fonctionnement du dispositif terminal à l'état de fonctionnement de notification de données, et envoi des données collectées au nœud de routage d'extrémité ; et lorsque le dispositif terminal détecte que le temps système ne coïncide pas avec le moment de collecte de données et le moment de notification des données, commutation de l'état de fonctionnement du dispositif terminal à un état de veille. Ledit procédé peut réduire la consommation d'énergie de la batterie d'un dispositif terminal désigné par une unité de convergence, et améliorer la durée de vie du dispositif terminal.The invention relates to a method and a system for controlling the operating status of a terminal device of the Internet of Things. The method comprises the following steps: an end-routing node receives operating state indication information transmitted by a convergence unit; the end routing node transmits the operation status indication information to a terminal device having a paired device type in its wireless network coverage range; when the terminal device detects that the overhead reaches the data collection time, switching from the operating state of the terminal device to the data collection operating state, and collecting data; when the terminal device detects that the system time reaches the time of notification of the data, switching the operating state of the terminal device to the operating state of data notification, and sending the collected data to the end routing node ; and when the terminal device detects that the system time does not coincide with the data collection time and the time of data notification, switching the operating state of the terminal device to a standby state. Said method can reduce the energy consumption of the battery of a terminal device designated by a convergence unit, and improve the life of the terminal device.
Description
本发明涉及物联网技术领域,具体涉及一种物联网终端设备工作状态的控制方法及系统。The invention relates to the technical field of the Internet of things, and particularly relates to a method and a system for controlling the working state of an Internet of Things terminal device.
物联网(Internet of Things,简称IOT)是把所有物品通过射频识别、红外感应器、全球定位系统、激光扫描器等信息传感设备,按照约定的协议,与互联网连接起来,进行信息交换和通讯,实现智能化识别、定位、跟踪、监控和管理。这些信息传感设备称之为整个物联网中的终端设备。终端设备只是简单地“广播”少量数据,或者“收听”直接发送给自己的数据,也可以称之为“哑设备”。通常而言,终端设备电池的更换比较麻烦,有些终端设备可能需要投放到一些比较危险的地方,因此,终端设备电池需要维持终端设备的工作时长也比较长,有几个月、几年甚至几十年的,因此,在本领域中对终端设备的寿命也提出了更高要求。The Internet of Things (IOT) connects all items to information sensing devices such as radio frequency identification, infrared sensors, global positioning systems, laser scanners, etc., and connects to the Internet in accordance with agreed protocols for information exchange and communication. To achieve intelligent identification, location, tracking, monitoring and management. These information sensing devices are called terminal devices in the entire Internet of Things. The terminal device simply "broadcasts" a small amount of data, or "listens" directly to its own data, which can also be called a "dumb device." Generally speaking, the replacement of the battery of the terminal device is troublesome, and some terminal devices may need to be placed in some dangerous places. Therefore, the terminal device battery needs to maintain the working time of the terminal device for a long time, for several months, several years or even several Ten years, therefore, there is a higher demand in the art for the life of terminal equipment.
发明内容Summary of the invention
本发明实施例公开了一种物联网终端设备工作状态的控制方法及系统,用于对汇聚单元指定的终端设备实现不同阶段不同工作状态的控制,提高终端设备电池的续航能力,从而提高其寿命。The embodiment of the invention discloses a method and a system for controlling the working state of the Internet of Things terminal device, which are used for controlling the terminal devices specified by the convergence unit to realize different working states at different stages, thereby improving the battery life of the terminal device, thereby improving the life of the terminal device. .
本发明第一方面公开了一种物联网终端设备工作状态的控制方法,可包括:A first aspect of the present invention discloses a method for controlling an operating state of an Internet of Things terminal device, which may include:
边缘路由节点接收汇聚单元下发的工作状态指示信息,所述工作状态指示信息包括设备类型、用于指示所述设备类型对应的终端设备采集数据时的工作状态和采集数据的时间、以及用于指示所述设备类型对应的终端设备上报数据时的工作状态和上报数据的时间;The edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, an operation status when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for And indicating a working state when the terminal device corresponding to the device type reports data and a time for reporting the data;
所述边缘路由节点将所述工作状态指示信息转发给其无线网络覆盖范围内匹配所述设备类型的终端设备;The edge routing node forwards the working status indication information to a terminal device in the wireless network coverage that matches the device type;
所述终端设备在接收到所述工作状态指示信息之后,实时监控所述终端设备的系统时间,在监控到所述系统时间到达所述工作状态指示信息所指示的采集数据的时间时,将所述终端设备的工作状态切换至所述工作状态指示信息所指示的采集数据时的工作状态,并采集数据;After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time, and when monitoring the time when the system time reaches the collected data indicated by the working status indication information, The working state of the terminal device is switched to the working state when collecting data indicated by the working state indication information, and data is collected;
所述终端设备在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的 数据,以使得所述边缘路由节点将接收到的数据上报给所述汇聚单元;When the terminal device monitors the time when the system time reaches the reported data indicated by the working state indication information, when the operating state of the terminal device is switched to the reported data indicated by the working state indication information, Working state, and sending the collected information to the edge routing node Data, such that the edge routing node reports the received data to the aggregation unit;
所述终端设备在监控到所述系统时间不属于所述工作状态指示信息所指示的采集数据的时间和上报数据的时间时,将所述终端设备的工作状态切换至休眠状态。The terminal device switches the working state of the terminal device to a sleep state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported.
作为一种可选的实施方式,在本发明第一方面中,所述终端设备在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,所述将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据,包括:As an optional implementation manner, in the first aspect of the present invention, when the terminal device monitors the time when the system time reaches the reported data indicated by the working state indication information, the terminal is The working state of the device is switched to the working state when the data is reported by the working state indication information, and the collected data is sent to the edge routing node, including:
所述终端设备在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,获取所述终端设备的供电模式;And acquiring, by the terminal device, a power supply mode of the terminal device when monitoring that the system time reaches a time for reporting the data indicated by the working state indication information;
当所述终端设备的供电模式为预设的供电模式时,所述终端设备向所述边缘路由节点发送携带所述终端设备的设备标识的第一即时天气获取请求,以使所述边缘路由节点根据所述设备标识确定出所述终端设备的位置信息,并通过即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第二即时天气获取请求以请求即时天气信息;以及When the power supply mode of the terminal device is a preset power supply mode, the terminal device sends a first instant weather acquisition request that carries the device identifier of the terminal device to the edge routing node, so that the edge routing node Determining location information of the terminal device according to the device identifier, and sending, by using an instant weather acquisition interface, a second real-time weather acquisition request carrying location information of the terminal device to the weather server to request real-time weather information;
所述终端设备接收所述边缘路由节点返回的针对所述终端设备的位置信息的第一即时天气信息;Receiving, by the terminal device, first instant weather information that is returned by the edge routing node for location information of the terminal device;
所述终端设备判断所述第一即时天气信息是否为影响所述终端设备供电的天气信息;Determining, by the terminal device, whether the first real-time weather information is weather information that affects power supply of the terminal device;
在所述终端设备的判断结果为是时,所述终端设备暂停执行将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据的步骤;When the determination result of the terminal device is YES, the terminal device suspends performing an operation state when the working state of the terminal device is switched to the reported data indicated by the working state indication information, and routing to the edge The step of the node transmitting the collected data;
在所述终端设备的判断结果为否时,所述终端设备执行将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据的步骤。When the determination result of the terminal device is NO, the terminal device performs an operation state when the working state of the terminal device is switched to the reported data indicated by the working state indication information, and routes the node to the edge. The step of sending the collected data.
作为一种可选的实施方式,在本发明第一方面中,在所述边缘路由节点将所述工作状态指示信息转发给所述终端设备之后,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, after the edge routing node forwards the working status indication information to the terminal device, the method further includes:
在所述边缘路由节点将所述工作状态指示信息转发给所述终端设备之后,所述边缘路由节点实时监测是否到达所述工作状态指示信息所指示的所述终端设备上报数据的时间;After the edge routing node forwards the working status indication information to the terminal device, the edge routing node monitors in real time whether the time that the terminal device reports the data indicated by the working status indication information is reached;
在到达所述工作状态指示信息所指示的所述终端设备上报数据的时间时,所述边缘路由节点检测是否接收到所述终端设备发送的数据;When the time when the terminal device reports the data indicated by the working status indication information, the edge routing node detects whether the data sent by the terminal device is received;
在检测到未接收到所述终端设备发送的数据时,所述边缘路由节点获取所述终端设备的供电模式,判断所述终端设备的供电模式是否为预设的供电模式;When detecting that the data sent by the terminal device is not received, the edge routing node acquires a power supply mode of the terminal device, and determines whether the power supply mode of the terminal device is a preset power supply mode;
在所述终端设备的供电模式为所述预设的供电模式时,所述边缘路由节 点调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第三即时天气获取请求;以及The edge routing section when the power supply mode of the terminal device is the preset power supply mode Pointing the instant weather acquisition interface to send a third instant weather acquisition request carrying the location information of the terminal device to the weather server;
所述边缘路由节点接收所述天气服务器返回的所述终端设备的位置信息对应的第三即时天气信息;The edge routing node receives third instant weather information corresponding to the location information of the terminal device returned by the weather server;
所述边缘路由节点判断所述第三即时天气信息是否为影响所述终端设备供电的天气信息;Determining, by the edge routing node, whether the third instant weather information is weather information that affects power supply of the terminal device;
在确定出所述第三即时天气信息为影响所述终端设备供电的天气信息时,所述边缘路由节点向所述汇聚单元上报第一汇报信息,所述第一汇报信息用于说明所述终端设备因受天气影响未能按时上报数据;When the third real-time weather information is determined to be the weather information that affects the power supply of the terminal device, the edge routing node reports the first report information to the aggregation unit, where the first report information is used to describe the terminal. The equipment failed to report data on time due to weather;
在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,所述边缘路由节点向所述汇聚单元上报第二汇报信息,所述第二汇报信息用于说明所述终端设备在未知原因下未能按时上报数据。When it is determined that the third real-time weather information is not the weather information that affects the power supply of the terminal device, the edge routing node reports the second report information to the convergence unit, where the second report information is used to describe the terminal. The device failed to report data on time for unknown reasons.
作为一种可选的实施方式,在本发明第一方面中,在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,所述边缘路由节点向所述汇聚单元上报第二汇报信息,包括:As an optional implementation manner, in the first aspect of the present invention, when determining that the third real-time weather information is not weather information that affects power supply of the terminal device, the edge routing node reports to the aggregation unit Second reporting information, including:
在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,所述边缘路由节点向所述终端设备广播侦听消息;The edge routing node broadcasts a listening message to the terminal device when it is determined that the third real-time weather information is not weather information that affects power supply of the terminal device;
所述边缘路由节点监测是否接收到所述终端设备返回的针对所述侦听消息的响应消息;The edge routing node monitors whether a response message for the interception message returned by the terminal device is received;
若在一定时间内未监测到所述响应消息,所述边缘路由节点向所述汇聚单元上报所述第二汇报信息。If the response message is not detected within a certain period of time, the edge routing node reports the second report information to the aggregation unit.
作为一种可选的实施方式,在本发明第一方面中,所述在所述终端设备的供电模式为所述预设的供电模式时,以及所述边缘路由节点调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第三即时天气获取请求之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, when the power supply mode of the terminal device is the preset power supply mode, and the edge routing node invokes an instant weather acquisition interface to the weather Before the server sends the third instant weather acquisition request that carries the location information of the terminal device, the method further includes:
在所述终端设备的供电模式为所述预设的供电模式时,所述边缘路由节点检测即时天气获取接口是否处于激活状态,如果处于激活状态,所述边缘路由节点执行调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第三即时天气获取请求的步骤。When the power supply mode of the terminal device is the preset power supply mode, the edge routing node detects whether the instant weather acquisition interface is in an active state, and if in the active state, the edge routing node performs an instant weather acquisition interface. The weather server sends the third instant weather acquisition request carrying the location information of the terminal device.
本发明第二方面公开了一种物联网终端设备工作状态的控制系统,可包括:The second aspect of the present invention discloses a control system for an operating state of an Internet of Things terminal device, which may include:
汇聚单元,用于向边缘路由节点下发工作状态指示信息,所述工作状态指示信息包括设备类型、用于指示所述设备类型对应的终端设备采集数据时的工作状态和采集数据的时间、以及用于指示所述设备类型对应的终端设备上报数据时的工作状态和上报数据的时间;The aggregation unit is configured to send the working status indication information to the edge routing node, where the working status indication information includes a device type, a working status when the terminal device corresponding to the device type collects data, and a time for collecting data, and The working status of the terminal device corresponding to the device type and the time when the data is reported;
所述边缘路由节点,用于接收所述工作状态指示信息; The edge routing node is configured to receive the working status indication information;
所述边缘路由节点还用于,将所述工作状态指示信息转发给其无线网络覆盖范围内匹配所述设备类型的终端设备;The edge routing node is further configured to: forward the working status indication information to a terminal device that matches the device type in a coverage of the wireless network;
所述终端设备,用于在接收到所述工作状态指示信息之后,实时监控所述终端设备的系统时间,在监控到所述系统时间到达所述工作状态指示信息所指示的采集数据的时间时,将所述终端设备的工作状态切换至所述工作状态指示信息所指示的采集数据时的工作状态,并采集数据;The terminal device is configured to monitor, in real time, the system time of the terminal device after receiving the working state indication information, when monitoring the time when the system time reaches the collected data indicated by the working state indication information And switching the working state of the terminal device to the working state when collecting data indicated by the working state indication information, and collecting data;
所述终端设备还用于,在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据,以使得所述边缘路由节点将接收到的数据上报给所述汇聚单元;The terminal device is further configured to: when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, switch the working state of the terminal device to be indicated by the working state indication information The working state when the data is reported, and the collected data is sent to the edge routing node, so that the edge routing node reports the received data to the aggregation unit;
所述终端设备还用于,在监控到所述系统时间不属于所述工作状态指示信息所指示的采集数据的时间和上报数据的时间时,将所述终端设备的工作状态切换至休眠状态;The terminal device is further configured to switch the working state of the terminal device to a sleep state when monitoring that the system time does not belong to the time of collecting data indicated by the working state indication information and the time for reporting data;
所述汇聚单元还用于,接收所述边缘路由节点发送的所述终端设备上报的数据。The aggregation unit is further configured to receive data reported by the terminal device sent by the edge routing node.
作为一种可选的实施方式,在本发明第二方面中,所述终端设备还用于在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据的方式具体为:As an optional implementation manner, in the second aspect of the present invention, the terminal device is further configured to: when monitoring, that the system time reaches a time for reporting data indicated by the working state indication information, The manner in which the working state of the terminal device is switched to the working state when the data is reported by the working state indication information, and the collected data is sent to the edge routing node is specifically:
所述终端设备还用于在监控到所述系统时间到达所述工作状态指示信息所指示的上报数据的时间时,获取所述终端设备的供电模式;当所述终端设备的供电模式为预设的供电模式时,向所述边缘路由节点发送携带所述终端设备的设备标识的第一即时天气获取请求,以使所述边缘路由节点根据所述设备标识确定出所述终端设备的位置信息,并通过即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第二即时天气获取请求以请求即时天气信息;以及接收所述边缘路由节点返回的针对所述终端设备的位置信息的第一即时天气信息;判断所述第一即时天气信息是否为影响所述终端设备供电的天气信息;在所述终端设备的判断结果为是时,暂停执行将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据;在所述终端设备的判断结果为否时,执行将所述终端设备的工作状态切换至所述工作状态指示信息所指示的上报数据时的工作状态,并向所述边缘路由节点发送采集到的数据。The terminal device is further configured to acquire a power supply mode of the terminal device when monitoring the time when the system time reaches the reporting data indicated by the working state indication information; and when the power supply mode of the terminal device is a preset And sending, by the edge routing node, a first instant weather acquisition request that carries the device identifier of the terminal device, so that the edge routing node determines the location information of the terminal device according to the device identifier, And sending, by the real-time weather acquisition interface, a second instant weather acquisition request carrying the location information of the terminal device to the weather server to request the real-time weather information; and receiving the location information of the terminal device returned by the edge routing node a real-time weather information; determining whether the first real-time weather information is weather information that affects power supply of the terminal device; when the determination result of the terminal device is YES, suspending execution to switch the working state of the terminal device to the The working state when the data is reported as indicated by the working status indication information, and The edge routing node sends the collected data; when the determination result of the terminal device is no, the working state when the working state of the terminal device is switched to the reported data indicated by the working state indication information is performed, and The collected data is sent to the edge routing node.
作为一种可选的实施方式,在本发明第二方面中,所述边缘路由节点还用于在将所述工作状态指示信息转发给所述终端设备之后,实时监测是否到达所述工作状态指示信息所指示的所述终端设备上报数据的时间;在到达所 述工作状态指示信息所指示的所述终端设备上报数据的时间时,检测是否接收到所述终端设备发送的数据;在检测到未接收到所述终端设备发送的数据时,获取所述终端设备的供电模式,判断所述终端设备的供电模式是否为预设的供电模式;在所述终端设备的供电模式为所述预设的供电模式时,调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第三即时天气获取请求;以及接收所述天气服务器返回的所述终端设备的位置信息对应的第三即时天气信息;判断所述第三即时天气信息是否为影响所述终端设备供电的天气信息;在确定出所述第三即时天气信息为影响所述终端设备供电的天气信息时,向所述汇聚单元上报第一汇报信息,所述第一汇报信息用于说明所述终端设备因受天气影响未能按时上报数据;在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,向所述汇聚单元上报第二汇报信息,所述第二汇报信息用于说明所述终端设备在未知原因下未能按时上报数据。As an optional implementation manner, in the second aspect of the present invention, the edge routing node is further configured to monitor, in real time, whether the working status indication is reached after forwarding the working status indication information to the terminal device. The time indicated by the terminal device for reporting data; When the time when the terminal device reports the data indicated by the working status indication information, detecting whether the data sent by the terminal device is received, and detecting that the data sent by the terminal device is not received, acquiring the terminal device a power supply mode, determining whether the power supply mode of the terminal device is a preset power supply mode; and when the power supply mode of the terminal device is the preset power supply mode, calling an instant weather acquisition interface to send the carrying a third instant weather acquisition request of the location information of the terminal device; and receiving third instant weather information corresponding to the location information of the terminal device returned by the weather server; determining whether the third instant weather information is affecting the terminal The first report information is reported to the aggregation unit, and the first report information is used to describe the weather information when the third real-time weather information is determined to be the weather information that affects the power supply of the terminal device. The terminal equipment failed to report the data on time due to the weather; the third instant day was determined Weather information is not information of the power supply terminal apparatus, reports the report information to the second convergence unit, the second reporting information terminal apparatus for explaining the data not reported in time for unknown reasons.
作为一种可选的实施方式,在本发明第二方面中,所述边缘路由节点还用于在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,向所述汇聚单元上报第二汇报信息的方式具体为:As an optional implementation manner, in the second aspect of the present invention, the edge routing node is further configured to: when determining that the third real weather information is not weather information affecting power supply of the terminal device, The method for reporting the second report information by the aggregation unit is as follows:
所述边缘路由节点还用于在确定出所述第三即时天气信息不是影响所述终端设备供电的天气信息时,向所述终端设备广播侦听消息;监测是否接收到所述终端设备返回的针对所述侦听消息的响应消息;若在一定时间内未监测到所述响应消息,向所述汇聚单元上报所述第二汇报信息。The edge routing node is further configured to: when determining that the third instant weather information is not weather information that affects power supply of the terminal device, broadcast a listening message to the terminal device; and monitor whether the terminal device returns a response message to the listening message; if the response message is not detected within a certain period of time, reporting the second report information to the aggregation unit.
作为一种可选的实施方式,在本发明第二方面中,所述边缘路由节点还用于在确定出所述终端设备的供电模式为所述预设的供电模式时,检测即时天气获取接口是否处于激活状态;As an optional implementation manner, in the second aspect of the present invention, the edge routing node is further configured to detect an instant weather acquisition interface when determining that the power supply mode of the terminal device is the preset power supply mode. Is it active?
所述边缘路由节点还用于在确定出所述即时天气获取接口处于激活状态,执行调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的第三即时天气获取请求。The edge routing node is further configured to: when it is determined that the instant weather acquisition interface is in an active state, perform a call to the real-time weather acquisition interface to send a third instant weather acquisition request that carries the location information of the terminal device to the weather server.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiment of the invention has the following beneficial effects:
在本发明实施例中,边缘路由节点将汇聚单元下发的工作状态指示信息转发给其无线网络覆盖范围内的、匹配该工作状态指示信息中的设备类型的终端设备,这些终端设备在接收到工作状态指示信息后,实时监控终端设备的系统时间,在系统时间到达工作状态指示信息所指示的采集数据的时间时,终端设备将工作状态切换至该工作状态指示信息所指示的采集数据时的工作状态,然后进行数据采集。进一步地,在采集完数据后,当监控到系统时间到达该工作状态指示信息所指示的上报数据的时间时,终端设备将工作状态切换至该工作状态指示信息所指示的上报数据时的工作状态,然后将采集到的数据发送给边缘路由节点,由边缘路由节点将数据上报给汇聚单元;而在 系统时间即不属于工作状态指示信息所指示的采集数据的时间和上报数据的时间时,终端设备将工作状态切换至休眠状态。可以看出,实施本发明实施例,对于汇聚单元指定的设备类型的终端设备,能够在不同时间阶段采用不同的工作状态,在没有采集数据或者上报数据时,终端设备处于休眠状态,从而能够减少终端设备电池的电量消耗,提高终端设备电池的续航能力,从而提高终端设备的使用寿命。In the embodiment of the present invention, the edge routing node forwards the working status indication information sent by the aggregation unit to the terminal device in the coverage of the wireless network that matches the device type in the working status indication information, and the terminal device receives the After the working status indication information, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working status indication information, the terminal device switches the working state to the collected data indicated by the working status indication information. Work status, then data collection. Further, after the data is collected, when the system time reaches the time when the system time reaches the reported data indicated by the working state indication information, the terminal device switches the working state to the working state when the data is reported by the working state indication information. And then the collected data is sent to the edge routing node, and the edge routing node reports the data to the aggregation unit; When the system time is not the time of collecting data indicated by the working status indication information and the time when the data is reported, the terminal device switches the working state to the sleep state. It can be seen that, in the embodiment of the present invention, the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods. When no data is collected or data is reported, the terminal device is in a dormant state, thereby being able to reduce The power consumption of the battery of the terminal device improves the battery life of the terminal device, thereby improving the service life of the terminal device.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明一些实施例公开的物联网架构示意图;1 is a schematic diagram of an Internet of Things architecture disclosed by some embodiments of the present invention;
图2为本发明实施例公开的物联网终端设备工作状态的控制方法的流程示意图;2 is a schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention;
图3为本发明实施例公开的物联网终端设备工作状态的控制方法的另一流程示意图;3 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention;
图4为本发明实施例公开的物联网终端设备工作状态的控制方法的另一流程示意图;4 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention;
图5为本发明实施例公开的物联网终端设备工作状态的控制系统的结构示意图。FIG. 5 is a schematic structural diagram of a control system for an operating state of an Internet of Things terminal device according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”、“第三”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", "third" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. The terms "comprising" and "having", and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units listed may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本发明实施例公开了一种物联网终端设备工作状态的控制方法,用于对汇聚单元指定的终端设备实现不同阶段不同工作状态的控制,提高终端设备电池的续航能力,从而提高其寿命。本发明实施例还相应地公开了一种物联 网终端设备工作状态的控制系统。The embodiment of the invention discloses a method for controlling the working state of the object network terminal device, which is used for controlling the terminal device specified by the convergence unit to realize different working states at different stages, thereby improving the battery life of the terminal device, thereby improving the life of the terminal device. The embodiment of the invention also correspondingly discloses an object association A control system for the working state of the network terminal equipment.
在介绍本发明实施例之前,先简单介绍一下本发明一些实施例公开的物联网架构。如图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)相结合的方法来解决干扰问题。Before introducing the embodiments of the present invention, the Internet of Things architecture disclosed in some embodiments of the present invention will be briefly introduced. As shown in FIG. 1 , 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 device layer, a routing node layer, and an aggregation layer according to functions. The terminal device 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 routing node layer may include a large number of routing nodes connected by a network, and the routing node may include a router. The device, the repeater, the access point, and the like are not limited in the embodiment of the present invention; the routing node can use any standard networking protocol, and the routing node can implement data parsing between different network standards; the convergence layer can include the aggregation unit. The aggregation unit performs high-level management on each routing node of the routing node layer, thereby realizing control of data transmission frequency, network topology, and other networking functions; the aggregation unit can not only analyze and make decisions on the Internet of Things data generated by the mass terminal equipment, but also The command can be used to obtain information or configure terminal device parameters (at this time, the data transmission is directed to the terminal device); the aggregation unit can also introduce various services, from big data to social networks, and even from social tools "likes" to weather sharing. Wait. In the IoT architecture shown in Figure 1, each routing node (such a wireless network covering a routing node of a terminal device, also known as an edge routing node) can provide a mass of terminal devices within its own wireless network coverage. Networked data transmission and reception service, wherein each terminal device in each wireless network coverage of each routing node can have a built-in wireless communication module, which enables each routing node to communicate with each other within the coverage of its own wireless network through wireless network communication A terminal device performs wireless communication. In the Internet of Things architecture shown in Figure 1, 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. Alternatively, 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. In the Internet of Things architecture shown in FIG. 1, 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.
下面将结合具体实施例,从图1所示的物联网架构的角度出发,对本发明技术方案进行详细说明。The technical solution of the present invention will be described in detail below from the perspective of the Internet of Things architecture shown in FIG. 1 in conjunction with specific embodiments.
实施例一Embodiment 1
请参阅图2,图2为本发明实施例公开的物联网终端设备工作状态的控制方法的流程示意图;如图2所示,一种物联网终端设备工作状态的控制方法可 包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention; as shown in FIG. 2, a method for controlling an operating state of an Internet of Things terminal device may be include:
201、边缘路由节点接收汇聚单元下发的工作状态指示信息,该工作状态指示信息包括设备类型、用于指示设备类型对应的终端设备采集数据时的工作状态和采集数据的时间、以及用于指示设备类型对应的终端设备上报数据时的工作状态和上报数据的时间。201. The edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, an operating status when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for indicating The working status of the terminal device corresponding to the device type when reporting data and the time when the data is reported.
其中,汇聚单元可以对其比较感兴趣的终端设备指定采集数据的时间和上报数据的时间,以能够按时接收到这些终端设备上报的数据,从而对这些数据进行分析处理,以获得自己想要的信息。比如,汇聚单元可以指定某一个农场的湿度传感器,在每天下午两点(太阳比较烈的时间点)时采集土壤的湿度数据,每天下午四点将采集的数据上报给汇聚单元,以便汇聚单元通过分析数据,得到是否需要灌溉该农场的农作物的结论。The aggregation unit can specify the time for collecting the data and the time for reporting the data to the terminal device that is more interested in the terminal device, so as to be able to receive the data reported by the terminal devices on time, thereby analyzing and processing the data to obtain the desired one. information. For example, the aggregation unit can specify the humidity sensor of a certain farm, and collect the humidity data of the soil at two o'clock every afternoon (the time point when the sun is strong), and report the collected data to the convergence unit at four o'clock every afternoon, so that the convergence unit can pass. Analyze the data to get a conclusion on whether you need to irrigate the farm's crops.
202、边缘路由节点将工作状态指示信息转发给其无线网络覆盖范围内匹配设备类型的终端设备。202. The edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
203、终端设备在接收到工作状态指示信息之后,实时监控终端设备的系统时间;203. After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time;
终端设备在接收到工作状态指示信息之后,实时读取终端设备中时钟模块的时钟信息,以获得该终端设备的系统时间。After receiving the working status indication information, the terminal device reads the clock information of the clock module in the terminal device in real time to obtain the system time of the terminal device.
作为一种可选的实施方式,边缘路由节点周期性在其无线网络覆盖范围内发送广播消息,该广播消息包括边缘路由节点发送该广播消息的第一时间标签;边缘路由节点接收终端设备对该广播消息的响应消息,该响应消息包括终端设备类型、第一时间标签、终端设备接收到广播消息的第二时间标签和终端设备发送该响应消息的第三时间标签;边缘路由节点判断该终端设备类型是否与工作状态指示信息指定的设备类型相匹配;如果匹配,该边缘路由节点根据第一时间标签、第二时间标签、第三时间标签和接收到该响应消息的第四时间标签,获得边缘路由节点与终端设备之间的时间差并发送给终端设备;该终端设备根据时间差,进行时间同步调整。As an optional implementation manner, the edge routing node periodically sends a broadcast message in its wireless network coverage, where the broadcast message includes a first time label sent by the edge routing node to the broadcast message; the edge routing node receives the terminal device a response message of the broadcast message, the response message includes a terminal device type, a first time tag, a second time tag in which the terminal device receives the broadcast message, and a third time tag in which the terminal device sends the response message; the edge routing node determines the terminal device Whether the type matches the device type specified by the working status indication information; if matched, the edge routing node obtains the edge according to the first time label, the second time label, the third time label, and the fourth time label receiving the response message The time difference between the routing node and the terminal device is sent to the terminal device; the terminal device performs time synchronization adjustment according to the time difference.
204、终端设备在监控到系统时间到达工作状态指示信息所指示的采集数据的时间时,将终端设备的工作状态切换至工作状态指示信息所指示的采集数据时的工作状态,并采集数据。204. The terminal device switches the working state of the terminal device to the working state when collecting data indicated by the working state indication information, and collects data when monitoring the time when the system time reaches the data collected by the working state indication information.
需要说明的是,终端设备的工作状态可以包括休眠状态(终端设备未被激活,且无线网络也处于关闭状态)、激活状态且关闭无线网络、激活状态且开启无线网络。通常情况下,终端设备处于休眠状态,能够释放无线网络资源,也能够让终端设备得到休整,提高其使用寿命,而且在休眠状态下,终端设备对电池能量的消耗也比较小,从而能够提高电池的续航能力。It should be noted that the working state of the terminal device may include a sleep state (the terminal device is not activated, and the wireless network is also in the off state), an active state, and the wireless network is turned off, the activated state is turned on, and the wireless network is turned on. Generally, the terminal device is in a dormant state, can release wireless network resources, and can also allow the terminal device to be retired and improve its service life. Moreover, in the dormant state, the terminal device consumes less battery energy, thereby improving the battery. Endurance.
终端设备在休眠状态下,实时监控终端设备的系统时间,在系统时间到达工作状态指示信息所指示的采集数据的时间时,终端设备将工作状态从休 眠状态切换至采集数据时的工作状态,在本发明实施例中,可以将终端设备的“激活状态且关闭无线网络”设置为采集数据时的工作状态。When the terminal device is in the sleep state, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working state indication information, the terminal device will work from the rest state. In the embodiment of the present invention, the "active state and the wireless network is turned off" of the terminal device can be set as the working state when the data is collected.
还需要说明的是,在本发明实施例中,终端设备在采集数据的时间到达时开始采集数据,直至采集完数据。终端设备在采集完数据后,且监控到还没有到达上报数据的时间时,终端设备将工作状态从采集数据时的工作状态切换至休眠状态,以再次进入休整、释放无线网络资源。It should be noted that, in the embodiment of the present invention, the terminal device starts collecting data when the time for collecting data arrives, until the data is collected. After the terminal device collects the data and monitors the time when the data has not been reported, the terminal device switches the working state from the working state when the data is collected to the sleep state, so as to enter the rest and release the wireless network resource again.
205、终端设备在监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,将终端设备的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点发送采集到的数据,以使得边缘路由节点将接收到的数据上报给汇聚单元。205. When monitoring the time when the system time reaches the reporting data indicated by the working state indication information, the terminal device switches the working state of the terminal device to the working state when the data is reported by the working state indication information, and routes the node to the edge. The collected data is sent, so that the edge routing node reports the received data to the aggregation unit.
终端设备在采集完数据时或者在休眠状态下,当监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,将工作状态(从休眠状态或者采集数据时的工作状态)切换至上报数据时的工作状态。在本发明实施例中,由于终端设备是基于无线网络上报数据,因此,可以将终端设备的“激活状态且开启无线网络”设置为上报数据时的工作状态。When the terminal device collects the data or in the sleep state, when the system time reaches the time when the system time reaches the reported data indicated by the working state indication information, the working state (from the sleep state or the working state when the data is collected) is switched to the report. The working state of the data. In the embodiment of the present invention, since the terminal device reports data according to the wireless network, the "active state and the wireless network is enabled" of the terminal device can be set to the working state when the data is reported.
可以理解的是,终端设备在上报完数据后,若系统时间还未到达再次采集数据的时间时,终端设备再次将工作状态从上报数据时的工作状态切换至休眠状态。It can be understood that, after the terminal device reports the data, if the system time has not reached the time when the data is collected again, the terminal device switches the working state from the working state when the data is reported to the sleep state again.
作为一种可选的实施方式,终端设备向边缘路由节点发送采集到的数据具体包括:终端设备获取目标传输频段,然后确定目标传输频段所对应的时频资源,在时频资源上向边缘路由节点发送采集到的数据。As an optional implementation manner, the terminal device sends the collected data to the edge routing node, where the terminal device acquires the target transmission frequency band, and then determines the time-frequency resource corresponding to the target transmission frequency band, and routes the edge to the edge on the time-frequency resource. The node sends the collected data.
作为一种可选的实施方式,边缘路由节点将接收到的数据上报给汇聚单元具体包括:边缘路由节点通过跳频方式从目标传输频段中确定用于发送数据的物理资源块的频域位置;在确定的物理资源块的频域位置所对应的时频资源上,向汇聚单元发送接收到的数据。As an optional implementation manner, the edge routing node reports the received data to the aggregation unit, where the edge routing node determines, by using a frequency hopping manner, a frequency domain location of the physical resource block used for sending data from the target transmission frequency band. The received data is sent to the aggregation unit on the time-frequency resource corresponding to the determined frequency domain location of the physical resource block.
206、终端设备在监控到系统时间不属于工作状态指示信息所指示的采集数据的时间和上报数据的时间时,将终端设备的工作状态切换至休眠状态。206. The terminal device switches the working state of the terminal device to the dormant state when monitoring the time when the system time does not belong to the data collected by the working state indication information and the time when the data is reported.
终端设备在不是采集数据的时间和上报数据的时间时,都将进入到休眠状态。The terminal device enters the sleep state when it is not the time to collect data and the time when the data is reported.
在本发明实施例中,边缘路由节点将汇聚单元下发的工作状态指示信息转发给其无线网络覆盖范围内的、匹配该工作状态指示信息中的设备类型的终端设备,这些终端设备在接收到工作状态指示信息后,实时监控终端设备的系统时间,在系统时间到达工作状态指示信息所指示的采集数据的时间时,终端设备将工作状态切换至该工作状态指示信息所指示的采集数据时的工作状态,然后进行数据采集。进一步地,在采集完数据后,当监控到系统时间到达该工作状态指示信息所指示的上报数据的时间时,终端设备将工作状态 切换至该工作状态指示信息所指示的上报数据时的工作状态,然后将采集到的数据发送给边缘路由节点,由边缘路由节点将数据上报给汇聚单元;而在系统时间即不属于工作状态指示信息所指示的采集数据的时间和上报数据的时间时,终端设备将工作状态切换至休眠状态。可以看出,实施本发明实施例,对于汇聚单元指定的设备类型的终端设备,能够在不同时间阶段采用不同的工作状态,在没有采集数据或者上报数据时,终端设备处于休眠状态,从而能够减少终端设备电池的电量消耗,提高终端设备电池的续航能力,从而提高终端设备的使用寿命。In the embodiment of the present invention, the edge routing node forwards the working status indication information sent by the aggregation unit to the terminal device in the coverage of the wireless network that matches the device type in the working status indication information, and the terminal device receives the After the working status indication information, the system time of the terminal device is monitored in real time, and when the system time reaches the time of collecting data indicated by the working status indication information, the terminal device switches the working state to the collected data indicated by the working status indication information. Work status, then data collection. Further, after the data is collected, when the system time is monitored to reach the time of reporting the data indicated by the working state indication information, the terminal device will work. Switching to the working state when the data is reported by the working status indication information, and then transmitting the collected data to the edge routing node, and the edge routing node reports the data to the aggregation unit; and the system time is not the working status indication. When the time of collecting data indicated by the information and the time when the data is reported, the terminal device switches the working state to the sleep state. It can be seen that, in the embodiment of the present invention, the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods. When no data is collected or data is reported, the terminal device is in a dormant state, thereby being able to reduce The power consumption of the battery of the terminal device improves the battery life of the terminal device, thereby improving the service life of the terminal device.
实施例二Embodiment 2
请参阅图3,图3为本发明实施例公开的物联网终端设备工作状态的控制方法的另一流程示意图;如图3所示,一种物联网终端设备工作状态的控制方法可包括:Referring to FIG. 3, FIG. 3 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention; as shown in FIG. 3, a method for controlling an operating state of an Internet of Things terminal device may include:
301、边缘路由节点接收汇聚单元下发的工作状态指示信息,该工作状态指示信息包括设备类型、用于指示设备类型对应的终端设备采集数据时的工作状态和采集数据的时间、以及用于指示设备类型对应的终端设备上报数据时的工作状态和上报数据的时间。301. The edge routing node receives the working state indication information that is sent by the aggregation unit, where the working state indication information includes a device type, an operating state when the terminal device corresponding to the device type is used to collect data, and a time for collecting data, and is used for indicating The working status of the terminal device corresponding to the device type when reporting data and the time when the data is reported.
边缘路由节点在接入网络并启动时,向汇聚单元发送用于获取该工作状态指示信息的请求消息,以及接收汇聚单元下发的该工作状态指示信息。When the access routing node is connected to the network, the edge routing node sends a request message for obtaining the working status indication information to the aggregation unit, and receives the working status indication information sent by the aggregation unit.
302、边缘路由节点将工作状态指示信息转发给其无线网络覆盖范围内匹配设备类型的终端设备。302. The edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
303、终端设备在接收到工作状态指示信息之后,实时监控终端设备的系统时间,在监控到系统时间到达工作状态指示信息所指示的采集数据的时间时,将终端设备的工作状态切换至工作状态指示信息所指示的采集数据时的工作状态,并采集数据。303. After receiving the working status indication information, the terminal device monitors the system time of the terminal device in real time, and switches the working state of the terminal device to the working state when monitoring the time when the system time reaches the data collected by the working state indication information. Indicates the working status when the data is collected as indicated by the information, and collects data.
304、终端设备在监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,获取终端设备的供电模式。304. The terminal device acquires a power supply mode of the terminal device when monitoring the time when the system time reaches the reporting data indicated by the working state indication information.
305、当终端设备的供电模式为预设的供电模式时,终端设备向边缘路由节点发送携带终端设备的设备标识的第一即时天气获取请求,以使边缘路由节点根据设备标识确定出终端设备的位置信息,并通过即时天气获取接口向天气服务器发送携带终端设备的位置信息的第二即时天气获取请求以请求即时天气信息。305. When the power supply mode of the terminal device is the preset power supply mode, the terminal device sends a first instant weather acquisition request that carries the device identifier of the terminal device to the edge routing node, so that the edge routing node determines the terminal device according to the device identifier. The location information is sent to the weather server via the instant weather acquisition interface to send a second instant weather acquisition request carrying the location information of the terminal device to request instant weather information.
其中,终端设备可以采用太阳能供电模式、或者是使用电能储能量比较大的电池(在电池消耗完后,该终端设备报废等)。而对于采用太阳能供电模式的情况,需要终端设备能够处于太阳照射下才能工作,举例来说,在高速公路桥的不同位置,分布着成百上千的应变式传感器,这些应变式传感器通常是利用“太阳能”为其供电。在晴天时,由于阳光辐射,应变式传感器 能够正常采集数据以及上报数据;在雨天时,由于没有阳光辐射,应变式传感器可能无法正常采集数据并上报数据。The terminal device may adopt a solar power supply mode or a battery that uses a relatively large amount of energy to store energy (after the battery is exhausted, the terminal device is scrapped, etc.). In the case of solar power mode, the terminal equipment needs to be able to work under the sun. For example, there are hundreds of strain sensors in different positions of the highway bridge. These strain sensors are usually utilized. "Solar" powers it. Strain gauge sensor due to solar radiation on sunny days Data can be collected normally and reported; in rainy days, strain sensors may not be able to collect data and report data due to lack of sunlight.
边缘路由节点调用即时天气获取接口,向天气服务器发送携带终端设备的位置信息的第二即时天气获取请求。进一步地,在边缘路由节点调用即时天气获取接口,并通过即时天气获取接口向对应的天气服务器发送第二即时天气获取请求之前,边缘路由节点检测即时天气获取接口是否处于激活状态,如果即时天气获取接口处于激活状态,向天气服务器发送携带终端设备的位置信息的第二即时天气获取请求。The edge routing node invokes an instant weather acquisition interface, and sends a second instant weather acquisition request carrying the location information of the terminal device to the weather server. Further, before the edge routing node invokes the instant weather acquisition interface and sends the second instant weather acquisition request to the corresponding weather server through the instant weather acquisition interface, the edge routing node detects whether the instant weather acquisition interface is in an active state, if the instant weather is acquired The interface is in an active state, and sends a second instant weather acquisition request carrying the location information of the terminal device to the weather server.
进一步地,边缘路由节点判断该即时天气获取接口接入的边缘路由节点的数量是否超过阈值,如果否,通过该即时天气获取接口向天气服务器发送携带终端设备的位置信息的第二即时天气获取请求。Further, the edge routing node determines whether the number of edge routing nodes accessed by the instant weather acquisition interface exceeds a threshold, and if not, sends a second instant weather acquisition request that carries the location information of the terminal device to the weather server through the instant weather acquisition interface. .
306、终端设备接收边缘路由节点返回的针对终端设备的位置信息的第一即时天气信息。306. The terminal device receives first instant weather information that is returned by the edge routing node for location information of the terminal device.
307、终端设备判断第一即时天气信息是否为影响终端设备供电的天气信息;其中,在判断结果为是时,转向步骤308;在判断结果为否时,转向步骤309。307. The terminal device determines whether the first real-time weather information is weather information that affects the power supply of the terminal device. If the determination result is yes, the process proceeds to step 308. If the determination result is no, the process proceeds to step 309.
308、终端设备暂停执行将终端设备的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点发送采集到的数据。308. The terminal device pauses execution to switch the working state of the terminal device to the working state when the data is reported by the working state indication information, and sends the collected data to the edge routing node.
可以理解,在即时天气会影响到其工作状态时,先暂停执行,然后等到即时天气适合其工作状态时,再执行。It can be understood that when the real-time weather affects its working state, the execution is suspended first, and then waits until the real-time weather is suitable for its working state.
309、终端设备将终端设备的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点发送采集到的数据。309. The terminal device switches the working state of the terminal device to the working state when the data is reported by the working state indication information, and sends the collected data to the edge routing node.
310、终端设备在监控到系统时间不属于工作状态指示信息所指示的采集数据的时间和上报数据的时间时,将终端设备的工作状态切换至休眠状态。310. The terminal device switches the working state of the terminal device to the dormant state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported.
在上述实施例中,对于汇聚单元指定的设备类型的终端设备,能够在不同时间阶段采用不同的工作状态,在没有采集数据或者上报数据时,终端设备处于休眠状态,从而能够减少终端设备电池的电量消耗,提高终端设备电池的续航能力,从而提高终端设备的使用寿命。并且对于采用太阳能供电的终端设备,在即时天气影响到上报数据时,可以等待天气回复到不影响其供电时,再上报数据。In the foregoing embodiment, the terminal device of the device type specified by the aggregation unit can adopt different working states at different time periods. When no data is collected or data is reported, the terminal device is in a dormant state, thereby reducing the battery of the terminal device. The power consumption increases the battery life of the terminal device, thereby improving the service life of the terminal device. Moreover, for the terminal equipment adopting solar energy, when the real-time weather affects the reported data, the data can be reported when the weather returns to the power supply without affecting the power supply.
实施例三Embodiment 3
请参阅图4,图4为本发明实施例公开的物联网终端设备工作状态的控制方法的另一流程示意图;如图4所示,一种物联网终端设备工作状态的控制方法可包括:Referring to FIG. 4, FIG. 4 is another schematic flowchart of a method for controlling an operating state of an Internet of Things terminal device according to an embodiment of the present invention; as shown in FIG. 4, a method for controlling an operating state of an Internet of Things terminal device may include:
401、边缘路由节点接收汇聚单元下发的工作状态指示信息,该工作状态指示信息包括设备类型、用于指示设备类型对应的终端设备采集数据时的工 作状态和采集数据的时间、以及用于指示设备类型对应的终端设备上报数据时的工作状态和上报数据的时间。401. The edge routing node receives the working status indication information that is sent by the aggregation unit, where the working status indication information includes a device type, and is used to indicate that the terminal device corresponding to the device type collects data. The status and the time when the data is collected, and the working status when the terminal device corresponding to the device type reports the data and the time when the data is reported.
402、边缘路由节点将工作状态指示信息转发给其无线网络覆盖范围内匹配设备类型的终端设备。402. The edge routing node forwards the working status indication information to the terminal device of the matching device type in the coverage of the wireless network.
403、在边缘路由节点将工作状态指示信息转发给终端设备之后,边缘路由节点实时监测是否到达工作状态指示信息所指示的终端设备上报数据的时间。其中,在判断结果为是时,转向步骤404;在判断结果为否时,结束该流程。403. After the edge routing node forwards the working status indication information to the terminal device, the edge routing node monitors in real time whether the time of reporting the data by the terminal device indicated by the working status indication information is reached. If the result of the determination is YES, the process proceeds to step 404. If the result of the determination is no, the process ends.
404、边缘路由节点检测是否接收到终端设备发送的数据;其中,在判断结果为否时,转向步骤405;在判断结果为是时,结束该流程。404. The edge routing node detects whether the data sent by the terminal device is received. If the determination result is no, the process proceeds to step 405. If the determination result is yes, the process ends.
405、边缘路由节点获取终端设备的供电模式,判断终端设备的供电模式是否为预设的供电模式;其中,在判断结果为是时,转向步骤406;在判断结果为否时,转向步骤410。405. The edge routing node obtains the power supply mode of the terminal device, and determines whether the power supply mode of the terminal device is a preset power supply mode. If the determination result is yes, the process proceeds to step 406. If the determination result is no, the process proceeds to step 410.
406、边缘路由节点调用即时天气获取接口向天气服务器发送携带终端设备的位置信息的第三即时天气获取请求。406. The edge routing node invokes the instant weather acquisition interface to send a third instant weather acquisition request that carries the location information of the terminal device to the weather server.
407、边缘路由节点接收天气服务器返回的终端设备的位置信息对应的第三即时天气信息。407. The edge routing node receives the third instant weather information corresponding to the location information of the terminal device returned by the weather server.
408、边缘路由节点判断第三即时天气信息是否为影响终端设备供电的天气信息;其中,在判断结果为是时,转向步骤409;在判断结果为否时,转向步骤410。408. The edge routing node determines whether the third real-time weather information is weather information that affects the power supply of the terminal device. If the determination result is yes, the process proceeds to step 409. If the determination result is no, the process proceeds to step 410.
409、边缘路由节点向汇聚单元上报第一汇报信息,第一汇报信息用于说明终端设备因受天气影响未能按时上报数据。409. The edge routing node reports the first report information to the aggregation unit, where the first report information is used to indicate that the terminal device fails to report the data on time due to the weather.
410、边缘路由节点向汇聚单元上报第二汇报信息,第二汇报信息用于说明终端设备在未知原因下未能按时上报数据。410. The edge routing node reports the second report information to the aggregation unit, where the second report information is used to indicate that the terminal device fails to report the data on time due to an unknown reason.
作为一种可选的实施方式,边缘路由节点在确定出第三即时天气信息不是影响终端设备供电的天气信息时,向汇聚单元上报第二汇报信息具体包括:As an optional implementation manner, when the edge routing node determines that the third real-time weather information is not the weather information that affects the power supply of the terminal device, reporting the second report information to the aggregation unit includes:
边缘路由节点在确定出第三即时天气信息不是影响终端设备供电的天气信息时,向所述终端设备广播侦听消息;监测是否接收到终端设备返回的针对侦听消息的响应消息;若在一定时间内未监测到响应消息,向汇聚单元上报该第二汇报信息。在该实施方式中,进一步检测终端设备是否能够正常连接无线网络,以进一步确定其没有上报数据的原因。The edge routing node broadcasts a listening message to the terminal device when determining that the third instant weather information is not weather information that affects the power supply of the terminal device; and monitoring whether a response message for the listening message returned by the terminal device is received; The response message is not detected in the time, and the second report information is reported to the aggregation unit. In this embodiment, it is further detected whether the terminal device can normally connect to the wireless network to further determine the reason why the data is not reported.
作为一种可选的实施方式,边缘路由节点在终端设备的供电模式为预设的供电模式时,以及边缘路由节点调用即时天气获取接口向天气服务器发送携带终端设备的位置信息的第三即时天气获取请求之前,边缘路由节点检测即时天气获取接口是否处于激活状态,如果处于激活状态,边缘路由节点执行调用即时天气获取接口向天气服务器发送携带所述终端设备的位置信息的 第三即时天气获取请求。As an optional implementation manner, the edge routing node sends the third real-time weather carrying the location information of the terminal device to the weather server when the power supply mode of the terminal device is the preset power supply mode, and the edge routing node invokes the instant weather acquisition interface. Before obtaining the request, the edge routing node detects whether the instant weather acquisition interface is in an active state. If it is in the active state, the edge routing node performs an instant weather acquisition interface to send the location information carrying the terminal device to the weather server. The third instant weather acquisition request.
在上述实施例中,边缘路由节点也将同时监控终端设备是否按时上报数据,且在没有按时上报数据时,进一步分析未上报数据的原因,并且上报给汇聚单元,以便汇聚单元能够了解情况,并且能够让管理人员对终端设备进行检测等。In the foregoing embodiment, the edge routing node also monitors whether the terminal device reports the data on time, and when the data is not reported on time, further analyzes the reason for the unreported data, and reports the reason to the aggregation unit, so that the aggregation unit can understand the situation, and It allows managers to detect terminal devices and so on.
实施例四Embodiment 4
请参阅图5,图5为本发明实施例公开的物联网终端设备工作状态的控制系统的结构示意图;如图5所示,一种物联网终端设备工作状态的控制系统可包括:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a control system for an operating state of an Internet of Things terminal device according to an embodiment of the present invention; as shown in FIG. 5, a control system for an IoT terminal device working state may include:
汇聚单元510,用于向边缘路由节点520下发工作状态指示信息,工作状态指示信息包括设备类型、用于指示设备类型对应的终端设备530采集数据时的工作状态和采集数据的时间、以及用于指示设备类型对应的终端设备530上报数据时的工作状态和上报数据的时间;The
边缘路由节点520,用于接收工作状态指示信息;An
边缘路由节点520还用于,将工作状态指示信息转发给其无线网络覆盖范围内匹配设备类型的终端设备530;The
终端设备530,用于在接收到工作状态指示信息之后,实时监控终端设备530的系统时间,在监控到系统时间到达工作状态指示信息所指示的采集数据的时间时,将终端设备530的工作状态切换至工作状态指示信息所指示的采集数据时的工作状态,并采集数据;The terminal device 530 is configured to monitor the system time of the terminal device 530 in real time after receiving the working state indication information, and when the system time reaches the time when the system time reaches the data collected by the working state indication information, the working state of the terminal device 530 is used. Switching to the working state when collecting data indicated by the working state indication information, and collecting data;
终端设备530还用于,在监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,将终端设备530的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点520发送采集到的数据,以使得边缘路由节点520将接收到的数据上报给汇聚单元510;The terminal device 530 is further configured to switch the working state of the terminal device 530 to the working state when reporting the data indicated by the working state indication information, when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, and Sending the collected data to the
终端设备530还用于,在监控到系统时间不属于工作状态指示信息所指示的采集数据的时间和上报数据的时间时,将终端设备530的工作状态切换至休眠状态;The terminal device 530 is further configured to switch the working state of the terminal device 530 to the sleep state when monitoring the time when the system time does not belong to the collected data indicated by the working state indication information and the time when the data is reported;
汇聚单元510还用于,接收边缘路由节点520发送的终端设备530上报的数据。The
其中,边缘路由节点520在接入网络并启动时,向汇聚单元510发送用于获取该工作状态指示信息的请求消息,以及接收汇聚单元510下发的该工作状态指示信息。The
作为一种可选的实施方式,终端设备530向边缘路由节点520发送采集到的数据具体包括:终端设备530获取目标传输频段,然后确定目标传输频段所对应的时频资源,在时频资源上向边缘路由节点520发送采集到的数据。As an optional implementation, the sending, by the terminal device 530, the collected data to the
作为一种可选的实施方式,边缘路由节点520将接收到的数据上报给汇
聚单元510具体包括:边缘路由节点520通过跳频方式从目标传输频段中确定用于发送数据的物理资源块的频域位置;在确定的物理资源块的频域位置所对应的时频资源上,向汇聚单元510发送接收到的数据。As an optional implementation manner, the
作为一种可选的实施方式,终端设备530还用于在监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,将终端设备530的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点520发送采集到的数据的方式具体为:As an optional implementation manner, the terminal device 530 is further configured to switch the working state of the terminal device 530 to the working state indication information when monitoring the time when the system time reaches the reporting data indicated by the working state indication information. The working status when the data is reported and the collected data is sent to the
终端设备530还用于在监控到系统时间到达工作状态指示信息所指示的上报数据的时间时,获取终端设备530的供电模式;当终端设备530的供电模式为预设的供电模式时,向边缘路由节点520发送携带终端设备530的设备标识的第一即时天气获取请求,以使边缘路由节点520根据设备标识确定出终端设备530的位置信息,并通过即时天气获取接口向天气服务器发送携带终端设备530的位置信息的第二即时天气获取请求以请求即时天气信息;以及接收边缘路由节点520返回的针对终端设备530的位置信息的第一即时天气信息;判断第一即时天气信息是否为影响终端设备530供电的天气信息;在终端设备530的判断结果为是时,暂停执行将终端设备530的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点520发送采集到的数据;在终端设备530的判断结果为否时,执行将终端设备530的工作状态切换至工作状态指示信息所指示的上报数据时的工作状态,并向边缘路由节点520发送采集到的数据。The terminal device 530 is further configured to acquire a power supply mode of the terminal device 530 when monitoring the time when the system time reaches the reporting data indicated by the working state indication information, and when the power supply mode of the terminal device 530 is the preset power supply mode, to the edge The
作为一种可选的实施方式,边缘路由节点520还用于在将工作状态指示信息转发给终端设备530之后,实时监测是否到达工作状态指示信息所指示的终端设备530上报数据的时间;在到达工作状态指示信息所指示的终端设备530上报数据的时间时,检测是否接收到终端设备530发送的数据;在检测到未接收到终端设备530发送的数据时,获取终端设备530的供电模式,判断终端设备530的供电模式是否为预设的供电模式;在终端设备530的供电模式为预设的供电模式时,调用即时天气获取接口向天气服务器发送携带终端设备530的位置信息的第三即时天气获取请求;以及接收天气服务器返回的终端设备530的位置信息对应的第三即时天气信息;判断第三即时天气信息是否为影响终端设备530供电的天气信息;在确定出第三即时天气信息为影响终端设备530供电的天气信息时,向汇聚单元510上报第一汇报信息,第一汇报信息用于说明终端设备530因受天气影响未能按时上报数据;在确定出第三即时天气信息不是影响终端设备530供电的天气信息时,向汇聚单元510上报第二汇报信息,第二汇报信息用于说明终端设备530在未知原因下未能按时上报数据。As an optional implementation manner, the
作为一种可选的实施方式,边缘路由节点520还用于在确定出第三即时
天气信息不是影响终端设备530供电的天气信息时,向汇聚单元510上报第二汇报信息的方式具体为:As an optional implementation manner, the
边缘路由节点520还用于在确定出第三即时天气信息不是影响终端设备530供电的天气信息时,向终端设备530广播侦听消息;监测是否接收到终端设备530返回的针对侦听消息的响应消息;若在一定时间内未监测到响应消息,向汇聚单元510上报第二汇报信息。The
作为一种可选的实施方式,边缘路由节点520还用于在确定出终端设备530的供电模式为预设的供电模式时,检测即时天气获取接口是否处于激活状态;As an optional implementation manner, the
边缘路由节点520还用于在确定出即时天气获取接口处于激活状态,执行调用即时天气获取接口向天气服务器发送携带终端设备530的位置信息的第三即时天气获取请求。The
作为一种可选的实施方式,终端设备530在接收到工作状态指示信息之后,实时读取终端设备530中时钟模块的时钟信息,以获得该终端设备530的系统时间。As an optional implementation manner, after receiving the working status indication information, the terminal device 530 reads the clock information of the clock module in the terminal device 530 in real time to obtain the system time of the terminal device 530.
作为一种可选的实施方式,边缘路由节点520周期性在其无线网络覆盖范围内发送广播消息,该广播消息包括边缘路由节点520发送该广播消息的第一时间标签;边缘路由节点520接收终端设备530对该广播消息的响应消息,该响应消息包括终端设备类型、第一时间标签、终端设备530接收到广播消息的第二时间标签和终端设备530发送该响应消息的第三时间标签;边缘路由节点520判断该终端设备类型是否与工作状态指示信息指定的设备类型相匹配;如果匹配,该边缘路由节点520根据第一时间标签、第二时间标签、第三时间标签和接收到该响应消息的第四时间标签,获得边缘路由节点520与终端设备530之间的时间差并发送给终端设备530;该终端设备530根据时间差,进行时间同步调整。As an optional implementation manner, the
实施上述系统,对于汇聚单元指定的终端设备,在其未采集数据或者上报数据时,进入休眠状态,以释放无线网络资源,也能够让终端设备得到休整,提高其使用寿命,而且在休眠状态下,终端设备对电池能量的消耗也比较小,从而能够提高电池的续航能力。而在终端设备采集数据或者上报数据时,能够保证终端设备正常工作,提高物联网的可靠性。Implementing the above system, when the terminal device specified by the aggregation unit does not collect data or reports data, enters a dormant state to release the wireless network resources, and can also allow the terminal device to be rested, improve its service life, and in a sleep state. The terminal device also consumes less battery energy, thereby improving the battery life. When the terminal device collects data or reports data, it can ensure the normal operation of the terminal device and improve the reliability of the Internet of Things.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(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)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。One of ordinary skill in the art can understand that all or part of the various methods of the above embodiments can be completed by a program to instruct related hardware, the program can be stored in a computer readable storage medium, and the storage medium includes read only Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory) EPROM), one-time programmable read only memory (One-time Programmable Read-Only Memory, OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) Or other optical disc storage, disk storage, magnetic tape storage, or any other medium readable by a computer that can be used to carry or store data.
以上对本发明实施例公开的一种物联网终端设备工作状态的控制方法及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The method and system for controlling the working state of the Internet of Things terminal device disclosed in the embodiment of the present invention are described in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiment is only used. To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The content should not be construed as limiting the invention.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710463231.XA CN107197030B (en) | 2017-06-19 | 2017-06-19 | Method and system for controlling working state of terminal equipment of Internet of things |
| CN201710463231.X | 2017-06-19 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018232973A1 true WO2018232973A1 (en) | 2018-12-27 |
Family
ID=59879797
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/098641 Ceased WO2018232973A1 (en) | 2017-06-19 | 2017-08-23 | Method and system for controlling working state of internet of things terminal equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107197030B (en) |
| WO (1) | WO2018232973A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101986634B1 (en) * | 2017-11-13 | 2019-09-30 | (주)에프씨아이 | Method for power saving of internet of things devices and apparatus therefor |
| CN109579904A (en) * | 2018-12-04 | 2019-04-05 | 中国兵器装备集团自动化研究所 | A kind of simpler hardware platform for weapon damage effects evaluation test |
| CN112188598B (en) * | 2019-07-04 | 2024-04-02 | 阿里巴巴集团控股有限公司 | Data processing method, device, equipment and machine-readable medium |
| CN114640624B (en) * | 2020-12-01 | 2023-05-19 | 中国联合网络通信集团有限公司 | Convergence edge cloud pool organization system |
| CN115884335A (en) * | 2022-11-28 | 2023-03-31 | 深圳艾灵网络有限公司 | Passive Internet of things terminal communication method, communication equipment and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103167636A (en) * | 2011-12-19 | 2013-06-19 | 中国移动通信集团公司 | A method, system and device for controlling the working state of an Internet of Things terminal |
| CN104796972A (en) * | 2015-04-15 | 2015-07-22 | 浙江大学 | Communication method for reducing power consumption of wireless sensors and application of communication method |
| CN105308905A (en) * | 2013-06-18 | 2016-02-03 | 思科技术公司 | Dynamically adjusting network parameters using weather forecasts |
| CN107454661A (en) * | 2017-06-19 | 2017-12-08 | 深圳市盛路物联通讯技术有限公司 | A kind of internet-of-things terminal apparatus control method and system based on weather |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102736592A (en) * | 2012-05-29 | 2012-10-17 | 上海桥茵自动化设备有限公司 | Control and management system and control and management method of Internet-of-things measurement and control terminal |
| CN103686848B (en) * | 2012-09-18 | 2017-01-25 | 中国移动通信集团公司 | Method, gateway, platform and system for processing messages of family Internet of Things |
| CN103024939B (en) * | 2012-12-19 | 2014-12-10 | 南京农业大学 | Farmland crop growth information networking acquisition system and building method thereof |
| CN105430735B (en) * | 2015-10-27 | 2019-08-13 | 中国船舶重工集团公司第七二二研究所 | A kind of acquisition methods and device of the information of wireless sensor acquisition |
-
2017
- 2017-06-19 CN CN201710463231.XA patent/CN107197030B/en active Active
- 2017-08-23 WO PCT/CN2017/098641 patent/WO2018232973A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103167636A (en) * | 2011-12-19 | 2013-06-19 | 中国移动通信集团公司 | A method, system and device for controlling the working state of an Internet of Things terminal |
| CN105308905A (en) * | 2013-06-18 | 2016-02-03 | 思科技术公司 | Dynamically adjusting network parameters using weather forecasts |
| CN104796972A (en) * | 2015-04-15 | 2015-07-22 | 浙江大学 | Communication method for reducing power consumption of wireless sensors and application of communication method |
| CN107454661A (en) * | 2017-06-19 | 2017-12-08 | 深圳市盛路物联通讯技术有限公司 | A kind of internet-of-things terminal apparatus control method and system based on weather |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107197030A (en) | 2017-09-22 |
| CN107197030B (en) | 2020-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108347711B (en) | Low-power-consumption intelligent agricultural data acquisition system realized based on NB-IoT | |
| WO2018232973A1 (en) | Method and system for controlling working state of internet of things terminal equipment | |
| JP2017514335A (en) | Network range extender with multiple RF radio support for multiple network interfaces | |
| CN107396416B (en) | Communication control method and system based on data type | |
| WO2018232970A1 (en) | Terminal device state detection method and system applied to internet of things | |
| CN107318168B (en) | Method and system for controlling communication of terminal equipment of Internet of things | |
| WO2018232966A1 (en) | Terminal device offline detection method and system based on edge forwarding node | |
| WO2018233030A1 (en) | Transmission duration-based internet of things data reporting control method and forwarding node | |
| WO2018232976A1 (en) | Method and device for determining working state of terminal equipment | |
| CN110856185B (en) | Method and system for adjusting wireless signals of Internet of things | |
| CN102457877A (en) | Combined network, method for processing WSN terminal processing data and WSN gateway | |
| WO2018233016A1 (en) | Edge routing node and reporting frequency adjustment method thereof | |
| WO2018233045A1 (en) | Switching control method and system for internet of things communication mode | |
| WO2018233020A1 (en) | Data packaging method and system based on internet of things | |
| WO2018233036A1 (en) | Method and device for reporting and reporting of Internet of Things data | |
| WO2018233050A1 (en) | Method and system for detecting signal intensity of internet of things | |
| US12389306B1 (en) | Transmitting announcement messages between network devices and building network connectivity graphs | |
| WO2018232967A1 (en) | Internet-of-things terminal device detection method and system based on access node | |
| CN107454661B (en) | Weather-based Internet of things terminal device control method and system | |
| WO2018233049A1 (en) | Internet of Things data communication method and system | |
| WO2018232962A1 (en) | Method and system for adjusting network coverage of Internet of Things access nodes | |
| CN107257375B (en) | A method and system for detecting working state of terminal equipment based on filtering gateway | |
| WO2018232977A1 (en) | Method and device for correcting working state of terminal device | |
| WO2018233027A1 (en) | Method and device for selecting data forwarding report by selecting forwarding path in internet of things | |
| CN107196824B (en) | Method for determining working state of monitored equipment and convergence unit |
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: 17914393 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 FORM1205 DATED 15/05/2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17914393 Country of ref document: EP Kind code of ref document: A1 |