Equipment control method and device, equipment and readable storage medium

Remote control of IoT devices is achieved through SMS messages, which solves the problems of IoT device APN update and device restart operations in the prior art, and realizes flexible remote management of IoT devices.

CN119997004APending Publication Date: 2025-05-13FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510152529.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

It is difficult for the existing technology to achieve remote control of IoT devices, especially in operations such as APN updates and device restarts. In particular, some operators do not support cloud DM remote device management mechanism.

Method used

Control of IoT devices through SMS messages is realized. The specific steps include receiving messages, determining the message sending end, decrypting messages, function field detection, and controlling the local device according to the target function field.

Benefits of technology

Remote control of IoT devices is realized, and the ability to update APN and restart devices without relying on cloud DM remote device management mechanism is improved, improving the operator's device management flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119997004A_ABST
    Figure CN119997004A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment control method and device, equipment and a readable storage medium, and the method comprises the steps: receiving a message, and determining a sending end of the message; if the sending end is an equipment control end, decrypting the message by using a decryption algorithm negotiated with the equipment control end; after successful decryption, performing function field detection on the data obtained by decryption; and controlling the local equipment by using the detected target function field. In the application, after a message is received, whether a sending end of the message is an equipment control end is determined; and if yes, decrypting the message by adopting a decryption algorithm negotiated with the equipment control end, and after successful decryption, carrying out functional field detection on the data obtained by decryption. If the target function field is detected, it is indicated that the message is a special message, and the local device can be controlled directly based on the detected target function field, so that the device is controlled based on the message, and APN updating can be further realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, device and readable storage medium. Background Art

[0002] After updating or adding the APN (Access Point Name) of the network, the original APN will cause problems such as limited access to the Internet and Internet abandonment. Therefore, all IoT devices need to update the default APN of the network after the APN is updated. To update the APN of the IoT device, the operator needs to remotely update the APN of the IoT module device, and also perform remote restart and other operations.

[0003] However, some operators do not support the remote device management mechanism of cloud DM (Device Management, a terminal management technology) for terminal devices. Therefore, how to remotely control IoT devices to update APN and other issues are technical problems that technicians in this field need to solve urgently. Summary of the invention

[0004] The purpose of this application is to provide a device control method, apparatus, device and readable storage medium, which can control IoT devices through SMS to achieve APN update.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] A device control method, comprising:

[0007] Receiving a message and determining a sender of the message;

[0008] If the sending end is a device control end, decrypting the message using a decryption algorithm negotiated with the device control end;

[0009] After successful decryption, the decrypted data is tested for function fields;

[0010] Use the detected target function field to control the local device.

[0011] Preferably, the detected target function field is used to control the local device, including:

[0012] If the target function field is to update the default access point of the device, then updating the default access point of the local device according to the access point information carried in the data;

[0013] If the target function field is to restart the device, restart the local device;

[0014] If the target function field is a decryption algorithm update, the decryption algorithm is replaced with the target decryption algorithm specified by the data.

[0015] Preferably, the function field detection is performed on the decrypted data, including:

[0016] Detecting whether there is a function field for controlling the local device in the data;

[0017] In the event that the target function field is not detected, the data is discarded.

[0018] Preferably, it includes:

[0019] After decryption fails, the message is processed according to the normal message processing flow.

[0020] Preferably, after controlling the local device using the detected target function field, the method further includes:

[0021] An algorithm notification message is sent to the device control terminal so that the device control terminal can learn the decryption algorithm currently used by the device control terminal.

[0022] Preferably, it also includes:

[0023] Receiving an algorithm notification message sent by the device control terminal;

[0024] The decryption algorithm is determined using the algorithm notification message.

[0025] Preferably, determining the sender of the message includes:

[0026] Obtaining the number from which the message was sent;

[0027] Determining the sending end based on the sending number;

[0028] Correspondingly, if the sending end is not the device control end, the message is processed according to the normal message processing flow.

[0029] A device control apparatus, comprising:

[0030] A message receiving module, used to receive a message and determine the sender of the message;

