Internet of Things information acquisition method, device, equipment and medium
By filtering the operating status of IoT devices and synchronizing messages, the problem of IoT devices being unable to obtain messages when the network is unstable or the device is damaged is solved, and the accuracy and real-time acquisition of IoT information is improved.
Patent Information
- Application Number
- CN202411592922.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-28
AI Technical Summary
When existing IoT devices are unstable in the network environment or the equipment is damaged, they cannot effectively obtain IoT messages, resulting in failure to obtain information.
By receiving the Internet of Things message acquisition request, the target device is filtered out from each second device according to the operating status of the at least one second device. The first device and the second device are arranged in the same Internet of Things. Each second device synchronizes messages with each Internet of Things devices in the Internet of Things, obtains the Internet of Things messages from the target device and feedbacks.
Improves the real-time and accuracy of IoT message acquisition, and avoids message acquisition failure caused by device failure or network delay.
Smart Images

Figure CN119544742A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data detection technology, and in particular to an Internet of Things information acquisition method, device, equipment and medium. Background Art
[0002] With the rapid development of science and technology, the types of IoT devices are gradually increasing. Messages can be transmitted between IoT devices to achieve communication between IoT devices.
[0003] Currently, through a message transmission device, a user subscribes to the message topic corresponding to the device and obtains messages.
[0004] However, due to unstable network environment or device damage, IoT message acquisition fails. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for obtaining information of the Internet of Things, so as to improve the accuracy of obtaining information of the Internet of Things.
[0006] In a first aspect, an embodiment of the present invention provides a method for obtaining information of an Internet of Things, the method comprising:
[0007] Receive IoT message acquisition request;
[0008] According to the operation status of at least one second device, a target device is selected from each second device; the first device and each second device are configured in the same Internet of Things, and each second device synchronizes messages with each Internet of Things device in the Internet of Things;
[0009] Get the IoT message corresponding to the IoT message acquisition request from the target device and feedback it.
[0010] In a second aspect, an embodiment of the present invention further provides an Internet of Things information acquisition device, the device comprising:
[0011] A request receiving module, used to receive IoT message acquisition requests;
[0012] A device screening module, used to screen out a target device from each second device according to the operating status of at least one second device; the first device and each second device are configured in the same Internet of Things, and each second device synchronizes messages with each Internet of Things device in the Internet of Things;
[0013] The message acquisition module is used to obtain the IoT message corresponding to the IoT message acquisition request from the target device and provide feedback.
[0014] In a third aspect, an embodiment of the present invention further provides an Internet of Things information acquisition device, the Internet of Things information acquisition device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the Internet of Things information acquisition method of any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for obtaining Internet of Things information according to any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention receives an IoT message acquisition request, screens out a target device from each second device according to the operating status of at least one second device, the first device and each second device are configured in the same IoT, each second device synchronizes messages with each IoT device in the IoT, obtains the IoT message corresponding to the IoT message acquisition request from the target device, and feeds back, thereby avoiding the problem of IoT message failure being unable to be acquired due to device failure or network delay, and improving the real-time and accuracy of IoT message acquisition.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flow chart of a method for obtaining Internet of Things information provided according to Embodiment 1 of the present invention;
[0023] Figure 2 This is a flow chart of a method for obtaining Internet of Things information provided according to Embodiment 2 of the present invention;
[0024] Figure 3 This is a schematic diagram of the structure of an Internet of Things information acquisition device provided according to an embodiment of the present invention;
[0025] Figure 4 It is a structural diagram of an Internet of Things information acquisition device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of the IoT message acquisition request, etc. are all in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0029] Embodiment 1
[0030] Figure 1 This is a flow chart of a method for obtaining information on the Internet of Things provided in Embodiment 1 of the present invention. The embodiment of the present invention is applicable to the case of obtaining information on the Internet of Things, and the method can be executed by an Internet of Things information obtaining device, which can be implemented in the form of hardware and / or software.
[0031] See also Figure 1 The method for obtaining information of the Internet of Things shown includes:
[0032] S101. Receive an IoT message acquisition request.
[0033] Among them, the Internet of Things can be used to describe the device network structure formed by connecting devices to the network according to the agreed protocol. The Internet of Things includes at least one Internet of Things device. The Internet of Things devices included in the Internet of Things can be connected to each other to achieve information exchange and communication between the Internet of Things devices. The Internet of Things message can be data information transmitted between the Internet of Things devices. The Internet of Things message acquisition request can be an Internet of Things message acquisition request message issued by the Internet of Things device that needs to obtain the Internet of Things message. The first device can be a device that can monitor the Internet of Things device.
[0034] Specifically, there is an IoT device in the IoT that needs to obtain an IoT message, and the device sends an IoT message acquisition request. The first device obtains the IoT message acquisition request sent by the device through a network connection relationship.
[0035] In one example, the Internet of Things includes an Internet of Things device 1 and an Internet of Things device 2. The Internet of Things device 1 is used as a first device. The Internet of Things device 2 sends an Internet of Things message acquisition request. The first device receives the Internet of Things message acquisition request.
[0036] S102. Filter out a target device from each second device according to the operating status of at least one second device; the first device and each second device are configured in the same Internet of Things, and each second device synchronizes messages with each Internet of Things device in the Internet of Things.
[0037] The second device may be used to store IoT messages to be transmitted by each IoT device. The target device may be a device to perform IoT message query in its storage space according to an IoT message acquisition request.
[0038] Specifically, the Internet of Things includes at least two Internet of Things devices. One Internet of Things device is selected as the first device according to the requirements from each Internet of Things device. At least one Internet of Things device that meets the requirements is selected as the second device from the remaining Internet of Things devices in the Internet of Things. Each Internet of Things message is stored in each second device respectively, and each Internet of Things message stored in each second device is the same. The first device detects the operating status of each second device. The operating status detection of the device can be data on the available storage space and network delay of the detection device, and one Internet of Things device is selected as the target device from each second device.
[0039] In one example, the Internet of Things includes Internet of Things device 1, Internet of Things device 2, and Internet of Things device 3. Internet of Things device 1 is used as the first device. Internet of Things device 2 and Internet of Things device 3 are used as the second devices. The first device detects the operating status of the second device and uses Internet of Things device 2 as the target device.
[0040] S103: Obtain the IoT message corresponding to the IoT message acquisition request from the target device and provide feedback.
[0041] Specifically, the first device queries the target device to obtain the IoT message corresponding to the IoT message acquisition request, and sends the IoT message to the IoT device that issued the IoT message acquisition request.
[0042] The technical solution of the embodiment of the present invention receives an IoT message acquisition request, screens out a target device from each second device according to the operating status of at least one second device, the first device and each second device are configured in the same IoT, each second device synchronizes messages with each IoT device in the IoT, obtains the IoT message corresponding to the IoT message acquisition request from the target device, and feeds back, thereby avoiding the problem of IoT message failure being unable to be acquired due to device failure or network delay, and improving the real-time and accuracy of IoT message acquisition.
[0043] Embodiment 2
[0044] Figure 2 This is a flow chart of a method for obtaining information of the Internet of Things provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment of the present invention optimizes and improves the operation of obtaining information of the Internet of Things.
[0045] Furthermore, "screening out the target device from each second device based on the operating status of at least one second device" is refined to "before screening out the target device from each second device based on the operating status of at least one second device, it also includes: acquiring each second device; receiving an IoT device message sent by an IoT device in the IoT; and sending the IoT device message to each second device so that each second device synchronously stores the IoT device message" to improve the operation of acquiring IoT information.
[0046] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions of other embodiments.
[0047] See also Figure 2 The method for obtaining information of the Internet of Things shown includes:
[0048] S201. Receive an IoT message acquisition request.
[0049] S202: Acquire each second device.
[0050] Specifically, after the first device detects the operating status of each Internet of Things except the first device in the Internet of Things, an Internet of Things device that meets the preset operating status condition is obtained as the second device.
[0051] In one example, the Internet of Things includes Internet of Things device 1, Internet of Things device 2, and Internet of Things device 3. Internet of Things device 1 is used as the first device. The first device detects the available storage space of Internet of Things device 2 and Internet of Things device 3, and obtains that the available space ratio of Internet of Things device 2 is 80%, and the available space ratio of Internet of Things device 3 is 90%. The preset screening condition is obtained that the available space ratio is greater than or equal to 70%. Then Internet of Things device 2 and Internet of Things device 3 are used as the second device.
[0052] S203: Receive an IoT device message sent by an IoT device in the IoT.
[0053] Among them, the IoT device message can be an IoT message to be transmitted sent by the IoT device.
[0054] Specifically, the first device receives an Internet of Things device message sent by an Internet of Things device in the Internet of Things. The Internet of Things device message may be at least one.
[0055] S204: Send the IoT device message to each second device, so that each second device synchronously stores the IoT device message.
[0056] Specifically, the first device sends the IoT device message to each second device, and each second device stores the IoT device message in its corresponding storage space. The IoT device messages stored in each second device are the same.
[0057] S205. Filter out a target device from each second device according to the operating status of at least one second device; the first device and each second device are configured in the same Internet of Things, and each second device synchronizes messages with each Internet of Things device in the Internet of Things.
[0058] S206: Obtain the IoT message corresponding to the IoT message acquisition request from the target device and provide feedback.
[0059] The embodiment of the present invention obtains each second device, receives the Internet of Things device messages sent by the Internet of Things devices in the Internet of Things, and sends the Internet of Things device messages to each second device, so that each second device synchronously stores the Internet of Things device messages, and backs up the Internet of Things device messages through multiple second devices, avoiding the problem that there is only one second device and the message cannot be transmitted when the device is damaged, the storage space is insufficient, or the network fails.
[0060] Optionally, obtaining each second device includes: obtaining at least one IoT device in the IoT; obtaining at least one device screening method; and screening each IoT device remaining in the IoT except the first device according to each device screening method to obtain at least one second device.
[0061] Among them, the device screening method can be a method for screening the second device among various Internet of Things devices.
[0062] Specifically, the device screening method may be that the network delay value corresponding to the IoT device is less than 50 milliseconds and the proportion of available storage space corresponding to the IoT device is greater than or equal to 50%. The first device screens each IoT device in the IoT according to the device screening method, and the IoT device that meets the condition is determined as the second device.
[0063] By obtaining at least one IoT device in the IoT, obtaining at least one device screening method, screening the remaining IoT devices in the IoT except the first device according to the device screening methods, and obtaining at least one second device, multiple devices that meet the message transmission conditions can be obtained, avoiding the problem of only one device transmitting a message, and improving the reliability of IoT message acquisition.
[0064] Optionally, before selecting a target device from each second device according to the operating status of at least one second device, the method further includes: obtaining the operating status of each IoT device in the IoT; selecting candidate devices from each IoT device in the IoT; and updating the candidate devices to the first device.
[0065] Among them, the alternative device can be the IoT device that best meets the preset device operating status conditions at the current time.
[0066] Specifically, a detection cycle can be preset, and the first device detects the operating status of each IoT device during the detection cycle. When a detection cycle ends, the first device selects the IoT device that best meets the preset operating status conditions as a candidate device in the IoT according to the operating status of each IoT device. The candidate device is updated to the first device. The first device of the first cycle can be preset as the IoT device with the largest proportion of available storage space in the IoT. The first devices of the remaining cycles are obtained by detecting the operating status of each IoT device in the IoT by the first device of the previous cycle. Obtaining the operating status of each IoT device in the IoT can be the ratio of available storage space detected by the first device for each IoT device in the IoT, or it can be a network delay value.
[0067] By obtaining the operating status of each IoT device in the IoT, alternative devices are screened out from the IoT devices; the alternative devices are updated to the first device, and the first device will be replaced according to the current operating status. The IoT device with the largest available storage space ratio or the least network delay corresponding to the current cycle is selected as the first device, which can balance the load pressure of the IoT.
[0068] Optionally, based on the operating status of at least one second device, a target device is screened out from each second device, including: obtaining at least one monitoring indicator; for each second device, monitoring the second device according to each monitoring indicator to obtain a monitoring indicator value corresponding to each monitoring indicator of the second device; for each second device, averaging each monitoring indicator value corresponding to the second device to obtain a monitoring score corresponding to the second device; sorting the monitoring scores corresponding to each second device, and determining the second device corresponding to the maximum score item as the target device.
[0069] The monitoring indicator may be an indicator for monitoring the second device. The monitoring indicator value may be a value corresponding to the monitoring of the indicator for monitoring the second device. The monitoring score may be an average value of the monitoring indicator values corresponding to the second device, used to describe the operating status of the second device. The maximum score item may be the highest value of the monitoring score in the monitoring score.
[0070] Specifically, the first device obtains at least one monitoring indicator, which may be the ratio of available memory and the ratio of available disk space. The first device monitors each second device according to each monitoring indicator, and obtains the monitoring indicator value of each monitoring indicator corresponding to each second device. The monitoring indicator values corresponding to the second device are averaged to obtain the monitoring score corresponding to the second device. The monitoring scores corresponding to each second device are sorted, and the second device corresponding to the maximum score item is determined as the target device. The larger the monitoring score, the better the corresponding operating status of the second device, and the smaller the monitoring score, the worse the corresponding operating status of the second device.
[0071] In one example, the monitoring indicators obtained are the available memory ratio and the available disk space ratio. For the second device 1, the second device 1 is monitored according to each monitoring indicator, and the monitoring indicator value corresponding to the available memory ratio of the second device 1 is 80%, and the monitoring indicator value corresponding to the available disk space ratio of the second device 1 is 90%. For the second device 1, the average of each monitoring indicator value corresponding to the second device 1 is calculated, and the monitoring score corresponding to the second device 1 is 85. For the second device 2, the second device 2 is monitored according to each monitoring indicator, and the monitoring indicator value corresponding to the available memory ratio of the second device 2 is 70%, and the monitoring indicator value corresponding to the available disk space ratio of the second device 2 is 60%. For the second device 2, the average of each monitoring indicator value corresponding to the second device 2 is calculated, and the monitoring score corresponding to the second device 2 is 65. The monitoring scores corresponding to each second device are sorted, and the second device 1 corresponding to the maximum score item 85 is determined as the target device.
[0072] By acquiring at least one monitoring indicator, for each second device, the second device is monitored according to each monitoring indicator, and the monitoring indicator value corresponding to each monitoring indicator corresponding to the second device is obtained. For each second device, the monitoring indicator value corresponding to the second device is averaged to obtain the monitoring score corresponding to the second device; the monitoring scores corresponding to each second device are sorted, and the second device corresponding to the maximum score item is determined as the target device. The second device with the best operating status is selected from the second devices as the target device, so as to provide IoT messages more efficiently.
[0073] Optionally, receiving an Internet of Things message acquisition request includes: acquiring at least one key string; arranging and combining the key strings to obtain at least one concatenated string; and determining the concatenated strings as an Internet of Things message acquisition request.
[0074] The key string may be a string contained in a message required by the IoT device that sends the IoT message acquisition request. The concatenated string may be a string formed by concatenating the key strings.
[0075] Specifically, the first device obtains at least one key string. The key strings are arranged and combined to obtain at least one concatenated string. The storage space of the target device may be searched according to each concatenated string, and an IoT message containing at least one concatenated string may be sent to the IoT device that sends the IoT message acquisition request.
[0076] In one example, obtain key strings temperature and 26°C, arrange and combine the key strings to obtain concatenated string 1 of temperature26°C and concatenated string 2 of 26°Ctemperature, and determine the concatenated strings as IoT message acquisition requests to send to the first device.
[0077] By obtaining at least one key string, the key strings are arranged and combined to obtain at least one concatenated string; each concatenated string is determined as an IoT message acquisition request, so as to obtain IoT information more comprehensively, and IoT messages corresponding to different key string sequences can be obtained.
[0078] Optionally, after sending the IoT device message to each second device so that each second device synchronously stores the IoT device message, the process includes: obtaining the message type corresponding to the IoT device message; obtaining the message expiration time corresponding to the IoT device message based on the message type corresponding to the IoT device message; obtaining the real-time time corresponding to the IoT device message; and storing the real-time time and message expiration time corresponding to the IoT device message in the message storage space corresponding to the IoT device message.
[0079] The message type may be the type of the IoT message. The message expiration time may be the length of time that the IoT message can be stored in the IoT device. The real-time time may be the time when the IoT message is stored in the IoT device.
[0080] Specifically, obtain the message type corresponding to the IoT device message. The message type can be a voice type, a text type, and an image type. According to the message type corresponding to the IoT device message, query and obtain the message expiration time corresponding to the IoT device message. The message expiration times corresponding to different message types can be the same or different. The message expiration times corresponding to different message types can be obtained through industry experience. Obtain the real-time time corresponding to the IoT device message, store the real-time time and the message expiration time corresponding to the IoT device message in the message storage space corresponding to the IoT device message, and start counting from the real-time time. If the message expiration time is reached, the expired IoT message is destroyed, and the storage space of the IoT device corresponding to the IoT message is increased.
[0081] In one example, the message type corresponding to the IoT device message is obtained as a text type. According to the message type corresponding to the IoT device message, the message expiration time corresponding to the IoT device message is 12 hours. The real-time time corresponding to the IoT device message is obtained as 01:00:00 on xx / xx / xx, and the real-time time and message expiration time corresponding to the IoT device message are stored in the message storage space corresponding to the IoT device message. The timer starts from 01:00:00 on xx / xx / xx, and when 12 hours are reached, the expired IoT message is destroyed.
[0082] By obtaining the message type corresponding to the IoT device message, querying the message expiration time corresponding to the IoT device message according to the message type corresponding to the IoT device message, obtaining the real-time time corresponding to the IoT device message, and storing the real-time time and message expiration time corresponding to the IoT device message in the message storage space corresponding to the IoT device message, different types of IoT messages are automatically destroyed after different times, saving the storage space corresponding to the IoT device.
[0083] Embodiment 3
[0084] Figure 3 This is a schematic diagram of the structure of an Internet of Things information acquisition device provided by Embodiment 3 of the present invention. The embodiment of the present invention is applicable to the situation of Internet of Things information acquisition, the device can execute the Internet of Things information acquisition method, and the device can be implemented in the form of hardware and / or software.
[0085] See also Figure 3 The IoT information acquisition device shown includes: a request receiving module 301, a device screening module 302 and a message acquisition module 303, wherein:
[0086] The request receiving module 301 is used to receive an IoT message acquisition request;
[0087] The device screening module 302 is used to screen out a target device from each second device according to the operating status of at least one second device; the first device and each second device are configured in the same Internet of Things, and each second device synchronizes messages with each Internet of Things device in the Internet of Things;
[0088] The message acquisition module 303 is used to obtain the IoT message corresponding to the IoT message acquisition request from the target device and feedback it.
[0089] The technical solution of the embodiment of the present invention receives an IoT message acquisition request, screens out a target device from each second device according to the operating status of at least one second device, the first device and each second device are configured in the same IoT, each second device synchronizes messages with each IoT device in the IoT, obtains the IoT message corresponding to the IoT message acquisition request from the target device, and feeds back, thereby avoiding the problem of IoT message failure being unable to be acquired due to device failure or network delay, and improving the real-time and accuracy of IoT message acquisition.
[0090] Optionally, the IoT information acquisition device further includes:
[0091] A second device acquisition module, configured to acquire each second device before screening out a target device from each second device according to an operation state of at least one second device;
[0092] A message receiving module, used to receive IoT device messages sent by IoT devices in the IoT;
[0093] The message synchronization module is used to send the IoT device message to each second device so that each second device can synchronously store the IoT device message.
[0094] Optionally, the second device acquisition module includes:
[0095] An IoT device acquisition unit, used to acquire at least one IoT device in the IoT;
[0096] A method acquisition unit, used to acquire at least one device screening method;
[0097] The second device screening unit is used to screen the remaining Internet of Things devices except the first device in the Internet of Things according to the device screening methods to obtain at least one second device.
[0098] Optionally, the second device acquisition module further includes:
[0099] A state acquisition unit, configured to acquire the operation state of each IoT device in the IoT before filtering out the target device from each second device according to the operation state of at least one second device;
[0100] A candidate device screening unit, used for screening candidate devices from various IoT devices in the IoT;
[0101] The first device updating unit is used to update the candidate device to the first device.
[0102] Optionally, the device screening module 302 is specifically configured to:
[0103] Obtain at least one monitoring indicator;
[0104] For each second device, monitor the second device according to each monitoring indicator to obtain a monitoring indicator value corresponding to each monitoring indicator corresponding to the second device;
[0105] For each second device, average the monitoring indicator values corresponding to the second device to obtain a monitoring score corresponding to the second device;
[0106] The monitoring scores corresponding to the second devices are sorted, and the second device corresponding to the maximum score item is determined as the target device.
[0107] Optionally, the request receiving module 301 is specifically configured to:
[0108] Get at least one key string;
[0109] Arrange and combine the key character strings to obtain at least one concatenated character string;
[0110] Each concatenated character string is determined as an IoT message acquisition request.
[0111] Optionally, the IoT information acquisition device further includes:
[0112] A type acquisition module, used for acquiring a message type corresponding to the IoT device message after sending the IoT device message to each second device so that each second device synchronously stores the IoT device message;
[0113] An expiration time acquisition module is used to query and obtain the message expiration time corresponding to the IoT device message according to the message type corresponding to the IoT device message;
[0114] Real-time time acquisition module, used to obtain the real-time time corresponding to the IoT device message;
[0115] The time storage module is used to store the real-time time and message expiration time corresponding to the IoT device message in the message storage space corresponding to the IoT device message.
[0116] The Internet of Things information acquisition device provided in the embodiment of the present invention can execute the Internet of Things information acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the Internet of Things information acquisition method.
[0117] Embodiment 4
[0118] Figure 4 A schematic structural diagram of an Internet of Things information acquisition device 400 that can be used to implement an embodiment of the present invention is shown.
[0119] like Figure 4 As shown, the Internet of Things information acquisition device 400 includes at least one processor 401, and a memory connected to the at least one processor 401, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 to the random access memory (RAM) 403. In RAM403, various programs and data required for the operation of the Internet of Things information acquisition device 400 can also be stored. The processor 401, ROM402 and RAM403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0120] Multiple components in the IoT information acquisition device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the IoT information acquisition device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] Processor 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 501 executes the various methods and processes described above, such as the Internet of Things information acquisition method.
[0122] In some embodiments, the Internet of Things information acquisition method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the Internet of Things information acquisition device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the Internet of Things information acquisition method described above may be performed. Alternatively, in other embodiments, processor 401 may be configured to execute the Internet of Things information acquisition method in any other appropriate manner (e.g., by means of firmware).
[0123] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0125] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] In order to provide interaction with a user, the systems and techniques described herein may be implemented on an IoT information acquisition device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or trackball), through which a user can provide input to the IoT information acquisition device. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0127] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for obtaining information of the Internet of Things, characterized in that: Applied to a first device, the method includes: Receive IoT message acquisition request; According to the running status of at least one second device, a target device is screened out from each of the second devices; the first device and each of the second devices are configured in the same Internet of Things, and each of the second devices synchronizes messages with each of the Internet of Things devices in the Internet of Things; The Internet of Things message corresponding to the Internet of Things message acquisition request is obtained from the target device and fed back.
2. The method according to claim 1, characterized in that Before selecting the target device from each of the second devices according to the running status of at least one second device, the method further includes: Acquire each of the second devices; Receiving an IoT device message sent by an IoT device in the IoT; The Internet of Things device message is sent to each of the second devices, so that each of the second devices synchronously stores the Internet of Things device message.
3. The method according to claim 2, characterized in that The obtaining of each second device includes: Acquire at least one IoT device in the IoT; Obtain at least one device filtering method; The remaining Internet of Things devices in the Internet of Things except the first device are screened according to the device screening methods to obtain at least one second device.
4. The method according to claim 3, characterized in that Before selecting the target device from each of the second devices according to the running status of at least one second device, the method further includes: Obtaining the operating status of each IoT device in the IoT; Select candidate devices from the IoT devices of the IoT; The candidate device is updated to the first device.
5. The method according to claim 1, characterized in that The step of selecting a target device from each of the second devices according to the operating status of at least one second device includes: Obtain at least one monitoring indicator; For each of the second devices, monitor the second device according to each of the monitoring indicators to obtain a monitoring indicator value corresponding to each of the monitoring indicators corresponding to the second device; For each of the second devices, average the monitoring indicator values corresponding to the second device to obtain a monitoring score corresponding to the second device; The monitoring scores corresponding to the second devices are sorted, and the second device corresponding to the maximum score item is determined as the target device.
6. The method according to claim 1, characterized in that The receiving of the IoT message acquisition request comprises: Get at least one key string; Arrange and combine the key character strings to obtain at least one concatenated character string; Each concatenated character string is determined as an IoT message acquisition request.
7. The method according to claim 2, characterized in that: After sending the IoT device message to each of the second devices so that each of the second devices synchronously stores the IoT device message, the method includes: Obtain the message type corresponding to the IoT device message; Obtaining a message expiration time corresponding to the IoT device message according to a query based on the message type corresponding to the IoT device message; Obtain the real-time time corresponding to the IoT device message; The real-time time and the message expiration time corresponding to the IoT device message are stored in the message storage space corresponding to the IoT device message.
8. An Internet of Things information acquisition device, characterized in that: Applied to a first device, the apparatus comprises: A request receiving module, used to receive IoT message acquisition requests; A device screening module, configured to screen out a target device from each of the second devices according to the operating status of at least one second device; the first device and each of the second devices are configured in the same Internet of Things, and each of the second devices synchronizes messages with each of the Internet of Things devices in the Internet of Things; The message acquisition module is used to obtain the Internet of Things message corresponding to the Internet of Things message acquisition request from the target device and feedback it.
9. An Internet of Things information acquisition device, characterized in that: The Internet of Things information acquisition device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the Internet of Things information acquisition method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the Internet of Things information acquisition method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Method and device for improving data querying efficiency
CN106156061A
Cloud storage platform management method
CN108366094A
Node network quality computing methods and device, server and computer memory medium
CN109617758A
Service node destroy-resistant replacement method adapting to tactical maneuvering network environment
CN111800485A
Data transmission method and system, gateway equipment and storage medium
CN116095008A