Intelligent device binding method and apparatus, computer device, and readable storage medium

By parsing messages from smart devices and handheld devices to obtain location information and generate unique identifiers, the management confusion caused by inconsistent smart device serial numbers is resolved, ensuring correct installation and improving the efficiency of anomaly troubleshooting.

CN116017307BActive Publication Date: 2026-05-12GOLDCARD HIGH TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GOLDCARD HIGH TECH
Filing Date
2022-12-30
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Because the external and internal serial numbers of smart devices are inconsistent, business systems cannot communicate using unique information, causing management chaos and requiring a lot of manpower to verify the serial numbers to achieve normal communication.

Method used

通过解析手持设备和智能设备发送的报文获取安装位置和设备位置信息,利用欧式距离判断两者是否一致,生成身份信息并录入设备数据库以绑定智能设备与业务系统,确保唯一性标识,并在异常情况下发送位置异常信息。

Benefits of technology

It enables the correct installation and location confirmation of smart devices, reduces management complexity, avoids labor costs, and improves the efficiency of anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017307B_ABST
    Figure CN116017307B_ABST
Patent Text Reader

Abstract

The application provides a smart device binding method and device, computer equipment and a readable storage medium, comprising: receiving a first message sent by a handheld device, obtaining installation position information by analyzing the first message; receiving a second message sent by a smart device, obtaining device position information by analyzing the second message; if it is determined that the Euclidean distance between the device position information and the installation position information is not higher than a preset distance threshold, generating identity information of the smart device according to the device position information, and recording the identity information in a preset device database, so as to bind the smart device with a business system. The application realizes the technical effect of taking the identity information representing the coordinate position information of the smart device as the unique identification of the smart device, reduces the management complexity of the smart device, and avoids the situation of excessive human cost investment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a smart device binding method, apparatus, computer device, and readable storage medium. Background Technology

[0002] Intelligent devices are automated devices used to inspect areas. Current intelligent device manufacturing is constrained by standards or company regulations, resulting in a discrepancy between the external device number and the internal device number. The external device number represents the intelligent device itself, while the internal device number serves as its identification information during communication.

[0003] However, the inventors discovered that the inconsistency between the external device number and the internal device number of the smart device makes it difficult for the business system to use unique information to unify the external device number reported by the installers and the internal device number exchanged between the business system and the smart device during communication, resulting in chaotic management of smart devices.

[0004] Currently, solving the above problems requires a lot of manpower to verify the external and internal serial numbers of smart devices in order to unify the unique identifier of smart devices. Only then can normal communication between smart devices be achieved based on the unique identifier, resulting in complex device management and excessive investment of human resources. Summary of the Invention

[0005] This application provides a smart device binding method, apparatus, computer device, and readable storage medium to solve the current problem of chaotic smart device management.

[0006] Firstly, this application provides a smart device binding method, which runs in a business system, including:

[0007] The system receives a first message sent by a handheld device and parses the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of the smart device input by the installer in the smart device or handheld device.

[0008] The system receives a second message sent by a smart device and parses the second message to obtain device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the smart device through a geographic information system.

[0009] If it is determined that the Euclidean distance between the device location information and the installation location information is not higher than a preset distance threshold, then the identity information of the smart device is generated based on the device location information, and the identity information is entered into a preset device database to bind the smart device to the business system.

[0010] In the above scheme, after parsing the second message to obtain the device location information, the method further includes:

[0011] If it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold, then a location anomaly information is sent to the smart device or handheld device.

[0012] In the above scheme, parsing the first message to obtain the installation location information includes:

[0013] The first message is compared with a preset standard message format; wherein the standard message format is preset in the business system and is used to define the format rules information of the first message format.

[0014] If it is determined that the message format of the first message conforms to the standard message format, then the preset encoding module is called to parse the first message, so that the first message is converted from message format to text format;

[0015] The characters and / or text representing location information in the first message in text format are used as the installation location information.

[0016] In the above scheme, parsing the second message to obtain the device location information includes:

[0017] The second message is compared with a preset standard message format; wherein the standard message format is preset in the business system and is used to define the format rules information of the second message format.

