Reporting Method, Device, Equipment and Medium for Device Data for Internet of Things

By sending the device data of the Internet of Things equipment to the terminal device and reporting it by the terminal device, the problem of high computing power consumption when reporting data by the Internet of Things equipment is solved, and the normal reporting of device data and the stability of device operation is achieved.

CN115955497BActive Publication Date: 2025-06-20BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211659131.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2025-06-20
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

When existing IoT devices report equipment data, they consume a lot of equipment computing power, which affects the normal operation of the equipment.

Method used

By sending the device data of the Internet of Things device to the terminal device connected to it, the terminal device reports the device data to the device data acquisition server, thereby avoiding the Internet of Things device reporting data on its own.

Benefits of technology

Without affecting the normal operation of IoT devices, normal reporting of device data is achieved, saving the equipment computing power of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115955497B_ABST
    Figure CN115955497B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, device, and medium for reporting device data for the Internet of Things, which relates to the field of computer technologies, specifically to technologies such as the Internet of Things, data communication, media cloud, and cloud computing. The specific implementation solution is as follows: Obtain the device data of the Internet of Things device; send the device data to a terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to a device data collection server. In the present disclosure, the terminal device replaces the Internet of Things device to report the device data of the Internet of Things device, so that there is no need for the Internet of Things device to independently report the device data, achieving the effect of saving the device computing power of the Internet of Things device and ensuring the normal operation of the Internet of Things device on the premise of normal reporting of the device data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technologies, specifically to technologies such as the Internet of Things (IoT), data communication, media cloud, and cloud computing. In particular, it relates to a method, apparatus, electronic device, and medium for reporting device data for the IoT. Background Art

[0002] With the development of IoT technologies, a wide variety of IoT devices are widely used in all walks of life, bringing great convenience to people's production and life. Due to the existence of a large number of IoT devices, it is necessary to collect the device data of IoT devices in order to better manage and control IoT devices.

[0003] The current method is for IoT devices to report their own device data to a device data collection server. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and medium for reporting device data for the IoT, which can report the device data of IoT devices without affecting the normal operation of IoT devices.

[0005] According to one aspect of this disclosure, there is provided a method for reporting device data for the IoT, which is executed by an IoT device and includes:

[0006] Obtain the device data of the IoT device;

[0007] Send the device data to a terminal device communicatively connected to the IoT device, so that the terminal device reports the device data to a device data collection server.

[0008] According to another aspect of this disclosure, there is provided a method for reporting device data for the IoT, which is executed by a terminal device and includes:

[0009] Obtain the device data of the IoT device from the IoT device communicatively connected to the terminal device;

[0010] Report the device data to a device data collection server.

[0011] According to another aspect of this disclosure, there is provided a device for reporting device data for the IoT, which is configured in an IoT device and includes:

[0012] A device data acquisition module, configured to obtain the device data of the IoT device;

[0013] A device data sending module, configured to send the device data to a terminal device communicatively connected to the IoT device, so that the terminal device reports the device data to a device data collection server.

[0014] According to another aspect of the present disclosure, there is provided a reporting device for device data for the Internet of Things, configured in a terminal device, including:

[0015] A device data receiving module, configured to obtain the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device;

[0016] A device data reporting module, configured to report the device data to a device data acquisition server.

[0017] According to another aspect of the present disclosure, there is provided an electronic device, including:

[0018] At least one processor; and

[0019] A memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of any one of the present disclosure.

[0021] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method of any one of the present disclosure.

[0022] According to another aspect of the present disclosure, there is provided a computer program product, including a computer program, and the computer program executes the method of any one of the present disclosure when being executed by a processor.

[0023] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:

[0025] Figure 1 is a flowchart of some reporting methods for device data for the Internet of Things disclosed according to an embodiment of the present disclosure;

[0026] Figure 2 is a flowchart of some other reporting methods for device data for the Internet of Things disclosed according to an embodiment of the present disclosure;

[0027] Figure 3 is a flowchart of some other reporting methods for device data for the Internet of Things disclosed according to an embodiment of the present disclosure;

[0028] Figure 4A is a flowchart of another method for reporting device data for the Internet of Things according to an embodiment of the present disclosure;

[0029] Figure 4B is a schematic diagram of some scenarios for device data reporting according to an embodiment of the present disclosure;

