Device information source tracing processing method and device
By scanning information about devices in the vicinity of the device and binding and matching device IDs, the problem of service interruption caused by changes in device IDs was solved, and the backtracking of device information and inheritance of service information were realized, thereby improving configuration efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COOCAA NETWORK TECH CO LTD
- Filing Date
- 2023-07-27
- Publication Date
- 2026-08-04
AI Technical Summary
In existing technologies, device IDs are easily updated by users, causing applications to be unable to identify whether the current device is a historical device, thus preventing business operations from continuing.
By scanning the Wi-Fi and Bluetooth information of surrounding devices, binding and storing it in the database, and determining the relationship between device IDs when the similarity reaches a predetermined threshold, the parent-child relationship is confirmed based on the data upload time, and relevant business information is inherited.
Even when the device ID changes, the application can still trace back to the previous parent device ID, inherit relevant business information, reduce redundant configuration, improve configuration efficiency, and provide convenience for users.
Smart Images

Figure CN117093282B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment information processing technology, and in particular to a method, apparatus, smart terminal, and storage medium for tracing back the source of equipment information. Background Technology
[0002] With the development of technology, the use of various Internet devices is becoming more and more widespread, and various devices can connect with each other through the network.
[0003] In the existing technology, each device can obtain a device ID through the system API. This device ID is one that can be updated by the user at any time. This characteristic of the device ID means that when an application is reset or uninstalled and then reinstalled by the user, it cannot know whether the current device is a historical device, which makes it impossible for some services to be carried out.
[0004] Therefore, existing technologies still need improvement and development. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a method, device, smart terminal and storage medium for tracing back the source of device information, in order to address the above-mentioned deficiencies of the prior art. The present invention traces back the device lineage by scanning the information of the surrounding devices, so that the application can still trace back to the previous parent device ID when the device ID changes, thereby inheriting the relevant business information and providing convenience for users.
[0006] The technical solution adopted by this invention to solve the problem is as follows:
[0007] A method for tracing the source of equipment information, comprising:
[0008] Obtain the current device ID and simultaneously scan for information on surrounding devices.
[0009] The information of surrounding devices obtained by synchronous scanning is bound to the current device ID, and the binding relationship is stored in the database;
[0010] Upon receiving the reporting request from this device, promptly obtain the device ID and simultaneously scan to obtain information about surrounding devices.
[0011] The peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database to determine whether there is any peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold.
[0012] If the similarity between the information of the surrounding devices of this device and the information of the surrounding devices bound to the device ID stored in the database reaches a predetermined threshold, it is determined that the device ID reported this time is related to the device ID matched in the database; otherwise, there is no relationship.
[0013] The control system will inherit the relevant business information corresponding to the device ID that matches the device ID in the database, based on the existing device relationship.
[0014] The aforementioned device information source tracing processing method, wherein the step of determining whether there is peripheral device information bound to a device ID with a similarity reaching a predetermined threshold includes:
[0015] When the peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database, if the same router MAC is found, the similarity has reached the predetermined threshold.
[0016] The aforementioned device information source tracing processing method, wherein the step of determining whether there is peripheral device information bound to a device ID with a similarity reaching a predetermined threshold includes:
[0017] When the peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database, if there are two or more IoT device Bluetooth MAC information, the similarity reaches the predetermined threshold.
[0018] The aforementioned device information source tracing processing method, wherein the step of synchronously scanning to obtain peripheral device information of the current device includes:
[0019] Simultaneously scan to obtain surrounding Wi-Fi and Bluetooth information for the current device.
[0020] The device information source tracing processing method mentioned above includes the surrounding Wi-Fi information of the current device, which includes the surrounding router Wi-Fi name and router MAC information; and the surrounding Bluetooth information of the current device, which includes the Bluetooth name and Bluetooth MAC information of devices within the same local area network as the current device.
[0021] The aforementioned method for tracing the source of device information further includes, in part, the step of determining that the device ID reported this time is related to the device ID matched in the database:
[0022] When it is determined that two device IDs are related, their parent-child relationship is confirmed based on the data upload time.
[0023] The device information source tracing processing method, wherein the step of determining that the device ID reported this time is related to the device ID in the database when the similarity between the surrounding device information of the current device and the surrounding device information bound to the device ID stored in the database reaches a predetermined threshold, and otherwise no related relationship exists, includes:
[0024] The information of the surrounding devices of this device is compared with the information of the surrounding devices bound to the device ID stored in the database to determine whether there is any information of surrounding devices with a similarity that reaches a predetermined threshold.
[0025] If there is information about surrounding devices with a similarity that reaches a predetermined threshold, the device ID of the device that is reporting the request is determined to be related to the device ID in the database, and the relationship between the two device IDs is stored in the database.
[0026] If there is no information on surrounding devices with a similarity threshold, the device ID of the device that reported the request information will be bound to the surrounding device information of the device obtained by synchronous scanning and stored in the database.
[0027] A device for tracing and processing equipment information sources, wherein the device comprises:
[0028] The first acquisition module is used to acquire the current device ID and simultaneously scan and acquire information about the surrounding devices of the current device;
[0029] The first binding module is used to bind the surrounding device information obtained by synchronous scanning with the current device ID, and store the binding relationship in the database;
[0030] The second acquisition module is used to promptly acquire the device ID and simultaneously scan and acquire information about surrounding devices when it receives the device's reporting request information.
[0031] The comparison module is used to match and compare the peripheral device information of this device with the peripheral device information bound to the device ID stored in the database to determine whether there is any peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold.
[0032] The judgment module is used to determine that if the similarity between the surrounding device information of the current device and the surrounding device information bound to the device ID stored in the database reaches a predetermined threshold, the device ID reported this time is related to the device ID matched in the database; otherwise, there is no relationship.
[0033] The control module is used to control the related business information of devices with a blood relationship, which are inherited from the device ID matched in the database.
[0034] A smart terminal includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising the method for performing any one of the methods.
[0035] A non-transitory computer-readable storage medium, wherein, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform any of the methods described above.
[0036] The beneficial effects of this invention are as follows: This invention provides a method and apparatus for tracing device information sources. After the device's application starts, it scans the surrounding Wi-Fi and Bluetooth information, associates the surrounding device information with the current device ID, and uploads it to the server. The server compares historical data to see if there is any identical surrounding device information. When the matching degree reaches a threshold, it determines that the two device IDs are related and confirms their parent-child relationship based on the data upload time. This invention traces device lineage by scanning the information of surrounding devices, allowing the application to trace back to the previous parent device ID even when the device ID changes, thereby inheriting relevant business information. By inheriting the parent device's configuration information, the child device can avoid the independent configuration process, reducing repetitive work, improving configuration efficiency, and providing convenience for users. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the device information source tracing processing method provided in this embodiment of the invention.
[0039] Figure 2 This is a schematic diagram of the video data acquisition process of the device information source tracing processing method provided in the embodiments of the present invention.
[0040] Figure 3 This is a schematic diagram of the device information source tracing processing device provided in the embodiment of the present invention.
[0041] Figure 4 This is a block diagram illustrating the internal structure of a smart terminal provided in an embodiment of the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0043] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0044] This invention addresses the problem in existing technologies where, after a device is reset or uninstalled and then reinstalled by the user, it is impossible to determine whether the current device is a historical device, leading to the inability to perform certain services. This invention provides a device information source tracing method that traces the device's lineage by scanning information from surrounding devices. This allows applications to trace back to the previous parent device ID even when the device ID changes, thereby inheriting relevant business information and providing convenience for users.
[0045] Exemplary methods
[0046] like Figure 1 As shown, an embodiment 1 of the present invention provides a method for tracing back the source of equipment information, which includes the following steps:
[0047] Step S100: Obtain the current device ID and simultaneously scan to obtain information about surrounding devices of the current device;
[0048] In this embodiment of the application, a smart device is used as an example for illustration. During implementation, the current device ID can be obtained upon the first power-on of the smart device and the launch of the application, and information about surrounding devices can be obtained simultaneously. Obtaining the current device ID means that the identity of the current device can be identified by obtaining its unique identifier or ID.
[0049] Specifically, the step of synchronously scanning to obtain information about surrounding devices of the current device includes: synchronously scanning to obtain surrounding Wi-Fi information and surrounding Bluetooth information of the current device. The surrounding Wi-Fi information of the current device includes the Wi-Fi name and MAC address of surrounding routers; the surrounding Bluetooth information of the current device includes the Bluetooth name and MAC address of devices within the same local area network as the current device.
[0050] Step S200: Bind the peripheral device information obtained by synchronous scanning with the current device ID, and store the binding relationship in the database;
[0051] In this invention, by scanning surrounding devices, relevant information about these devices can be obtained, such as device name, model, and IP address. Then, the scanned surrounding device information is associated with the ID of the current device, establishing a binding relationship between the devices. This binding relationship is recorded and stored in a database for later use and retrieval.
[0052] This step facilitates device identification and management: by obtaining the binding relationship between the current device ID and surrounding device information, devices can be easily identified and managed. This is extremely useful for device management, device control, and communication between devices.
[0053] By establishing binding relationships, personalized services can be provided for each device. For example, based on the device's location and information about surrounding devices, it's convenient to record the source of the current device in subsequent steps. Binding relationships also enable collaboration and interaction between devices.
[0054] For example, suppose there is a smart home system that includes devices such as smart light bulbs, smart sockets, and smart door locks. By obtaining the current device ID and synchronously scanning the surrounding device information, a binding relationship between these devices can be established and stored in a database, which can be set up on the server side.
[0055] For example, when a user opens a smart home app, the system obtains the ID of the current device and scans for nearby smart devices. If a smart light bulb and a smart socket are detected, the system binds these two devices to the current device ID and stores this binding relationship in the database. This allows the system to understand which devices are nearby and easily record the device's surrounding relationships.
[0056] Step S300: Upon receiving the reporting request information from this device, promptly obtain the device ID and simultaneously scan to obtain information about surrounding devices.
[0057] In this application, when a smart device initiates a new connection request, it will receive the reporting request information from the current device, promptly obtain the device ID, and simultaneously scan to obtain information about the surrounding devices.
[0058] Specifically: Upon receiving the device's reporting request, the system sends a message containing device information to the system or server to register or update itself within the system. After receiving the device's reporting request, the system needs to promptly obtain the device's ID. The device ID is a unique identifier or identity used to identify and distinguish different devices.
[0059] Once the device ID is obtained, the system will immediately perform a scan to retrieve information about surrounding devices. These surrounding devices can be other devices that are associated with or nearby this device.
[0060] By obtaining the device's ID, the system can promptly update the device's information, including its status, location, and attributes. By synchronously scanning and acquiring information about surrounding devices, the system can monitor the status and attributes of nearby devices in real time, enabling appropriate processing and management.
[0061] Step S400: Match and compare the peripheral device information of this device with the peripheral device information bound to the device ID stored in the database to determine whether there is peripheral device information bound to the device ID with a similarity reaching a predetermined threshold.
[0062] In this step, the peripheral device information of this device will be matched and compared with the peripheral device information bound to the device ID stored in the database to determine whether there is peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold.
[0063] Specifically, first, the system will match and compare the surrounding device information of this device with the surrounding device information bound to the device ID stored in the database. This comparison process can use some algorithms or methods, such as string matching, similarity calculation, etc.
[0064] Regarding the determination of whether there is similarity information for a device ID bound to a predetermined threshold for surrounding devices: During the matching process, the system calculates the similarity between the surrounding device information of the current device and the surrounding device information bound to the device ID stored in the database. If the similarity reaches the predetermined threshold, the system determines that the two sets of device information are a match.
[0065] The purpose of this process is to determine whether the peripheral device information of this device matches the peripheral device information bound to the device ID stored in the database. By comparing similarity, the system can determine whether two sets of device information are similar or consistent, thereby determining whether they belong to the same group of devices.
[0066] The benefits of this process are: 1) Accurate matching of device information: By comparing similarity, the system can match device information more accurately, avoiding misjudgments or incorrect matching. 2) Determining the surrounding environment of the device: Through matching and comparison, the system can determine the associated environment between the current device and the surrounding devices bound to the device ID stored in the database. In this way, the system can establish the associated environment relationships between devices.
[0067] Step S500: When the similarity between the peripheral device information of this device and the peripheral device information bound to the device ID stored in the database reaches a predetermined threshold, it is determined that the device ID reported this time is related to the device ID matched in the database; otherwise, there is no relationship.
[0068] In this application, when the similarity between the peripheral device information of the current device and the peripheral device information bound to the device ID stored in the database reaches a predetermined threshold, it is determined that the reported device ID and the matching device ID in the database are related; otherwise, no related relationship exists. Here, the related relationship referred to in this application is not the parent-child relationship, but rather the device-to-device association relationship.
[0069] Optionally, this application will match and compare the peripheral device information of this device with the peripheral device information bound to the device ID stored in the database to determine whether there is peripheral device information with a similarity reaching a predetermined threshold.
[0070] If there is information about surrounding devices with a similarity that reaches a predetermined threshold, the device ID of the device that is reporting the request is determined to be related to the device ID in the database, and the relationship between the two device IDs is stored in the database.
[0071] If there is no information on surrounding devices with a similarity threshold, the device ID of the device that reported the request information will be bound to the surrounding device information of the device obtained by synchronous scanning and stored in the database.
[0072] In this embodiment of the invention, regarding the setting of the predetermined threshold: the system sets a predetermined threshold as a criterion for similarity determination. This predetermined threshold can be determined according to specific circumstances, generally based on system requirements and device characteristics. Specifically, the determination of the existence of surrounding device information with similarity reaching the predetermined threshold includes: when matching and comparing the surrounding device information of this device with the surrounding device information bound to the device ID stored in the database, if the same router MAC address exists, then the similarity has reached the predetermined threshold.
[0073] Another scenario could be: for example, when matching the peripheral device information of this device with the peripheral device information bound to the device ID stored in the database, if there are two or more IoT device Bluetooth MAC information, then the similarity has reached a predetermined threshold.
[0074] Regarding the determination of whether a relationship exists: specifically, based on the similarity calculation results, the system will determine whether the similarity between the reported device ID and the surrounding device information bound to the device ID stored in the database reaches a predetermined threshold. If the similarity reaches the predetermined threshold, it is determined that the reported device ID and the matching device ID in the database are related. Conversely, if the similarity does not reach the predetermined threshold, it is determined that the reported device ID and the matching device ID in the database are not related. The purpose of this process is to determine whether a relationship exists between device IDs through similarity calculation and the setting of predetermined thresholds. In this way, the correlation between devices can be accurately determined: through similarity calculation and the setting of predetermined thresholds, the system can more accurately determine the correlation between device IDs and avoid misjudgments or incorrect judgments.
[0075] Optionally, the step of determining that the reported device ID is related to the device ID matched in the database further includes:
[0076] When it is determined that two device IDs are related, their parent-child relationship is confirmed based on the data upload time. It should be noted that the parent-child relationship in this embodiment does not refer to the parent-child relationship in interpersonal relationships, but rather to the relationship between a parent device and a child device.
[0077] In this application, when it is determined that two device IDs are related, and their parent-child relationship is confirmed based on the data upload time, it means that by judging the relationship between the devices and the order of data upload time, it is determined whether one device is the parent device or the child device of another device.
[0078] Specifically, once a lineage relationship is determined between two device IDs, the system retrieves their data upload times. Data upload time refers to the timestamp when a device uploads data to the system, which can be obtained through the device's sensors, communication modules, etc. Then, the parent-child relationship is confirmed: based on the data upload times, the system can determine the parent-child relationship between the device IDs. Generally, the parent device uploads data first, and the child device uploads data after the parent device. Therefore, if one device's data upload time is earlier than another device's data upload time, then the former can be considered the parent device of the latter, and the latter a child device of the former.
[0079] To illustrate, suppose we have two device IDs, device A and device B. After determining their relationship, we compare their data upload times. If device A's data upload time is earlier than device B's data upload time, then we can confirm that device A is the parent device of device B, and device B is the child device of device A.
[0080] The purpose of this process is to confirm the parent-child relationship between device IDs based on data upload time. By confirming the parent-child relationship, the system can further understand the hierarchical structure and associations between devices, thereby supporting collaboration and interaction between devices.
[0081] The benefits of this process are: determining the hierarchical structure between devices: by comparing data upload times, the system can determine the parent-child relationship between device IDs.
[0082] Step S600: Control the device with a blood relationship to inherit the relevant business information corresponding to the device ID matched in the database.
[0083] In this step, the control system will inherit the relevant business information corresponding to the device ID matched in the database for devices with a parent-child relationship. For example, when it is determined that two devices have a parent-child relationship, the control system will inherit the relevant business information of the parent device stored in the database.
[0084] Specifically, for devices with a lineage relationship: after determining that a lineage relationship exists between devices (e.g., parent-child relationship), the system will determine which device is the parent device and which is the child device. The system's database typically stores relevant business information for each device, such as device attributes, status, and configuration. This information can be used for device management and control.
[0085] Once the parent-child relationship is established, the child device inherits the relevant business information stored in the database by the parent device. This means that the child device can obtain the parent device's attributes, status, configuration, and other information, and perform corresponding business operations on its own.
[0086] To illustrate, suppose there are two device IDs, a parent device A, and a child device B, with a parent-child relationship. The system's database stores relevant business information for device A, such as its attributes being a temperature sensor, its status being normal, and its configuration to upload data every 10 seconds. When the system identifies device B as a child device of device A previously stored in the database, it inherits device A's relevant business information to device B. In this way, device B can access device A's information, such as its temperature sensor attributes, normal status, and configuration to upload data every 10 seconds, and perform the corresponding business operations accordingly.
[0087] The purpose of this process is to enable information sharing and collaboration between devices. By inheriting relevant business information from the parent device, the child device can better understand and utilize the parent device's information, thereby achieving more efficient device management and control.
[0088] The advantages of doing this are: 1) Information sharing and collaboration: By inheriting relevant business information from the parent device, the child device can share the parent device's information, enabling collaboration between devices. This is crucial for data transfer and command issuance between devices.
[0089] 2) Simplified configuration process: By inheriting the configuration information of the parent device, the child device can skip the independent configuration process, reduce repetitive work, and improve configuration efficiency.
[0090] In summary, once a parent-child relationship is established between two devices, the control system will inherit the relevant business information stored in the database by the parent device from the child device. This process enables information sharing and collaboration between devices, simplifies the configuration process, and improves the efficiency of device management and control.
[0091] The following detailed description of the device information source tracing processing method of the present invention is provided through specific application examples:
[0092] like Figure 2 As shown, a device information source tracing processing method in this specific application embodiment includes the following steps:
[0093] Step S10: The application starts or the device is powered on, and then proceed to step S11;
[0094] Step S11: Obtain the device ID and surrounding device information, and proceed to step S12;
[0095] Step S12: Bind the device ID with the peripheral device information, and proceed to step S13.
[0096] In this specific embodiment, when the application of the smart device starts, it obtains the current device ID and synchronously obtains information about surrounding devices. The scanned information (such as the router's Wi-Fi name, router's MAC address, the Bluetooth name and Bluetooth MAC address of IoT devices in the home, etc.) is bound to the current device ID and sent to the server.
[0097] Step S13: Request the server API and proceed to step S14;
[0098] Step S14: The server receives the request information and proceeds to step S15;
[0099] Step S15: Compare the request information with the peripheral device information of each device ID in the database one by one, and proceed to step S16.
[0100] Step S16: Does similar peripheral device information exist? If it does, proceed to step S18; otherwise, proceed to step S17.
[0101] In this specific embodiment, after receiving the relevant information, the server compares the received peripheral device information with the peripheral device information bound to other device IDs in the database. If the similarity reaches a preset threshold, it is determined that the reported device ID is related to the matching device ID in the database; otherwise, there is no related relationship.
[0102] In this embodiment of the invention, the similarity determination method can be performed using one or two of the following methods:
[0103] Method a. If the same router MAC address exists, then the similarity threshold needs to be reached.
[0104] Method b. If there are two or more IoT device Bluetooth MAC information, then the similarity threshold has been reached.
[0105] Step S17: For IDs that are not related to the current device ID, store the relevant data in the database; and proceed to step S20.
[0106] Step S18: Determine that the requested device ID and the matching device ID are related, and proceed to step S19;
[0107] Step S19: Store the lineage relationship between the two device IDs in the database, and proceed to step S20;
[0108] Step S20: End.
[0109] As can be seen from the above, in this specific application embodiment, after the smart device's application starts, it scans the surrounding Wi-Fi and Bluetooth information, such as the Wi-Fi name and MAC address of nearby routers, and the Bluetooth name and MAC address of IoT devices in the home. It associates this surrounding device information with the current device ID and uploads it to the server. The server can compare historical data to see if there is any identical surrounding device information. When the matching degree reaches a threshold, it determines that the two device IDs are related and confirms their parent-child relationship based on the data upload time. Furthermore, it can control the related device to inherit the relevant business information corresponding to the device ID matched in the database. By inheriting the parent device's configuration information, the child device can avoid the independent configuration process, reducing repetitive work and improving configuration efficiency.
[0110] Exemplary device
[0111] like Figure 3 As shown in the figure, an embodiment of the present invention provides a device for tracing back the source of device information, the device comprising:
[0112] The first acquisition module 310 is used to acquire the current device ID and simultaneously scan and acquire information about the surrounding devices of the current device;
[0113] The first binding module 320 is used to bind the peripheral device information obtained by synchronous scanning with the current device ID and store the binding relationship in the database;
[0114] The second acquisition module 330 is used to promptly acquire the device ID and simultaneously scan and acquire information about surrounding devices when it receives the reporting request information from the current device.
[0115] The comparison module 340 is used to match and compare the peripheral device information of the current device with the peripheral device information bound to the device ID stored in the database to determine whether there is peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold.
[0116] The judgment module 350 is used to determine that the device ID reported this time is related to the device ID in the database if the similarity between the peripheral device information of the current device and the peripheral device information bound to the device ID stored in the database reaches a predetermined threshold; otherwise, there is no relationship.
[0117] The control module 360 is used to control the devices with a blood relationship to inherit the relevant business information corresponding to the device IDs matched in the database, as described above.
[0118] Based on the above embodiments, the present invention also provides a smart terminal, the principle block diagram of which can be as follows: Figure 4 As shown, this smart terminal, which can be a smart TV, includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a device information source tracing processing method. The database of the smart terminal stores peripheral device information and information bound to the current device ID.
[0119] Those skilled in the art will understand that Figure 4 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the smart terminal to which the present invention is applied. A specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0120] In one embodiment, a smart terminal is provided, including a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0121] Obtain the current device ID and simultaneously scan for information on surrounding devices.
[0122] The information of surrounding devices obtained by synchronous scanning is bound to the current device ID, and the binding relationship is stored in the database;
[0123] Upon receiving the reporting request from this device, promptly obtain the device ID and simultaneously scan to obtain information about surrounding devices.
[0124] The peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database to determine whether there is any peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold.
[0125] If the similarity between the information of the surrounding devices of this device and the information of the surrounding devices bound to the device ID stored in the database reaches a predetermined threshold, it is determined that the device ID reported this time is related to the device ID matched in the database; otherwise, there is no relationship.
[0126] The control system will inherit the relevant business information corresponding to the device ID that matches the device ID in the database, based on the existing device relationship.
[0127] The step of determining whether there is peripheral device information bound to a device ID with a similarity reaching a predetermined threshold includes:
[0128] When the peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database, if the same router MAC is found, the similarity has reached the predetermined threshold.
[0129] The step of determining whether there is peripheral device information bound to a device ID with a similarity reaching a predetermined threshold includes:
[0130] When the peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database, if there are two or more IoT device Bluetooth MAC information, the similarity reaches the predetermined threshold.
[0131] The step of synchronously scanning to obtain information about the surrounding devices of the current device includes:
[0132] Simultaneously scan to obtain surrounding Wi-Fi and Bluetooth information for the current device.
[0133] The device information source tracing processing method mentioned above includes the surrounding Wi-Fi information of the current device, which includes the surrounding router Wi-Fi name and router MAC information; and the surrounding Bluetooth information of the current device, which includes the Bluetooth name and Bluetooth MAC information of devices within the same local area network as the current device.
[0134] The step of determining whether the reported device ID is related to the device ID matched in the database further includes:
[0135] When it is determined that two device IDs are related, their parent-child relationship is confirmed based on the data upload time.
[0136] The step of determining that the device ID reported in this instance is related to the device ID in the database if the similarity between the peripheral device information of the current device and the peripheral device information bound to the device ID stored in the database reaches a predetermined threshold, and otherwise no related relationship exists, includes:
[0137] The information of the surrounding devices of this device is compared with the information of the surrounding devices bound to the device ID stored in the database to determine whether there is any information of surrounding devices with a similarity that reaches a predetermined threshold.
[0138] If there is information about surrounding devices with a similarity that reaches a predetermined threshold, the device ID of the device that is reporting the request is determined to be related to the device ID in the database, and the relationship between the two device IDs is stored in the database.
[0139] If there is no information on surrounding devices with a similarity threshold, the device ID of the device that reported the request information will be bound to the surrounding device information of the device obtained by synchronous scanning and stored in the database, as described above.
[0140] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0141] In summary, this invention discloses a method, apparatus, smart terminal, and storage medium for tracing device information sources. After the device's application starts, it scans the surrounding Wi-Fi and Bluetooth information, associates this information with the current device ID, and uploads it to the server. The server compares historical data to determine if there are identical surrounding device information. When the matching degree reaches a threshold, it determines that the two device IDs are related and confirms their parent-child relationship based on the data upload time. This invention traces device lineage by scanning the information of surrounding devices, allowing the application to trace back to the previous parent device ID even when the device ID changes, thus inheriting relevant business information. By inheriting the parent device's configuration information, the child device can avoid independent configuration, reducing repetitive work, improving configuration efficiency, and providing convenience for users.
[0142] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A device information source tracing processing method, characterized by, include: Obtain the current device ID and simultaneously scan for information on surrounding devices. The information of surrounding devices obtained through synchronous scanning will be bound to the current device ID, and the binding will be... The relationships are stored in the database; Upon receiving the device's reporting request, promptly obtain the device ID and scan it simultaneously. Obtain information about the surrounding equipment of this device; This will link the peripheral device information of this device with the peripheral device IDs stored in the database. The information is matched and compared to determine whether there is any surrounding device information bound to a device ID with a similarity that reaches a predetermined threshold. When the peripheral device information of this device is bound to the device ID stored in the database, If the similarity of the information matching reaches a predetermined threshold, it is determined that the reported device ID is related to the device ID matched in the database; otherwise, there is no relationship. The control will inherit the relevant business information corresponding to the device ID that matches the device ID in the database, and will have a blood relationship with the device. The step of determining whether there is peripheral device information bound to a device ID with a similarity threshold includes: When the peripheral device information of this device is matched and compared with the peripheral device information bound to the device ID stored in the database, if there are more than two IoT device Bluetooth MAC information, the similarity reaches the predetermined threshold.
2. The equipment information source tracing processing method according to claim 1, characterized in that, The steps for synchronously scanning to obtain information about peripheral devices of the current device include: Simultaneously scan to obtain surrounding Wi-Fi and Bluetooth information for the current device.
3. The equipment information source tracing processing method according to claim 2, characterized in that, The surrounding Wi-Fi information of the current device includes the Wi-Fi names of surrounding routers and router MAC information; The surrounding Bluetooth information of the current device includes: the Bluetooth name and Bluetooth MAC information of devices on the same local area network as the current device.
4. The equipment information source tracing processing method according to claim 1, characterized in that, The step of determining whether the reported device ID is related to the device ID matched in the database further includes: When it is determined that two device IDs are related, their parent-child relationship is confirmed based on the data upload time.
5. The equipment information source tracing processing method according to claim 1, characterized in that, The step of determining that the device ID reported in this instance is related to the device ID in the database when the similarity between the surrounding device information of the current device and the surrounding device information bound to the device ID stored in the database reaches a predetermined threshold, and vice versa, includes: The information of the surrounding devices of this device is compared with the information of the surrounding devices bound to the device ID stored in the database to determine whether there is any information of surrounding devices with a similarity that reaches a predetermined threshold. If there is information about surrounding devices with a similarity that reaches a predetermined threshold, the device ID of the device that is reporting the request is determined to be related to the device ID in the database, and the relationship between the two device IDs is stored in the database. If there is no information on surrounding devices with a similarity threshold, the device ID of the device that reported the request information will be bound to the surrounding device information of the device obtained by synchronous scanning and stored in the database.
6. A device for tracing back the source of equipment information, wherein the device is used to implement the method for tracing back the source of equipment information according to any one of claims 1-5, characterized in that, The device includes: The first acquisition module is used to acquire the current device ID and simultaneously scan and acquire information about the surrounding devices of the current device; The first binding module is used to bind the surrounding device information obtained by synchronous scanning with the current device ID, and store the binding relationship in the database; The second acquisition module is used to promptly acquire the device ID and simultaneously scan and acquire information about surrounding devices when it receives the device's reporting request information. The comparison module is used to match and compare the peripheral device information of this device with the peripheral device information bound to the device ID stored in the database to determine whether there is any peripheral device information bound to the device ID with a similarity that reaches a predetermined threshold. The judgment module is used to determine that if the similarity between the surrounding device information of the current device and the surrounding device information bound to the device ID stored in the database reaches a predetermined threshold, the device ID reported this time is related to the device ID matched in the database; otherwise, there is no relationship. The control module is used to control the related business information of devices with a blood relationship, which are inherited from the device ID matched in the database.
7. A smart terminal, characterized in that, It includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising the means for performing the method as described in any one of claims 1-5.
8. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1-5.