[0018] If it is determined that the message format of the second message is consistent with the standard message format, then the preset encoding module is called to parse the second message, so that the second message is converted from message format to text format;

[0019] The characters and / or text representing location information in the second message in text format are used as the device location information.

[0020] In the above scheme, after the identity information is entered into the preset device database, the method further includes:

[0021] If a third message is received from the smart device or handheld device, the identity information is set as the target identity information; wherein, the third message is used to represent the request information entered by the installer in the smart device or handheld device for inserting installation remarks information into the device database;

[0022] If it is confirmed that a fourth message sent by a smart device corresponding to the target identity information has been received, then signal normal information is inserted into the target identity information; wherein, the signal normal information is the installation remarks information of the target identity information; the fourth message information is the coordinate location information of the smart device generated by the smart device based on the third message and through a geographic information system.

[0023] If it is confirmed that no fourth message has been received from the smart device corresponding to the target identity information, then signal abnormality information is inserted into the target identity information; wherein, the signal abnormality information is the installation remarks information of the target identity information.

[0024] In the above scheme, after inserting normal signal information into the target identity information, the method further includes:

[0025] The device verification location information is obtained by parsing the fourth message, and then inserted into the target identity information; wherein, the device verification location information is the installation remarks information of the target identity information.

[0026] In the above scheme, after the identity information is entered into the preset device database, the method further includes:

[0027] The system receives a fifth message sent by a smart device, parses the fifth message to obtain operating information, records the operating information into the device database, and associates it with the identity information of the smart device that sent the fifth message; wherein, the fifth message is used to characterize the smart device's detection of the environmental conditions of the target area and the operating status of the smart device.

[0028] Secondly, this application provides a smart device binding device, installed in a business system, comprising:

[0029] The installation parsing module is used to receive a first message sent by a handheld device and parse the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device;

[0030] The device parsing module is used to receive a second message sent by the smart device and parse the second message to obtain device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the geographic information system.

[0031] The device binding module is used to generate the identity information of the smart device based on the device location information if it is determined that the Euclidean distance between the device location information and the installation location information is not higher than a preset distance threshold, and to record the identity information into a preset device database to bind the smart device to the business system.

[0032] Thirdly, this application provides a computer device, including: a processor and a memory communicatively connected to the processor;

[0033] The memory stores computer-executed instructions;

[0034] The processor executes computer execution instructions stored in the memory to implement the smart device binding method as described above.

[0035] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the above-described smart device binding method.

[0036] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described smart device binding method.

[0037] This application provides a smart device binding method, apparatus, computer equipment, and readable storage medium. By parsing a first message to obtain installation location information and parsing a second message to obtain device location information, the method determines whether the Euclidean distance between the device location information and the personnel location information is higher than a preset distance threshold. This identifies the smart device represented by the installation location information sent by the installer and the smart device represented by the device location information sent by the smart device as the same smart device. This achieves installation confirmation and location confirmation of the smart device, ensuring that each smart device can be correctly installed by the installer.

[0038] The system generates identity information for smart devices based on their location information and records this information into a pre-built device database. This information is then used to bind the smart devices to the business system. This approach achieves the technical effect of using the coordinate location information of the smart device as a unique identifier. It avoids the current problem where the external and internal device serial numbers are inconsistent, making it difficult for the business system to unify the external serial number reported by the installation personnel with the internal serial number exchanged between the business system and the smart device. This leads to chaotic smart device management and requires a large amount of manpower to verify the external and internal serial numbers of the smart devices to unify the unique identifier of the smart devices before normal communication can be achieved based on the unique identifier. This reduces the complexity of smart device management and avoids excessive investment of manpower.

[0039] Meanwhile, by generating identity information based on device location information, when a smart device detects an anomaly, its location can be quickly obtained based on the device's identity information. This allows maintenance personnel to quickly investigate and resolve anomalies, improving the efficiency of anomaly investigation and resolution for both the smart device and the detection area. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0041] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0042] Figure 2 A flowchart of Embodiment 1 of a smart device binding method provided in this application;

[0043] Figure 3 A flowchart of Embodiment 2 of a smart device binding method provided in this application;

[0044] Figure 4 A flowchart of Embodiment 3 of a smart device binding method provided in this application;