[0030] Figure 5 is a schematic structural diagram of some devices for reporting device data for the Internet of Things according to an embodiment of the present disclosure;

[0031] Figure 6 is a schematic structural diagram of another device for reporting device data for the Internet of Things according to an embodiment of the present disclosure;

[0032] Figure 7 is a block diagram of an electronic device for implementing the method for reporting device data for the Internet of Things according to an embodiment of the present disclosure. Detailed implementation manners

[0033] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted below.

[0034] With the development of Internet of Things technology, a large number of low-power Internet of Things devices built on low-end hardware platforms are widely used in various industries. The main function of such Internet of Things devices is to make audio and video calls with terminal devices. Due to the existence of a large number of Internet of Things devices, it is necessary to collect the device data of the Internet of Things devices in order to better manage and control the Internet of Things devices.

[0035] Currently, for the reporting of device data of Internet of Things devices on the market, most of them obtain the device data of Internet of Things devices through the application programs in the Internet of Things devices using data interfaces, and then report the device data to the device data collection server through the Hypertext Transfer Protocol.

[0036] However, most Internet of Things devices are built on low-end hardware platforms, and the Hypertext Transfer Protocol requires a certain amount of device computing power to execute smoothly. Therefore, if the Internet of Things devices themselves report device data, it will undoubtedly consume the device computing power of the Internet of Things devices themselves, thereby negatively affecting the operation of the Internet of Things devices.

[0037] Figure 1The figure is a flowchart of some methods for reporting device data for the Internet of Things according to embodiments of the present disclosure. This embodiment can be applied to the situation where a terminal device is used to replace an Internet of Things device for reporting device data. The method of this embodiment can be executed by the device for reporting device data for the Internet of Things disclosed in the embodiments of the present disclosure. The device is configured in the Internet of Things device, can be implemented by software and / or hardware, and can be integrated on any electronic device with computing capabilities.

[0038] As Figure 1 shown, the method for reporting device data for the Internet of Things disclosed in this embodiment may include:

[0039] S101. Obtain the device data of the Internet of Things device.

[0040] Among them, the Internet of Things device represents a non-standard computing device, which can be connected to the network through wired communication or wireless communication and has the ability to transmit data. For example, the Internet of Things devices include but are not limited to smart appliances, smart speakers, smart toys, or smart wearable devices, etc. Among them, the Internet of Things devices of the smart wearable device type include but are not limited to smart bracelets, smart watches, or smart earphones, etc. This embodiment does not make any limitations on the specific types of the Internet of Things devices.

[0041] The device data of the Internet of Things device is the device operation data of the Internet of Things device during operation, which can reflect the operation state of the Internet of Things device. The device data of the Internet of Things device includes but is not limited to power, temperature, operation duration, CPU utilization rate, and memory utilization rate, etc.

[0042] In one implementation, the Internet of Things device periodically obtains a preset data interface (API) at a preset time interval and calls the data interface, so as to obtain the device data of the Internet of Things device itself by using the data interface.

[0043] In another implementation, the Internet of Things device records the device data in the device data log. The Internet of Things device periodically accesses the device data log at a preset time interval and reads the recorded device data from the device data log.

[0044] By obtaining the device data of the Internet of Things device, the effect of data preparation is achieved, laying a data foundation for subsequent reporting of the device data.

[0045] S102. Send the device data to the terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to the device data collection server.

[0046] Among them, the terminal device represents any electronic device with data communication and data processing capabilities, including but not limited to smartphones, smart tablets, personal computers, or workstations, etc. The terminal device is communicatively connected to the Internet of Things device, and the communication connection method can be a wireless communication connection or a wired communication connection. For example, the terminal device and the Internet of Things device can communicate through wireless communication methods such as Bluetooth, cellular network, WiFi (Wireless Network Communication), NFC (Near Field Communication), or Radio Frequency Identification; or for another example, the terminal device and the Internet of Things device can also communicate through wired communication methods such as baseband, optical cable, cable, or waveguide.

[0047] The device data acquisition server is communicatively connected to the terminal device. The device data acquisition server represents any server with data storage, data communication, and data processing capabilities, and is used to collect and store the device data of each Internet of Things device, and can evaluate the operating status of each Internet of Things device according to the collected device data, so as to control each Internet of Things device in a timely manner. The architecture of the device data acquisition server includes but is not limited to CISC (Complex Instruction Set Computer) architecture servers, RISC (Reduced Instruction Set Computer) architecture servers, or VLIW (Very Long Instruction Word) architecture servers, etc.