[0031] A decryption module, used for decrypting the message by using a decryption algorithm negotiated with the device control end if the sending end is a device control end;

[0032] A function field detection module is used to perform function field detection on the decrypted data after successful decryption;

[0033] The device control module is used to control the local device using the detected target function field.

[0034] An electronic device, comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the steps of the above-mentioned device control method when executing the computer program.

[0037] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned device control method are implemented.

[0038] Apply the method provided in the embodiment of the present application to receive a message and determine the sender of the message; if the sender is a device control end, decrypt the message using a decryption algorithm negotiated with the device control end; after successful decryption, perform function field detection on the decrypted data; and use the detected target function field to control the local device.

[0039] In the present application, a special message is sent to the device to be controlled, so that the device can be controlled based on the target function field carried by the special message. Specifically, in order to effectively distinguish the special control message from other ordinary messages, in the present application, this special control message can be encrypted and made to carry a function field with a control function. After receiving the message, first clarify whether the sender of the message is the device control end. If it is the device control end, the message may be a special control message. In order to effectively identify whether it is a special message, the message can be decrypted using a decryption algorithm negotiated with the device control end, and after successful decryption, the function field detection is performed on the decrypted data. If the target function field is detected, it indicates that the message is a special message. At this time, the local device can be directly controlled based on the detected target function field, thereby realizing message-based control of the device, and further realizing APN update.

[0040] Correspondingly, the embodiments of the present application also provide a device control apparatus, a device and a readable storage medium corresponding to the above-mentioned device control method, which have the above-mentioned technical effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 This is a flowchart of an implementation method of a device control method in an embodiment of the present application;

[0043] Figure 2 This is a specific implementation flow chart of a device control method in an embodiment of the present application;

[0044] Figure 3 This is a schematic diagram of the structure of a device control device in an embodiment of the present application;

[0045] Figure 4 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0046] Figure 5 This is a schematic diagram of the specific structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0048] Please refer to Figure 1 , Figure 1 This is a flow chart of a device control method in an embodiment of the present application. The method can be applied to an IoT device having an IoT module. The method includes the following steps:

[0049] S101: Receive a message and determine the sender of the message.

[0050] In the embodiment of the present application, the device control terminal may specifically be a device of an operator message center (such as an operator SMS writing device).

[0051] The message can be a medium that can transmit information, such as text messages and signaling. The following explanation takes the message as a text message. When the device control end needs to control a device such as an IoT device, a special text message can be generated. For example, after the APN is updated, the APN of the IoT device needs to be updated. At this time, a special text message for the APN update can be generated. Of course, the special text message can also correspond to device restarts, algorithm updates, and private key updates. The special text message carries a function field that has been pre-negotiated with the IoT device, and is encrypted using the encryption algorithm negotiated with the IoT device. After the device control end generates the special text message, it can send the special text message to the device to be controlled.

[0052] In a specific implementation of the present application, the following steps may be performed at the device control end:

[0053] Get device control request;

[0054] Determine whether the current device control request meets the special message generation conditions;

[0055] If yes, determining a function field that matches the device control request, and generating data of the special message based on the function field;

[0056] The data is encrypted using an encryption algorithm negotiated with the IoT device to obtain a ciphertext;

[0057] Based on the generated ciphertext, a special message is generated;

[0058] Send special messages to IoT devices.

[0059] For a device that receives a message, the message it receives may include the following three situations:

[0060] First, ordinary messages sent by ordinary users;

[0061] Second, ordinary messages sent by operators;

[0062] Third, special messages sent by operators.

[0063] For different messages, the device needs to adopt different processing methods. Therefore, after the device receives the message, it first needs to identify the sender of the message in order to further determine whether the message is a special message. Specifically, the sender can be determined based on the number of the message, or by other marking information.

[0064] In a specific implementation of the present application, determining the sender of the message includes:

[0065] Get the number where the message was sent;

[0066] Determining a sending end based on a sending number;

[0067] Correspondingly, if the sending end is not the device control end, the message is processed according to the normal message processing flow.

[0068] For ease of description, the above steps are combined for explanation below.