[0045] Figure 5 This is a schematic diagram of a program module for a smart device binding device provided by the present invention;

[0046] Figure 6 This is a schematic diagram of the hardware structure of the computer device in the computer device of the present invention.

[0047] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0049] Please see Figure 1 The specific application scenario of this application is as follows:

[0050] Server 2, which runs a smart device binding method, is installed in business system 3. Server 2 is also connected to smart device 4, handheld device 5, and device database 6. Smart device 4 and handheld device 5 are connected to geographic information system 7.

[0051] Server 2 receives a first message sent by smart device 4 or handheld device 5, and parses the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of smart device 4 entered by the installer in smart device 4 or handheld device 5; the installer can use handheld device 5 to call geographic information system 7 to obtain installation location information;

[0052] Server 2 receives the second message sent by smart device 4 and parses the second message to obtain device location information; wherein, the second message is used to represent the coordinate location information of smart device 4 generated by geographic information system 7.

[0053] If server 2 determines that the Euclidean distance between the device location information and the installation location information is not higher than the preset distance threshold, it generates the identity information of smart device 4 based on the device location information and enters the identity information into the preset device database 6 to bind smart device 4 with business system 3.

[0054] Definitions:

[0055] 1. Business System: This refers to the business system deployed in the cloud, which contains a large number of registered combustible gas detectors for enclosed spaces.

[0056] 2. An intelligent device refers to a device, instrument, or machine with computing capabilities. In this embodiment, the intelligent device is a combustible gas detector for enclosed spaces, which is an intelligent device capable of communicating with remote business systems and will report geographical location information.

[0057] 3. Geographic Information System (GIS), sometimes also called "geological information system," is a specific and very important spatial information system. Supported by computer hardware and software systems, it is a technological system for collecting, storing, managing, processing, analyzing, displaying, and describing geographic distribution data across the entire or part of the Earth's surface (including the atmosphere).

[0058] The technical solution of this application and how the technical solution of this application solves the problems of the prior art will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0059] Example 1:

[0060] Please see Figure 2 This application provides a smart device binding method, which runs in a business system, including:

[0061] S101: Receive the first message sent by the handheld device, parse the first message to obtain the installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device.

[0062] In a preferred embodiment, parsing the first message to obtain installation location information includes:

[0063] The first message is compared with the preset standard message format; the standard message format is preset in the business system and is used to define the format rules information of the first message format.

[0064] If it is determined that the message format of the first message conforms to the standard message format, the preset encoding module is called to parse the first message, so that the first message is converted from message format to text format;

[0065] Use the characters and / or text representing location information in the first message in text format as the installation location information.

[0066] In this example, since the smart device and the business system are connected via circuit, communication bus, or wireless connection, the data format of the first message is usually a message format, such as TCP format, UDP format, IP format, IPv6 format, IPSec format, binary format, decimal format, etc.

[0067] The standard message format is a pre-defined format rule in the business system. This rule includes defining the message's character length; for example, defining a message as a fixed length of 25 characters means that only messages with a length of 25 characters or more are considered to conform to the standard message format. If a message is shorter than 25 characters or longer than 25 characters, it indicates that the smart device sending the first message is not under the jurisdiction of the business system or is maliciously connecting to the business system. Therefore, the connection of that smart device to the business system is denied, ensuring the data security of the business system.

[0068] The format rules include defining the content at the end of the message. For example, defining the message end as 0809:0008 means that the content of the first message is ××××××:0809:0008, which is considered to conform to the standard message format. If the message does not end with 0809:0008, it indicates that the smart device sending the first message is not under the jurisdiction of the business system or is a device maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is refused to ensure the data security of the business system.

[0069] The encoding module is an encoding conversion tool used to convert messages into text. The encoding conversion tool (utf-8 / utf-32 / Punycode / Base64) is a very comprehensive encoding conversion tool that can perform conversion and decoding operations for encodings such as utf-8, utf-32, Punycode, Base64, and Quoted-printable.

[0070] Handheld devices include, but are not limited to, smartphones, tablets, and handheld tooling units. A handheld device, also known as a mobile device, cell phone device, or pocket PC, is a pocket-sized computing device, typically featuring a small display screen, touch input, or a small keyboard. In this embodiment, the handheld device can utilize a geographic information system to locate the installer's current position and generate installation location information.