[0048] In one implementation, the Internet of Things device generates a data packet containing the device data according to the acquired device data, and sends the data packet to the terminal device through the communication connection with the terminal device. The terminal device parses the device data of the Internet of Things device according to the data packet, and then reports the device data to the data acquisition server through the communication connection with the device data acquisition server. After receiving the device data of the Internet of Things device reported by the terminal device, the data acquisition server stores the device data for subsequent analysis of the device data.

[0049] The present disclosure obtains the device data of the Internet of Things device through the Internet of Things device, and sends the device data to the terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to the device data acquisition server. Since the terminal device replaces the Internet of Things device to report the device data of the Internet of Things device, there is no need for the Internet of Things device to independently report the device data, achieving the effect of saving the device computing power of the Internet of Things device and ensuring the normal operation of the Internet of Things device on the premise of normal reporting of the device data.

[0050] Figure 2It is a flowchart of another method for reporting device data for the Internet of Things according to an embodiment of the present disclosure, which is further optimized and extended based on the above technical solution and can be combined with each of the above optional embodiments.

[0051] As Figure 2 shown, the method for reporting device data for the Internet of Things disclosed in this embodiment may include:

[0052] S201. Obtain the device data of the Internet of Things device.

[0053] S202. When the Internet of Things device and the terminal device perform audio and video communication through the media forwarding server, generate an audio and video data packet containing the device data.

[0054] Among them, the communication connection between the Internet of Things device and the terminal device includes an audio and video communication connection, that is, the Internet of Things device and the terminal device transmit audio and video data to each other. For example, when the Internet of Things device is a smart watch and the terminal device is a smart phone, the smart watch can perform an audio and video call with the smart phone.

[0055] The audio and video communication between the Internet of Things device and the terminal device is implemented through the media forwarding server, that is, the media forwarding server is respectively communicatively connected to the Internet of Things device and the terminal device, and is used to forward the audio and video data of the Internet of Things device to the terminal device for the terminal device to display the audio and video data of the Internet of Things device, or forward the audio and video data of the terminal device to the Internet of Things device for the Internet of Things device to display the audio and video data of the terminal device.

[0056] The audio and video data packet refers to a data packet containing audio and video data generated according to a preset protocol, such as an RTP (Reliable Transport Protocol) data packet, etc., so as to use the audio and video data packet as a transmission carrier for audio and video data to realize the audio and video communication between the Internet of Things device and the terminal device. In this embodiment, in addition to containing audio and video data, the audio and video data packet also contains the device data of the Internet of Things device.

[0057] In one implementation manner, when the Internet of Things device and the terminal device perform audio and video communication through the media forwarding server, the Internet of Things device obtains the collected audio and video data and the device data of the Internet of Things device, and then encapsulates the audio and video data and the device data together to generate an audio and video data packet containing the audio and video data and the device data.

[0058] Optionally, generating an audio and video data packet containing the device data includes the following steps A and B:

[0059] A. Determine the candidate data fields included in the packet extension header in the audio and video data packet.

[0060] Among them, the audio - video data packet consists of a packet fixed - header, a packet extension - header, and a data payload layer. The data payload layer is used to encapsulate the actually transmitted audio - video data; the packet fixed - header is used to record fixed information representation characteristics, such as version number, flag bits, payload type, packet sequence number, timestamp, and contributing source, etc.; the packet extension - header is used to record additional information representation features. In this embodiment, the data extension - header is used to record the device data of the Internet of Things device.

[0061] The packet extension - header includes at least one candidate data field, and data can be written into each candidate data field according to actual requirements.

[0062] In one implementation, the Internet of Things device traverses the packet extension - header of the audio - video data packet to determine at least one candidate data field included in the packet extension - header.

[0063] B. Write the device data into the packet extension - header according to the device data type of the device data and the association relationship between the candidate data type and the candidate data field.

[0064] Among them, the candidate data type represents the type set of all device data types. The association relationship between the candidate data type and the candidate data field is preset, that is, for any candidate data field, only the device data of the candidate data type associated with this candidate data field can be written into this candidate data field, and device data of other candidate data types cannot be written into this candidate data field.

