WO2018232969A1 - Filter gateway based terminal device working state determination method and system - Google Patents

Filter gateway based terminal device working state determination method and system Download PDF

Info

Publication number
WO2018232969A1
WO2018232969A1 PCT/CN2017/098637 CN2017098637W WO2018232969A1 WO 2018232969 A1 WO2018232969 A1 WO 2018232969A1 CN 2017098637 W CN2017098637 W CN 2017098637W WO 2018232969 A1 WO2018232969 A1 WO 2018232969A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
weather
target terminal
query interface
information
Prior art date
Application number
PCT/CN2017/098637
Other languages
French (fr)
Chinese (zh)
Inventor
杜光东
Original Assignee
深圳市盛路物联通讯技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市盛路物联通讯技术有限公司 filed Critical 深圳市盛路物联通讯技术有限公司
Publication of WO2018232969A1 publication Critical patent/WO2018232969A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the present invention relates to the field of Internet of Things technologies, and in particular, to a method and system for detecting a working state of a terminal device based on a filtering gateway.
  • 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. 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 accesses the Internet of Things through the forwarding node and the filtering gateway located in the Internet of Things, and uploads the collected data information to the aggregation unit, where the aggregation unit is configured to analyze and process the data information generated by the mass terminal device, and Obtain information by issuing commands, or configure terminal device parameters.
  • the terminal device In the Internet of Things, the terminal device must be able to operate independently and in a specific scenario. In a specific scenario, the number of online devices in the specified area must be ensured to maintain sufficient online terminal devices to report data information to the aggregation unit to ensure data information. "reliable”.
  • the embodiment of the invention discloses a method and a system for detecting the working state of a terminal device based on a filtering gateway, which is used for detecting the working state of the terminal device, ensuring the online quantity of the terminal device, and improving the reliability of the data information.
  • the first aspect of the present invention discloses a method for detecting a working condition of a terminal device based on a filtering gateway, which may include:
  • the filtering gateway receives the data frame reported by the terminal device forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of reporting the data frame;
  • the filtering gateway determines whether the reporting time point belongs to a preset reporting time period
  • the filtering gateway determines a target terminal device that does not report the data frame and matches the information of interest delivered by the aggregation unit in the preset reporting period; wherein the information of interest includes the aggregation unit Location information of interest and/or type of terminal device of interest to the aggregation unit;
  • the filtering gateway obtains the reporting information according to the data frame reported by the target terminal device, and reports the information to the aggregation unit, where the reporting information includes the target terminal device address and the target terminal device. Type and the last reporting time point of the target terminal device;
  • the aggregation unit analyzes an operation state of the target terminal device according to the report information.
  • the filtering gateway obtains the reporting information and reports the information to the aggregation unit according to the data frame that is reported by the target terminal device, and includes:
  • the filtering gateway invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, including the target The terminal device address and the instant weather type corresponding to the preset reporting period;
  • the filtering gateway receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
  • the filtering gateway obtains the report information according to the last reported data frame and the instant weather type of the target terminal device, and reports the report information to the convergence unit, where the report information includes the target terminal device address and the target terminal device type. And a last reporting time point of the target terminal device and the instant weather type.
  • the weather gateway query interface is invoked by the filtering gateway, and the weather type query request is sent to the corresponding cloud service platform by using the weather information query interface.
  • the method also includes:
  • the filtering gateway detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the filtering gateway executes a calling weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
  • the aggregation unit analyzes the working state of the target terminal device according to the report information, including:
  • the aggregation unit invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target The terminal device address and the instant weather type corresponding to the preset reporting period;
  • the aggregation unit receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
  • the aggregation unit analyzes the working state of the target terminal device according to the instant weather type and the report information.
  • the weather information query interface before the weather information query interface is invoked by the convergence unit, and the weather type query interface is sent to the corresponding cloud service platform by using the weather information query interface,
  • the method also includes:
  • the aggregation unit detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the aggregation unit performs an invoking weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
  • the second aspect of the present invention discloses a terminal device working state detecting system based on a filtering gateway, which may include:
  • a terminal device configured to report a data frame, where the data frame carries a terminal device type, a terminal device address, and a reporting time point of reporting the data frame;
  • the forwarding node is configured to obtain the data frame reported by the terminal device, and send the obtained data frame to the filtering gateway.
  • the filtering gateway is configured to receive the data frame reported by the terminal device that is forwarded by the forwarding node, and determine whether the reporting time point carried in the data frame reported by the terminal device belongs to a preset reporting time period, and if yes, determine a target terminal device that does not report a data frame and matches the information of interest sent by the aggregation unit in the preset reporting period, where the information of interest includes location information of interest to the aggregation unit and/or
  • the terminal device type that is interested in the aggregation unit; the report information is obtained and reported to the aggregation unit according to the data frame reported by the target terminal device, and the report information includes the target terminal device address and the target terminal device. Type and the last reporting time point of the target terminal device;
  • the aggregation unit is configured to analyze an operating state of the target terminal device according to the report information.
  • the filtering gateway is configured to obtain, according to the data frame that is reported by the target terminal device, the report information and report the information to the aggregation unit.
  • the filtering gateway is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period
  • the real-time weather type is obtained according to the last reported data frame and the instant weather type of the target terminal device, and is reported and reported to
  • the aggregation unit, the report information includes the target terminal device address, a target terminal device type, a last reporting time point of the target terminal device, and the instant weather type.
  • the filtering gateway is further configured to: invoke a weather information query interface, and send a weather type query to the corresponding cloud service platform by using the weather information query interface. Before the request, detecting whether the weather information query interface is in an active state, if the weather information query interface is in an active state, executing a call weather information query interface, and sending a weather type to the corresponding cloud service platform through the weather information query interface Query request.
  • the method for the aggregation unit to analyze the working state of the target terminal device according to the report information is specifically:
  • the aggregation unit is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period Instant weather type; analyzing the working state of the target terminal device according to the instant weather type and the report information.
  • the aggregation unit is further configured to: invoke a weather information query interface, and send a weather type query to the corresponding cloud service platform by using the weather information query interface. Before the request, detecting whether the weather information query interface is in an active state, if the weather information query interface is in an active state, executing a call weather information query interface, and sending a weather type to the corresponding cloud service platform through the weather information query interface Query request.
  • the embodiment of the invention has the following beneficial effects:
  • the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point.
  • the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit).
  • the target terminal device, the filtering gateway obtains the report information including the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device according to the last reported data frame of the target terminal device, and reports the report information to the aggregation unit.
  • the aggregation unit analyzes the working state of the target terminal device according to the report information. It can be seen that the working state of the target terminal device is analyzed according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online number of the terminal device and realize the information aggregation in the Internet of Things. Gathering through information Improve the stability and reliability of the Internet of Things.
  • FIG. 1 is a schematic diagram of an Internet of Things architecture disclosed by some embodiments of the present invention.
  • FIG. 2 is a schematic flowchart of a method for detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present disclosure
  • FIG. 3 is another schematic flowchart of a method for detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a working condition detection system of a terminal device based on a filtering gateway according to an embodiment of the present invention.
  • the embodiment of the invention discloses a method for detecting the working state of a terminal device based on a filtering gateway, which is used for detecting the working state of the terminal device, ensuring the online quantity of the terminal device, and improving the reliability of the data information.
  • the embodiment of the invention accordingly discloses a terminal device working state detecting system based on a filtering gateway.
  • 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 forwarding 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 forwarding node layer may include a large number of forwarding of the network connection.
  • the node, the forwarding node may include a router, a repeater, an access point, and the like, which are not limited in the embodiment of the present invention; the forwarding node may use any standard networking protocol, and the forwarding node may implement data parsing between different network standards.
  • the aggregation layer may include a filtering gateway and a convergence unit, wherein the filtering gateway may directly or indirectly communicate with each forwarding node of the forwarding node layer through the Internet (not shown in the figure); the aggregation unit may filter the gateway to the forwarding node.
  • Each forwarding node of the layer performs high-level management to control the data transmission frequency, network topology, and other networking functions.
  • the aggregation unit can not only analyze and make decisions about the Internet of Things data generated by the mass terminal equipment, but also obtain commands to obtain Information or configuration of terminal device parameters (where the transmission of data 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.
  • each forwarding node can provide IoT data receiving and receiving services for a large number of terminal devices within its own wireless network coverage, wherein each forwarding node has its own wireless network coverage.
  • the terminal device can have a built-in wireless communication module, which enables each forwarding node to wirelessly communicate with each terminal device within its own wireless network coverage by wireless network communication.
  • the wireless communication module built into the terminal device can input the upper frequency point 470MHz and the lower frequency point 510MHz during production, so that the wireless communication module can automatically define the communication frequency band as 470MHz ⁇ 510MHz, It complies with the provisions of China's SRRC standard; alternatively, it can input the upper frequency point of 868MHz and the lower frequency point of 908MHz, so that the wireless communication module can automatically define the communication frequency band as 868MHz to 908MHz to comply with the European ETSI standard; or, you can enter The frequency is 918MHz and the lower frequency is 928MHz, so the wireless communication module can automatically define the communication frequency band as 918MHz ⁇ 928MHz to meet the requirements of the US FCC standard.
  • the communication frequency band of the wireless communication module can also be defined as conforming to the Japanese ARIB standard or Canada.
  • the specification of the IC standard is not limited in the embodiment of the present invention.
  • the terminal device can use Frequency Division Multiple Access (FDMA), Frequency-Hopping Spread Spectrum (FHSS), and Dynamic Time Division Multiple Access (Dynamic Time Division Multiple Access). , DTDMA), and backtracking multiplexing (CSMA) are combined to solve the interference problem.
  • FDMA Frequency Division Multiple Access
  • FHSS Frequency-Hopping Spread Spectrum
  • CSMA Dynamic Time Division Multiple Access
  • FIG. 2 is a schematic flowchart of a method for detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present invention
  • a working state detection of a terminal device based on a filtering gateway Methods can include:
  • the filtering gateway receives the data frame reported by the terminal device forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame.
  • the forwarding node that communicates with the filtering gateway may be an edge forwarding node used for direct communication with the terminal device in the Internet of Things, or may be another forwarding node. If the forwarding node is an edge forwarding node, the forwarding node obtains the data frame reported by the terminal device in the coverage of the wireless network, and then forwards the data frame to the filtering gateway or forwards it to the filtering gateway through other forwarding nodes. If the forwarding node is not an edge forwarding node, the forwarding node obtains the data frame of the terminal device from the other forwarding node or the edge forwarding node, and then forwards the data frame to the filtering gateway.
  • the data frame includes the necessary data content in addition to the terminal device type, the terminal device address, and the reporting time point of the reported data frame.
  • the data frame further includes data content for indicating the temperature collected by the temperature sensor.
  • the filtering gateway determines whether the reporting time point belongs to a preset reporting time period.
  • the aggregation unit may set a time period for reporting the data frame by the terminal device as a preset reporting time period.
  • the aggregation unit is configured for the terminal device on the location of interest (a certain farm) and/or The terminal device corresponding to the terminal device type (hygrometer, smoke sensor, etc.) that is of interest is configured to set a preset reporting time period.
  • the aggregation unit may set the preset reporting time period for the terminal device on a certain farm, or A certain terminal device (such as a hygrometer) sets the preset reporting time period, or the aggregation unit sets the preset reporting time period for the strain sensor on a certain highway bridge.
  • the location information of interest of the convergence unit and the terminal device type of interest of the convergence unit are referred to as information of interest of the convergence unit.
  • the aggregation unit may send the setting parameter of the preset reporting period to the terminal device, and the terminal device sets the preset reporting period according to the setting parameter, and then the terminal device reports the data frame in the preset reporting period.
  • the process proceeds to step 203; if the filtering gateway does not belong to the preset reporting time period, the filtering gateway ends the process.
  • the filtering gateway determines a target terminal device that does not report the data frame in the preset reporting time period and matches the information of interest sent by the aggregation unit, where the information of interest includes location information and/or convergence of the aggregation unit.
  • the aggregation unit sends the information of interest to the filtering gateway, and the filtering gateway determines, according to the information of interest and the reported data frame, that the data frame is not reported in the preset reporting period, and the interested information is sent by the matching aggregation unit.
  • the target terminal device of the information sends the information of interest to the filtering gateway, and the filtering gateway determines, according to the information of interest and the reported data frame, that the data frame is not reported in the preset reporting period, and the interested information is sent by the matching aggregation unit.
  • the filtering gateway may set a receiving time period that matches the preset reporting time period, and when setting the receiving time period, may consider the Internet of Things.
  • the filtering gateway obtains the reporting information and reports the information to the aggregation unit according to the last reported data frame of the target terminal device, where the reporting information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device;
  • the filtering gateway reports the report information to the aggregation unit, where the filtering gateway determines, by the forwarding rule table sent by the aggregation unit, the target terminal device address or the target transmission band matched by the target terminal device type; A communication connection is established with the aggregation unit on the target transmission band, and the report information is reported to the aggregation unit based on the established communication connection.
  • the filtering gateway establishes a communication connection with the aggregation unit on the target transmission frequency band, and reports the report information to the aggregation unit based on the established communication connection, which includes: filtering the gateway to determine the time-frequency resource corresponding to the target transmission frequency band, and the time-frequency resource The report information is reported to the aggregation unit.
  • the filtering gateway determines the time-frequency resource corresponding to the target transmission frequency band, and reporting the reporting information to the aggregation unit on the time-frequency resource includes: filtering the gateway to determine the physical resource for reporting the reporting information from the target transmission frequency band by using a frequency hopping manner The frequency domain location of the block; the filtering gateway reports the reporting information to the aggregation unit on the time-frequency resource corresponding to the frequency domain location of the determined physical resource block.
  • the data interference problem can be solved and the data transmission efficiency can be improved.
  • the aggregation unit analyzes the working state of the target terminal device according to the report information.
  • the aggregation unit analyzes the reporting frequency of the target terminal device according to the reporting time point of the last reported data frame carried by the target terminal device carried in the report information, and further analyzes the working state of the target terminal device and the cause of such a working state.
  • the working status here includes the target terminal device online state or offline state.
  • the aggregation unit analyzes the working status of the target terminal device according to the reporting information, where the aggregation unit invokes the weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface.
  • the weather type query request is used to request the cloud service platform to query the real-time weather type corresponding to the target terminal device address and the preset reporting time period; and receive the target terminal device address and the preset reporting time that the cloud service platform returns through the weather information query interface.
  • the real-time weather type corresponding to the interval; analyzing the working state of the target terminal device according to the real-time weather type and reporting information.
  • the aggregation unit further acquires the target terminal device address and the instant weather type corresponding to the preset reporting time period, and analyzes the target terminal device in an online state or an offline state according to the real-time weather type.
  • strain sensors distributed in different locations of the highway bridge. These strain sensors can collect data, and then report the data to the convergence unit through the forwarding node and the filtering gateway to form a highway bridge. Condition monitoring. Among them, strain gauge sensors distributed on highway bridges are usually powered by "solar energy".
  • the strain gauge sensor can report the collected data frame normally due to sunlight radiation; in the rainy day, the strain sensor cannot report the data frame due to no sunlight radiation (data frame reporting is interrupted, strain gauge sensor temporarily due to weather conditions
  • the aggregation unit can report the data frame in the preset reporting period. If the preset time period is sunny, the strain sensor does not report the data frame, and the aggregation unit further analyzes whether the strain sensor is offline due to other faults (hardware failure, etc.) according to the last reporting time point, and accordingly, for maintenance. . It can be seen that the instant weather type is further combined to further accurately analyze the working state of the target terminal device and the cause thereof.
  • the convergence unit detects whether the weather information query interface is in an active state, if the weather information query interface is activated. The state, the aggregation unit performs the step of calling the weather information query interface, and sending a weather type query request to the corresponding cloud service platform through the weather information query interface.
  • the convergence unit detects whether the target terminal device type of the target terminal device is The weather identifier is associated (the association relationship is used to indicate that the work of the target terminal device is affected by the real-time weather). If associated, the aggregation unit executes the calling weather information query interface, and sends the weather to the corresponding cloud service platform through the weather information query interface. Type query request.
  • the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point.
  • the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit).
  • Target terminal device filtering gateway according to the target end
  • the data frame that is last reported by the end device obtains the report information including the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device, and reports the information to the aggregation unit, and the aggregation unit analyzes the target terminal device according to the report information.
  • Working status It can be seen that the working state of the target terminal device is analyzed according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online number of the terminal device and realize the information aggregation in the Internet of Things. Improve the stability and reliability of the Internet of Things through information gathering.
  • FIG. 3 is another schematic flowchart of a method for detecting a working condition of a terminal device based on a filtering gateway according to an embodiment of the present invention.
  • a method for detecting a working state of a terminal device based on a filtering gateway may include :
  • the filtering gateway receives the data frame reported by the terminal device that is forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame.
  • the filtering gateway determines whether the reporting time point belongs to a preset reporting time period.
  • the filtering gateway determines that the reporting time point belongs to the preset reporting time period, the process proceeds to step 303. If the filtering gateway does not belong to the preset reporting time period, the filtering gateway ends the process.
  • the filtering gateway determines a target terminal device that does not report the data frame in the preset reporting period and matches the information of interest sent by the aggregation unit.
  • the information of interest includes location information of interest to the aggregation unit and/or type of terminal device of interest to the aggregation unit.
  • the filtering gateway invokes the weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset report.
  • the filtering gateway invokes the weather information query interface, and sends the weather type query request to the corresponding cloud service platform through the weather information query interface
  • the filtering gateway invokes the weather information query interface, and uses the weather information query interface. Send a weather type query request to the corresponding cloud service platform.
  • the filtering gateway invokes the weather information query interface, and before the weather information query interface sends the weather type query request to the corresponding cloud service platform, the filtering gateway detects whether the target terminal device type of the target terminal device is The weather identifier is associated (this association is used to indicate that the work of the target terminal device is affected by the immediate weather). If it is associated, the filtering gateway executes the calling day.
  • the air information query interface sends a weather type query request to the corresponding cloud service platform through the weather information query interface.
  • the sending, by the filtering gateway, the weather type query request to the corresponding cloud service platform by using the weather information query interface includes:
  • the filtering gateway determines whether the number of filtering gateways accessed by the weather information query interface exceeds a threshold. If not, the weather information query interface sends a weather type query request to the corresponding cloud service platform.
  • the filtering gateway receives, by the cloud service platform, a target terminal device address returned by the weather information query interface and an instant weather type corresponding to the preset reporting time period;
  • the filtering gateway obtains the reporting information according to the last reported data frame and the real-time weather type of the target terminal device, and reports the information to the aggregation unit, where the reporting information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device. And instant weather types;
  • the aggregation unit analyzes the working state of the target terminal device according to the report information.
  • the aggregation unit combines the real-time weather type to further accurately analyze the working state of the target terminal device and its cause, so as to be able to accurately alert, perform terminal device maintenance, and ensure the number of terminal devices to improve data reliability.
  • the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point.
  • the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit).
  • the target terminal device, the filtering gateway further calls the weather information query interface, and sends a weather type query request to the corresponding cloud service platform by the weather information query interface, and obtains the target terminal device address and the preset reporting time period corresponding to the cloud service platform.
  • the real-time weather type corresponding to the real-time weather type and then obtaining the last reporting time point including the target terminal device address, the target terminal device type, the instant weather type, and the target terminal device according to the last reported data frame and the real-time weather type of the target terminal device.
  • the target terminal device type, the target terminal device address, and the combination of the real-time weather type are analyzed to ensure that the terminal device is online. Quantity, realize the convergence of information in the Internet of Things, and improve the stability and reliability of the Internet of Things through information aggregation.
  • FIG. 4 is a schematic structural diagram of a working condition detection system for a terminal device based on a filtering gateway according to an embodiment of the present invention
  • a terminal device working state detecting system based on a filtering gateway may include:
  • the terminal device 410 is configured to report a data frame, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame;
  • the forwarding node 420 is configured to acquire the data frame reported by the terminal device 410, and send the obtained data frame to the filtering gateway 430;
  • the filtering gateway 430 is configured to receive the data frame reported by the terminal device 410 forwarded by the forwarding node 420, and determine whether the reporting time point carried in the data frame reported by the terminal device 410 belongs to a preset reporting time period.
  • the target terminal device that does not report the data frame and matches the information of interest delivered by the aggregation unit 440, wherein the information of interest includes location information of interest to the aggregation unit 440 and/or type of terminal device of interest to the aggregation unit 440.
  • the report information is obtained and reported to the aggregation unit 440 according to the last reported data frame of the target terminal device, and the report information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device;
  • the aggregation unit 440 is configured to analyze the working state of the target terminal device according to the report information.
  • the aggregation unit 440 can set the time period in which the terminal device 410 reports the data frame as the preset reporting time period. Specifically, the convergence unit 440 is directed to the terminal device 410 and/or its sense on the location of interest (a certain farm).
  • the terminal device 410 corresponding to the terminal device type (hygrometer, smoke sensor, etc.) of interest sets a preset reporting time period.
  • the aggregation unit 440 can set the preset reporting time period for the terminal device 410 on a certain farm, or A certain terminal device 410 (such as a hygrometer) sets the preset reporting time period, or the convergence unit 440 sets the preset reporting time period for the strain sensor on a certain highway bridge.
  • the location information of interest to the convergence unit 440 and the type of terminal device of interest by the aggregation unit 440 are referred to as information of interest of the aggregation unit 440 in the embodiment of the present invention.
  • the aggregation unit 440 may send the setting parameter of the preset reporting period to the terminal device 410, and the terminal device 410 sets the preset reporting period according to the setting parameter, after which the terminal device 410 reports the data in the preset reporting period. frame.
  • the aggregation unit 440 sends the information of interest to the filtering gateway 430, and the filtering gateway 430 determines that the data frame is not reported in the preset reporting period and is sent by the matching aggregation unit 440 according to the information of interest and the reported data frame.
  • the target terminal device of the information of interest is not reported in the preset reporting period and is sent by the matching aggregation unit 440 according to the information of interest and the reported data frame.
  • the preset reporting period of the terminal device 410 is filtered.
  • the gateway 430 can set a receiving time period that matches the preset reporting time period.
  • the delay caused by data congestion in the Internet of Things and the priority of receiving and receiving data frames of the terminal device can be considered, and a reasonable and basic setting is set.
  • the receiving time period of the data frame reported in the preset reporting period can be received therein.
  • the filtering of the report information by the filtering gateway 430 to the aggregation unit 440 specifically includes: the filtering gateway 430 determines, from the forwarding rule table sent by the aggregation unit 440, that the target terminal device address or the target terminal device type matches.
  • the filtering gateway 430 establishes a communication connection with the aggregation unit 440 on the target transmission frequency band, and reports the report information to the aggregation unit 440 based on the established communication connection. Specifically, the filtering gateway 430 determines the time-frequency resource corresponding to the target transmission frequency band. The reporting information is reported to the aggregation unit 440 on the time-frequency resource.
  • the filtering gateway 430 determines the time-frequency resource corresponding to the target transmission frequency band, and reporting the reporting information to the aggregation unit 440 on the time-frequency resource, specifically includes: the filtering gateway 430 determines, by using a frequency hopping manner, the reporting information from the target transmission frequency band. The frequency domain location of the physical resource block; the filtering gateway 430 reports the reporting information to the aggregation unit 440 on the time-frequency resource corresponding to the frequency domain location of the determined physical resource block.
  • the data interference problem can be solved and the data transmission efficiency can be improved.
  • the filtering gateway 430 is configured to obtain the reporting information and report the information to the aggregation unit 440 according to the data frame that is reported by the target terminal device.
  • the filtering gateway 430 is configured to invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset.
  • the report information is obtained and reported to the aggregation unit, and the report information includes the target terminal device address, the target terminal device type, the last reporting time point of the target terminal device, and the instant weather type.
  • the filtering gateway 430 is further configured to detect whether the weather information query interface is activated before calling the weather information query interface and sending the weather type query request to the corresponding cloud service platform through the weather information query interface. Status, if the weather information query interface is in the active state, the calling weather information query interface is executed, and the weather information query interface is sent to the corresponding cloud service platform. Send weather type query request.
  • the filtering gateway 430 is further configured to: before the weather information query interface is invoked, and send the weather type query request to the corresponding cloud service platform through the weather information query interface, the filtering gateway 430 detects the target terminal device. Whether the target terminal device type is associated with the weather identifier (the association relationship is used to indicate that the work of the target terminal device is affected by the immediate weather), and if so, the calling weather information query interface is executed, and the weather information query interface is used to correspond to The cloud service platform sends a weather type query request.
  • the filtering gateway 430 sends the weather type query request to the corresponding cloud service platform through the weather information query interface, which specifically includes:
  • the filtering gateway 430 determines whether the number of filtering gateways 430 accessed by the weather information query interface exceeds a threshold. If not, the weather information query interface sends a weather type query request to the corresponding cloud service platform.
  • the manner in which the aggregation unit 440 is configured to analyze the working state of the target terminal device according to the report information is specifically:
  • the aggregation unit 440 is configured to invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset.
  • the real-time weather type corresponding to the reporting time period receiving the target terminal device address returned by the cloud service query interface and the instant weather type corresponding to the preset reporting time period; analyzing the work of the target terminal device according to the real-time weather type and the reporting information status.
  • the aggregation unit 440 is further configured to: before calling the weather information query interface, and sending the weather type query request to the corresponding cloud service platform through the weather information query interface, detecting whether the weather information query interface is activated Status: If the weather information query interface is in an active state, the calling weather information query interface is executed, and the weather type query request is sent to the corresponding cloud service platform through the weather information query interface.
  • the aggregation unit 440 is further configured to: before calling the weather information query interface, and sending the weather type query request to the corresponding cloud service platform by using the weather information query interface, detecting the target terminal of the target terminal device Whether the device type is associated with the weather identifier (the association relationship is used to indicate that the work of the target terminal device is affected by the real-time weather). If it is associated, the calling weather information query interface is executed, and the weather information query interface is used to correspond to the corresponding cloud service platform. Send weather type query request.
  • the aggregation unit analyzes the working state of the terminal device according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online quantity of the terminal device, and implement the object.
  • the convergence of information in the network improves the stability and reliability of the Internet of Things through information aggregation.
  • the aggregation unit combines the time point of the data frame reported by the target terminal device, the target terminal device address, the target terminal device type, and the real-time weather type to further accurately analyze the working state of the target terminal device and the cause thereof, so as to be able to accurately alert Perform terminal equipment maintenance to ensure the number of terminal equipment to improve data reliability.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-Time Programmable Read-Only Memory
  • EEPROM Electronically-Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to the technical field of internet of things, and discloses a method and system for detecting the working state of a terminal device on the basis of a filter gateway. The method comprises: the filter gateway receives a data frame that is forwarded by a forwarding node and reported by a terminal device; the filter gateway decides whether the reporting time point belongs to a preset reporting time period or not; if the reporting time point belongs to the preset reporting time period, the filter gateway determines that the data frame is not reported during the preset reporting time period, and matches a target terminal device of interested information issued by a convergence unit; the filter gateway acquires report information and reports the report information to the convergence unit according to the data frame reported by the target terminal device last time; and the convergence unit analyzes the working state of the target terminal device according to the report information. By implementing the embodiment of the invention, the working state of the target terminal device can be analyzed, so as to ensure the number of the online terminal devices; the information in the internet of things can be converged; and thus, the stability and the reliability of the internet of things are improved through the information convergence.