[0071] S102: Receive the second message sent by the smart device, and parse the second message to obtain the device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the smart device through the geographic information system.

[0072] In a preferred embodiment, parsing the second message to obtain device location information includes:

[0073] The second message is compared with the preset standard message format; the standard message format is preset in the business system and is used to define the format rules information of the second message format.

[0074] If it is determined that the message format of the second message is consistent with the standard message format, then the preset encoding module is called to parse the second message, so that the second message is converted from message format to text format;

[0075] The characters and / or text representing location information in the second message in text format are used as device location information.

[0076] In this example, since the smart device and the business system are connected via circuit, communication bus, or wireless connection, the data format of the second message is usually a message format, such as TCP format, UDP format, IP format, IPv6 format, IPSec format, binary format, decimal format, etc.

[0077] The standard message format is a pre-defined format rule in the business system. This rule includes defining the message's character length; for example, defining a message as a fixed length of 25 characters means that only messages with a length of 25 characters or more are considered to conform to the standard message format. If a message is shorter than 25 characters or longer than 25 characters, it indicates that the smart device sending the second message is not under the jurisdiction of the business system or is maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is denied, ensuring the data security of the business system.

[0078] The format rules include defining the content at the end of the message. For example, defining the message ending as 0809:0008 means that the content of the second message must be ××××××:0809:0008 to be considered compliant with the standard message format. If the message does not end with 0809:0008, it indicates that the smart device sending the second message is not under the jurisdiction of the business system or is a device maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is denied to ensure the data security of the business system.

[0079] The encoding module is an encoding conversion tool used to convert messages into text. The encoding conversion tool (utf-8 / utf-32 / Punycode / Base64) is a very comprehensive encoding conversion tool that can perform conversion and decoding operations for encodings such as utf-8, utf-32, Punycode, Base64, and Quoted-printable.

[0080] S103: If it is determined that the Euclidean distance between the device location information and the installation location information is not higher than the preset distance threshold, then the identity information of the smart device is generated based on the device location information, and the identity information is entered into the preset device database to bind the smart device to the business system.

[0081] In this example, the installation location information is obtained by parsing the first message, and the device location information is obtained by parsing the second message. By judging whether the Euclidean distance between the device location information and the personnel location information is higher than a preset distance threshold (e.g., 20m), it is determined that the smart device represented by the installation location information sent by the installer is the same smart device as the smart device represented by the device location information sent by the smart device. This realizes the installation confirmation and location confirmation of the smart device, ensuring that each smart device can be correctly installed by the installer.

[0082] The system generates identity information for smart devices based on their location information and records this information into a pre-built device database. This information is then used to bind the smart devices to the business system. This approach achieves the technical effect of using the identity information representing the coordinate location of the smart device as its unique identifier. It avoids the current situation where the business system cannot identify smart devices with unique information due to inconsistencies between the external and internal device serial numbers, leading to chaotic smart device management. It also avoids the need for a large amount of manpower to verify the external and internal device serial numbers of smart devices to unify the unique identifier of the smart devices in order to achieve normal communication with them.

[0083] Meanwhile, by generating identity information based on device location information, when a smart device detects an anomaly, its location can be quickly obtained based on the device's identity information. This allows maintenance personnel to quickly investigate and resolve anomalies, improving the efficiency of anomaly investigation and resolution for smart devices and the entire smart device detection area, reducing the complexity of smart device management, and avoiding excessive investment in human resources.

[0084] S104: If it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold, then send a location anomaly information to the smart device or handheld device.

[0085] In this example, although the smart device can communicate with the business system, if the smart device is not installed correctly by the installer or if the installer does not confirm that the installation is qualified, the smart device will be unable to accurately and reliably detect its detection area.

[0086] Therefore, by sending location anomaly information to smart devices or handheld devices to inform installers that there is a significant difference between the coordinate location information they input and the coordinate location information analyzed by the device, the installers are reminded whether the smart device they confirmed to install is the same smart device corresponding to the second message received by the business system. This ensures that each smart device is installed correctly, and in turn, ensures that each smart device can perform accurate and reliable detection in its assigned detection area.