[0065] Exemplarily, assume that the candidate data type "memory occupancy rate" is associated with the first data field, then only the device data corresponding to "memory occupancy rate" can be written into the first data field.

[0066] In one implementation, match the device data type of the device data and the association relationship between the candidate data type and the candidate data field, and write the device data into the packet extension - header according to the matching result.

[0067] By determining the candidate data fields included in the packet extension - header in the audio - video data packet, and writing the device data into the packet extension - header according to the device data type of the device data and the association relationship between the candidate data type and the candidate data field, the effect of writing different types of device data into the corresponding candidate data fields is achieved, which facilitates subsequent terminal devices to accurately identify different types of device data during the parsing process, and ensures the accuracy and reliability of device data reporting.

[0068] Optionally, step B includes the following steps B1 and B2:

[0069] B1. Match the device data type with the candidate data types, and determine the target data type from the candidate data types according to the matching result.

[0070] In one implementation, use the candidate data type that matches the device data type as the target data type.

[0071] B2. Use the candidate data fields associated with the target data type as the target data fields, and write the device data into the target data fields.

[0072] Exemplarily, assume that the target data type is "battery power", and the candidate data field associated with "battery power" is the fifth data field. Then write the device data corresponding to "battery power" into the fifth data field.

[0073] Exemplarily, assume that the target data type is "CPU utilization rate", and the candidate data field associated with "CPU utilization rate" is the second data field. Then write the device data corresponding to "CPU utilization rate" into the second data field.

[0074] By matching the device data type with the candidate data types, determining the target data type from the candidate data types according to the matching result, using the candidate data fields associated with the target data type as the target data fields, and writing the device data into the target data fields, an implementation method for classifying and writing device data in the candidate data fields is provided, which facilitates the subsequent accurate identification of different types of device data during the parsing process by the terminal device, and ensures the accuracy and reliability of device data reporting.

[0075] Optionally, the device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

[0076] Among them, the CPU utilization rate reflects the usage status of the CPU of the Internet of Things device. The memory utilization rate reflects the usage status of the memory device of the Internet of Things device. The time taken to receive the first video frame represents the duration taken for the Internet of Things device to receive the first video frame sent by the terminal device. The time taken to capture the first video frame represents the duration taken for the Internet of Things device to capture the first video frame by itself.

[0077] By setting the device data type to include at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame, the type dimension of the device data is enriched, so that the reported device data can fully and comprehensively reflect the operating status of the Internet of Things device.

[0078] S203. Send the audio - video data packet to the terminal device through the media forwarding server, so that the terminal device obtains the device data according to the audio - video data packet and reports the device data to the device data collection server.

[0079] In one implementation, the Internet of Things device sends the audio - video data packet to the media forwarding server, and then the media forwarding server sends the audio - video data packet to the terminal device. After receiving the audio - video data packet, the terminal device parses the audio - video data packet to obtain the audio - video data and the device data, and then plays the audio - video according to the audio - video data and reports the device data to the device data collection server.

[0080] By generating an audio - video data packet containing device data when the Internet of Things device and the terminal device perform audio - video communication through the media forwarding server, and sending the audio - video data packet to the terminal device through the media forwarding server, so that the terminal device obtains the device data according to the audio - video data packet, the effect of multiplexing the media forwarding server is achieved. The media forwarding server is used not only to forward audio - video data to the terminal device but also to forward the device data of the Internet of Things device to the terminal device, greatly reducing the additional communication cost. And since audio - video communication is the core factor affecting the operating state of the Internet of Things device, when the Internet of Things device and the terminal device perform audio - video communication, the operation of sending device data to the terminal device is triggered, making the device data at this time more meaningful for reference.

[0081] Figure 3 It is a flowchart of another method for reporting device data for the Internet of Things disclosed in an embodiment of the present disclosure. This embodiment can be applied to the situation where the terminal device is used to replace the Internet of Things device to report device data. The method of this embodiment can be executed by the device for reporting device data for the Internet of Things disclosed in the embodiment of the present disclosure. The device is configured in the terminal device, can be implemented by software and / or hardware, and can be integrated on any electronic device with computing capabilities.

[0082] As Figure 3 shown, the method for reporting device data for the Internet of Things disclosed in this embodiment may include:

[0083] S301. Obtain the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device.