Description

一种基于过滤网关的终端设备工作状态检测方法及系统Method and system for detecting working state of terminal equipment based on filtering gateway 技术领域Technical field
本发明涉及物联网技术领域,具体涉及一种基于过滤网关的终端设备工作状态检测方法及系统。The present invention relates to the field of Internet of Things technologies, and in particular, to a method and system for detecting a working state of a terminal device based on a filtering gateway.
背景技术Background technique
物联网(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. They simply "broadcast" a small amount of data, or "listen" directly to their own data, and can also be called "dumb devices." The terminal device accesses the Internet of Things through the forwarding node and the filtering gateway located in the Internet of Things, and uploads the collected data information to the aggregation unit, where the aggregation unit is configured to analyze and process the data information generated by the mass terminal device, and Obtain information by issuing commands, or configure terminal device parameters. In the Internet of Things, the terminal device must be able to operate independently and in a specific scenario. In a specific scenario, the number of online devices in the specified area must be ensured to maintain sufficient online terminal devices to report data information to the aggregation unit to ensure data information. "reliable".
发明内容Summary of the invention
本发明实施例公开了一种基于过滤网关的终端设备工作状态检测方法及系统,用于检测终端设备的工作状态,确保终端设备的在线数量,提高数据信息的可靠性。The embodiment of the invention discloses a method and a system for detecting the working state of a terminal device based on a filtering gateway, which is used for detecting the working state of the terminal device, ensuring the online quantity of the terminal device, and improving the reliability of the data information.
本发明第一方面公开了一种基于过滤网关的终端设备工作状态检测方法,可包括:The first aspect of the present invention discloses a method for detecting a working condition of a terminal device based on a filtering gateway, which may include:
过滤网关接收转发节点转发的终端设备上报的数据帧;其中,所述数据帧携带终端设备类型、终端设备地址、上报所述数据帧的上报时间点;The filtering gateway receives the data frame reported by the terminal device forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of reporting the data frame;
所述过滤网关判断所述上报时间点是否属于预设上报时间段;The filtering gateway determines whether the reporting time point belongs to a preset reporting time period;
如果属于,所述过滤网关确定出在所述预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备;其中,所述感兴趣信息包括所述汇聚单元感兴趣的位置信息和/或所述汇聚单元感兴趣的终端设备类型;If yes, the filtering gateway determines a target terminal device that does not report the data frame and matches the information of interest delivered by the aggregation unit in the preset reporting period; wherein the information of interest includes the aggregation unit Location information of interest and/or type of terminal device of interest to the aggregation unit;
所述过滤网关根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备 类型和所述目标终端设备的最后一次上报时间点;The filtering gateway obtains the reporting information according to the data frame reported by the target terminal device, and reports the information to the aggregation unit, where the reporting information includes the target terminal device address and the target terminal device. Type and the last reporting time point of the target terminal device;
所述汇聚单元根据所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit analyzes an operation state of the target terminal device according to the report information.
作为一种可选的实施方式,在本发明第一方面中,所述过滤网关根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,包括:As an optional implementation manner, in the first aspect of the present invention, the filtering gateway obtains the reporting information and reports the information to the aggregation unit according to the data frame that is reported by the target terminal device, and includes:
所述过滤网关调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The filtering gateway invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, including the target The terminal device address and the instant weather type corresponding to the preset reporting period;
所述过滤网关接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The filtering gateway receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
所述过滤网关根据所述目标终端设备上一次上报的数据帧和所述即时天气类型,获得所述汇报信息并上报给汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型、所述目标终端设备的最后一次上报时间点和所述即时天气类型。The filtering gateway obtains the report information according to the last reported data frame and the instant weather type of the target terminal device, and reports the report information to the convergence unit, where the report information includes the target terminal device address and the target terminal device type. And a last reporting time point of the target terminal device and the instant weather type.
作为一种可选的实施方式,在本发明第一方面中,在所述过滤网关调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the weather gateway query interface is invoked by the filtering gateway, and the weather type query request is sent to the corresponding cloud service platform by using the weather information query interface. The method also includes:
所述过滤网关检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,所述过滤网关执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求的步骤。The filtering gateway detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the filtering gateway executes a calling weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
作为一种可选的实施方式,在本发明第一方面中,所述汇聚单元根据所述汇报信息,分析所述目标终端设备的工作状态,包括:As an optional implementation manner, in the first aspect of the present invention, the aggregation unit analyzes the working state of the target terminal device according to the report information, including:
所述汇聚单元调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The aggregation unit invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target The terminal device address and the instant weather type corresponding to the preset reporting period;
所述汇聚单元接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The aggregation unit receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
所述汇聚单元根据所述即时天气类型和所述汇报信息,分析所述目标终端设备的工作状态。 The aggregation unit analyzes the working state of the target terminal device according to the instant weather type and the report information.
作为一种可选的实施方式,在本发明第一方面中,在所述汇聚单元调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, before the weather information query interface is invoked by the convergence unit, and the weather type query interface is sent to the corresponding cloud service platform by using the weather information query interface, The method also includes:
所述汇聚单元检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,所述汇聚单元执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求的步骤。The aggregation unit detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the aggregation unit performs an invoking weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
本发明第二方面公开了一种基于过滤网关的终端设备工作状态检测系统,可包括:The second aspect of the present invention discloses a terminal device working state detecting system based on a filtering gateway, which may include:
终端设备,用于上报数据帧;其中,所述数据帧携带终端设备类型、终端设备地址、上报所述数据帧的上报时间点;a terminal device, configured to report a data frame, where the data frame carries a terminal device type, a terminal device address, and a reporting time point of reporting the data frame;
转发节点,用于获取终端设备上报的数据帧,并将获取到的数据帧发送给过滤网关;The forwarding node is configured to obtain the data frame reported by the terminal device, and send the obtained data frame to the filtering gateway.
所述过滤网关,用于接收所述转发节点转发的所述终端设备上报的数据帧,判断所述终端设备上报的数据帧中携带的上报时间点是否属于预设上报时间段,如果属于,确定出在所述预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备,其中,所述感兴趣信息包括所述汇聚单元感兴趣的位置信息和/或所述汇聚单元感兴趣的终端设备类型;根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型和所述目标终端设备的最后一次上报时间点;The filtering gateway is configured to receive the data frame reported by the terminal device that is forwarded by the forwarding node, and determine whether the reporting time point carried in the data frame reported by the terminal device belongs to a preset reporting time period, and if yes, determine a target terminal device that does not report a data frame and matches the information of interest sent by the aggregation unit in the preset reporting period, where the information of interest includes location information of interest to the aggregation unit and/or The terminal device type that is interested in the aggregation unit; the report information is obtained and reported to the aggregation unit according to the data frame reported by the target terminal device, and the report information includes the target terminal device address and the target terminal device. Type and the last reporting time point of the target terminal device;
所述汇聚单元,用于根据所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit is configured to analyze an operating state of the target terminal device according to the report information.
作为一种可选的实施方式,在本发明第二方面中,所述过滤网关用于根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元的方式具体为:As an optional implementation manner, in the second aspect of the present invention, the filtering gateway is configured to obtain, according to the data frame that is reported by the target terminal device, the report information and report the information to the aggregation unit. :
所述过滤网关用于,调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;根据所述目标终端设备上一次上报的数据帧和所述即时天气类型,获得所述汇报信息并上报给 汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型、所述目标终端设备的最后一次上报时间点和所述即时天气类型。The filtering gateway is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period The real-time weather type is obtained according to the last reported data frame and the instant weather type of the target terminal device, and is reported and reported to The aggregation unit, the report information includes the target terminal device address, a target terminal device type, a last reporting time point of the target terminal device, and the instant weather type.
作为一种可选的实施方式,在本发明第二方面中,所述过滤网关,还用于在调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, in the second aspect of the present invention, the filtering gateway is further configured to: invoke a weather information query interface, and send a weather type query to the corresponding cloud service platform by using the weather information query interface. Before the request, detecting whether the weather information query interface is in an active state, if the weather information query interface is in an active state, executing a call weather information query interface, and sending a weather type to the corresponding cloud service platform through the weather information query interface Query request.
作为一种可选的实施方式,在本发明第二方面中,所述汇聚单元用于根据所述汇报信息,分析所述目标终端设备的工作状态的方式具体为:As an optional implementation manner, in the second aspect of the present invention, the method for the aggregation unit to analyze the working state of the target terminal device according to the report information is specifically:
所述汇聚单元用于,调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;根据所述即时天气类型和所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period Instant weather type; analyzing the working state of the target terminal device according to the instant weather type and the report information.
作为一种可选的实施方式,在本发明第二方面中,所述汇聚单元,还用于在调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, in the second aspect of the present invention, the aggregation unit is further configured to: invoke a weather information query interface, and send a weather type query to the corresponding cloud service platform by using the weather information query interface. Before the request, detecting whether the weather information query interface is in an active state, if the weather information query interface is in an active state, executing a call weather information query interface, and sending a weather type to the corresponding cloud service platform through the weather information query interface Query request.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiment of the invention has the following beneficial effects:
在本发明实施例中,转发节点将终端设备上报的数据帧发送给过滤网关,过滤网关接收数据帧后,判断数据帧中携带的上报时间点是否属于预设上报时间段,在上报时间点属于预设上报时间段时,过滤网关确定出预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息(包括汇聚单元感兴趣的位置信息或者汇聚单元感兴趣的终端设备类型)的目标终端设备,过滤网关根据目标终端设备上一次上报的数据帧,获得包括目标终端设备地址、目标终端设备类型和目标终端设备的最后一次上报时间点的汇报信息,并上报给汇聚单元,汇聚单元根据汇报信息,分析目标终端设备的工作状态。可以看出,根据目标终端设备上报数据帧的时间点、目标终端设备地址和目标终端设备类型等,分析目标终端设备的工作状态,以确保终端设备的在线数量,实现物联网中的信息汇聚,通过信息汇聚 提高物联网的稳定性和可靠性。In the embodiment of the present invention, the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point. When the time period is preset, the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit). The target terminal device, the filtering gateway obtains the report information including the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device according to the last reported data frame of the target terminal device, and reports the report information to the aggregation unit. The aggregation unit analyzes the working state of the target terminal device according to the report information. It can be seen that the working state of the target terminal device is analyzed according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online number of the terminal device and realize the information aggregation in the Internet of Things. Gathering through information Improve the stability and reliability of the Internet of Things.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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 detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present disclosure;
图3为本发明实施例公开的基于过滤网关的终端设备工作状态检测方法的另一流程示意图;FIG. 3 is another schematic flowchart of a method for detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present disclosure;
图4为本发明实施例公开的基于过滤网关的终端设备工作状态检测系统的结构示意图。FIG. 4 is a schematic structural diagram of a working condition detection system of a terminal device based on a filtering gateway according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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 "comprising" and "having", and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or process comprising a series of steps or units. The apparatus is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not explicitly listed or inherent to such procedures, methods, products, or devices.
本发明实施例公开了一种基于过滤网关的终端设备工作状态检测方法,用于检测终端设备的工作状态,确保终端设备的在线数量,提高数据信息的可靠性。本发明实施例相应地公开了一种基于过滤网关的终端设备工作状态检测系统。The embodiment of the invention discloses a method for detecting the working state of a terminal device based on a filtering gateway, which is used for detecting the working state of the terminal device, ensuring the online quantity of the terminal device, and improving the reliability of the data information. The embodiment of the invention accordingly discloses a terminal device working state detecting system based on a filtering gateway.
在介绍本发明实施例之前,先简单介绍一下本发明一些实施例公开的物联网架构。如图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 forwarding 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 forwarding node layer may include a large number of forwarding of the network connection. The node, the forwarding node may include a router, a repeater, an access point, and the like, which are not limited in the embodiment of the present invention; the forwarding node may use any standard networking protocol, and the forwarding node may implement data parsing between different network standards. The aggregation layer may include a filtering gateway and a convergence unit, wherein the filtering gateway may directly or indirectly communicate with each forwarding node of the forwarding node layer through the Internet (not shown in the figure); the aggregation unit may filter the gateway to the forwarding node. Each forwarding node of the layer performs high-level management to control the data transmission frequency, network topology, and other networking functions. The aggregation unit can not only analyze and make decisions about the Internet of Things data generated by the mass terminal equipment, but also obtain commands to obtain Information or configuration of terminal device parameters (where the transmission of data 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. In the Internet of Things architecture shown in Figure 1, each forwarding node can provide IoT data receiving and receiving services for a large number of terminal devices within its own wireless network coverage, wherein each forwarding node has its own wireless network coverage. The terminal device can have a built-in wireless communication module, which enables each forwarding node to wirelessly communicate with each terminal device within its own wireless network coverage by wireless network 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所示,一种基于过滤网关的终端设备工作状态检测 方法可包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for detecting a working state of a terminal device based on a filtering gateway according to an embodiment of the present invention; as shown in FIG. 2, a working state detection of a terminal device based on a filtering gateway Methods can include:
201、过滤网关接收转发节点转发的终端设备上报的数据帧;其中,数据帧携带终端设备类型、终端设备地址、上报数据帧的上报时间点;201. The filtering gateway receives the data frame reported by the terminal device forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame.
其中,与过滤网关通信的转发节点可以是物联网中用于与终端设备直接通信的边缘转发节点,也可以是其它转发节点。如果转发节点为边缘转发节点,转发节点获取其无线网络覆盖范围内的终端设备上报的数据帧,然后将其转发给过滤网关或者再通过其它转发节点转发给过滤网关。如果转发节点不是边缘转发节点,转发节点从其它转发节点或者边缘转发节点中获取终端设备的数据帧,然后转发给过滤网关。The forwarding node that communicates with the filtering gateway may be an edge forwarding node used for direct communication with the terminal device in the Internet of Things, or may be another forwarding node. If the forwarding node is an edge forwarding node, the forwarding node obtains the data frame reported by the terminal device in the coverage of the wireless network, and then forwards the data frame to the filtering gateway or forwards it to the filtering gateway through other forwarding nodes. If the forwarding node is not an edge forwarding node, the forwarding node obtains the data frame of the terminal device from the other forwarding node or the edge forwarding node, and then forwards the data frame to the filtering gateway.
需要说明的是,数据帧中除了携带终端设备类型、终端设备地址和上报数据帧的上报时间点外,还包括必要的数据内容。举例来说,当终端设备为温度传感器时,数据帧中还包括用于指示温度传感器采集到的温度的数据内容。It should be noted that the data frame includes the necessary data content in addition to the terminal device type, the terminal device address, and the reporting time point of the reported data frame. For example, when the terminal device is a temperature sensor, the data frame further includes data content for indicating the temperature collected by the temperature sensor.
202、过滤网关判断上报时间点是否属于预设上报时间段;202. The filtering gateway determines whether the reporting time point belongs to a preset reporting time period.
作为一种可选的实施方式,汇聚单元可以设置终端设备上报数据帧的时间段,作为预设上报时间段,具体地,汇聚单元针对其感兴趣位置(某一个农场)上的终端设备和/或其感兴趣的终端设备类型(湿度计、烟感器等)对应的终端设备设置预设上报时间段,比如汇聚单元可以对某一个农场上的终端设备设置该预设上报时间段,或者对某一种终端设备(如湿度计)设置该预设上报时间段,或者汇聚单元对某一座高速公路桥上的应变式传感器设置该预设上报时间段。在本发明实施例中将汇聚单元感兴趣的位置信息和汇聚单元感兴趣的终端设备类型,称之为汇聚单元的感兴趣信息。汇聚单元可以通过下发预设上报时间段的设置参数到终端设备,终端设备根据设置参数设置出该预设上报时间段,之后,终端设备将在该预设上报时间段上报数据帧。As an optional implementation manner, the aggregation unit may set a time period for reporting the data frame by the terminal device as a preset reporting time period. Specifically, the aggregation unit is configured for the terminal device on the location of interest (a certain farm) and/or The terminal device corresponding to the terminal device type (hygrometer, smoke sensor, etc.) that is of interest is configured to set a preset reporting time period. For example, the aggregation unit may set the preset reporting time period for the terminal device on a certain farm, or A certain terminal device (such as a hygrometer) sets the preset reporting time period, or the aggregation unit sets the preset reporting time period for the strain sensor on a certain highway bridge. In the embodiment of the present invention, the location information of interest of the convergence unit and the terminal device type of interest of the convergence unit are referred to as information of interest of the convergence unit. The aggregation unit may send the setting parameter of the preset reporting period to the terminal device, and the terminal device sets the preset reporting period according to the setting parameter, and then the terminal device reports the data frame in the preset reporting period.
如果过滤网关在判定上报时间点属于预设上报时间段时,转向步骤203;如果过滤网关在判定上报时间点不属于预设上报时间段时,结束该流程。If the filtering gateway determines that the reporting time point belongs to the preset reporting time period, the process proceeds to step 203; if the filtering gateway does not belong to the preset reporting time period, the filtering gateway ends the process.
203、过滤网关确定出在预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备;其中,感兴趣信息包括汇聚单元感兴趣的位置信息和/或汇聚单元感兴趣的终端设备类型;203. The filtering gateway determines a target terminal device that does not report the data frame in the preset reporting time period and matches the information of interest sent by the aggregation unit, where the information of interest includes location information and/or convergence of the aggregation unit. The type of terminal device that the unit is interested in;
汇聚单元将感兴趣信息下发给过滤网关,过滤网关根据感兴趣信息和上报的数据帧,确定出未在预设上报时间段上报数据帧、且匹配汇聚单元下发的感兴趣 信息的目标终端设备。The aggregation unit sends the information of interest to the filtering gateway, and the filtering gateway determines, according to the information of interest and the reported data frame, that the data frame is not reported in the preset reporting period, and the interested information is sent by the matching aggregation unit. The target terminal device of the information.
作为一种可选的实施方式,针对于该终端设备的预设上报时间段,过滤网关可以设置匹配该预设上报时间段的接收时间段,在设置该接收时间段时,可以考虑物联网中数据拥堵造成的延迟、终端设备数据帧收发的优先级等,设置一个合理且基本能够在其内接收到在预设上报时间段内上报的数据帧的接收时间段。As an optional implementation manner, for the preset reporting time period of the terminal device, the filtering gateway may set a receiving time period that matches the preset reporting time period, and when setting the receiving time period, may consider the Internet of Things. The delay caused by the data congestion, the priority of the transmission and reception of the data frame of the terminal device, and the like, and the receiving time period in which the data frame reported in the preset reporting period is received in a reasonable and substantially capable manner.
204、过滤网关根据目标终端设备上一次上报的数据帧,获得汇报信息并上报给汇聚单元,汇报信息包括目标终端设备地址、目标终端设备类型和目标终端设备的最后一次上报时间点;The filtering gateway obtains the reporting information and reports the information to the aggregation unit according to the last reported data frame of the target terminal device, where the reporting information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device;
作为一种可选的实施方式,过滤网关将汇报信息上报给汇聚单元具体包括:过滤网关从汇聚单元下发的转发规则表中确定出目标终端设备地址或者目标终端设备类型匹配的目标传输频段;在目标传输频段上与汇聚单元建立通信连接,以及基于建立的通信连接将汇报信息上报给汇聚单元。As an optional implementation manner, the filtering gateway reports the report information to the aggregation unit, where the filtering gateway determines, by the forwarding rule table sent by the aggregation unit, the target terminal device address or the target transmission band matched by the target terminal device type; A communication connection is established with the aggregation unit on the target transmission band, and the report information is reported to the aggregation unit based on the established communication connection.
进一步地,过滤网关在目标传输频段上与汇聚单元建立通信连接,以及基于建立的通信连接将汇报信息上报给汇聚单元具体包括:过滤网关确定目标传输频段所对应的时频资源,在时频资源上向汇聚单元上报汇报信息。Further, the filtering gateway establishes a communication connection with the aggregation unit on the target transmission frequency band, and reports the report information to the aggregation unit based on the established communication connection, which includes: filtering the gateway to determine the time-frequency resource corresponding to the target transmission frequency band, and the time-frequency resource The report information is reported to the aggregation unit.
进一步地,过滤网关确定目标传输频段所对应的时频资源,在时频资源上向汇聚单元上报汇报信息具体包括:过滤网关通过跳频方式从目标传输频段中确定用于上报汇报信息的物理资源块的频域位置;过滤网关在确定的物理资源块的频域位置所对应的时频资源上,向汇聚单元上报汇报信息。Further, the filtering gateway determines the time-frequency resource corresponding to the target transmission frequency band, and reporting the reporting information to the aggregation unit on the time-frequency resource includes: filtering the gateway to determine the physical resource for reporting the reporting information from the target transmission frequency band by using a frequency hopping manner The frequency domain location of the block; the filtering gateway reports the reporting information to the aggregation unit on the time-frequency resource corresponding to the frequency domain location of the determined physical resource block.
通过上述实施方式,能够解决数据干扰问题,提高数据传输效率。According to the above embodiment, the data interference problem can be solved and the data transmission efficiency can be improved.
205、汇聚单元根据汇报信息,分析目标终端设备的工作状态。205. The aggregation unit analyzes the working state of the target terminal device according to the report information.
汇聚单元根据汇报信息中携带的目标终端设备上一次上报数据帧的上报时间点,分析目标终端设备的上报频率,进一步分析目标终端设备的工作状态以及导致出现这种工作状态的原因等。这里的工作状态包括目标终端设备在线状态或者离线状态。The aggregation unit analyzes the reporting frequency of the target terminal device according to the reporting time point of the last reported data frame carried by the target terminal device carried in the report information, and further analyzes the working state of the target terminal device and the cause of such a working state. The working status here includes the target terminal device online state or offline state.
作为一种可选的实施方式,汇聚单元根据汇报信息,分析目标终端设备的工作状态具体包括:汇聚单元调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求,天气类型查询请求用于向云端服务平台请求查询包括目标终端设备地址和预设上报时间段对应的即时天气类型;接收云端服务平台通过天气信息查询接口返回的目标终端设备地址和预设上报时 间段对应的即时天气类型;根据即时天气类型和汇报信息,分析目标终端设备的工作状态。通过该实施方式,汇聚单元进一步地获取目标终端设备地址及预设上报时间段对应的即时天气类型,结合即时天气类型分析目标终端设备处于在线状态或者离线状态。举例来说,在高速公路桥的不同位置,分布着成百上千的应变式传感器,这些应变式传感器能够采集数据,然后通过转发节点、过滤网关将数据上报给汇聚单元,形成对高速公路桥的状态监测。其中,分布在高速公路桥的应变式传感器通常是利用“太阳能”为其供电。在晴天时,由于阳光辐射,应变式传感器能够正常上报采集到的数据帧;在雨天时,由于没有阳光辐射,应变式传感器无法上报数据帧(数据帧上报被中断,应变式传感器因为天气原因暂时处于离线状态,汇聚单元可以不用预警),也就不能在预设上报时间段上报数据帧。如果在预设上报时间段内为晴天,应变式传感器未上报数据帧,汇聚单元根据最后一次上报时间点,进一步分析应变式传感器是否由于其它故障(硬件故障等)造成离线,相应预警,以便检修。从而可以看出,进一步结合即时天气类型,以进一步准确地分析目标终端设备的工作状态及其造成原因。As an optional implementation manner, the aggregation unit analyzes the working status of the target terminal device according to the reporting information, where the aggregation unit invokes the weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface. The weather type query request is used to request the cloud service platform to query the real-time weather type corresponding to the target terminal device address and the preset reporting time period; and receive the target terminal device address and the preset reporting time that the cloud service platform returns through the weather information query interface. The real-time weather type corresponding to the interval; analyzing the working state of the target terminal device according to the real-time weather type and reporting information. In this implementation manner, the aggregation unit further acquires the target terminal device address and the instant weather type corresponding to the preset reporting time period, and analyzes the target terminal device in an online state or an offline state according to the real-time weather type. For example, in different locations of the highway bridge, there are hundreds of strain sensors distributed. These strain sensors can collect data, and then report the data to the convergence unit through the forwarding node and the filtering gateway to form a highway bridge. Condition monitoring. Among them, strain gauge sensors distributed on highway bridges are usually powered by "solar energy". On sunny days, the strain gauge sensor can report the collected data frame normally due to sunlight radiation; in the rainy day, the strain sensor cannot report the data frame due to no sunlight radiation (data frame reporting is interrupted, strain gauge sensor temporarily due to weather conditions When the offline unit is in the offline state, the aggregation unit can report the data frame in the preset reporting period. If the preset time period is sunny, the strain sensor does not report the data frame, and the aggregation unit further analyzes whether the strain sensor is offline due to other faults (hardware failure, etc.) according to the last reporting time point, and accordingly, for maintenance. . It can be seen that the instant weather type is further combined to further accurately analyze the working state of the target terminal device and the cause thereof.
进一步地,在汇聚单元调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,汇聚单元检测天气信息查询接口是否处于激活状态,如果天气信息查询接口处于激活状态,汇聚单元执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求的步骤。Further, before the aggregation unit invokes the weather information query interface and sends the weather type query request to the corresponding cloud service platform through the weather information query interface, the convergence unit detects whether the weather information query interface is in an active state, if the weather information query interface is activated. The state, the aggregation unit performs the step of calling the weather information query interface, and sending a weather type query request to the corresponding cloud service platform through the weather information query interface.
作为一种可选的实施方式,汇聚单元调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,汇聚单元检测该目标终端设备的目标终端设备类型是否与天气标识相关联(该关联关系用于指示目标终端设备的工作会受到即时天气影响),如果相关联,汇聚单元执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, before the aggregation unit invokes the weather information query interface, and the weather information query interface sends the weather type query request to the corresponding cloud service platform, the convergence unit detects whether the target terminal device type of the target terminal device is The weather identifier is associated (the association relationship is used to indicate that the work of the target terminal device is affected by the real-time weather). If associated, the aggregation unit executes the calling weather information query interface, and sends the weather to the corresponding cloud service platform through the weather information query interface. Type query request.
在本发明实施例中,转发节点将终端设备上报的数据帧发送给过滤网关,过滤网关接收数据帧后,判断数据帧中携带的上报时间点是否属于预设上报时间段,在上报时间点属于预设上报时间段时,过滤网关确定出预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息(包括汇聚单元感兴趣的位置信息或者汇聚单元感兴趣的终端设备类型)的目标终端设备,过滤网关根据目标终 端设备上一次上报的数据帧,获得包括目标终端设备地址、目标终端设备类型和目标终端设备的最后一次上报时间点的汇报信息,并上报给汇聚单元,汇聚单元根据汇报信息,分析目标终端设备的工作状态。可以看出,根据目标终端设备上报数据帧的时间点、目标终端设备地址和目标终端设备类型等,分析目标终端设备的工作状态,以确保终端设备的在线数量,实现物联网中的信息汇聚,通过信息汇聚提高物联网的稳定性和可靠性。In the embodiment of the present invention, the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point. When the time period is preset, the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit). Target terminal device, filtering gateway according to the target end The data frame that is last reported by the end device obtains the report information including the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device, and reports the information to the aggregation unit, and the aggregation unit analyzes the target terminal device according to the report information. Working status. It can be seen that the working state of the target terminal device is analyzed according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online number of the terminal device and realize the information aggregation in the Internet of Things. Improve the stability and reliability of the Internet of Things through information gathering.
实施例二Embodiment 2
请参阅图3,图3为本发明实施例公开的基于过滤网关的终端设备工作状态检测方法的另一流程示意图;如图3所示,一种基于过滤网关的终端设备工作状态检测方法可包括:Referring to FIG. 3, FIG. 3 is another schematic flowchart of a method for detecting a working condition of a terminal device based on a filtering gateway according to an embodiment of the present invention; as shown in FIG. 3, a method for detecting a working state of a terminal device based on a filtering gateway may include :
301、过滤网关接收转发节点转发的终端设备上报的数据帧;其中,数据帧携带终端设备类型、终端设备地址、上报数据帧的上报时间点;301. The filtering gateway receives the data frame reported by the terminal device that is forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame.
302、过滤网关判断上报时间点是否属于预设上报时间段;302. The filtering gateway determines whether the reporting time point belongs to a preset reporting time period.
如果过滤网关在判定上报时间点属于预设上报时间段时,转向步骤303;如果过滤网关在判定上报时间点不属于预设上报时间段时,结束该流程。If the filtering gateway determines that the reporting time point belongs to the preset reporting time period, the process proceeds to step 303. If the filtering gateway does not belong to the preset reporting time period, the filtering gateway ends the process.
303、过滤网关确定出在预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备;303. The filtering gateway determines a target terminal device that does not report the data frame in the preset reporting period and matches the information of interest sent by the aggregation unit.
其中,感兴趣信息包括汇聚单元感兴趣的位置信息和/或汇聚单元感兴趣的终端设备类型。The information of interest includes location information of interest to the aggregation unit and/or type of terminal device of interest to the aggregation unit.
304、过滤网关调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求,该天气类型查询请求用于向云端服务平台请求查询包括目标终端设备地址和预设上报时间段对应的即时天气类型;304. The filtering gateway invokes the weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset report. The type of real-time weather corresponding to the time period;
作为一种可选的实施方式,过滤网关调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,过滤网关调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, before the filtering gateway invokes the weather information query interface, and sends the weather type query request to the corresponding cloud service platform through the weather information query interface, the filtering gateway invokes the weather information query interface, and uses the weather information query interface. Send a weather type query request to the corresponding cloud service platform.
作为一种可选的实施方式,过滤网关调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,过滤网关检测该目标终端设备的目标终端设备类型是否与天气标识相关联(该关联关系用于指示目标终端设备的工作会受到即时天气影响),如果相关联,过滤网关执行调用天 气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, the filtering gateway invokes the weather information query interface, and before the weather information query interface sends the weather type query request to the corresponding cloud service platform, the filtering gateway detects whether the target terminal device type of the target terminal device is The weather identifier is associated (this association is used to indicate that the work of the target terminal device is affected by the immediate weather). If it is associated, the filtering gateway executes the calling day. The air information query interface sends a weather type query request to the corresponding cloud service platform through the weather information query interface.
作为一种可选的实施方式,过滤网关通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求具体包括:As an optional implementation manner, the sending, by the filtering gateway, the weather type query request to the corresponding cloud service platform by using the weather information query interface includes:
过滤网关判断该天气信息查询接口接入的过滤网关的数量是否超过阈值,如果否,通过该天气信息查询接口向对应的云端服务平台发送天气类型查询请求。The filtering gateway determines whether the number of filtering gateways accessed by the weather information query interface exceeds a threshold. If not, the weather information query interface sends a weather type query request to the corresponding cloud service platform.
305、过滤网关接收云端服务平台通过天气信息查询接口返回的目标终端设备地址和预设上报时间段对应的即时天气类型;305. The filtering gateway receives, by the cloud service platform, a target terminal device address returned by the weather information query interface and an instant weather type corresponding to the preset reporting time period;
306、过滤网关根据目标终端设备上一次上报的数据帧和即时天气类型,获得汇报信息并上报给汇聚单元,汇报信息包括目标终端设备地址、目标终端设备类型、目标终端设备的最后一次上报时间点和即时天气类型;306. The filtering gateway obtains the reporting information according to the last reported data frame and the real-time weather type of the target terminal device, and reports the information to the aggregation unit, where the reporting information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device. And instant weather types;
307、汇聚单元根据汇报信息,分析目标终端设备的工作状态。307. The aggregation unit analyzes the working state of the target terminal device according to the report information.
汇聚单元结合即时天气类型,以进一步准确地分析目标终端设备的工作状态及其造成原因,以便能够准确预警,进行终端设备检修,确保终端设备的数量,以提高数据的可靠性。The aggregation unit combines the real-time weather type to further accurately analyze the working state of the target terminal device and its cause, so as to be able to accurately alert, perform terminal device maintenance, and ensure the number of terminal devices to improve data reliability.
在本发明实施例中,转发节点将终端设备上报的数据帧发送给过滤网关,过滤网关接收数据帧后,判断数据帧中携带的上报时间点是否属于预设上报时间段,在上报时间点属于预设上报时间段时,过滤网关确定出预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息(包括汇聚单元感兴趣的位置信息或者汇聚单元感兴趣的终端设备类型)的目标终端设备,过滤网关进一步调用天气信息查询接口,通过向天气信息查询接口向对应的云端服务平台发送天气类型查询请求,向云端服务平台获取目标终端设备地址和预设上报时间段对应的即时天气类型对应的即时天气类型,然后根据目标终端设备上一次上报的数据帧和即时天气类型,获得包括目标终端设备地址、目标终端设备类型、即时天气类型和目标终端设备的最后一次上报时间点的汇报信息,并上报给汇聚单元,汇聚单元根据汇报信息,分析目标终端设备的工作状态。可以看出,根据目标终端设备上报数据帧的时间点、目标终端设备类型、目标终端设备地址以及结合即时天气类型,分析终端设备的工作状态和造成其工作状态的原因,以确保终端设备的在线数量,实现物联网中的信息汇聚,通过信息汇聚提高物联网的稳定性和可靠性。In the embodiment of the present invention, the forwarding node sends the data frame reported by the terminal device to the filtering gateway, and after the filtering gateway receives the data frame, it determines whether the reporting time point carried in the data frame belongs to the preset reporting time period, and belongs to the reporting time point at the reporting time point. When the time period is preset, the filtering gateway determines that the data frame is not reported in the preset reporting period and matches the information of interest sent by the aggregation unit (including the location information of interest of the aggregation unit or the terminal device type of interest of the aggregation unit). The target terminal device, the filtering gateway further calls the weather information query interface, and sends a weather type query request to the corresponding cloud service platform by the weather information query interface, and obtains the target terminal device address and the preset reporting time period corresponding to the cloud service platform. The real-time weather type corresponding to the real-time weather type, and then obtaining the last reporting time point including the target terminal device address, the target terminal device type, the instant weather type, and the target terminal device according to the last reported data frame and the real-time weather type of the target terminal device. Reporting information And report to the sink unit, convergence unit according to report information, analysis of the state of the target terminal apparatus. It can be seen that, according to the time point of the target terminal device reporting the data frame, the target terminal device type, the target terminal device address, and the combination of the real-time weather type, the working state of the terminal device and the cause of the working state are analyzed to ensure that the terminal device is online. Quantity, realize the convergence of information in the Internet of Things, and improve the stability and reliability of the Internet of Things through information aggregation.
实施例三 Embodiment 3
请参阅图4,图4为本发明实施例公开的基于过滤网关的终端设备工作状态检测系统的结构示意图;如图4所示,一种基于过滤网关的终端设备工作状态检测系统可包括:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a working condition detection system for a terminal device based on a filtering gateway according to an embodiment of the present invention; as shown in FIG. 4, a terminal device working state detecting system based on a filtering gateway may include:
终端设备410,用于上报数据帧;其中,数据帧携带终端设备类型、终端设备地址、上报数据帧的上报时间点;The terminal device 410 is configured to report a data frame, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of the reported data frame;
转发节点420,用于获取终端设备410上报的数据帧,并将获取到的数据帧发送给过滤网关430;The forwarding node 420 is configured to acquire the data frame reported by the terminal device 410, and send the obtained data frame to the filtering gateway 430;
过滤网关430,用于接收转发节点420转发的终端设备410上报的数据帧,判断终端设备410上报的数据帧中携带的上报时间点是否属于预设上报时间段,如果属于,确定在预设上报时间段内未上报数据帧、且匹配汇聚单元440下发的感兴趣信息的目标终端设备,其中,感兴趣信息包括汇聚单元440感兴趣的位置信息和/或汇聚单元440感兴趣的终端设备类型;根据目标终端设备上一次上报的数据帧,获得汇报信息并上报给汇聚单元440,汇报信息包括目标终端设备地址、目标终端设备类型和目标终端设备的最后一次上报时间点;The filtering gateway 430 is configured to receive the data frame reported by the terminal device 410 forwarded by the forwarding node 420, and determine whether the reporting time point carried in the data frame reported by the terminal device 410 belongs to a preset reporting time period. The target terminal device that does not report the data frame and matches the information of interest delivered by the aggregation unit 440, wherein the information of interest includes location information of interest to the aggregation unit 440 and/or type of terminal device of interest to the aggregation unit 440. The report information is obtained and reported to the aggregation unit 440 according to the last reported data frame of the target terminal device, and the report information includes the target terminal device address, the target terminal device type, and the last reporting time point of the target terminal device;
汇聚单元440,用于根据汇报信息,分析目标终端设备的工作状态。The aggregation unit 440 is configured to analyze the working state of the target terminal device according to the report information.
其中,汇聚单元440可以设置终端设备410上报数据帧的时间段,作为预设上报时间段,具体地,汇聚单元440针对其感兴趣位置(某一个农场)上的终端设备410和/或其感兴趣的终端设备类型(湿度计、烟感器等)对应的终端设备410设置预设上报时间段,比如汇聚单元440可以对某一个农场上的终端设备410设置该预设上报时间段,或者对某一种终端设备410(如湿度计)设置该预设上报时间段,或者汇聚单元440对某一座高速公路桥上的应变式传感器设置该预设上报时间段。在本发明实施例中将汇聚单元440感兴趣的位置信息和汇聚单元440感兴趣的终端设备类型,称之为汇聚单元440的感兴趣信息。汇聚单元440可以通过下发预设上报时间段的设置参数到终端设备410,终端设备410根据设置参数设置出该预设上报时间段,之后,终端设备410将在该预设上报时间段上报数据帧。The aggregation unit 440 can set the time period in which the terminal device 410 reports the data frame as the preset reporting time period. Specifically, the convergence unit 440 is directed to the terminal device 410 and/or its sense on the location of interest (a certain farm). The terminal device 410 corresponding to the terminal device type (hygrometer, smoke sensor, etc.) of interest sets a preset reporting time period. For example, the aggregation unit 440 can set the preset reporting time period for the terminal device 410 on a certain farm, or A certain terminal device 410 (such as a hygrometer) sets the preset reporting time period, or the convergence unit 440 sets the preset reporting time period for the strain sensor on a certain highway bridge. The location information of interest to the convergence unit 440 and the type of terminal device of interest by the aggregation unit 440 are referred to as information of interest of the aggregation unit 440 in the embodiment of the present invention. The aggregation unit 440 may send the setting parameter of the preset reporting period to the terminal device 410, and the terminal device 410 sets the preset reporting period according to the setting parameter, after which the terminal device 410 reports the data in the preset reporting period. frame.
其中,汇聚单元440将感兴趣信息下发给过滤网关430,过滤网关430根据感兴趣信息和上报的数据帧,确定出未在预设上报时间段上报数据帧、且匹配汇聚单元440下发的感兴趣信息的目标终端设备。The aggregation unit 440 sends the information of interest to the filtering gateway 430, and the filtering gateway 430 determines that the data frame is not reported in the preset reporting period and is sent by the matching aggregation unit 440 according to the information of interest and the reported data frame. The target terminal device of the information of interest.
作为一种可选的实施方式,针对于该终端设备410的预设上报时间段,过滤 网关430可以设置匹配该预设上报时间段的接收时间段,在设置该接收时间段时,可以考虑物联网中数据拥堵造成的延迟、终端设备数据帧收发的优先级等,设置一个合理且基本能够在其内接收到在预设上报时间段内上报的数据帧的接收时间段。As an optional implementation manner, the preset reporting period of the terminal device 410 is filtered. The gateway 430 can set a receiving time period that matches the preset reporting time period. When setting the receiving time period, the delay caused by data congestion in the Internet of Things and the priority of receiving and receiving data frames of the terminal device can be considered, and a reasonable and basic setting is set. The receiving time period of the data frame reported in the preset reporting period can be received therein.
作为一种可选的实施方式,过滤网关430将汇报信息上报给汇聚单元440具体包括:过滤网关430从汇聚单元440下发的转发规则表中确定出目标终端设备地址或者目标终端设备类型匹配的目标传输频段;在目标传输频段上与汇聚单元440建立通信连接,以及基于建立的通信连接将汇报信息上报给汇聚单元440。As an optional implementation manner, the filtering of the report information by the filtering gateway 430 to the aggregation unit 440 specifically includes: the filtering gateway 430 determines, from the forwarding rule table sent by the aggregation unit 440, that the target terminal device address or the target terminal device type matches. The target transmission band; the communication connection is established with the aggregation unit 440 on the target transmission band, and the report information is reported to the aggregation unit 440 based on the established communication connection.
进一步地,过滤网关430在目标传输频段上与汇聚单元440建立通信连接,以及基于建立的通信连接将汇报信息上报给汇聚单元440具体包括:过滤网关430确定目标传输频段所对应的时频资源,在时频资源上向汇聚单元440上报汇报信息。Further, the filtering gateway 430 establishes a communication connection with the aggregation unit 440 on the target transmission frequency band, and reports the report information to the aggregation unit 440 based on the established communication connection. Specifically, the filtering gateway 430 determines the time-frequency resource corresponding to the target transmission frequency band. The reporting information is reported to the aggregation unit 440 on the time-frequency resource.
进一步地,过滤网关430确定目标传输频段所对应的时频资源,在时频资源上向汇聚单元440上报汇报信息具体包括:过滤网关430通过跳频方式从目标传输频段中确定用于上报汇报信息的物理资源块的频域位置;过滤网关430在确定的物理资源块的频域位置所对应的时频资源上,向汇聚单元440上报汇报信息。Further, the filtering gateway 430 determines the time-frequency resource corresponding to the target transmission frequency band, and reporting the reporting information to the aggregation unit 440 on the time-frequency resource, specifically includes: the filtering gateway 430 determines, by using a frequency hopping manner, the reporting information from the target transmission frequency band. The frequency domain location of the physical resource block; the filtering gateway 430 reports the reporting information to the aggregation unit 440 on the time-frequency resource corresponding to the frequency domain location of the determined physical resource block.
通过上述实施方式,能够解决数据干扰问题,提高数据传输效率。According to the above embodiment, the data interference problem can be solved and the data transmission efficiency can be improved.
作为一种可选的实施方式,过滤网关430用于根据目标终端设备上一次上报的数据帧,获得汇报信息并上报给汇聚单元440的方式具体为:As an optional implementation manner, the filtering gateway 430 is configured to obtain the reporting information and report the information to the aggregation unit 440 according to the data frame that is reported by the target terminal device.
过滤网关430用于,调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求,天气类型查询请求用于向云端服务平台请求查询包括目标终端设备地址和预设上报时间段对应的即时天气类型;接收云端服务平台通过天气信息查询接口返回的目标终端设备地址和预设上报时间段对应的即时天气类型;根据目标终端设备上一次上报的数据帧和即时天气类型,获得汇报信息并上报给汇聚单元,汇报信息包括目标终端设备地址、目标终端设备类型、目标终端设备的最后一次上报时间点和即时天气类型。The filtering gateway 430 is configured to invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset. The real-time weather type corresponding to the reporting time period; receiving the target terminal device address returned by the cloud service query interface and the instant weather type corresponding to the preset reporting time period; according to the last reported data frame and the instant weather type of the target terminal device The report information is obtained and reported to the aggregation unit, and the report information includes the target terminal device address, the target terminal device type, the last reporting time point of the target terminal device, and the instant weather type.
作为一种可选的实施方式,过滤网关430,还用于在调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测天气信息查询接口是否处于激活状态,如果天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发 送天气类型查询请求。As an optional implementation manner, the filtering gateway 430 is further configured to detect whether the weather information query interface is activated before calling the weather information query interface and sending the weather type query request to the corresponding cloud service platform through the weather information query interface. Status, if the weather information query interface is in the active state, the calling weather information query interface is executed, and the weather information query interface is sent to the corresponding cloud service platform. Send weather type query request.
作为一种可选的实施方式,过滤网关430,还用于在调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,过滤网关430检测该目标终端设备的目标终端设备类型是否与天气标识相关联(该关联关系用于指示目标终端设备的工作会受到即时天气影响),如果相关联,执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, the filtering gateway 430 is further configured to: before the weather information query interface is invoked, and send the weather type query request to the corresponding cloud service platform through the weather information query interface, the filtering gateway 430 detects the target terminal device. Whether the target terminal device type is associated with the weather identifier (the association relationship is used to indicate that the work of the target terminal device is affected by the immediate weather), and if so, the calling weather information query interface is executed, and the weather information query interface is used to correspond to The cloud service platform sends a weather type query request.
过滤网关430通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求具体包括:The filtering gateway 430 sends the weather type query request to the corresponding cloud service platform through the weather information query interface, which specifically includes:
过滤网关430判断该天气信息查询接口接入的过滤网关430的数量是否超过阈值,如果否,通过该天气信息查询接口向对应的云端服务平台发送天气类型查询请求。The filtering gateway 430 determines whether the number of filtering gateways 430 accessed by the weather information query interface exceeds a threshold. If not, the weather information query interface sends a weather type query request to the corresponding cloud service platform.
作为一种可选的实施方式,汇聚单元440用于根据汇报信息,分析目标终端设备的工作状态的方式具体为:As an optional implementation manner, the manner in which the aggregation unit 440 is configured to analyze the working state of the target terminal device according to the report information is specifically:
汇聚单元440用于,调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求,天气类型查询请求用于向云端服务平台请求查询包括目标终端设备地址和预设上报时间段对应的即时天气类型;接收云端服务平台通过天气信息查询接口返回的目标终端设备地址和预设上报时间段对应的即时天气类型;根据即时天气类型和汇报信息,分析目标终端设备的工作状态。The aggregation unit 440 is configured to invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target terminal device address and the preset. The real-time weather type corresponding to the reporting time period; receiving the target terminal device address returned by the cloud service query interface and the instant weather type corresponding to the preset reporting time period; analyzing the work of the target terminal device according to the real-time weather type and the reporting information status.
作为一种可选的实施方式,汇聚单元440,还用于在调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测天气信息查询接口是否处于激活状态,如果天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求。As an optional implementation manner, the aggregation unit 440 is further configured to: before calling the weather information query interface, and sending the weather type query request to the corresponding cloud service platform through the weather information query interface, detecting whether the weather information query interface is activated Status: If the weather information query interface is in an active state, the calling weather information query interface is executed, and the weather type query request is sent to the corresponding cloud service platform through the weather information query interface.
作为一种可选的实施方式,汇聚单元440,还用于在调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测该目标终端设备的目标终端设备类型是否与天气标识相关联(该关联关系用于指示目标终端设备的工作会受到即时天气影响),如果相关联,执行调用天气信息查询接口,并通过天气信息查询接口向对应的云端服务平台发送天气类型查询 请求。As an optional implementation manner, the aggregation unit 440 is further configured to: before calling the weather information query interface, and sending the weather type query request to the corresponding cloud service platform by using the weather information query interface, detecting the target terminal of the target terminal device Whether the device type is associated with the weather identifier (the association relationship is used to indicate that the work of the target terminal device is affected by the real-time weather). If it is associated, the calling weather information query interface is executed, and the weather information query interface is used to correspond to the corresponding cloud service platform. Send weather type query request.
可以看出,通过实施上述系统,汇聚单元根据目标终端设备上报数据帧的时间点,目标终端设备地址和目标终端设备类型等,分析终端设备的工作状态,以确保终端设备的在线数量,实现物联网中的信息汇聚,通过信息汇聚提高物联网的稳定性和可靠性。进一步地,汇聚单元结合目标终端设备上报数据帧的时间点,目标终端设备地址和目标终端设备类型和即时天气类型,以进一步准确地分析目标终端设备的工作状态及其造成原因,以便能够准确预警,进行终端设备检修,确保终端设备的数量,以提高数据的可靠性。It can be seen that, by implementing the above system, the aggregation unit analyzes the working state of the terminal device according to the time point of the target terminal device reporting the data frame, the target terminal device address, and the target terminal device type, so as to ensure the online quantity of the terminal device, and implement the object. The convergence of information in the network improves the stability and reliability of the Internet of Things through information aggregation. Further, the aggregation unit combines the time point of the data frame reported by the target terminal device, the target terminal device address, the target terminal device type, and the real-time weather type to further accurately analyze the working state of the target terminal device and the cause thereof, so as to be able to accurately alert Perform terminal equipment maintenance to ensure the number of terminal equipment to improve data reliability.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(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 (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Read-Only Disc (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 detecting the working state of the terminal device based on the filtering gateway disclosed in the embodiment of the present invention are described in detail. The principle and the embodiment of the present invention are described in the following. The description of the above embodiment is only The method for understanding the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The description should not be construed as limiting the invention.

Claims (10)

  1. 一种基于过滤网关的终端设备工作状态检测方法,其特征在于,包括:A method for detecting a working condition of a terminal device based on a filtering gateway, which is characterized by comprising:
    过滤网关接收转发节点转发的终端设备上报的数据帧;其中,所述数据帧携带终端设备类型、终端设备地址、上报所述数据帧的上报时间点;The filtering gateway receives the data frame reported by the terminal device forwarded by the forwarding node, where the data frame carries the terminal device type, the terminal device address, and the reporting time point of reporting the data frame;
    所述过滤网关判断所述上报时间点是否属于预设上报时间段;The filtering gateway determines whether the reporting time point belongs to a preset reporting time period;
    如果属于,所述过滤网关确定出在所述预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备;其中,所述感兴趣信息包括所述汇聚单元感兴趣的位置信息和/或所述汇聚单元感兴趣的终端设备类型;If yes, the filtering gateway determines a target terminal device that does not report the data frame and matches the information of interest delivered by the aggregation unit in the preset reporting period; wherein the information of interest includes the aggregation unit Location information of interest and/or type of terminal device of interest to the aggregation unit;
    所述过滤网关根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型和所述目标终端设备的最后一次上报时间点;The filtering gateway obtains the reporting information according to the data frame reported by the target terminal device, and reports the information to the aggregation unit, where the reporting information includes the target terminal device address, the target terminal device type, and the target terminal device. Last reported time point;
    所述汇聚单元根据所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit analyzes an operation state of the target terminal device according to the report information.
  2. 根据权利要求1所述的方法,其特征在于,所述过滤网关根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,包括:The method according to claim 1, wherein the filtering gateway obtains the reporting information and reports the information to the aggregation unit according to the data frame that is reported by the target terminal device, and includes:
    所述过滤网关调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The filtering gateway invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, including the target The terminal device address and the instant weather type corresponding to the preset reporting period;
    所述过滤网关接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The filtering gateway receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
    所述过滤网关根据所述目标终端设备上一次上报的数据帧和所述即时天气类型,获得所述汇报信息并上报给汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型、所述目标终端设备的最后一次上报时间点和所述即时天气类型。The filtering gateway obtains the report information according to the last reported data frame and the instant weather type of the target terminal device, and reports the report information to the convergence unit, where the report information includes the target terminal device address and the target terminal device type. And a last reporting time point of the target terminal device and the instant weather type.
  3. 根据权利要求2所述的方法,其特征在于,在所述过滤网关调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,所述方法还包括:The method according to claim 2, wherein before the filtering gateway invokes the weather information query interface and sends the weather type query request to the corresponding cloud service platform through the weather information query interface, the method further includes :
    所述过滤网关检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,所述过滤网关执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求的步骤。 The filtering gateway detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the filtering gateway executes a calling weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
  4. 根据权利要求1所述的方法,其特征在于,所述汇聚单元根据所述汇报信息,分析所述目标终端设备的工作状态,包括:The method according to claim 1, wherein the aggregation unit analyzes the working state of the target terminal device according to the report information, including:
    所述汇聚单元调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The aggregation unit invokes a weather information query interface, and sends a weather type query request to the corresponding cloud service platform through the weather information query interface, where the weather type query request is used to request the cloud service platform to include the target The terminal device address and the instant weather type corresponding to the preset reporting period;
    所述汇聚单元接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;The aggregation unit receives the target terminal device address returned by the cloud service platform through the weather information query interface and an instant weather type corresponding to the preset reporting time period;
    所述汇聚单元根据所述即时天气类型和所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit analyzes the working state of the target terminal device according to the instant weather type and the report information.
  5. 根据权利要求4所述的方法,其特征在于,在所述汇聚单元调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,所述方法还包括:The method according to claim 4, wherein before the aggregation unit invokes the weather information query interface and sends the weather type query request to the corresponding cloud service platform through the weather information query interface, the method further includes :
    所述汇聚单元检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,所述汇聚单元执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求的步骤。The aggregation unit detects whether the weather information query interface is in an active state. If the weather information query interface is in an active state, the aggregation unit performs an invoking weather information query interface, and uses the weather information query interface to correspond to the cloud. The step of the service platform sending a weather type query request.
  6. 一种基于过滤网关的终端设备工作状态检测系统,其特征在于,包括:A filtering device-based terminal device working state detecting system, comprising:
    终端设备,用于上报数据帧;其中,所述数据帧携带终端设备类型、终端设备地址、上报所述数据帧的上报时间点;a terminal device, configured to report a data frame, where the data frame carries a terminal device type, a terminal device address, and a reporting time point of reporting the data frame;
    转发节点,用于获取终端设备上报的数据帧,并将获取到的数据帧发送给过滤网关;The forwarding node is configured to obtain the data frame reported by the terminal device, and send the obtained data frame to the filtering gateway.
    所述过滤网关,用于接收所述转发节点转发的所述终端设备上报的数据帧,判断所述终端设备上报的数据帧中携带的上报时间点是否属于预设上报时间段,如果属于,确定出在所述预设上报时间段内未上报数据帧、且匹配汇聚单元下发的感兴趣信息的目标终端设备,其中,所述感兴趣信息包括所述汇聚单元感兴趣的位置信息和/或所述汇聚单元感兴趣的终端设备类型;根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型和所述目标终端设备的最后一次上报时间点;The filtering gateway is configured to receive the data frame reported by the terminal device that is forwarded by the forwarding node, and determine whether the reporting time point carried in the data frame reported by the terminal device belongs to a preset reporting time period, and if yes, determine a target terminal device that does not report a data frame and matches the information of interest sent by the aggregation unit in the preset reporting period, where the information of interest includes location information of interest to the aggregation unit and/or The terminal device type that is interested in the aggregation unit; the report information is obtained and reported to the aggregation unit according to the data frame reported by the target terminal device, and the report information includes the target terminal device address and the target terminal device. Type and the last reporting time point of the target terminal device;
    所述汇聚单元,用于根据所述汇报信息,分析所述目标终端设备的工作状态。 The aggregation unit is configured to analyze an operating state of the target terminal device according to the report information.
  7. 根据权利要求6所述的系统,其特征在于,所述过滤网关用于根据所述目标终端设备上一次上报的数据帧,获得汇报信息并上报给所述汇聚单元的方式具体为:The system according to claim 6, wherein the filtering gateway is configured to obtain the reporting information and report the information to the aggregation unit according to the data frame that is reported by the target terminal device, and the method is specifically:
    所述过滤网关用于,调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;根据所述目标终端设备上一次上报的数据帧和所述即时天气类型,获得所述汇报信息并上报给汇聚单元,所述汇报信息包括所述目标终端设备地址、目标终端设备类型、所述目标终端设备的最后一次上报时间点和所述即时天气类型。The filtering gateway is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period The real-time weather type; the report information is obtained and reported to the convergence unit according to the last reported data frame and the real-time weather type of the target terminal device, where the report information includes the target terminal device address and the target terminal device The type, the last reporting time point of the target terminal device, and the instant weather type.
  8. 根据权利要求7所述的系统,其特征在于:The system of claim 7 wherein:
    所述过滤网关,还用于在调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求。The filtering gateway is further configured to: before calling the weather information query interface, and sending the weather type query request to the corresponding cloud service platform by using the weather information query interface, detecting whether the weather information query interface is in an active state, if The weather information query interface is in an active state, and the weather information query interface is invoked, and the weather type query request is sent to the corresponding cloud service platform through the weather information query interface.
  9. 根据权利要求6所述的系统,其特征在于,所述汇聚单元用于根据所述汇报信息,分析所述目标终端设备的工作状态的方式具体为:The system according to claim 6, wherein the manner in which the aggregation unit is configured to analyze the working state of the target terminal device according to the report information is specifically:
    所述汇聚单元用于,调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求,所述天气类型查询请求用于向所述云端服务平台请求查询包括所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;接收所述云端服务平台通过所述天气信息查询接口返回的所述目标终端设备地址和所述预设上报时间段对应的即时天气类型;根据所述即时天气类型和所述汇报信息,分析所述目标终端设备的工作状态。The aggregation unit is configured to: invoke a weather information query interface, and send a weather type query request to the corresponding cloud service platform by using the weather information query interface, where the weather type query request is used to request a query from the cloud service platform, The target terminal device address and the current weather type corresponding to the preset reporting time period; and receiving, by the cloud service platform, the target terminal device address returned by the weather information query interface and the preset reporting time period Instant weather type; analyzing the working state of the target terminal device according to the instant weather type and the report information.
  10. 根据权利要求9所述的系统,其特征在于:The system of claim 9 wherein:
    所述汇聚单元,还用于在调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气类型查询请求之前,检测所述天气信息查询接口是否处于激活状态,如果所述天气信息查询接口处于激活状态,执行调用天气信息查询接口,并通过所述天气信息查询接口向对应的云端服务平台发送天气 类型查询请求。 The aggregation unit is further configured to: before the weather information query interface is invoked, and send the weather type query request to the corresponding cloud service platform by using the weather information query interface, detecting whether the weather information query interface is in an active state, if The weather information query interface is in an active state, and the weather information query interface is invoked, and the weather information query interface is used to send weather to the corresponding cloud service platform. Type query request.
PCT/CN2017/098637 2017-06-19 2017-08-23 Filter gateway based terminal device working state determination method and system WO2018232969A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710463244.7A CN107257375B (en) 2017-06-19 2017-06-19 A kind of terminal device working state detecting method and system based on filtering gateway
CN201710463244.7 2017-06-19

Publications (1)

Publication Number Publication Date
WO2018232969A1 true WO2018232969A1 (en) 2018-12-27

Family

ID=60024670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098637 WO2018232969A1 (en) 2017-06-19 2017-08-23 Filter gateway based terminal device working state determination method and system

Country Status (2)

Country Link
CN (2) CN110855775B (en)
WO (1) WO2018232969A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855775B (en) * 2017-06-19 2022-08-19 深圳市盛路物联通讯技术有限公司 Method and system for detecting working state of terminal equipment based on filtering gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457877A (en) * 2010-11-01 2012-05-16 中兴通讯股份有限公司 Combined network, method for disposing processing data of WSN (Wireless Sensor Network) terminal and WSN gateway
US20140214255A1 (en) * 2013-01-25 2014-07-31 Google Inc. Modifying behavior of autonomous vehicles based on sensor blind spots and limitations
CN104301131A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Fault management method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2387180B1 (en) * 2010-05-14 2019-12-18 Viavi Solutions Inc. Network communication with unaddressed network devices
CN102377801B (en) * 2010-08-19 2014-05-07 中国科学院计算技术研究所 Sensor network for environmental monitoring and data transmission method
CN102685675A (en) * 2012-06-06 2012-09-19 北京六所新华科电子技术有限公司 Culture information pushing service system based on internet of things terminal and portal microblog
CN104052759B (en) * 2013-03-11 2017-05-10 中国科学院计算技术研究所 System for realizing add-and-play technology of internet of things
CN103713612B (en) * 2014-01-03 2017-01-25 左华亮 Intelligent home system solution facilitating personalized customization and expansion
CN104468830B (en) * 2014-12-29 2018-04-27 广州中国科学院软件应用技术研究所 A kind of web service method and Internet of things system based on Internet of Things
CN110855775B (en) * 2017-06-19 2022-08-19 深圳市盛路物联通讯技术有限公司 Method and system for detecting working state of terminal equipment based on filtering gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457877A (en) * 2010-11-01 2012-05-16 中兴通讯股份有限公司 Combined network, method for disposing processing data of WSN (Wireless Sensor Network) terminal and WSN gateway
US20140214255A1 (en) * 2013-01-25 2014-07-31 Google Inc. Modifying behavior of autonomous vehicles based on sensor blind spots and limitations
CN104301131A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Fault management method and device

Also Published As

Publication number Publication date
CN107257375A (en) 2017-10-17
CN110855775A (en) 2020-02-28
CN110855775B (en) 2022-08-19
CN107257375B (en) 2019-11-19

Similar Documents

Publication Publication Date Title
WO2018232970A1 (en) Method and system for detecting state of terminal device applied in internet of things
CN107197029B (en) Terminal equipment off-line detection method and system based on edge forwarding node
WO2018233030A1 (en) Transmission duration-based internet of things data reporting control method and forwarding node
CN110856185B (en) Method and system for adjusting wireless signals of Internet of things
WO2018232976A1 (en) Terminal device operating status determination method and device
CN107197034B (en) Edge routing node and reporting frequency adjusting method thereof
WO2018233018A1 (en) Terminal equipment priority based data reporting control method and system
WO2018233020A1 (en) Internet of things based data package method and system
CN111049749B (en) Control and system for data reporting frequency of Internet of things of terminal equipment
WO2018232973A1 (en) Method and system for controlling working state of internet-of-things terminal device
WO2018233036A1 (en) Internet-of-things data reporting control method and device
WO2018232967A1 (en) Internet-of-things terminal device detection method and system based on access node
WO2018233049A1 (en) Internet-of-things data communication method and system
CN107465719B (en) Data processing method and system applied to Internet of things
CN107317854B (en) Terminal equipment reporting frequency adjusting method based on control table and routing node
WO2018233050A1 (en) Method and system for detecting signal intensity of internet of things
WO2018232962A1 (en) Method and system for adjusting network coverage range of internet of things access node
WO2018233028A1 (en) Internet-of-things data reporting control method and system
WO2018232969A1 (en) Filter gateway based terminal device working state determination method and system
WO2018232958A1 (en) Forwarding node-based automatic upgrade method for terminal device, and forwarding node
WO2018233022A1 (en) Control method and system for packaging data on basis of quantity of terminal devices
WO2018233042A1 (en) Data reporting method and system based on geographical location and time
CN107196824B (en) Method for determining working state of monitored equipment and convergence unit
CN107360097B (en) Internet of things routing table updating method and system combining convergence unit information
CN107454661B (en) Weather-based Internet of things terminal device control method and system

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: 17915022

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17915022

Country of ref document: EP

Kind code of ref document: A1