[0069] After receiving the message, the sending number of the message, that is, the phone number of the message sender, can be read first. For how to obtain the sending number of the message, you can refer to the relevant definition and implementation of SMS (short message service) technology, which will not be described here one by one.

[0070] In this embodiment, the operator's phone number can be saved in advance. After the sending number of the message is clear, the sending number can be compared with the operator's phone number to determine whether the sending end is a device control end or a common user end. That is, when the sending number is consistent with the operator's phone number, it is determined that the sending end is a device control end, that is, the message sender is the operator. When it is clear that the sending end is not the device control end corresponding to the operator, the message can be processed according to the normal message processing flow. That is, the message is not decrypted using the decryption algorithm negotiated with the device control end.

[0071] For example, when the sending number is 91821910005, it is the same as the operator TP-OA: 91821910005. Therefore, it can be determined that the sender of the message is the device control end.

[0072] S102: If the sending end is a device control end, the message is decrypted using a decryption algorithm negotiated with the device control end.

[0073] If the sending end is a device control end, it indicates that the message is very likely to be a special message. At this time, the message can be decrypted using the decryption algorithm negotiated with the device control end. If the decryption is successful, the operation of step S103 can be performed.

[0074] In a specific implementation of the present application, after decryption fails, the message is processed according to the normal message processing process. When the sender is an operator, but the decryption fails using the agreed decryption algorithm, it indicates that although the message is sent by the operator, it is not a special message, so the message can be processed according to the normal message processing process. For example, the message is directly displayed on the display interface.

[0075] S103: After successful decryption, perform function field detection on the decrypted data.

[0076] In this embodiment, the function fields and their meanings corresponding to different control operations set by the operator can be saved in advance, such as KT123 1 (restart device), KT123 2 apn device control (update APN), KT123 3 SHA512 (update decryption algorithm to SHA512), etc.

[0077] In this way, after the decryption is successful, the function field detection can be performed on the obtained data to determine the target function field carried by the message.

[0078] In a specific implementation of the present application, function field detection is performed on the decrypted data, including:

[0079] Detect whether there is a function field for controlling the local device in the data;

[0080] In the event that the target function field is not detected, the data is discarded.

[0081] The data is detected, that is, whether there is a function field for controlling the local device. The content and type of the function field can be predetermined, or can be modified and adjusted, and are not specifically limited here.

[0082] If the target function field is detected (the target function field can be any one of the multiple function fields determined by the operator), step S104 can be executed. If the target function field is not detected, it indicates that the message is abnormal and the message and its data can be directly discarded. Of course, in order to facilitate the subsequent location of the abnormal situation, the abnormal message can also be recorded in the log.

[0083] For example: a special SMS is received from a certain country's KT (telecom) operator. After decryption, the data obtained is: FIBOCOM_KT_MG661_MODULE KT. The function field cannot be detected in the data, indicating that the message is not a special function message, and the message can be discarded directly.

[0084] S104. Use the detected target function field to control the local device.

[0085] In this embodiment, different function fields correspond to different control operations. When the target function field is clearly detected, the local device can be controlled according to the control operation corresponding to the target function field, such as restarting the local device or updating the APN of the local device.

[0086] In a specific implementation of the present application, the local device is controlled by using the detected target function field, including:

[0087] Case 1: If the target function field is to update the default access point of the device, the default access point of the local device is updated according to the access point information carried in the data;

[0088] Case 2: If the target function field is restart device, restart the local device;

[0089] Case 3: If the target function field is a decryption algorithm update, the decryption algorithm is replaced with the target decryption algorithm specified by the data.

[0090] In the above situation 1, that is, the target function field corresponding to the detection is to update the default access point of the device, the default access point of the local device can be updated according to the access point information carried in the data.