[0084] Among them, the terminal device is communicatively connected to the Internet of Things device. The communication connection method can be a wireless communication connection or a wired communication connection. For example, the terminal device and the Internet of Things device can communicate through wireless communication methods such as Bluetooth, cellular network, WiFi, NFC, or radio frequency identification; for another example, the terminal device and the Internet of Things device can also communicate through wired communication methods such as baseband, optical cable, cable, or waveguide.

[0085] In one embodiment, the terminal device obtains a data packet containing the device data of the Internet of Things device from the Internet of Things device through the communication connection with the Internet of Things device, and obtains the device data of the Internet of Things device according to the parsing result of the data packet.

[0086] By obtaining the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device, the effect of data preparation is achieved, laying a data foundation for subsequent reporting of the device data.

[0087] S302. Report the device data to the device data collection server.

[0088] Among them, the device data collection server is communicatively connected to the terminal device.

[0089] In one embodiment, the terminal device reports the parsed device data to the data collection server through the communication connection with the device data collection server. After receiving the device data of the Internet of Things device reported by the terminal device, the data collection server stores the device data for subsequent analysis of the device data.

[0090] In the present disclosure, the terminal device obtains the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device and reports the device data to the device data collection server. Since the terminal device replaces the Internet of Things device to report the device data of the Internet of Things device, it is not necessary for the Internet of Things device to independently report the device data, achieving the effect of saving the device computing power of the Internet of Things device and ensuring the normal operation of the Internet of Things device on the premise of normal reporting of the device data.

[0091] Figure 4A It is a flowchart of another method for reporting device data for the Internet of Things disclosed according to the embodiments of the present disclosure, which is further optimized and extended based on the above technical solutions and can be combined with the above various optional embodiments.

[0092] As Figure 4A shown, the method for reporting device data for the Internet of Things disclosed in this embodiment may include:

[0093] S401. When the terminal device and the Internet of Things device perform audio and video communication through the media forwarding server, obtain the audio and video data packets sent by the Internet of Things device through the media forwarding server.

[0094] Among them, the audio and video data packets contain the device data of the Internet of Things device.

[0095] In one implementation, when the Internet of Things device and the terminal device perform audio and video communication through the media forwarding server, the Internet of Things device obtains the collected audio and video data and the device data of the Internet of Things device, and then encapsulates the audio and video data and the device data together to generate audio and video data packets containing the audio and video data and the device data.

[0096] The Internet of Things device sends the audio and video data packets to the media forwarding server, so that the media forwarding server sends the audio and video data packets to the terminal device.

[0097] S402. Obtain the device data according to the audio and video data packets.

[0098] In one implementation, after receiving the audio and video data packets, the terminal device parses the audio and video data packets to obtain the audio and video data and the device data.

[0099] When the terminal device and the Internet of Things device perform audio and video communication through the media forwarding server, by obtaining the audio and video data packets sent by the Internet of Things device through the media forwarding server and obtaining the device data according to the audio and video data packets, the effect of multiplexing the media forwarding server is achieved, so that the media forwarding server is used not only to forward audio and video data to the terminal device, but also to forward the device data of the Internet of Things device to the terminal device, greatly reducing the additional communication cost; and, since audio and video communication is the core factor affecting the operating state of the Internet of Things device, when the Internet of Things device and the terminal device perform audio and video communication, the operation of sending device data to the terminal device is triggered, making the device data more meaningful at this time.

[0100] Optionally, S402 includes:

[0101] Determine the candidate data fields included in the packet extension header of the audio and video data packet; according to the association relationship between the candidate data type and the candidate data field, parse the device data from the candidate data fields.

[0102] In one implementation, the terminal device traverses the packet extension header of the audio and video data packet to determine at least one candidate data field included in the packet extension header. According to the association relationship between the candidate data type and the candidate data field, each candidate data field is parsed, and the device data and the device data type corresponding to the device data are determined according to the parsing result.

[0103] By determining the candidate data fields included in the data packet extension header of the audio-video data packet, and parsing the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields, the terminal device can accurately identify different types of device data, ensuring the accuracy and reliability of the reporting of the device data.

[0104] Optionally, parsing the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields includes:

[0105] Parsing the target data field in the candidate data fields, and obtaining the field data included in the target data field according to the parsing result; using the field data as the device data, and using the candidate data type associated with the target data field as the device data type corresponding to the device data.

[0106] Wherein, the target data field represents any candidate data field.