[0087] Example 2:

[0088] Please see Figure 3 This application provides a smart device binding method, which runs in a business system, including:

[0089] S201: Receive the first message sent by the handheld device, parse the first message to obtain the installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device.

[0090] This step is the same as S101 in Example 1, so it will not be described again here.

[0091] S202: Receive the second message sent by the smart device, and parse the second message to obtain the device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the smart device through the geographic information system.

[0092] This step is the same as S102 in Example 1, so it will not be described again here.

[0093] S203: If it is determined that the Euclidean distance between the device location information and the installation location information is not higher than the preset distance threshold, then the identity information of the smart device is generated based on the device location information, and the identity information is entered into the preset device database to bind the smart device to the business system.

[0094] This step is the same as S103 in Example 1, so it will not be described again here.

[0095] S204: If it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold, then send a location anomaly information to the smart device or handheld device.

[0096] This step is the same as S104 in Example 1, so it will not be described again here.

[0097] S205: If a third message is received from a smart device or handheld device, the identity information is set as the target identity information; wherein, the third message is used to represent the request information entered by the installer in the smart device or handheld device for inserting installation remarks information into the device database;

[0098] S206: If it is confirmed that a fourth message sent by a smart device corresponding to the target identity information has been received, then signal normal information is inserted into the target identity information; wherein, the signal normal information is the installation remarks information of the target identity information; the fourth message information is the coordinate location information of the smart device generated by the smart device based on the third message and through the geographic information system.

[0099] S207: If it is confirmed that no fourth message has been received from the smart device corresponding to the target identity information, then insert signal abnormality information into the target identity information; wherein, the signal abnormality information is the installation remarks information of the target identity information.

[0100] In this example, if the smart device needs to be installed in a location with poor signal (e.g., a cellar), the installer first sends a first message in an area with strong signal near the poor signal location (e.g., an outdoor area near the cellar) using the smart device or a handheld device. Then, the smart device sends a second message. The first message is parsed to obtain the installation location information, and the second message is parsed to obtain the device location information. Based on the device location information, the smart device's identity information is generated and entered into a pre-set device database. This is used to bind the smart device to the business system, achieving the technical effect of binding the smart device to the business system outdoors.

[0101] When the installer completes the installation of the smart device in a location with poor signal, the smart device sends a fourth message to the business system.

[0102] If the business system can receive the fourth message, it means that the smart device can communicate and interact with the business system in a location with poor signal. Therefore, inserting normal signal information into the target identity information indicates that the smart device only needs to send its subsequent operation information to the business system.

[0103] If the business system does not receive the fourth message, it means that the smart device cannot communicate and interact normally with the business system in a location with poor signal. Therefore, signal abnormality information is inserted into the target identity information to remind the installer to change the installation location of the smart device, or to remind the maintenance personnel to increase the inspection of locations with poor signal, thus expanding the installation range of the smart device.

[0104] In a preferred embodiment, after inserting normal signal information into the target identity information, the method further includes:

[0105] The device verification location information is obtained by parsing the fourth message and then inserted into the target identity information; the device verification location information is the installation remarks information of the target identity information.

[0106] In this example, since locations with poor signal are usually quite hidden, the device verification location information is inserted into the target identity information to determine the specific location of the smart device, so that maintenance personnel can quickly and accurately locate the smart device in the area with poor signal.

[0107] Optionally, the fourth message is parsed to obtain the device verification location information, including:

[0108] The fourth message is compared with the preset standard message format; the standard message format is preset in the business system and is used to define the format rules information of the fourth message format.

[0109] If it is determined that the message format of the fourth message conforms to the standard message format, the preset encoding module is called to parse the fourth message, so that the fourth message is converted from message format to text format;

[0110] The characters and / or text representing location information in the fourth message in text format are used as the device to verify the location information.

[0111] In this example, since the smart device and the business system are connected via circuit, communication bus, or wireless connection, the data format of the fourth message is usually a message format, such as TCP format, UDP format, IP format, IPv6 format, IPSec format, binary format, decimal format, etc.

