Gateway handover based remote control method and system for iot devices
By switching gateways and establishing communication links, the unreliability of remote control of sensing devices by external terminals in the Internet of Things is solved, and the direct control and data security are improved.
Patent Information
- Application Number
- CN202211643824.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2042-12-20
AI Technical Summary
In the Internet of Things (IoT), remote control of sensing devices by external terminals is complex and unreliable, and existing technologies cannot guarantee reliability and sustainability.
By using a gateway switching method, sensing devices that meet the preset remote control conditions are switched to the IoT remote connection gateway, and a communication link is established between the external terminal and the remote connection gateway. The system determines whether the operation of the external terminal is illegal in order to adjust the connection status between the gateway and the device.
It enables external terminals to directly control the sensing devices remotely, improving reliability and sustainability, avoiding the need for intermediaries such as the IoT's own control terminals, and enhancing data security.
Smart Images

Figure CN116800459B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of Internet of Things (IoT) management, and in particular to a method and system for remotely controlling IoT devices based on gateway switching. Background Technology
[0002] The Internet of Things (IoT) enables the identification and monitoring of target objects by having sensing devices connect to corresponding networks according to agreed protocols for information exchange. However, all sensing devices in the IoT are confined to their respective local area networks (LANs), and other terminals outside these LANs cannot directly control them. When external terminals need to utilize the sensing devices to perform tasks, they must request access from the IoT's own control terminal, which acts as an intermediary. This increases the complexity of remotely controlling the sensing devices from external terminals and the workload of the IoT's own monitoring terminals, compromising the reliability and sustainability of remote control. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention provides a method and system for remote control of IoT devices based on gateway switching. According to a remote control request from an external terminal, it selects a sensor device from the IoT that is desired for remote control and meets preset remote control conditions. The sensor device undergoes gateway switching to connect to the remote connection gateway of the IoT, and a communication link is established between the remote connection gateway and the external terminal. Based on the external terminal's operation logs, it determines whether the external terminal has performed illegal operations on the sensor device, adjusting the working state of the remote connection gateway and the connection status of the sensor device accordingly. The invention establishes a remote connection gateway within the IoT to allow internal sensor devices to connect to external terminals. The IoT can switch the corresponding sensor device to connect to the remote connection gateway according to the needs of the external terminal. This allows the external terminal to directly remotely control the sensor device without relying on the IoT's own control terminal as an intermediary, improving the reliability and sustainability of remote control of the sensor device by the external terminal.
[0004] This invention provides a method for remotely controlling IoT devices based on gateway switching, comprising the following steps:
[0005] Step S1: Based on the remote control request from the external terminal, determine the sensing device that the external terminal wants to remotely control from the Internet of Things; based on the current working status of the sensing device, determine whether the sensing device currently meets the preset remote control conditions.
[0006] Step S2: After backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions are switched to the remote connection gateway of the Internet of Things; and a communication link is established between the remote connection gateway and the external terminal.
[0007] Step S3: Based on the operation log of the external terminal, determine whether the external terminal has performed an illegal operation on the sensing device; based on the determination result of the illegal operation, adjust the working status of the remote connection gateway and the connection status of the sensing device.
[0008] Further, in step S1, based on the remote control request from the external terminal, the sensing device that the external terminal wishes to remotely control is determined from the Internet of Things, including:
[0009] The remote control request from the external terminal is parsed and processed to obtain the terminal identity information of the external terminal; the terminal identity information is compared with a preset whitelist; if the terminal identity information exists in the preset whitelist, it is determined that the external terminal has remote control authority over the sensing device; otherwise, it is determined that the external terminal does not have remote control authority over the sensing device.
[0010] When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
[0011] Further, in step S1, determining whether the sensing device currently meets the preset remote control conditions based on its current operating state includes:
[0012] Based on the device identity information, the sensor data generation frequency and sensor data accuracy corresponding to the sensor device are extracted from the IoT operation log;
[0013] If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
[0014] Further, in step S2, after backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions undergo gateway switching processing to switch the connection to the remote connection gateway of the Internet of Things; and a communication link is established between the remote connection gateway and the external terminal, including:
[0015] The sensor data formed within a preset time range is extracted from the sensor device that meets the preset remote control conditions, and after backing up the extracted sensor data, the backed-up sensor data is uploaded to the control terminal of the Internet of Things.
[0016] Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the connection to the remote connection gateway of the Internet of Things;
[0017] Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
[0018] Further, in step S3, based on the operation log of the external terminal, it is determined whether the external terminal has performed an illegal operation on the sensing device; based on the determination result of the illegal operation, the working state of the remote connection gateway and the connection state of the sensing device are adjusted, including:
[0019] Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal.
[0020] The operation records are analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
[0021] This invention also provides a remote control system for IoT devices based on gateway switching, comprising:
[0022] The sensor device finding module is used to determine, from the Internet of Things, the sensor device that the external terminal wants to remotely control based on a remote control request from the external terminal.
[0023] The sensor device screening module is used to determine whether the sensor device currently meets the preset remote control conditions based on the current working status of the sensor device.
[0024] The remote control execution module is used to back up the data of the sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things; and to establish a communication link between the remote connection gateway and the external terminal.
[0025] The remote control adjustment module is used to determine whether the external terminal has performed an illegal operation on the sensing device based on the operation log of the external terminal; and to adjust the working status of the remote connection gateway and the connection status of the sensing device based on the determination result of the illegal operation.
[0026] Furthermore, the sensor device finding module is used to determine, based on a remote control request from an external terminal, the sensor device that the external terminal wishes to remotely control from the Internet of Things, including:
[0027] The remote control request from the external terminal is parsed and processed to obtain the terminal identity information of the external terminal; the terminal identity information is compared with a preset whitelist; if the terminal identity information exists in the preset whitelist, it is determined that the external terminal has remote control authority over the sensing device; otherwise, it is determined that the external terminal does not have remote control authority over the sensing device.
[0028] When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
[0029] Furthermore, the sensor device screening module is used to determine whether the sensor device currently meets the preset remote control conditions based on the current working status of the sensor device, including:
[0030] Based on the device identity information, the sensor data generation frequency and sensor data accuracy corresponding to the sensor device are extracted from the IoT operation log;
[0031] If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
[0032] Furthermore, the remote control execution module is used to back up the data of sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things; and to establish a communication link between the remote connection gateway and the external terminal, including:
[0033] The sensor data formed within a preset time range is extracted from the sensor device that meets the preset remote control conditions, and after backing up the extracted sensor data, the backed-up sensor data is uploaded to the control terminal of the Internet of Things.
[0034] Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the connection to the remote connection gateway of the Internet of Things;
[0035] Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
[0036] Furthermore, the remote control adjustment module is used to determine, based on the operation log of the external terminal, whether the external terminal has performed an illegal operation on the sensing device; and to adjust the working state of the remote connection gateway and the connection state of the sensing device based on the determination result of the illegal operation, including:
[0037] Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal.
[0038] The operation records are analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
[0039] Compared to existing technologies, this IoT device remote control method and system based on gateway switching selects a sensor device from the IoT that meets preset remote control conditions and is intended for remote control, based on the remote control request from an external terminal. It then performs gateway switching on the sensor device, thereby switching its connection to the IoT's remote connection gateway and establishing a communication link between the remote connection gateway and the external terminal. Based on the external terminal's operation logs, it determines whether the external terminal has performed illegal operations on the sensor device, adjusting the working state of the remote connection gateway and the connection status of the sensor device accordingly. The system sets up a remote connection gateway within the IoT to allow internal sensor devices to connect to external terminals. The IoT can switch the corresponding sensor device to connect to the remote connection gateway according to the needs of the external terminal. This allows the external terminal to directly remotely control the sensor device without relying on the IoT's own control terminal as an intermediary, improving the reliability and sustainability of remote control of the sensor device by the external terminal.
[0040] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.
[0041] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a flowchart illustrating the remote control method for IoT devices based on gateway switching provided by the present invention.
[0044] Figure 2 This is a schematic diagram of the structure of the IoT device remote control system based on gateway switching provided by the present invention. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] See Figure 1 This is a flowchart illustrating a remote control method for IoT devices based on gateway switching, provided in an embodiment of the present invention. The remote control method for IoT devices based on gateway switching includes the following steps:
[0047] Step S1: Based on the remote control request from the external terminal, determine from the Internet of Things the sensing device that the external terminal wants to remotely control; based on the current working status of the sensing device, determine whether the sensing device currently meets the preset remote control conditions.
[0048] Step S2: After backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions are switched to the remote connection gateway of the Internet of Things; and a communication link is established between the remote connection gateway and the external terminal.
[0049] Step S3: Based on the operation log of the external terminal, determine whether the external terminal has performed an illegal operation on the sensing device; based on the determination result of the illegal operation, adjust the working status of the remote connection gateway and the connection status of the sensing device.
[0050] The beneficial effects of the above technical solution are as follows: This IoT device remote control method based on gateway switching selects a sensor device from the IoT that is expected to be remotely controlled and meets the preset remote control conditions according to the remote control request of the external terminal. It then performs gateway switching on the sensor device to connect it to the remote connection gateway of the IoT and establishes a communication link between the remote connection gateway and the external terminal. Based on the external terminal's operation log, it determines whether the external terminal has performed illegal operations on the sensor device, thereby adjusting the working state of the remote connection gateway and the connection state of the sensor device. The method sets up a remote connection gateway within the IoT to allow the internal sensor devices to connect to the external terminal. The IoT can switch the corresponding sensor device to connect to the remote connection gateway according to the needs of the external terminal. This allows the external terminal to directly remotely control the sensor device without relying on the IoT's own control terminal as an intermediary, improving the reliability and sustainability of remote control of the sensor device by the external terminal.
[0051] Preferably, in step S1, based on the remote control request from the external terminal, the sensing device that the external terminal wishes to remotely control is determined from the Internet of Things, including:
[0052] The system parses and processes remote control requests from external terminals to obtain the terminal identity information of the external terminals; it then compares this terminal identity information with a preset whitelist; if the terminal identity information exists in the preset whitelist, it determines that the external terminal has remote control permissions for the sensing device; otherwise, it determines that the external terminal does not have remote control permissions for the sensing device.
[0053] When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
[0054] The beneficial effects of the above technical solution are as follows: When an external terminal needs to remotely control the sensing devices within the Internet of Things (IoT), it first sends a remote control request to the IoT. The terminal's own identity information is extracted from the remote control request to determine whether the external terminal has the corresponding remote control permissions, thus preventing unauthorized external terminals from obtaining remote control permissions and affecting the overall data security of the IoT. Furthermore, the device identity information of the sensing device that the external terminal wishes to remotely control is also extracted from the remote control request, facilitating the accurate identification of the sensing device requiring remote control from the IoT in the future.
[0055] Preferably, in step S1, determining whether the sensing device currently meets the preset remote control conditions based on its current operating state includes:
[0056] Based on the device's identity information, extract the sensor data generation frequency and sensor data accuracy corresponding to the sensor device from the IoT operation log;
[0057] If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
[0058] The beneficial effects of the above technical solution are as follows: By using the device identity information of the sensing device as a basis, the sensing data generation frequency and sensing data accuracy of the sensing device are extracted from the operation log of the Internet of Things. If the sensing data generation frequency is greater than or equal to a preset frequency threshold and the sensing data accuracy is greater than or equal to a preset accuracy threshold, it indicates that the sensing device can perform periodic data detection normally during operation and the detected data has a high accuracy. This can ensure that the current working status of the sensing device is normal and meet the remote control needs of external terminals.
[0059] Preferably, in step S2, after backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions undergo gateway switching processing to switch the connection to the remote connection gateway of the Internet of Things; and a communication link is established between the remote connection gateway and the external terminal, including:
[0060] Extract sensor data formed within a preset time range from sensor devices that meet preset remote control conditions, back up the extracted sensor data, and then upload the backed-up sensor data to the control terminal of the Internet of Things.
[0061] Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the remote connection gateway connected to the Internet of Things.
[0062] Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
[0063] The beneficial effects of the above technical solution are as follows: By using the above method, sensor data formed within a preset time range is extracted from sensor devices that meet preset remote control conditions, and the extracted sensor data is backed up, thus avoiding data loss after the sensor device undergoes a gateway switching operation. Furthermore, disconnecting the connection between the sensor device that meets the preset remote control conditions and the control terminal of the Internet of Things (IoT), and switching the remote connection gateway connected to the IoT, thereby achieving stable remote control of the sensor device by external terminals.
[0064] Preferably, in step S3, based on the operation log of the external terminal, it is determined whether the external terminal has performed an illegal operation on the sensing device; based on the determination result of the illegal operation, the working state of the remote connection gateway and the connection state of the sensing device are adjusted, including:
[0065] Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal.
[0066] The operation record is analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
[0067] The beneficial effects of the above technical solution are as follows: By using the above method, operation records corresponding to the device's identity information are extracted from the operation log of the external terminal. Based on the operation records, the operation type of the external terminal on the sensing device is determined. If the operation is a data deletion or data modification operation, it is determined that the external terminal has performed an illegal operation on the sensing device. At this time, the remote connection gateway is instructed to stop working and disconnect the connection between the remote connection gateway and the sensing device. This can prevent data security problems from occurring on the sensing device.
[0068] See Figure 2 This is a schematic diagram of the structure of an IoT device remote control system based on gateway switching provided in an embodiment of the present invention. The IoT device remote control system based on gateway switching includes:
[0069] The sensor device finding module is used to determine from the Internet of Things the sensor device that the external terminal wants to remotely control based on the remote control request from the external terminal.
[0070] The sensor device screening module is used to determine whether the sensor device currently meets the preset remote control conditions based on the current working status of the sensor device.
[0071] The remote control execution module is used to back up the data of the sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things; and to establish a communication link between the remote connection gateway and the external terminal.
[0072] The remote control adjustment module is used to determine whether the external terminal has performed an illegal operation on the sensing device based on the operation log of the external terminal; and to adjust the working status of the remote connection gateway and the connection status of the sensing device based on the determination result of the illegal operation.
[0073] The beneficial effects of the above technical solution are as follows: This IoT device remote control system based on gateway switching selects a sensor device from the IoT that is desired for remote control and meets preset remote control conditions, based on the remote control request from an external terminal. It then performs gateway switching on the sensor device, thereby switching its connection to the IoT's remote connection gateway and establishing a communication link between the remote connection gateway and the external terminal. Based on the external terminal's operation logs, it determines whether the external terminal is performing illegal operations on the sensor device, adjusting the working state of the remote connection gateway and the connection state of the sensor device accordingly. The system sets up a remote connection gateway within the IoT for connecting internal sensor devices to external terminals. The IoT can switch the corresponding sensor device to connect to the remote connection gateway according to the needs of the external terminal. This allows the external terminal to directly remotely control the sensor device without relying on the IoT's own control terminal as an intermediary, improving the reliability and sustainability of remote control of the sensor device by the external terminal.
[0074] Preferably, the sensor device finding module is used to determine, based on a remote control request from an external terminal, the sensor device that the external terminal wishes to remotely control from the Internet of Things, including:
[0075] The system parses and processes remote control requests from external terminals to obtain the terminal identity information of the external terminals; it then compares this terminal identity information with a preset whitelist; if the terminal identity information exists in the preset whitelist, it determines that the external terminal has remote control permissions for the sensing device; otherwise, it determines that the external terminal does not have remote control permissions for the sensing device.
[0076] When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
[0077] The beneficial effects of the above technical solution are as follows: When an external terminal needs to remotely control the sensing devices within the Internet of Things (IoT), it first sends a remote control request to the IoT. The terminal's own identity information is extracted from the remote control request to determine whether the external terminal has the corresponding remote control permissions, thus preventing unauthorized external terminals from obtaining remote control permissions and affecting the overall data security of the IoT. Furthermore, the device identity information of the sensing device that the external terminal wishes to remotely control is also extracted from the remote control request, facilitating the accurate identification of the sensing device requiring remote control from the IoT in the future.
[0078] Preferably, the sensor device screening module is used to determine whether the sensor device currently meets the preset remote control conditions based on the current working status of the sensor device, including:
[0079] Based on the device's identity information, extract the sensor data generation frequency and sensor data accuracy corresponding to the sensor device from the IoT operation log;
[0080] If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
[0081] The beneficial effects of the above technical solution are as follows: By using the device identity information of the sensing device as a basis, the sensing data generation frequency and sensing data accuracy of the sensing device are extracted from the operation log of the Internet of Things. If the sensing data generation frequency is greater than or equal to a preset frequency threshold and the sensing data accuracy is greater than or equal to a preset accuracy threshold, it indicates that the sensing device can perform periodic data detection normally during operation and the detected data has a high accuracy. This can ensure that the current working status of the sensing device is normal and meet the remote control needs of external terminals.
[0082] Preferably, the remote control execution module is used to back up the data of sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things; and to establish a communication link between the remote connection gateway and the external terminal, including:
[0083] Extract sensor data formed within a preset time range from sensor devices that meet preset remote control conditions, back up the extracted sensor data, and then upload the backed-up sensor data to the control terminal of the Internet of Things.
[0084] Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the remote connection gateway connected to the Internet of Things.
[0085] Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
[0086] The beneficial effects of the above technical solution are as follows: By using the above method, sensor data formed within a preset time range is extracted from sensor devices that meet preset remote control conditions, and the extracted sensor data is backed up, thus avoiding data loss after the sensor device undergoes a gateway switching operation. Furthermore, disconnecting the connection between the sensor device that meets the preset remote control conditions and the control terminal of the Internet of Things (IoT), and switching the remote connection gateway connected to the IoT, thereby achieving stable remote control of the sensor device by external terminals.
[0087] Preferably, the remote control adjustment module is used to determine whether the external terminal has performed an illegal operation on the sensing device based on the operation log of the external terminal; and to adjust the working status of the remote connection gateway and the connection status of the sensing device based on the determination result of the illegal operation, including:
[0088] Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal.
[0089] The operation record is analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
[0090] The beneficial effects of the above technical solution are as follows: By using the above method, operation records corresponding to the device's identity information are extracted from the operation log of the external terminal. Based on the operation records, the operation type of the external terminal on the sensing device is determined. If the operation is a data deletion or data modification operation, it is determined that the external terminal has performed an illegal operation on the sensing device. At this time, the remote connection gateway is instructed to stop working and disconnect the connection between the remote connection gateway and the sensing device. This can prevent data security problems from occurring on the sensing device.
[0091] As can be seen from the above embodiments, the IoT device remote control method and system based on gateway switching selects a sensor device from the IoT that is expected to be remotely controlled and meets preset remote control conditions according to the remote control request of the external terminal. It then performs gateway switching on the sensor device to switch the connection to the remote connection gateway of the IoT and establishes a communication link between the remote connection gateway and the external terminal. Based on the external terminal's operation log, it determines whether the external terminal has performed illegal operations on the sensor device, thereby adjusting the working state of the remote connection gateway and the connection state of the sensor device. The system sets up a remote connection gateway within the IoT to allow the internal sensor devices to connect to the external terminal. The IoT can switch the corresponding sensor device to connect to the remote connection gateway according to the needs of the external terminal. This allows the external terminal to directly remotely control the sensor device without relying on the IoT's own control terminal as an intermediary, improving the reliability and sustainability of remote control of the sensor device by the external terminal.
[0092] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for remotely controlling IoT devices based on gateway switching, characterized in that, Includes the following steps: Step S1: Based on the remote control request from the external terminal, determine from the Internet of Things the sensing device that the external terminal wants to remotely control; based on the current working status of the sensing device, determine whether the sensing device currently meets the preset remote control conditions. Step S2: After backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions are switched to the remote connection gateway of the Internet of Things. And establish a communication link between the remote connection gateway and the external terminal; Step S3: Based on the operation log of the external terminal, determine whether the external terminal has performed an illegal operation on the sensing device; based on the determination result of the illegal operation, adjust the working status of the remote connection gateway and the connection status of the sensing device. In step S1, based on the remote control request from the external terminal, the sensing device that the external terminal wishes to remotely control is determined from the Internet of Things, including: The remote control request from the external terminal is parsed and processed to obtain the terminal identity information of the external terminal; the terminal identity information is compared with a preset whitelist; if the terminal identity information exists in the preset whitelist, it is determined that the external terminal has remote control authority over the sensing device; otherwise, it is determined that the external terminal does not have remote control authority over the sensing device. When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
2. The method for remote control of IoT devices based on gateway switching as described in claim 1, characterized in that: In step S1, determining whether the sensing device currently meets the preset remote control conditions based on its current operating state includes: Based on the device identity information, extract the sensor data generation frequency and sensor data accuracy corresponding to the sensor device from the IoT operation log; If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
3. The method for remote control of IoT devices based on gateway switching as described in claim 1, characterized in that: In step S2, after backing up the data of the sensing devices that meet the preset remote control conditions, the sensing devices that meet the preset remote control conditions are switched to the gateway for connecting to the Internet of Things. And establish a communication link between the remote connection gateway and the external terminal, including: The sensor data formed within a preset time range is extracted from the sensor device that meets the preset remote control conditions, and after backing up the extracted sensor data, the backed-up sensor data is uploaded to the control terminal of the Internet of Things. Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the connection to the remote connection gateway of the Internet of Things; Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
4. The method for remotely controlling IoT devices based on gateway switching as described in claim 1, characterized in that: In step S3, based on the operation log of the external terminal, it is determined whether the external terminal has performed an illegal operation on the sensing device. Based on the result of the illegal operation determination, adjust the working state of the remote connection gateway and the connection state of the sensing device, including: Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal. The operation records are analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
5. A remote control system for IoT devices based on gateway switching, characterized in that, include: The sensor device finding module is used to determine, from the Internet of Things, the sensor device that the external terminal wants to remotely control based on a remote control request from the external terminal. The sensor device screening module is used to determine whether the sensor device currently meets the preset remote control conditions based on the current working status of the sensor device. The remote control execution module is used to back up the data of the sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things. And establish a communication link between the remote connection gateway and the external terminal; The remote control adjustment module is used to determine whether the external terminal has performed an illegal operation on the sensing device based on the operation log of the external terminal; and to adjust the working status of the remote connection gateway and the connection status of the sensing device based on the determination result of the illegal operation. The sensor device finding module is used to determine, based on a remote control request from an external terminal, the sensor device that the external terminal wishes to remotely control from the Internet of Things, including: The remote control request from the external terminal is parsed and processed to obtain the terminal identity information of the external terminal; the terminal identity information is compared with a preset whitelist; if the terminal identity information exists in the preset whitelist, it is determined that the external terminal has remote control authority over the sensing device; otherwise, it is determined that the external terminal does not have remote control authority over the sensing device. When the external terminal has remote control authority over the sensing device, the device identity information of the sensing device that the external terminal wants to remotely control is extracted from the remote control request.
6. The IoT device remote control system based on gateway switching as described in claim 5, characterized in that: The sensor device screening module is used to determine whether the sensor device currently meets preset remote control conditions based on the current working status of the sensor device, including: Based on the device identity information, extract the sensor data generation frequency and sensor data accuracy corresponding to the sensor device from the IoT operation log; If the frequency of the sensor data generation is greater than or equal to a preset frequency threshold and the accuracy of the sensor data is greater than or equal to a preset accuracy threshold, then the sensor device is determined to currently meet the preset remote control conditions; otherwise, the sensor device is determined not to currently meet the preset remote control conditions.
7. The IoT device remote control system based on gateway switching as described in claim 5, characterized in that: The remote control execution module is used to back up the data of the sensing devices that meet the preset remote control conditions, and then perform gateway switching processing on the sensing devices that meet the preset remote control conditions, thereby switching the connection to the remote connection gateway of the Internet of Things. And establish a communication link between the remote connection gateway and the external terminal, including: The sensor data formed within a preset time range is extracted from the sensor device that meets the preset remote control conditions, and after backing up the extracted sensor data, the backed-up sensor data is uploaded to the control terminal of the Internet of Things. Then disconnect the connection between the sensing device that meets the preset remote control conditions and the control terminal, and switch the connection to the remote connection gateway of the Internet of Things; Based on the gateway address of the remote connection gateway, a communication link is established between the remote connection gateway and the external terminal.
8. The IoT device remote control system based on gateway switching as described in claim 5, characterized in that: The remote control adjustment module is used to determine whether the external terminal has performed an illegal operation on the sensing device based on the operation log of the external terminal. Based on the result of the illegal operation determination, adjust the working state of the remote connection gateway and the connection state of the sensing device, including: Based on the device identity information of the sensing device that meets the preset remote control conditions, the operation records corresponding to the device identity information are extracted from the operation log of the external terminal. The operation records are analyzed and processed to determine whether the external terminal has performed an illegal operation on the sensing device. If so, the remote connection gateway is instructed to stop working and the connection between the remote connection gateway and the sensing device is disconnected. If not, the current working state of the remote connection gateway and the current connection state of the sensing device are maintained unchanged.
Citation Information
Patent Citations
Vehicle remote control method and system and gateway platform
CN111324102A
Method and apparatus for switching communications to realize fast communication between remotely controlled devices
KR1020160006306A