[0107] Exemplarily, assuming that the terminal device parses the target data field and obtains the field data "95%" included in the target data field, then "95%" is used as the device data, and according to the association relationship between the candidate data type and the candidate data field, it is determined that the candidate data type associated with the target data field is "memory utilization rate", then it is determined that the device data type corresponding to the device data "95%" is "memory utilization rate".

[0108] Exemplarily, assuming that the terminal device parses the target data field and obtains the field data "30%" included in the target data field, then "30%" is used as the device data, and according to the association relationship between the candidate data type and the candidate data field, it is determined that the candidate data type associated with the target data field is "battery power", then it is determined that the device data type corresponding to the device data "30%" is "battery power".

[0109] By parsing the target data field in the candidate data fields, and obtaining the field data included in the target data field according to the parsing result, using the field data as the device data, and using the candidate data type associated with the target data field as the device data type corresponding to the device data, the effect that the terminal device can accurately identify the device data of the Internet of Things device and the device data type corresponding to the device data is achieved, so that when the terminal device reports the device data subsequently, it can classify and report the device data according to the device data type, ensuring the accuracy and reliability of the reporting of the device data.

[0110] Optionally, the device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

[0111] By setting the device data type to include at least one of power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame, the type dimension of the device data is enriched, enabling the reported device data to fully and comprehensively reflect the operating state of the Internet of Things device.

[0112] S403. Report the device data to the device data collection server.

[0113] In one implementation, the terminal device reports the device data to the device data collection server at regular time intervals via the Hypertext Transfer Protocol.

[0114] Figure 4B is a schematic diagram of some scenarios for reporting device data disclosed in the embodiments of the present disclosure, as Figure 4B shown:

[0115] Assume that the Internet of Things device is a smart watch, and the smart device is a smart phone. The smart watch and the smart phone perform audio and video communication via a media forwarding server.

[0116] The smart watch writes its own device data into the data packet extension header of the audio and video data packet and sends the audio and video data packet to the media forwarding server.

[0117] The media forwarding server forwards the audio and video data packet to the smart phone.

[0118] The smart phone parses the data packet extension header of the audio and video data packet to obtain the device data. And it reports the device data to the device data collection server.

[0119] It can be understood that the specific implementation manners of the above steps can refer to the description content in the embodiments of the present disclosure, and will not be elaborated herein.

[0120] Figure 5 is a schematic structural diagram of a device data reporting device for the Internet of Things disclosed in the embodiments of the present disclosure, which can be applicable to the situation where a terminal device is used to replace the Internet of Things device for reporting device data. The device of this embodiment is configured in the Internet of Things device, can be implemented by software and / or hardware, and can be integrated on any electronic device with computing capabilities.

[0121] As Figure 5 shown, the device data reporting device 50 for the Internet of Things disclosed in this embodiment may include a device data acquisition module 51 and a device data sending module 52, where:

[0122] The device data acquisition module 51 is used to acquire the device data of the Internet of Things device;

[0123] The device data sending module 52 is configured to send device data to a terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to the device data acquisition server.

[0124] Optionally, in the case where the Internet of Things device and the terminal device perform audio and video communication through a media forwarding server, the device data sending module 52 is specifically configured to:

[0125] Generate an audio and video data packet containing the device data;

[0126] Send the audio and video data packet to the terminal device through the media forwarding server, so that the terminal device obtains the device data according to the audio and video data packet.

[0127] Optionally, the device data sending module 52 is further specifically configured to:

[0128] Determine candidate data fields included in the packet extension header of the audio and video data packet;

[0129] Write the device data into the packet extension header according to the device data type of the device data and the association relationship between the candidate data type and the candidate data field.

[0130] Optionally, the device data sending module 52 is further specifically configured to:

[0131] Match the device data type with the candidate data type, and determine a target data type from the candidate data types according to the matching result;

[0132] Use the candidate data field associated with the target data type as the target data field, and write the device data into the target data field.

[0133] Optionally, the device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

[0134] The device data reporting device 50 for the Internet of Things disclosed in the embodiments of the present disclosure can execute the method for reporting device data for the Internet of Things executed by the Internet of Things device in the embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method. The content not described in detail in this embodiment can be referred to the description in the method embodiments of the present disclosure.