[0112] The standard message format is a pre-defined format rule in the business system. This rule includes defining the message's character length; for example, defining a message as having a fixed length of 25 characters means that only messages with a length of 25 characters or more are considered to conform to the standard message format. If a message is shorter than 25 characters or longer than 25 characters, it indicates that the smart device sending the message is not under the jurisdiction of the business system or is maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is denied, ensuring the data security of the business system.

[0113] The format rules include defining the content at the end of the message. For example, defining the message end as 0809:0008 means that the content of the fourth message is ××××××:0809:0008, which is considered to conform to the standard message format. If the message does not end with 0809:0008, it indicates that the smart device sending the fourth message is not under the jurisdiction of the business system or is a device maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is refused to ensure the data security of the business system.

[0114] The encoding module is an encoding conversion tool used to convert messages into text. The encoding conversion tool (utf-8 / utf-32 / Punycode / Base64) is a very comprehensive encoding conversion tool that can perform conversion and decoding operations for encodings such as utf-8, utf-32, Punycode, Base64, and Quoted-printable.

[0115] Example 3:

[0116] Please see Figure 4 This application provides a smart device binding method, which runs in a business system, including:

[0117] S301: Receive the first message sent by the handheld device, parse the first message to obtain the installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device.

[0118] This step is the same as S101 in Example 1, so it will not be described again here.

[0119] S302: Receive the second message sent by the smart device, and parse the second message to obtain the device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the smart device through the geographic information system.

[0120] This step is the same as S102 in Example 1, so it will not be described again here.

[0121] S303: If it is determined that the Euclidean distance between the device location information and the installation location information is not higher than the preset distance threshold, then the identity information of the smart device is generated based on the device location information, and the identity information is entered into the preset device database to bind the smart device to the business system.

[0122] This step is the same as S103 in Example 1, so it will not be described again here.

[0123] S304: If it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold, then send a location anomaly information to the smart device or handheld device.

[0124] This step is the same as S104 in Example 1, so it will not be described again here.

[0125] S305: Receive the fifth message sent by the smart device, parse the fifth message to obtain the operation information, enter the operation information into the device database, and match it with the identity information of the smart device that sent the fifth message; wherein, the fifth message is used to characterize the environmental conditions of the target area detected by the smart device and the operation status of the smart device.

[0126] In this example, the intelligent device is a combustible gas detector for enclosed spaces, which is a detector that responds to the concentration of one or more combustible gases. The combustible gas detector for enclosed spaces of this application can also communicate with business systems and with geographic information systems. The combustible gas detector for enclosed spaces can obtain its current coordinate location information by calling the geographic information system.

[0127] The environmental conditions include the results of the combustible gas detector in the enclosed space measuring the gas concentration in the detection area, as well as alarm information on the water immersion status of smart devices in the detection area.

[0128] Environmental conditions also include remote sensing data of the detection area by the combustible gas detector in the enclosed space. The remote sensing data is real-time data received by the remote sensing terminal through the sensor, including: surface water, evaporation, temperature, wind speed, etc.

[0129] Operating status includes information such as the operating voltage and signal strength of smart devices.

[0130] Optionally, the fifth message can be parsed to obtain operational information, including:

[0131] The fifth message is compared with the preset standard message format; the standard message format is preset in the business system and is used to define the format rules information of the fifth message format.

[0132] If it is determined that the message format of the fifth message conforms to the standard message format, the preset encoding module is called to parse the fifth message, so that the fifth message is converted from message format to text format;

[0133] The characters and / or text representing environmental and operational status in the fifth message in text format are used as operational information.

[0134] In this example, since the smart device and the business system are connected via circuit, communication bus, or wireless connection, the data format of the fifth message is usually a message format, such as TCP format, UDP format, IP format, IPv6 format, IPSec format, binary format, decimal format, etc.

[0135] The standard message format is a pre-defined format rule in the business system. This rule includes defining the message's character length; for example, defining a message as having a fixed length of 25 characters means that only messages with a length of 25 characters or more are considered to conform to the standard message format. If a message is shorter than 25 characters or longer than 25 characters, it indicates that the smart device sending the message is not under the jurisdiction of the business system or is maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is denied, ensuring the data security of the business system.