[0091] For example: encryption algorithm SHA256, remote device management password FIBOCOM_KT_MG661_MODULE and message keyword KT123 2 3 TESTAPN. When the device receives the message, it determines that the sending number is 91821910005, and determines that the message corresponds to the SMS of a certain country's KT operator (operator TP-OA: 91821910005). The message is presented as SMS ciphertext: 9fb86bdddc26d790ce35fcd7c6fef1057fff6d7c5fbdb562f476c28f22b758ce. After decrypting the ciphertext using the decryption algorithm agreed with the operator, the data obtained is: FIBOCOM_KT_MG661_MODULE KT123 2 3TESTAPN. By performing function field detection on the data, it is found that the target function field: KT123 2 3 TESTAPN exists. At this time, the message can be treated as a special SMS from the operator, that is, the default APN of the SIM card is updated to the TESTAPN carried in the message, and the IP type is set to 3: IPV4V6. Later, the new APN and related parameters can be saved after re-stationing and power off.

[0092] Case 2 above: Through message decryption and function field detection, it is detected that the target function field is restarting the device. At this time, the local device can be restarted.

[0093] Situation 2 above: by decrypting the message and performing function field detection on the decrypted data, it is detected that the target function field is a decryption algorithm update. At this time, the decryption algorithm can be updated according to the decryption algorithm information carried by the message.

[0094] For example, when receiving a special SMS from a certain country's KT operator, the message ciphertext is: d3586b087fd696a3fee16f84dd9735442819f56db36b7681cc82ed9a97875c5b, and the initial SHA256 agreed with the operator is used for decryption. The resulting data is: FIBOCOM_KT_MG661_MODULE KT123 3 SHA512. The target function field is detected in the data: KT123 3 SHA512. It can be determined that the decryption algorithm needs to be updated, and the updated decryption algorithm is SHA512. In this way, when a new special SMS is received later, it is decrypted according to the updated SHA512, and the encryption and decryption algorithm is saved after power failure.

[0095] In a specific implementation of the present application, after controlling the local device using the detected target function field, the method further includes:

[0096] An algorithm notification message is sent to the device control terminal so that the device control terminal can learn the decryption algorithm currently used by the device control terminal.

[0097] Accordingly, the algorithm notification message sent by the device control terminal can also be received;

[0098] Use the algorithm to inform the message and determine the decryption algorithm.

[0099] That is, in this embodiment, the encryption algorithm can be changed to support, for example, the default initial setting is SHA256, and if the encryption algorithm needs to be changed after a period of use, the algorithm can be updated via SMS, and the ciphertext based on the previous encryption algorithm is transmitted.

[0100] After each device management is completed, the local device can automatically send an SMS to the operator to inform it of the encryption algorithm used, and the operator will send it an algorithm notification message (algorithm notification message) in return. Both parties know the specific encryption and decryption algorithms in real time to avoid problems caused by algorithm asynchrony.

[0101] Apply the method provided in the embodiment of the present application to receive a message and determine the sender of the message; if the sender is a device control end, decrypt the message using a decryption algorithm negotiated with the device control end; after successful decryption, perform function field detection on the decrypted data; and use the detected target function field to control the local device.

[0102] In the present application, a special message is sent to the device to be controlled, so that the device can be controlled based on the target function field carried by the special message. Specifically, in order to effectively distinguish the special control message from other ordinary messages, in the present application, this special control message can be encrypted and made to carry a function field with a control function. After receiving the message, first clarify whether the sender of the message is the device control end. If it is the device control end, the message may be a special control message. In order to effectively identify whether it is a special message, the message can be decrypted using a decryption algorithm negotiated with the device control end, and after successful decryption, the function field detection is performed on the decrypted data. If the target function field is detected, it indicates that the message is a special message. At this time, the local device can be directly controlled based on the detected target function field, thereby realizing message-based control of the device, and further realizing APN update.

[0103] In order to facilitate those skilled in the art to better understand the device control method provided in the embodiment of the present application, the device control method is described in detail below with reference to a specific application scenario as an example.

[0104] Please refer to Figure 2The managed and controlled device needs to negotiate with the operator in advance about the encryption algorithm and key of SMS TP-UD (short message content). For example, SHA256 does not involve a key, while other encryption and decryption algorithms do.

[0105] The encrypted data content includes: the original secret key data and the key function fields of remote device control, such as password device control 9182100005 KT123 1: KT123 1 belongs to the function field. For example, KT123 1 corresponds to device restart, KT123 2 apn device control corresponds to updating the device default APN, etc.