[0135] Figure 6 It is a schematic structural diagram of another device data reporting device for the Internet of Things disclosed in the embodiments of the present disclosure, and can be applied to the case where a terminal device is used to replace the Internet of Things device to report device data. The device in this embodiment is configured in the terminal device, can be implemented by software and / or hardware, and can be integrated on any electronic device with computing capabilities.

[0136] As shown Figure 6 in FIG. Figure 6 , the reporting device 60 for device data for the Internet of Things disclosed in this embodiment may include a device data receiving module 61 and a device data reporting module 62, where:

[0137] The device data receiving module 61 is configured to obtain device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device;

[0138] The device data reporting module 62 is configured to report the device data to the device data collection server.

[0139] Optionally, in the case where the terminal device and the Internet of Things device perform audio and video communication through a media forwarding server, the device data receiving module 61 is specifically configured to:

[0140] Obtain the audio and video data packet sent by the Internet of Things device through the media forwarding server; wherein, the audio and video data packet contains device data;

[0141] Obtain the device data according to the audio and video data packet.

[0142] Optionally, the device data receiving module 61 is further specifically configured to:

[0143] Determine the candidate data fields included in the packet extension header of the audio and video data packet;

[0144] Parse the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields.

[0145] Optionally, the device data receiving module 61 is further specifically configured to:

[0146] Parse the target data field in the candidate data fields, and obtain the field data included in the target data field according to the parsing result;

[0147] Use the field data as the device data, and use the candidate data type associated with the target data field as the device data type corresponding to the device data.

[0148] Optionally, the device data type includes at least one of power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

[0149] The reporting device 60 for device data for the Internet of Things disclosed in this embodiment of the present disclosure may execute the reporting method for device data for the Internet of Things executed by the terminal device disclosed in this embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. The content not described in detail in this embodiment may be referred to the description in the method embodiment of the present disclosure.

[0150] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0151] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0152] Figure 7 FIG. shows a schematic block diagram of an exemplary electronic device 700 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0153] As Figure 7 shown, the device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0154] A plurality of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0155] The computing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 executes the various methods and processes described above, such as the method for reporting device data for the Internet of Things. For example, in some embodiments, the method for reporting device data for the Internet of Things can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for reporting device data for the Internet of Things described above can be executed. Alternatively, in other embodiments, the computing unit 701 can be configured to execute the method for reporting device data for the Internet of Things in any other suitable manner (e.g., by means of firmware).

[0156] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-a-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments 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 or general 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 the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0157] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program code is executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0158] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0159] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).

[0160] The systems and techniques described herein can be implemented in a computing system that includes back-end 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 front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can 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), and the Internet.

[0161] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.

[0162] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in the present disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present disclosure can be achieved, and no limitation is imposed herein.

[0163] The above specific embodiments do not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. A method for reporting device data for the Internet of Things, executed by an Internet of Things device, including: Obtain the device data of the Internet of Things device; Send the device data to the terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to the device data collection server; Wherein, when the Internet of Things device and the terminal device perform audio and video communication through a media forwarding server, the sending the device data to the terminal device communicatively connected to the Internet of Things device includes: Determine the candidate data fields included in the packet extension header in the audio and video data packet; Match the device data type with the candidate data types, and determine the target data type from the candidate data types according to the matching result; Use the candidate data field associated with the target data type as the target data field, and write the device data into the target data field; Send the audio and video data packet to the terminal device through the media forwarding server, so that the terminal device obtains the device data according to the audio and video data packet; Wherein, the device data is the device data periodically read by the Internet of Things device from the device data log; Wherein, the device data collection server is used to collect and store the device data of the Internet of Things device, and evaluate the running state of the Internet of Things device based on the device data; the candidate data types represent the type set of all device data types.

2. The method according to claim 1, wherein, The device data type includes at least one of power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

3. A method for reporting device data for the Internet of Things, executed by a terminal device, including: Obtain the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device; Report the device data to the device data collection server; Wherein, when the terminal device and the Internet of Things device perform audio and video communication through a media forwarding server, the obtaining the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device includes: Obtain the audio and video data packet sent by the Internet of Things device through the media forwarding server; wherein, the audio and video data packet contains the device data; the audio and video data packet containing the device data is generated by the following method: Determine the candidate data fields included in the packet extension header in the audio and video data packet through the Internet of Things device, match the device data type with the candidate data types, and determine the target data type from the candidate data types according to the matching result; Use the candidate data field associated with the target data type as the target data field, and write the device data into the target data field; Obtain the device data according to the audio and video data packet; Wherein, the device data is the device data periodically read by the Internet of Things device from the device data log; Wherein, the device data collection server is used to collect and store the device data of the Internet of Things device, and evaluate the running state of the Internet of Things device based on the device data; the candidate data types represent the type set of all device data types.