[0136] The format rules include defining the content at the end of the message. For example, defining the message end as 0809:0008 means that the content of the fifth message is ××××××:0809:0008, which is considered to conform to the standard message format. If the message does not end with 0809:0008, it indicates that the smart device sending the fifth message is not under the jurisdiction of the business system or is a device maliciously connecting to the business system. Therefore, the connection of the smart device to the business system is refused to ensure the data security of the business system.

[0137] The encoding module is an encoding conversion tool used to convert messages into text. The encoding conversion tool (utf-8 / utf-32 / Punycode / Base64) is a very comprehensive encoding conversion tool that can perform conversion and decoding operations for encodings such as utf-8, utf-32, Punycode, Base64, and Quoted-printable.

[0138] Example 4:

[0139] Please see Figure 5 This application provides a smart device binding device 1, installed in a business system, comprising:

[0140] The installation parsing module 11 is used to receive a first message sent by a handheld device and parse the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device;

[0141] The device parsing module 12 is used to receive the second message sent by the smart device and parse the second message to obtain the device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the geographic information system.

[0142] The device binding module 13 is used to generate the identity information of the smart device based on the device location information if the Euclidean distance between the device location information and the installation location information is not higher than a preset distance threshold, and to record the identity information into a preset device database to bind the smart device to the business system.

[0143] Optionally, the smart device binding device 1 also includes:

[0144] The distance anomaly module 14 is used to send location anomaly information to the smart device or handheld device if it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold.

[0145] Optionally, the smart device binding device 1 also includes:

[0146] The installation remarks module 15 is used to set the identity information as the target identity information if a third message is received from a smart device or handheld device; wherein, the third message is used to represent the request information entered by the installer in the smart device or handheld device for inserting installation remarks information into the device database.

[0147] The normal note module 16 is used to insert normal signal information into the target identity information if it is confirmed that a fourth message sent by a smart device corresponding to the target identity information has been received; wherein, the normal signal information is the installation note information of the target identity information; the fourth message information is the coordinate location information of the smart device generated by the smart device based on the third message and through the geographic information system.

[0148] The anomaly note module 17 is used to insert signal anomaly information into the target identity information if it is confirmed that a fourth message sent by the smart device corresponding to the target identity information has not been received; wherein, the signal anomaly information is the installation anomaly information of the target identity information.

[0149] Optionally, the smart device binding device 1 also includes:

[0150] The operation detection module 18 is used to receive the fifth message sent by the smart device, parse the fifth message to obtain operation information, record the operation information into the device database, and correspond it with the identity information of the smart device that sent the fifth message; wherein, the fifth message is used to characterize the environmental conditions of the target area detected by the smart device and the operation status of the smart device.

[0151] Example 5:

[0152] To achieve the above objectives, this application also provides a computer device 8, including: a processor 82 and a memory 81 communicatively connected to the processor 82; the memory 81 stores computer execution instructions;

[0153] The processor executes computer execution instructions stored in memory 81 to implement the aforementioned smart device binding method. The components of the smart device binding device can be distributed across different computer devices. Computer device 8 can be a smartphone, tablet, laptop, desktop computer, rack server, blade server, tower server, or cabinet server (including standalone servers or server clusters composed of multiple application servers), etc. The computer devices in this embodiment include, but are not limited to, memory 81 and processor 82, which can be interconnected via a system bus. Figure 6 As shown. It should be noted that, Figure 6Only computer devices with components are shown; however, it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. In this embodiment, memory 81 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, memory 81 may be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. In other embodiments, memory 81 may also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Of course, memory 81 may also include both internal storage units and external storage devices of the computer device. In this embodiment, memory 81 is typically used to store the operating system and various application software installed on the computer device, such as the program code of the smart device binding device in Embodiment 3. In addition, the memory 81 can also be used to temporarily store various types of data that have been output or will be output. In some embodiments, the processor 82 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 82 is typically used to control the overall operation of the computer device. In this embodiment, the processor 82 is used to run program code stored in the memory 81 or process data, for example, to run a smart device binding device to implement the smart device binding method of the above embodiments.

[0154] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application. It should be understood that the processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The memory may include high-speed RAM, and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disk, etc.