[0106] After receiving the SMS, the device first determines the TP-OA (Transfer Layer Protocol OriginatingAddress, the sender's phone number) to roughly determine whether the sender is a carrier. If it is not a carrier's SMS, it is processed normally. If it is a carrier's SMS, it is decrypted using the negotiated encryption algorithm. For example, if the SHA256 ciphertext is password device control 9182100005 KT123 1, and the verification is consistent with the special SMS, it is processed as a special SMS. If the decryption fails or the comparison is inconsistent with the negotiated substring, it is discarded.

[0107] In addition, it also supports changing the encryption algorithm. For example, the default initial setting is SHA256. If you need to change the encryption algorithm after using it for a period of time, you can update the algorithm through SMS, and transmit the ciphertext based on the previous encryption algorithm. In addition, each time a successful device management is completed, the terminal automatically sends an SMS to the operator to inform it of the encryption algorithm used, and the operator sends back an algorithm. Both parties know the specific encryption and decryption algorithms in real time to avoid problems caused by algorithm asynchrony.

[0108] That is to say, for the controlled device, the encryption and decryption algorithm and private key can be negotiated with the operator before turning on the device and logging on to the network. Then, when the device is turned on and logged on to the network, when receiving an SMS, it first determines whether the message is sent by the operator based on the sender's phone number. If not, the user's ordinary SMS can be normally output. If so, the message is decrypted to determine whether the message is a special message. If it is determined that it is not a special SMS, the operator's ordinary SMS can be normally output. If it is determined to be a special SMS, determine whether to update the algorithm. If the algorithm is updated, update the algorithm and secret key. If there is no need to update the algorithm, determine that it is a special SMS or discard it. After the device is controlled based on the special SMS, the encryption and decryption algorithm and secret key of the current module of the SMS are sent in ciphertext to the sender of the message.

[0109] It can be seen that the device control method provided in the embodiment of the present application, combined with the operator's support for the SGs SMS function, negotiates and communicates with the operator to implement a solution for remotely controlling IoT devices via SMS, which can achieve the purpose of remotely controlling terminal devices and meet the needs of fast and efficient operation and maintenance cost reduction.

[0110] Corresponding to the above method embodiment, the embodiment of the present application further provides a device control apparatus, and the device control apparatus described below and the device control method described above can refer to each other.

[0111] See also Figure 3 As shown, the device includes the following modules:

[0112] The message receiving module 101 is used to receive a message and determine the sender of the message;

[0113] A decryption module 102, for decrypting the message using a decryption algorithm negotiated with the device control end if the sending end is the device control end;

[0114] The function field detection module 103 is used to perform function field detection on the decrypted data after successful decryption;

[0115] The device control module 104 is used to control the local device using the detected target function field.

[0116] The device provided in the embodiment of the present application is used to receive a message and determine the sender of the message; if the sender is a device control end, the message is decrypted using a decryption algorithm negotiated with the device control end; after successful decryption, a function field detection is performed on the decrypted data; and the local device is controlled using the detected target function field.

[0117] In the present application, a special message is sent to the device to be controlled, so that the device can be controlled based on the target function field carried by the special message. Specifically, in order to effectively distinguish the special control message from other ordinary messages, in the present application, this special control message can be encrypted and made to carry a function field with a control function. After receiving the message, first clarify whether the sender of the message is the device control end. If it is the device control end, the message may be a special control message. In order to effectively identify whether it is a special message, the message can be decrypted using a decryption algorithm negotiated with the device control end, and after successful decryption, the function field detection is performed on the decrypted data. If the target function field is detected, it indicates that the message is a special message. At this time, the local device can be directly controlled based on the detected target function field, thereby realizing message-based control of the device, and further realizing APN update.

[0118] In a specific implementation of the present application, the device control module is specifically configured to update the default access point of the local device according to the access point information carried in the data if the target function field is to update the default access point of the device;

[0119] If the target function field is Restart Device, then the local device is restarted;

[0120] If the target function field is a decryption algorithm update, the decryption algorithm is replaced with the target decryption algorithm specified by the data.

[0121] In a specific implementation of the present application, the data discard processing module is used to detect whether there is a function field for controlling a local device in the data;

[0122] In the event that the target function field is not detected, the data is discarded.

[0123] In a specific implementation of the present application, the common message processing module is used to process the message according to the common message processing flow after decryption fails.

[0124] In a specific implementation of the present application, it also includes:

[0125] The response module is used to control the local device by using the detected target function field, and then send an algorithm notification message to the device control end so that the device control end can know the decryption algorithm currently used by the device control end.

[0126] In a specific implementation of the present application, it also includes:

[0127] Algorithm synchronization notification module, used to receive algorithm notification messages sent by the device control terminal;

[0128] Use the algorithm to inform the message and determine the decryption algorithm.

[0129] In a specific implementation of the present application, the message receiving module is specifically used to obtain the number from which the message is sent;

[0130] Determining a sending end based on a sending number;

[0131] Correspondingly, if the sending end is not the device control end, the message is processed according to the normal message processing flow.

[0132] Corresponding to the above method embodiment, an embodiment of the present application further provides an electronic device, and the electronic device described below and the device control method described above can refer to each other.

[0133] See also Figure 4 As shown, the electronic device includes:

[0134] A memory 332, for storing computer programs;

[0135] The processor 322 is used to implement the steps of the device control method of the above method embodiment when executing the computer program.

[0136] For details, please refer to Figure 5 , Figure 5 A schematic diagram of the specific structure of an electronic device provided for this embodiment, which may have relatively large differences due to different configurations or performances, may include one or more processors (central processing units, CPU) (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the electronic device 301.

[0137] The electronic device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0138] The steps in the device control method described above can be implemented by the structure of the electronic device.

[0139] Corresponding to the above method embodiment, the embodiment of the present application further provides a readable storage medium. The readable storage medium described below and the device control method described above can refer to each other.

[0140] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device control method of the above method embodiment are implemented.

[0141] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

[0142] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0143] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0144] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0145] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms include, include or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0146] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A device control method, characterized in that: include: Receiving a message and determining a sender of the message; If the sending end is a device control end, decrypting the message using a decryption algorithm negotiated with the device control end; After successful decryption, the decrypted data is tested for function fields; Use the detected target function field to control the local device.

