A communication method of an internet of things, an internet of things system and a storage medium
By using an IoT system to determine the electronic fence and location of a device, a key is generated to unlock the device, which solves the problem of multiple communications between end users and manufacturers, improves device unlocking efficiency, and reduces manpower consumption.
Patent Information
- Application Number
- CN202311850783.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2043-12-29
AI Technical Summary
In existing IoT technologies, end users often find it difficult to unlock devices themselves in equipment rental scenarios, requiring multiple communications with the manufacturer, resulting in low unlocking efficiency.
The system receives device verification information from the user terminal through the Internet of Things (IoT) system, determines whether the device's electronic fence exists, and judges whether the device is within the fence range when the IoT system is online. If the conditions are met, a key is generated and the user terminal is controlled to unlock the device.
This reduced the frequency of communication with manufacturers, improved the efficiency of equipment unlocking, reduced the consumption of human resources, and ensured the price stability of the equipment.
Smart Images

Figure CN117750307B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and more particularly to an IoT communication method, IoT system, and storage medium. Background Technology
[0002] The Internet of Things (IoT) is a network that enables all independently addressable devices to interconnect, based on information carriers such as the internet and telecommunications networks. Currently, in industrial sectors such as air compressors and construction machinery, there are many scenarios where manufacturers (distributors) lease equipment to users. After the equipment is leased, it needs to be unlocked, such as through power-on unlocking or login unlocking. IoT technology is commonly used to unlock leased equipment.
[0003] In the process of unlocking leased devices using IoT technology, end users often find it difficult to unlock the devices themselves. Instead, they need to provide a randomly generated code on the device. The manufacturer then uses the authorization code associated with the end user and the random code to generate an unlock password, and finally contacts the end user to provide the unlock password, thus unlocking the device.
[0004] It is evident that unlocking leased devices using existing IoT technology requires multiple communications between the user and the manufacturer, reducing the efficiency of unlocking the devices. Summary of the Invention
[0005] This application provides a communication method, an IoT system, and a storage medium for the Internet of Things (IoT), which can effectively reduce the frequency of communication with manufacturers to unlock devices and improve device unlocking efficiency.
[0006] This application provides a communication method for the Internet of Things (IoT), applied to an IoT system, including:
[0007] Receive device verification information sent by the user terminal, wherein the device is connected to the Internet of Things system;
[0008] Determine whether the electronic fence of the device exists based on the verification information of the device;
[0009] If the electronic fence exists, then based on the online status of the device in the Internet of Things system, it is determined whether the moved device is within the fence range of the electronic fence;
[0010] If the electronic fence does not exist or is located within the electronic fence area, the user terminal is controlled to generate a key based on the device's verification information, and the key is used to unlock the moved device.
[0011] Furthermore, the verification information of the device includes the random code, authorization code and module code of the IoT module corresponding to the device, and the device is connected to the IoT system based on the IoT module;
[0012] After receiving the device verification information sent by the user terminal, the method further includes:
[0013] The random code, authorization code, and module code of the IoT module corresponding to the device are verified respectively;
[0014] If the verification passes, then proceed with the step of determining whether the electronic fence of the device exists based on the verification information of the device;
[0015] If the verification fails, the user terminal will not generate a key.
[0016] Furthermore, determining whether the electronic fence of the device exists based on the verification information of the device includes:
[0017] Obtain fence information of an electronic fence based on a preset device configuration, wherein the fence information includes verification information of the preset device;
[0018] Based on the verification information of the device and the verification information of the preset device, it is determined whether the electronic fence of the device exists.
[0019] Furthermore, determining whether the moved device is within the fenced area of the electronic fence based on the device's online status in the Internet of Things system includes:
[0020] The online status of the device is determined based on the online status of the IoT module, and the device is connected to the IoT system based on the IoT module;
[0021] If the device is online, the first location information of the moved device is obtained based on the IoT module, and the device is determined to be within the fence range of the electronic fence based on the first location information.
[0022] If the device's online status is offline, then the second location information of the moved device is obtained from the user terminal, and the second location information is used to determine whether the moved device is within the fence range of the electronic fence.
[0023] Furthermore, determining whether the moved device is within the fenced area of the electronic fence based on the first positioning information includes:
[0024] The location information of the device is obtained based on the IoT module, and the fence range of the electronic fence is determined based on the location information of the device and the fence radius of the electronic fence.
[0025] Based on the first positioning information, determine the latitude and longitude information of the moved device;
[0026] Determine whether the distance between the device's location information and the latitude and longitude information is greater than the radius of the electronic fence;
[0027] If the value is greater than the value, the moved device is determined to be outside the fence range of the electronic fence; if the value is less than or equal to the value, the moved device is determined to be within the fence range of the electronic fence.
[0028] Furthermore, the verification information of the device includes: the authorization code and the random code corresponding to the device;
[0029] The step of controlling the user terminal to generate a key based on the device's verification information, and using the key to unlock the moved device, includes:
[0030] A key generation command is sent to the user terminal, controlling the user terminal to retrieve the authorization code and random code corresponding to the device based on a preset data retrieval algorithm, generate a first key, and transmit the first key to the moved device; so that the moved device can verify the first key based on the second key generated by the preset data retrieval algorithm, and unlock the device based on the verification result.
[0031] This application also provides a communication method for the Internet of Things (IoT), applied to a user terminal, including:
[0032] Based on the device verification link on the device, obtain the verification information of the device;
[0033] After verifying the verification information of the device, the verification information of the device is sent to the Internet of Things (IoT) system so that the IoT system executes the above-described communication method;
[0034] If it is determined that the electronic fence of the device does not exist or the moved device is within the fence range of the electronic fence, a key is generated based on the verification information of the device, and the key is used to unlock the moved device.
[0035] This application also provides an Internet of Things (IoT) system, including:
[0036] A receiving unit is used to receive device verification information sent by a user terminal, wherein the device is connected to the Internet of Things system;
[0037] The first determining unit is configured to determine whether the electronic fence of the device exists based on the verification information of the device.
[0038] The second determining unit is used to determine, when the first determining unit determines that the electronic fence exists, whether the moved device is within the fence range of the electronic fence based on the online status of the device in the Internet of Things system.
[0039] The control unit is configured to, when the first determining unit determines that the electronic fence does not exist, or the second determining unit determines that the moved device is within the range of the electronic fence, control the user terminal to generate a key based on the device's verification information, so as to use the key to unlock the moved device.
[0040] This application also provides an Internet of Things (IoT) system, including:
[0041] Central processing unit, memory, input / output interface, wired or wireless network interface, power supply;
[0042] The memory is either a short-term storage memory or a persistent storage memory;
[0043] The central processing unit is configured to communicate with the memory and execute instructions in the memory on a control plane functional entity to perform the methods described above.
[0044] This application also provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method described above.
[0045] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0046] In this embodiment, the IoT system receives device verification information sent by the user terminal; based on the device verification information, it determines whether an electronic fence exists for the device; if an electronic fence exists, it determines whether the moved device is within the fence's range based on the device's online status in the IoT system; if the electronic fence does not exist or the device is within the electronic fence's range, it controls the user terminal to generate a key based on the device verification information, and uses the key to unlock the moved device. That is, the user can send device verification information to the IoT system through the user terminal, allowing the IoT system to control the user terminal to generate a key based on the device verification information. The user can conveniently obtain the key using the user terminal, effectively reducing the frequency of communication with the manufacturer for device unlocking and improving device unlocking efficiency. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0048] Figure 1 A communication flowchart for an Internet of Things (IoT) provided as an embodiment of this application;
[0049] Figure 2 A communication interaction flowchart for an Internet of Things (IoT) provided as an embodiment of this application;
[0050] Figure 3 A connection diagram of an Internet of Things (IoT) module provided in an embodiment of this application;
[0051] Figure 4 A schematic diagram illustrating a client-side key generation method provided in an embodiment of this application;
[0052] Figure 5 A schematic diagram of an Internet of Things (IoT) system provided in an embodiment of this application;
[0053] Figure 6 This is a schematic diagram of another Internet of Things (IoT) system provided as an embodiment of this application. Detailed Implementation
[0054] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0055] In the description of the embodiments of this application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing the embodiments of this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.
[0056] In the description of the embodiments of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of this application based on the specific circumstances.
[0057] In the process of unlocking leased devices using IoT technology, end users often find it difficult to unlock the devices themselves. They must first provide a randomly generated code on the device. The manufacturer then uses an authorization code associated with the end user and the random code to generate an unlock password, and finally contacts the end user to provide the unlock password, thus unlocking the device. It is evident that existing IoT technology for unlocking leased devices requires multiple communications between the user and the manufacturer, reducing unlocking efficiency. Therefore, this application provides an IoT communication method that effectively reduces the frequency of communication with the manufacturer for device unlocking, improving unlocking efficiency. This IoT communication method is applied to IoT systems, such as... Figure 1 As shown, the specific steps include the following:
[0058] 101. Receive device verification information sent by the user terminal.
[0059] In this embodiment, the IoT system can receive device verification information sent by a user terminal. The device is connected to the IoT system and transmits data through it. The device can be a lockable electronic product such as an air compressor, frequency converter, or PLC; specific details are not limited here. The verification information is used to verify the device's identity and can be a random code or authorization code, etc., without further limitation. The user terminal is connected to the IoT system; the user terminal can be understood as the front end, and the IoT system as the corresponding back end. The user terminal can be an electronic device such as a mobile phone, tablet, or electronic display screen equipped with key generation software, when the device is leased to a user. As the number of leased devices increases, manufacturers need to invest more manpower to provide unlocking passwords for end users. However, in this embodiment, the user can use a key generation APP on the user terminal to obtain the device's verification information, send the verification information to the IoT system, and the IoT system controls the user terminal to generate a key. The user can then use the key to unlock the device, effectively reducing the consumption of human resources.
[0060] 102. Determine whether the electronic fence of the device exists based on the device's verification information. If yes, proceed to step 103; otherwise, proceed to step 104.
[0061] Understandably, during the equipment leasing process, when the equipment's movement range is too large, it is easy for cross-regional leasing to occur, leading to equipment being sold outside the designated area and affecting the stability of equipment prices. The key generation process can be controlled by using electronic fences. When the equipment is outside the electronic fence, the key can be prevented from being generated, thus preventing the equipment from being leased outside the designated area. By using electronic fences, the movement range of the equipment is prevented from being too large, preventing equipment from being sold outside the designated area and ensuring the stability of equipment prices.
[0062] Specifically, the IoT system can determine whether a device has an electronic fence based on the device's verification information. The electronic fence can be understood as an area enclosed by the device on a map. Users can configure corresponding electronic fences for preset devices. The electronic fence contains the verification information of the preset devices being managed, the location information of the electronic fence, and the fence radius. The verification information of the device can be used to determine whether the device has been pre-configured with an electronic fence.
[0063] 103. Based on the online status of the device in the Internet of Things system, determine whether the moved device is within the fence range of the electronic fence; if yes, proceed to step 104; if no, control the user terminal not to generate a key.
[0064] It is understandable that after configuring the electronic fence for the device, the device may be moved during the rental process. At this time, if the electronic fence for the device exists, it can be determined whether the moved device is within the fence range of the electronic fence based on the online status of the device in the Internet of Things system.
[0065] The online status of a device in an IoT system includes whether the device is online or offline (i.e., the device is offline). When the device is online, the IoT system can obtain the location information of the moved device through the network connection, and determine whether the moved device is within the fence range of the electronic fence based on the location information. When the device is offline, the IoT system needs to obtain the location information of the moved device through the user terminal. That is, when the user uses the user terminal to obtain the device's verification information, the user terminal will upload its own location information to the IoT system. At this time, the IoT system can use the user terminal's own location information as the device's location information to determine whether the moved device is within the fence range of the electronic fence.
[0066] 104. Control the user terminal to generate a key based on the device's verification information.
[0067] If the device's electronic fence is absent or the moved device is within the fenced area, the IoT system controls the user terminal to generate a key based on the device's authentication information, which is then used to unlock the device. The process of generating the key on the user terminal can involve retrieving data from the device's authentication information and merging the retrieved data to obtain the key.
[0068] In this embodiment, the IoT system receives device verification information sent by the user terminal; based on the device verification information, it determines whether an electronic fence exists for the device; if an electronic fence exists, it determines whether the moved device is within the fence's range based on the device's online status in the IoT system; if the electronic fence does not exist or the device is within the electronic fence's range, it controls the user terminal to generate a key based on the device verification information, and uses the key to unlock the moved device. That is, the user can send device verification information to the IoT system through the user terminal, allowing the IoT system to control the user terminal to generate a key based on the device verification information. The user can conveniently obtain the key using the user terminal, effectively reducing the frequency of communication with the manufacturer for device unlocking and improving device unlocking efficiency.
[0069] In one feasible approach, after the manufacturer's equipment is leased, the user needs to be able to freely start the equipment during the lease period, and the user must be able to actively pay off the installment fees for the equipment during the lease period. In the IoT communication method of this application embodiment, the user can generate a key through the user terminal and input the generated key into the device to control the unlocking of the device; this greatly reduces the frequency of communicating with the manufacturer to unlock the device and improves work efficiency.
[0070] Furthermore, the communication process of the Internet of Things (IoT) will be described in detail below through the interaction process on the IoT, such as... Figure 2 As shown, the specific steps include the following:
[0071] 201. The user terminal obtains the device verification information based on the device verification link on the device.
[0072] In this embodiment, the user terminal can obtain the device's verification information based on the device verification link on the device. This device verification link can be a QR code, barcode, or URL, etc., and is not specifically limited here. After the device is powered on, the user can use the user terminal to scan the device verification link displayed on the device screen to identify the device's verification information. The device verification information includes: a random code corresponding to the device, an authorization code, and a module code for the IoT module. The random code can be a four-digit number randomly generated by the device; the authorization code is a four-digit number embedded by the manufacturer according to different users when the device is manufactured; and the module code is a unique identifier for the IoT module, such as "F861600001," which is also embedded in the device. The three verification pieces are not related; the device generates a corresponding verification link using the three verification pieces separated by a colon.
[0073] The IoT module can be understood as a communication adapter, and its module code can be understood as the adapter's code. Devices connect to the IoT system based on the IoT module. To enable devices to communicate and interact through the IoT system, corresponding IoT modules can be configured on the devices. One IoT module can connect to one or more devices; the specifics are not limited here. Figure 3 As shown, this IoT module is used to collect device parameter information in real time. This parameter information includes the device's location information, voltage, current, and other parameters, which are not specifically limited here. The device address (e.g., a Modbus address) can be obtained in advance. In the IoT module's device management platform, the IoT module is added, and the device address is added to the IoT module's parameters, enabling the device corresponding to that address to communicate through the corresponding IoT module.
[0074] Understandably, IoT modules can collect device parameter information via RS485 or Ethernet interfaces, and then send this information to the IoT cloud platform via GPRS or Wi-Fi communication modules. The IoT business system can subscribe to data from the IoT cloud platform using MQTT and can process and display the data on the corresponding front-end page of the IoT system. The IoT system can remotely control the devices, sending triggered commands to the corresponding devices via GPRS communication modules, which then execute the commands through a program. In one feasible approach, IoT modules facilitate convenient management of leased equipment. This means remotely monitoring equipment operation, maintenance, and fault data, and remotely sending parameters to the equipment to understand its status, while reducing the frequency and cost of business trips.
[0075] Furthermore, after obtaining the device's verification information, the user needs to verify its accuracy. This can be done by splitting the string to obtain a string array and checking whether the random code and authorization code within the string array are four-digit numbers to confirm the accuracy of the device's verification information. Once the user's verification is successful, the device's verification information can be sent to the IoT system, which will then call the corresponding backend key generation interface of the IoT system.
[0076] 202. The Internet of Things (IoT) system receives device verification information sent by the user terminal.
[0077] 203. Verification information of IoT system verification equipment.
[0078] After receiving the device verification information sent by the user terminal, the IoT system can perform a second verification to prevent data errors during transmission. Specifically, the system can verify the device's corresponding random code, authorization code, and IoT module code. This can be achieved by segmenting the device verification information using string splitting methods and determining if a string array of length 3 is generated. Next, it checks if the random code and authorization code are pure numbers of length 4 and queries the IoT system's database to determine if the user has permission to access the module code. The verification is then based on the results of these three checks. Preferably, if all three checks are true, the verification passes, and the system proceeds to determine if the device's electronic fence exists based on the verification information. If any one of the three checks fails, the system prevents the user terminal from generating a key and returns a verification error message to the user terminal, ensuring the accuracy of the IoT system's backend interface data.
[0079] 204. The Internet of Things (IoT) system determines whether a device's electronic fence exists based on the device's verification information.
[0080] After the IoT system verification is successful, the existence of a geofence for the device can be determined based on the device's verification information. Specifically, the geofence information based on the preset device configuration can be obtained. This geofence information includes: the preset device's verification information; and the existence of the geofence is determined based on this verification information. The device's verification information can be the module code (adapter code) of the IoT module. This means that users can pre-configure a corresponding geofence for a preset device within the IoT system's geofence module. The geofence information can include the module code of the corresponding IoT module, the device's location information (which can be uploaded to the IoT cloud platform via the IoT module), and the geofence radius. This geofence information is correlated and stored in the IoT system's database. Different preset devices may have different location information, and the set geofence radii may also differ.
[0081] The device's verification information can be compared with the verification information of a preset device. If they match, it is determined that the device is configured with an electronic fence, meaning that the device's electronic fence exists. If they do not match, it is determined that the device is not configured with an electronic fence, meaning that the device's electronic fence does not exist.
[0082] 205. The Internet of Things (IoT) system determines the online status of devices based on the online status of IoT modules.
[0083] If the device's geofence exists, the device's online status needs to be further determined based on the IoT module's online status. Understandably, the parameter information uploaded by the IoT module to the IoT cloud platform also includes the IoT module's module code. The IoT system can subscribe to this parameter information via MQTT to obtain the IoT module's online / offline status. If the module code is present in the parameter information, the corresponding IoT module is determined to be online, i.e., the corresponding device is online; if the module code is not present in the parameter information, the corresponding IoT module is determined to be offline, i.e., the corresponding device is offline.
[0084] 206. If the device is online, the IoT system will collect the first location information of the device after it has been moved based on the IoT module.
[0085] If the device is online, the IoT system can collect the device's initial location information after it has been moved based on the IoT module. This means the device's corresponding IoT module is online. During the rental process, the device may move, and the IoT module can collect the device's initial location information after the move. This initial location information can be in the format "GBASE":"460,00,8F0E8C3,3056". The IoT module uploads this initial location information to the IoT cloud platform, and the IoT system obtains the device's initial location information after the move by subscribing.
[0086] 207. The Internet of Things system determines whether the moved device is within the fenced area of the electronic fence based on the first location information.
[0087] After obtaining the initial location information, the IoT module can determine whether the moved device is within the fence range of the electronic fence. The fence range is determined based on the device's location information before movement and the fence radius. When an electronic fence exists, the IoT module can collect the device's location information before movement, which can be used as the fence center. The fence radius is then used to further determine the electronic fence's range on the map.
[0088] The IoT system can determine the latitude and longitude information of the moved device based on the initial location information. Specifically, the IoT system can call a map operator's interface to convert the initial location information into latitude and longitude. Then, it determines whether the distance between the device's location information and the latitude and longitude information is greater than the radius of the electronic fence. The device's location information is then the location information set by the electronic fence. Specifically, this can be achieved using the distance formula:
[0089]
[0090] Determine the distance S between the location information of the electronic fence and the latitude and longitude information of the moved device, where lng1lat1 represents the latitude and longitude of the electronic fence location information, lng2lat2 represents the latitude and longitude of the moved device; a = lat1 - lat2 is the difference in latitude between the two points, b = lng1 - lng2 is the difference in longitude between the two points, and 6378.137 is the radius of the Earth's equator, in kilometers.
[0091] If the distance between the device's location information and the latitude and longitude information of the moved device is greater than the radius of the electronic fence, then the moved device is determined to be outside the electronic fence's range; if it is less than or equal to the radius, then the moved device is determined to be within the electronic fence's range.
[0092] 208. If the device is offline, the IoT system obtains the second location information of the device after it has been moved based on the user terminal.
[0093] If the device is offline, meaning the corresponding IoT module is offline, the IoT system can obtain the second location information of the moved device based on the user terminal. It can be understood that after the device is moved, when the user obtains the device's verification information through the user terminal, the user terminal's location information will be uploaded to the IoT system, and this user terminal's location information is the second location information of the moved device.
[0094] 209. The Internet of Things system determines whether the moved device is within the fenced area of the electronic fence based on the second location information.
[0095] It is understandable that step 209 is similar to step 207 above, and the specifics will not be repeated here.
[0096] 210. If the electronic fence of the device does not exist or the moved device is within the fence range of the electronic fence, the Internet of Things system will send the key generation instruction to the user terminal.
[0097] If the device's electronic fence does not exist, or if the moved device is within the fence's perimeter, the IoT system sends a key generation command to the user terminal, controlling the user terminal to generate a key. If the device is outside the fence's perimeter, the IoT system can send a key generation error command to the user terminal, controlling the user terminal not to generate a key. Figure 4As shown, the user terminal (APP) can scan the QR code on the device (touchscreen) to send the device's verification information to the IoT system (backend). If the IoT system fails the verification, it returns a false command to the user terminal, and the user terminal does not generate a key. If the IoT system verifies successfully, it determines whether the device's electronic fence exists. If the electronic fence does not exist, it returns a true command to the user terminal, and the user terminal generates a key. If the electronic fence exists, it determines whether the moved device is within the fence's range. If it is within the fence range, it returns a true command to the user terminal; otherwise, it returns a false command. After receiving a key generation error command, the user terminal can display the reason for the failure to the user, such as verification failure or being outside the electronic fence range.
[0098] 211. The user terminal retrieves the device's verification information based on a preset data retrieval algorithm and generates the first key.
[0099] After receiving the key generation command, the user client can retrieve the device's verification information based on a preset data retrieval algorithm to generate the first key. The device's verification information includes the device's corresponding authorization code and random code. This preset data retrieval algorithm can be as follows: Take the first two digits of the authorization code, the first two digits of the random code, the last two digits of the authorization code, and the last two digits of the random code to generate an 8-digit CRC. Then, convert the 8-digit result into a decimal number. If the decimal number exceeds four digits, take the first four digits to obtain the first key. The first key is then displayed on the user client.
[0100] 212. The device verifies the first key with the second key generated based on the preset data retrieval algorithm in order to perform the unlocking operation.
[0101] After obtaining the first key through the client, the user can input it into the device. The device generates a second key based on a preset data retrieval algorithm, which verifies the first key to perform the unlocking operation. That is, the device can use the same data retrieval algorithm to obtain the second key, compare it with the first key, and unlock the device based on the comparison. If the first and second keys are the same, the key is considered correct, and the device unlocks. For example, if the key can be a power-on password, the user can enter the power-on password to power on the device. If the first and second keys are different, the device can display a key error message. In one feasible implementation, after obtaining the first and second keys, the result can be offset to further reduce the leakage of the key generation method and ensure the accuracy of controlling device unlocking.
[0102] This application also provides an Internet of Things (IoT) system, such as... Figure 5 As shown, it includes:
[0103] The receiving unit 501 is used to receive device verification information sent by the user terminal, wherein the device is connected to the Internet of Things system;
[0104] The first determining unit 502 is used to determine whether the electronic fence of the device exists based on the verification information of the device;
[0105] The second determining unit 503 is used to determine whether the moved device is within the fence range of the electronic fence based on the online status of the device in the Internet of Things system when the first determining unit 502 determines that the electronic fence exists.
[0106] The control unit 504 is configured to, when the first determining unit 502 determines that the electronic fence does not exist, or the second determining unit 503 determines that the moved device is within the range of the electronic fence, control the user terminal to generate a key based on the device's verification information, so as to use the key to unlock the moved device.
[0107] This application also provides an Internet of Things (IoT) system 600, such as... Figure 6 As shown, the Internet of Things system 600 of this application embodiment may include one or more central processing units (CPUs) 601 and memory 602, wherein the memory 602 stores one or more applications or data.
[0108] The memory 602 can be volatile or persistent storage. The program stored in the memory 602 can include one or more modules, each module including a series of instruction operations on the electronic device. Furthermore, the central processing unit 601 can be configured to communicate with the memory 602 and execute the series of instruction operations stored in the memory 602 on the Internet of Things system 600.
[0109] The Internet of Things system 600 may also include one or more power supplies 605, one or more wired or wireless network interfaces 604, one or more input / output interfaces 603, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0110] The central processing unit 601 can perform the operations performed by the first aspect or any specific method embodiment of the first aspect, which will not be described in detail here.
[0111] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A communication method for the Internet of Things (IoT), applied to an IoT system, characterized in that, include: Receive device verification information sent by the user terminal, wherein the device is connected to the Internet of Things system; Determine whether the electronic fence of the device exists based on the verification information of the device; If the electronic fence exists, then based on the online status of the device in the Internet of Things system, it is determined whether the moved device is within the fence range of the electronic fence; If the electronic fence does not exist or is located within the electronic fence area, the user terminal is controlled to generate a key based on the device's verification information, and the key is used to unlock the moved device. Determining whether the moved device is within the fence range of the electronic fence based on the device's online status in the Internet of Things system includes: The online status of the device is determined based on the online status of the IoT module, and the device is connected to the IoT system based on the IoT module; If the device is online, the first location information of the moved device is collected by the IoT module, and the device is determined to be within the fence range of the electronic fence based on the first location information. If the device's online status is offline, then the second location information of the moved device is obtained from the user terminal, and the second location information is used to determine whether the moved device is within the fence range of the electronic fence; the second location information is the user terminal's own location information when the user terminal obtains the device's verification information.
2. The communication method according to claim 1, characterized by, The verification information of the device includes the random code, authorization code and module code of the IoT module corresponding to the device, and the device is connected to the IoT system based on the IoT module; After receiving the device verification information sent by the user terminal, the method further includes: The random code, authorization code, and module code of the IoT module corresponding to the device are verified respectively; If the verification passes, then proceed with the step of determining whether the electronic fence of the device exists based on the verification information of the device; If the verification fails, the user terminal will not generate a key.
3. The communication method according to claim 1, wherein, Determining whether an electronic fence exists based on the device's verification information includes: Obtain fence information of an electronic fence based on a preset device configuration, wherein the fence information includes verification information of the preset device; Based on the verification information of the device and the verification information of the preset device, it is determined whether the electronic fence of the device exists.
4. The communication method according to claim 1, characterized by, The step of determining whether the moved device is within the fenced area of the electronic fence based on the first positioning information includes: The location information of the device is collected by the IoT module, and the range of the electronic fence is determined based on the location information of the device and the fence radius of the electronic fence. Based on the first positioning information, determine the latitude and longitude information of the moved device; Determine whether the distance between the device's location information and the latitude and longitude information is greater than the radius of the electronic fence; If the value is greater than the value, the moved device is determined to be outside the fence range of the electronic fence; if the value is less than or equal to the value, the moved device is determined to be within the fence range of the electronic fence.
5. The communication method according to claim 1, wherein, The verification information of the device includes: the authorization code and the random code corresponding to the device; The step of controlling the user terminal to generate a key based on the device's verification information, and using the key to unlock the moved device, includes: A key generation command is sent to the user terminal, controlling the user terminal to retrieve the authorization code and random code corresponding to the device based on a preset data retrieval algorithm, generate a first key, and transmit the first key to the moved device; so that the moved device can verify the first key based on the second key generated by the preset data retrieval algorithm, and unlock the device based on the verification result. 6.A communication method of an Internet of Things, applied to a user end, characterized in that, include: Based on the device verification link on the device, obtain the verification information of the device; After verifying the verification information of the device, the verification information of the device is sent to the Internet of Things system so that the Internet of Things system executes the communication method according to any one of claims 1 to 5. If it is determined that the electronic fence of the device does not exist or the moved device is within the fence range of the electronic fence, a key is generated based on the verification information of the device, and the key is used to unlock the moved device.
7. An Internet of Things (IoT) system, characterized in that, include: A receiving unit is used to receive device verification information sent by a user terminal, wherein the device is connected to the Internet of Things system; The first determining unit is configured to determine whether the electronic fence of the device exists based on the verification information of the device. The second determining unit is used to determine, when the first determining unit determines that the electronic fence exists, whether the moved device is within the fence range of the electronic fence based on the online status of the device in the Internet of Things system. The control unit is configured to, when the first determining unit determines that the electronic fence does not exist, or the second determining unit determines that the moved device is within the range of the electronic fence, control the user terminal to generate a key based on the device's verification information, so as to use the key to unlock the moved device; The second determining unit is specifically used to determine the online status of the device based on the online status of the IoT module, wherein the device is connected to the IoT system based on the IoT module; If the device's online status is "device online," then the first location information of the moved device is collected based on the IoT module, and the device's location within the electronic fence's perimeter is determined based on the first location information. If the device's online status is "device offline," then the second location information of the moved device is obtained by the user terminal, and the device's location within the electronic fence's perimeter is determined based on the second location information. The second location information is the user terminal's own location information when it obtains the device's verification information.
8. An Internet of Things (IoT) system, characterized in that, include: Central processing unit, memory, input / output interface, wired or wireless network interface, power supply; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory on a control plane functional entity to perform the method described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Equipment unlocking method and device based on electronic fence and electronic equipment
CN113362506A
Transaction security verification method and related device
CN114638616A