[0155] To achieve the above objectives, this application also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., which stores computer-executable instructions, and the program implements the corresponding function when executed by processor 82. The computer-readable storage medium of this embodiment is used to store computer-executable instructions for implementing the smart device binding method, and when executed by processor 82, it implements the smart device binding method of the above embodiment.

[0156] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0157] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0158] This application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described smart device binding method.

[0159] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0160] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0161] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for binding a smart device, characterized in that, Running in business systems, including: The system receives a first message sent by a handheld device and parses the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of the smart device input by the installer in the smart device or handheld device. The system receives a second message sent by a smart device and parses the second message to obtain device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the smart device through a geographic information system. If it is determined that the Euclidean distance between the device location information and the installation location information is not higher than a preset distance threshold, then the identity information of the smart device is generated based on the device location information, and the identity information is entered into a preset device database to bind the smart device to the business system.

2. The smart device binding method according to claim 1, characterized in that, After obtaining the device location information by parsing the second message, the method further includes: If it is determined that the Euclidean distance between the device location information and the installation location information is higher than the distance threshold, then a location anomaly information is sent to the smart device or handheld device.

3. The smart device binding method according to claim 1, characterized in that, The process of parsing the first message to obtain the installation location information includes: The first message is compared with a preset standard message format; wherein the standard message format is preset in the business system and is used to define the format rules information of the first message format. If it is determined that the message format of the first message conforms to the standard message format, then the preset encoding module is called to parse the first message, so that the first message is converted from message format to text format; The characters and / or text representing location information in the first message in text format are used as the installation location information.

4. The smart device binding method according to claim 1, characterized in that, The process of parsing the second message to obtain device location information includes: The second message is compared with a preset standard message format; wherein the standard message format is preset in the business system and is used to define the format rules information of the second message format. If it is determined that the message format of the second message is consistent with the standard message format, then the preset encoding module is called to parse the second message, so that the second message is converted from message format to text format; The characters and / or text representing location information in the second message in text format are used as the device location information.

5. The smart device binding method according to any one of claims 1-4, characterized in that, After the identity information is entered into a preset device database, the method further includes: If a third message is received from the smart device or handheld device, the identity information is set as the target identity information; wherein, the third message is used to represent the request information entered by the installer in the smart device or handheld device for inserting installation remarks information into the device database; If it is confirmed that a fourth message sent by a smart device corresponding to the target identity information has been received, then signal normal information is inserted into the target identity information; wherein, the signal normal information is the installation remarks information of the target identity information; the fourth message information is the coordinate location information of the smart device generated by the smart device based on the third message and through a geographic information system. If it is confirmed that no fourth message has been received from the smart device corresponding to the target identity information, then signal abnormality information is inserted into the target identity information; wherein, the signal abnormality information is the installation remarks information of the target identity information.

6. The smart device binding method according to claim 5, characterized in that, After inserting normal signal information into the target identity information, the method further includes: The device verification location information is obtained by parsing the fourth message, and then inserted into the target identity information; wherein, the device verification location information is the installation remarks information of the target identity information.

7. The smart device binding method according to any one of claims 1-4, characterized in that, After the identity information is entered into a preset device database, the method further includes: The system receives a fifth message sent by a smart device, parses the fifth message to obtain operating information, records the operating information into the device database, and associates it with the identity information of the smart device that sent the fifth message; wherein, the fifth message is used to characterize the smart device's detection of the environmental conditions of the target area and the operating status of the smart device.

8. A smart device binding device, characterized in that, Installed in the business system, including: The installation parsing module is used to receive a first message sent by a handheld device and parse the first message to obtain installation location information; wherein, the first message is used to represent the coordinate location information of the smart device entered by the installer in the smart device or handheld device; The device parsing module is used to receive a second message sent by the smart device and parse the second message to obtain device location information; wherein, the second message is used to represent the coordinate location information of the smart device generated by the geographic information system. The device binding module is used to generate the identity information of the smart device based on the device location information if it is determined that the Euclidean distance between the device location information and the installation location information is not higher than a preset distance threshold, and to record the identity information into a preset device database to bind the smart device to the business system.

9. A computer device, characterized in that, include: A processor and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the smart device binding method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the smart device binding method as described in any one of claims 1 to 7.