2. The method according to claim 1, characterized in that Use the detected target function field to control the local device, including: If the target function field is to update the default access point of the device, then updating the default access point of the local device according to the access point information carried in the data; If the target function field is to restart the device, restart the local device; If the target function field is a decryption algorithm update, the decryption algorithm is replaced with the target decryption algorithm specified by the data.

3. The method according to claim 1, characterized in that Perform function field detection on the decrypted data, including: Detecting whether there is a function field for controlling the local device in the data; In the event that the target function field is not detected, the data is discarded.

4. The method according to claim 1, characterized in that: include: After decryption fails, the message is processed according to the normal message processing flow.

5. The method according to claim 1, characterized in that After controlling the local device using the detected target function field, it also includes: An algorithm notification message is sent to the device control terminal so that the device control terminal can learn the decryption algorithm currently used by the device control terminal.

6. The method according to claim 5, characterized in that Also includes: Receiving an algorithm notification message sent by the device control terminal; The decryption algorithm is determined using the algorithm notification message.

7. The method according to any one of claims 1 to 6, characterized in that: Determining a sender of the message includes: Obtaining the number from which the message was sent; Determining the sending end based on the sending number; Correspondingly, if the sending end is not the device control end, the message is processed according to the normal message processing flow.

8. A device control device, characterized in that: include: A message receiving module, used to receive a message and determine the sender of the message; A decryption module, used for decrypting the message by using a decryption algorithm negotiated with the device control end if the sending end is a device control end; A function field detection module is used to perform function field detection on the decrypted data after successful decryption; The device control module is used to control the local device using the detected target function field.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the device control method according to any one of claims 1 to 7 when executing the computer program.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device control method according to any one of claims 1 to 7 are implemented.