4. The method according to claim 3, wherein, The obtaining the device data according to the audio and video data packet includes: Determine the candidate data fields included in the packet extension header in the audio-video data packet; Parse the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields.

5. The method according to claim 4, wherein, The parsing of the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields includes: Parse the target data field in the candidate data fields, and obtain the field data included in the target data field according to the parsing result; Use the field data as the device data, and use the candidate data type associated with the target data field as the device data type corresponding to the device data.

6. The method according to claim 4 or 5, wherein, The device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

7. A device for reporting device data for the Internet of Things, configured in an Internet of Things device, including: A device data acquisition module, configured to acquire the device data of the Internet of Things device; A device data sending module, configured to send the device data to a terminal device communicatively connected to the Internet of Things device, so that the terminal device reports the device data to a device data acquisition server; Wherein, when the Internet of Things device and the terminal device perform audio-video communication through a media forwarding server, the device data sending module is specifically configured to: Determine the candidate data fields included in the packet extension header in the audio-video data packet; Match the device data type with the candidate data type, and determine the target data type from the candidate data types according to the matching result; Use the candidate data field associated with the target data type as the target data field, and write the device data into the target data field; send the audio-video data packet to the terminal device through the media forwarding server, so that the terminal device obtains the device data according to the audio-video data packet; Wherein, the device data is the device data periodically read by the Internet of Things device from the device data log; wherein, the device data acquisition server is used to collect and store the device data of the Internet of Things device, and evaluate the running state of the Internet of Things device based on the device data; the candidate data type represents the type set of all device data types.

8. The apparatus according to claim 7, wherein, The device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

9. A reporting apparatus for device data for the Internet of Things, configured in a terminal device, comprising: A device data receiving module, configured to obtain the device data of the Internet of Things device from the Internet of Things device communicatively connected to the terminal device; A device data reporting module, configured to report the device data to a device data acquisition server; Wherein, when the terminal device and the Internet of Things device perform audio-video communication through a media forwarding server, the device data receiving module is specifically configured to: Obtain the audio-video data packet sent by the Internet of Things device through the media forwarding server; wherein, the audio-video data packet contains the device data; the audio-video data packet containing the device data is generated in the following manner: Determine the candidate data fields included in the packet extension header in the audio-video data packet, match the device data type with the candidate data types, and determine the target data type from the candidate data types according to the matching result; use the candidate data fields associated with the target data type as the target data fields, and write the device data into the target data fields; Obtain the device data according to the audio-video data packet; wherein, the device data is the device data periodically read by the Internet of Things device from the device data log; wherein, the device data acquisition server is used to collect and store the device data of the Internet of Things device, and evaluate the running state of the Internet of Things device based on the device data; the candidate data types represent the type set of all device data types.

10. The apparatus according to claim 9, wherein, The device data receiving module is specifically further configured to: Determine the candidate data fields included in the packet extension header in the audio-video data packet; Parse out the device data from the candidate data fields according to the association relationship between the candidate data types and the candidate data fields.

11. The apparatus according to claim 10, wherein, The device data receiving module is specifically further configured to: Parse the target data fields in the candidate data fields, and obtain the field data included in the target data fields according to the parsing result; Use the field data as the device data, and use the candidate data type associated with the target data field as the device data type corresponding to the device data.

12. The apparatus according to claim 10 or 11, wherein, The device data type includes at least one of battery power, CPU utilization rate, memory utilization rate, time taken to receive the first video frame, and time taken to capture the first video frame.

13. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1-2 and / or claims 3-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method described in any one of claims 1-2 and / or claims 3-6.

15. A computer program product, comprising a computer program, where the computer program, when executed by a processor, implements the method according to any one of claims 1-2 and / or claims 3-6.

Citation Information

Patent Citations

  • Audio and video data transmission method and device

    CN110933513A

  • Wearable device positioning method and device, terminal equipment and storage medium

    CN113630724A