A method, apparatus, device, and storage medium for putting a device online.

By encrypting the identification information of the main controller and communication module, the problem of information leakage caused by plaintext transmission in the IoT control platform is solved, and secure data transmission between the terminal and the server is realized.

CN116232623BActive Publication Date: 2026-11-17CHINA MOBILE M2M +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111480643.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2026-11-17
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

In IoT control platforms, data transmission between the main controller and the communication module is often in plaintext, posing a risk of information leakage.

Method used

The identification information of the main controller and communication module is encrypted using an encryption algorithm. Data is transmitted via non-plaintext transmission and double decryption verification is performed on the server side to ensure the security of data transmission.

Benefits of technology

It ensures the security of data transmission between the main controller and the communication module, preventing information leakage, while also guaranteeing the security of data transmission between the communication module and the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232623B_ABST
    Figure CN116232623B_ABST
Patent Text Reader

Abstract

This application discloses a method for a device to go online, applied to a terminal, comprising: a control communication module requesting main controller identification information from a main controller; the control communication module receiving first encrypted information after the main controller has encrypted the main controller identification information using a first encryption algorithm; the control communication module encrypting the communication module identification information and the first encrypted information using a second encryption algorithm and sending the encrypted information to a first server to request online access; and receiving online success information returned by the first server in response to the request. Thus, when the communication module requests the main controller identification information from the main controller, the main controller encrypts the main controller identification information using a preset first encryption algorithm and sends it to the communication module. The two communicate using a non-plaintext transmission method to ensure the security of data transmission between the communication module and the main controller. Simultaneously, the communication module also communicates with the first server using a non-plaintext transmission method to ensure the security of data transmission between the communication module and the first server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to Internet of Things (IoT) control technology, and more particularly to a method, apparatus, device, and storage medium for device online operation. Background Technology

[0002] An IoT control platform includes terminals and servers. The terminals consist of a main controller and a communication module, typically using a "main controller + communication module + server" approach for connection and remote control between the terminals and the server. Data transmission between the server and the communication module occurs over a network, while data transmission between the communication module and the main controller occurs via electrical signals, enabling communication and control of the terminal's main controller by the server. However, this approach has drawbacks. Data transmission between the main controller and the communication module is generally in plaintext, posing a risk of information leakage during data transmission. Summary of the Invention

[0003] To address the aforementioned technical problems, this application aims to provide a method, apparatus, device, and storage medium for operating a device online.

[0004] The technical solution of this application is implemented as follows:

[0005] Firstly, a method for launching a device is provided, applied to a terminal, the terminal including a main controller and a communication module, the method comprising:

[0006] The communication module is controlled to send a first acquisition request to the main controller to obtain the main controller identification information;

[0007] The communication module is controlled to receive combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encrypted information, which is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm;

[0008] The communication module is controlled to encrypt the communication module identification information and the combined information based on a preset second encryption algorithm to obtain the second encrypted information.

[0009] Send an online request to the first server; wherein the online request includes the second encrypted information;

[0010] Receiving the online success information returned by the first server in response to the online request indicates that the terminal has successfully communicated with the first server.

[0011] In the above scheme, the combined information further includes first sequence number information; the first sequence number information is the sequence number information of the key library where the first key pair of the first encryption algorithm is located; the encryption of the communication module identification information and the combined information includes: based on the first data transmission protocol between the communication module and the first server, controlling the communication module to concatenate the communication module identification information, the first sequence number information and the first encryption information, and using the second key pair of the second encryption algorithm to encrypt the concatenated information to obtain the second encryption information.

[0012] In the above scheme, encrypting the concatenated information using the second key pair of the second encryption algorithm includes: controlling the communication module to encrypt the concatenated information using the second public key of the second key pair to obtain the second encrypted information; or, controlling the communication module to encrypt the concatenated information using the second private key of the second key pair to obtain the second encrypted information.

[0013] In the above scheme, the online request further includes: second sequence number information; the second sequence number information is the sequence number information of the key library where the second key pair of the second encryption algorithm is located; the step of sending the online request to the first server includes: if no server migration instruction sent by the first server is received within a preset time period, obtaining the login information of the first server from the preset space of the terminal; logging into the first server based on the login information, so that the first server can verify whether the login information is consistent with its own login information; when receiving information indicating that the two information are consistent, sending the second sequence number information and the second encryption information to the first server to request online.

[0014] In the above scheme, the method further includes: sending a second acquisition request to the second server to obtain the login information of the first server; receiving the login information returned by the second server in response to the second acquisition request, and storing it in the preset space.

[0015] In the above scheme, the second server also has a pre-set key library; the step of sending a second acquisition request to the second server to obtain the login information of the first server includes: based on the second data transmission protocol between the communication module and the second server, controlling the communication module to concatenate the communication module identification information and the login information acquisition instruction, encrypting the concatenated information using the second key to obtain third encrypted information; concatenating the second sequence number information and the third encrypted information, and sending the concatenated information as the second acquisition request to the second server.

[0016] In the above scheme, the second server pre-configures the login information of the new first server; the login information of the new first server is the information sent by the system management device when performing a server migration operation; the system management device is used to manage the terminal, the second server, the first server, and the new first server; the method further includes: if a server migration instruction is received from the first server within a preset time period, a third acquisition request to obtain the login information of the new first server is sent to the second server; the login information of the new first server returned by the second server in response to the third acquisition request is received and stored in the preset space.

[0017] Secondly, a method for launching a device is provided, applied to a first server, the method comprising:

[0018] The receiving terminal sends an online request; wherein the online request includes second encrypted information;

[0019] In response to the online request, the second encrypted information is decrypted according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal;

[0020] The combined information is decrypted according to the first decryption algorithm to obtain the main controller identification information of the terminal;

[0021] When the terminal is determined to be qualified to go online based on the communication module identification information and the main controller identification information, a successful online message is sent to the terminal.

[0022] In the above scheme, receiving the online request sent by the terminal includes: verifying whether the login information of the terminal is consistent with its own login information when the terminal logs into the first server based on the login information of the first server; if it is determined that they are consistent, receiving the online request sent by the terminal.

[0023] In the above scheme, the first server has a pre-set key library; the online request also includes second sequence number information; the step of decrypting the second encrypted information according to the second decryption algorithm includes: finding a second key pair from the key library according to the second sequence number information; decrypting the second encrypted information using the second private key in the second key pair to obtain the communication module identification information and the combined information; or, decrypting the second encrypted information using the second public key in the second key pair to obtain the communication module identification information and the combined information.

[0024] In the above scheme, the combined information includes first sequence number information and first encrypted information; the step of decrypting the combined information according to the first decryption algorithm includes: finding a first key pair from the key library based on the first sequence number information; decrypting the first encrypted information using the first private key in the first key pair to obtain the main controller identification information; or, decrypting the first encrypted information using the first public key in the first key pair to obtain the main controller identification information.

[0025] In the above scheme, the first server has a pre-configured communication module identifier library and a main controller identifier library; the method further includes: verifying that the communication module identifier information exists in the communication module identifier library and the main controller identifier information exists in the main controller identifier library, indicating that the terminal is qualified to go online; verifying that the communication module identifier information does not exist in the communication module identifier library and / or the main controller identifier information does not exist in the main controller identifier library, indicating that the terminal is not qualified to go online.

[0026] In the above scheme, the method further includes: receiving a server migration instruction sent by a system management device; and based on the server migration instruction, sending the key library, the communication module identifier library, and the main controller identifier library to a new first server, so that the new first server verifies whether the terminal is qualified to go online based on the key library, the communication module identifier library, and the main controller identifier library.

[0027] Thirdly, a device for online operation is provided, applied to a terminal, the terminal including a main controller and a communication module, the device comprising:

[0028] The first sending unit is used to control the communication module to send a first acquisition request to the main controller to acquire the main controller identification information;

[0029] The first receiving unit is configured to control the communication module to receive combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encrypted information, which is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm;

[0030] An encryption unit is used to control the communication module to encrypt the communication module identification information and the combined information based on a preset second encryption algorithm to obtain second encrypted information.

[0031] The first sending unit is configured to send an online request to the first server; wherein the online request includes the second encrypted information;

[0032] The first receiving unit is configured to receive online success information returned by the first server in response to the online request, indicating that the terminal has successfully communicated with the first server.

[0033] Fourthly, a device for online operation is provided, applied to a first server, characterized in that the device comprises:

[0034] The second receiving unit is used to receive an online request sent by the terminal; wherein the online request includes second encrypted information.

[0035] The decryption unit is used to respond to the online request and decrypt the second encrypted information according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal.

[0036] The decryption unit is used to decrypt the combined information according to the first decryption algorithm to obtain the main controller identification information of the terminal;

[0037] The second sending unit is used to send an online success message to the terminal when it is determined that the terminal is qualified to go online based on the communication module identification information and the main controller identification information.

[0038] Fifthly, a terminal is provided, comprising: a processor and a memory configured to store a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the aforementioned method when running the computer program.

[0039] In a sixth aspect, a first server is provided, comprising: a processor and a memory configured to store a computer program capable of running on the processor, wherein the processor is configured to perform the steps of the aforementioned method when running the computer program.

[0040] In a seventh aspect, a computer-readable storage medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.

[0041] Using the above technical solution, when the communication module requests the main controller's identification information from the main controller, the main controller encrypts the main controller's identification information using a preset first encryption algorithm and sends it to the communication module. The two use a non-plaintext transmission method to ensure the security of data transmission between the communication module and the main controller. At the same time, the communication module also uses a non-plaintext transmission method with the first server to ensure the security of data transmission between the communication module and the first server. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of the first process of the device online operation method in the embodiments of this application;

[0043] Figure 2 This is a schematic diagram of the data transmission protocol between the communication module and the first server in an embodiment of this application;

[0044] Figure 3 This is a schematic diagram of the second process of the device going online and running method in the embodiments of this application;

[0045] Figure 4 This is a schematic diagram of the second data transmission protocol between the communication module and the second server in an embodiment of this application;

[0046] Figure 5 This is a schematic diagram of the third data transmission protocol between the second server and the communication module in an embodiment of this application;

[0047] Figure 6 This is a schematic diagram of the third process of the device online operation method in the embodiments of this application;

[0048] Figure 7 This is a schematic diagram of the fourth data transmission protocol between the first server and the communication module in an embodiment of this application;

[0049] Figure 8 This is a schematic diagram of the fifth data transmission protocol between the first server and the communication module in an embodiment of this application;

[0050] Figure 9 This is a schematic diagram of the system architecture of the terminal and server in the embodiments of this application;

[0051] Figure 10 This is a schematic diagram illustrating the information interaction between the terminal and the server in an embodiment of this application;

[0052] Figure 11 This is a schematic diagram of the first structure of the device online operation device in the embodiments of this application;

[0053] Figure 12 This is a schematic diagram of the second structure composed of the device online operation device in the embodiments of this application;

[0054] Figure 13 This is a schematic diagram of the terminal structure in the embodiments of this application;

[0055] Figure 14 This is a schematic diagram of the structure of the first server in the embodiments of this application. Detailed Implementation

[0056] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of this application.

[0057] This application provides a method for putting a device online and running. Figure 1 This is a first flowchart illustrating the device online operation method in an embodiment of this application. This device online operation method is applied to a terminal. The terminal includes a main controller and a communication module.

[0058] like Figure 1 As shown, the specific methods for launching and running this device may include:

[0059] Step 101: Control the communication module to send a first acquisition request to the main controller to obtain the main controller identification information.

[0060] Here, data transmission between the communication module and the main controller is achieved via electrical signals. For example, the electrical signal method can be serial communication.

[0061] For example, according to a pre-defined serial communication protocol, the control communication module constructs a first acquisition request based on the main controller's identification information acquisition instruction, and then sends the first acquisition request to the main controller.

[0062] Step 102: Control the communication module to receive the combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encrypted information, which is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm.

[0063] Here, when the main controller receives the first acquisition request from the communication module, it responds to the request by acquiring the main controller identification information. Then, it encrypts the main controller identification information using either the first public key or the first private key from the first key pair of the pre-built first encryption algorithm to obtain first encrypted information, which is then returned to the communication module. In this way, the main controller and the communication module use a non-plaintext transmission method for data transmission, ensuring the security of the transmitted data.

[0064] It should be noted that if the main controller identification information is encrypted using the first public key of the first key pair, then decryption is performed using the first private key. Conversely, if the main controller identification information is encrypted using the first private key of the first key pair, then decryption is performed using the first public key. Both methods are acceptable, and either one can be chosen.

[0065] In some embodiments, the combination information further includes first sequence number information, which is the sequence number information of the key library where the first key pair of the first encryption algorithm is located.

[0066] It should be noted that the communication module primarily acts as a forwarding mechanism, relaying the first encrypted information generated by the main controller to the first server. Upon receiving the first encrypted information, the first server needs to decrypt it. Since encryption uses either the first public key or the first private key from the first key pair, decryption requires the first server to locate the first key pair and then decrypt it using the first public key or the first private key. As for how the first server locates the first key pair, for example, it has a pre-installed key library containing multiple key pairs, each with a different sequence number. Therefore, the first server can locate the first key pair based on its sequence number within the key library. Thus, to facilitate the first server's decryption of the first encrypted information, the main controller needs to return the sequence number of the first key pair from the key library, along with the first encrypted information itself, to the communication module, which then forwards it to the first server.

[0067] Step 103: Control the communication module to encrypt the communication module identification information and the combined information based on the preset second encryption algorithm to obtain the second encrypted information.

[0068] Here, the combined information includes first sequence number information and first encryption information. In some embodiments, step 103 may specifically include: based on the first data transmission protocol between the communication module and the first server, controlling the communication module to concatenate the communication module identification information, the first sequence number information, and the first encryption information, and encrypting the concatenated information using the second key of the second encryption algorithm to obtain the second encryption information.

[0069] It should be noted that, in order to realize communication transmission between the terminal and the first server, the terminal's communication module, in addition to forwarding the main controller identification information (included in the first encrypted information of the combined information) to the first server, also needs to send the communication module identification information to the first server, so that the first server can realize communication transmission between the terminal and the first server after verifying the communication module and the main controller based on the communication module identification information and the main controller identification information.

[0070] Here, to ensure data transmission security, the control communication module encrypts the communication module identification information and combined information based on a preset second encryption algorithm before sending them to the first server. Specifically, based on a pre-set data transmission protocol between the communication module and the first server, the control communication module completes the encryption process before sending the data to the first server.

[0071] For example, Figure 2 This is a schematic diagram of the data transmission protocol between the communication module and the first server in an embodiment of this application, as shown below. Figure 2As shown, the first public key is used to encrypt the main controller identification information and the first valid information to obtain the fourth encrypted information. The communication module identification information, the second valid information, the first sequence number information of the first key pair used by the main controller in the key library and the fourth encrypted information are concatenated. The concatenated information is then encrypted using the second public key to obtain the fifth encrypted information. This fifth encrypted information is then concatenated with the second sequence number information of the second key pair used by the communication module in the key library to obtain the data packet sent by the communication module to the first server.

[0072] Here, the first and second valid information can be empty or not. When the terminal requests communication with the first server, both the first and second valid information are empty, and the fourth encrypted information is the first encrypted information, and the fifth encrypted information is the second encrypted information. When the terminal successfully communicates with the first server and then transmits data, at least one of the first and second valid information is not empty. The valid information can be understood as the requested information instruction.

[0073] In some embodiments, encrypting the concatenated information using the second key pair of the second encryption algorithm includes: controlling the communication module to encrypt the concatenated information using the second public key of the second key pair to obtain the second encrypted information; or, controlling the communication module to encrypt the concatenated information using the second private key of the second key pair to obtain the second encrypted information.

[0074] Step 104: Send an online request to the first server; wherein the online request includes the second encrypted information.

[0075] Here, the second encrypted information includes communication module identification information and combined information. The combined information includes first sequence number information and first encrypted information. The first encrypted information includes main controller identification information. A connection request is sent to the first server, causing the first server to decrypt the second encrypted information in the connection request twice to obtain the communication module identification information and the main controller identification information. Based on the communication module identification information and the main controller identification information, the first server verifies the communication module and the main controller to determine if the terminal is qualified to connect.

[0076] Step 105: Receive the online success information returned by the first server in response to the online request, indicating that the terminal has successfully communicated with the first server.

[0077] Here, the executing entity for steps 101 to 105 can be the processor of the terminal. The terminal can be a mobile terminal or a fixed terminal with communication capabilities. Examples include smartphones, personal computers (such as tablets, desktop computers, laptops, netbooks, and PDAs), mobile phones, e-book readers, portable multimedia players, audio / video players, cameras, virtual reality devices, and wearable devices.

[0078] Using the above technical solution, when the communication module requests the main controller's identification information from the main controller, the main controller encrypts the main controller's identification information using a preset first encryption algorithm and sends it to the communication module. The two use a non-plaintext transmission method to ensure the security of data transmission between the communication module and the main controller. At the same time, the communication module also uses a non-plaintext transmission method with the first server to ensure the security of data transmission between the communication module and the first server.

[0079] Based on the above embodiments, this application provides a method for putting a device online and running. Figure 3 This is a second flowchart illustrating the device online operation method in an embodiment of this application. This device online operation method is applied to a terminal. The terminal includes a main controller and a communication module.

[0080] like Figure 3 As shown, the specific methods for launching and running this device may include:

[0081] Step 301: Control the communication module to send a first acquisition request to the main controller to obtain the main controller identification information.

[0082] Step 302: Control the communication module to receive the combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encrypted information, the first encrypted information being information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm.

[0083] In some embodiments, the combination information further includes first sequence number information, which is the sequence number information of the key library where the first key pair of the first encryption algorithm is located.

[0084] Step 303: Control the communication module to encrypt the communication module identification information and the combined information based on the preset second encryption algorithm to obtain the second encrypted information.

[0085] Specifically, based on the first data transmission protocol between the communication module and the first server, the control module encrypts the communication module identification information, the first sequence number information, and the first encrypted information using the second public key or the second private key in the second key pair of the second encryption algorithm to obtain the second encrypted information.

[0086] Step 304: If no server migration instruction is received from the first server within a preset time period, retrieve the login information of the first server from the preset space of the terminal.

[0087] It should be noted that the preset duration can be set based on the maximum duration for which the terminal receives the server migration command.

[0088] Here, if the terminal does not receive a server migration instruction from the first server within the preset time period, it means that the first server has not been migrated. At this time, the terminal can log in to the first server based on the login information of the first server in the preset space.

[0089] The login information for the first server includes all the information required to log in to the first server, such as: the first server domain name, the first server port number, the username and password; or, the first server domain name, the first server port number, the necessary information for generating the username and the necessary information for generating the password.

[0090] It should be noted that if the login information received by the terminal includes a username and password, the terminal can directly log in to the first server using the username and password. If the login information received by the terminal includes necessary information for generating a username and password, the terminal must first generate the corresponding username and password based on the necessary information, and then log in to the first server using the username and password.

[0091] In some embodiments, the method further includes: sending a second acquisition request to a second server to obtain login information of the first server; receiving the login information returned by the second server in response to the second acquisition request, and storing it in the preset space.

[0092] Here, the second server pre-stores the login information of the first server. Therefore, the terminal can send a request to the second server to retrieve the login information of the first server, thereby obtaining the login information of the first server and storing it in a preset space.

[0093] In some embodiments, the second server further includes a pre-configured key library; sending a second acquisition request to the second server to obtain the login information of the first server includes: based on the second data transmission protocol between the communication module and the second server, controlling the communication module to concatenate the communication module identification information and the login information acquisition instruction, encrypting the concatenated information using the second key to obtain third encrypted information; concatenating the second sequence number information and the third encrypted information, and sending the concatenated information as the second acquisition request to the second server.

[0094] Figure 4 The second data transmission protocol between the communication module and the second server in this embodiment of the application is as follows: Figure 4 As shown, when the communication module sends data to the second server, it encrypts the communication module identification information and the first valid information based on the second public key in the second key pair. Then, it concatenates this encryption with the second sequence number information of the second key pair used by the communication module in the key library before sending it to the second server. Here, the communication module requests login information from the second server; therefore, the first valid information can be a login information retrieval instruction.

[0095] Furthermore, upon receiving the second acquisition request, the second server responds by searching for the second key pair in a pre-set key library based on the second sequence number information. After decrypting the third encrypted information, it obtains the communication module identification information and a login information acquisition instruction. If the communication module identification information exists in the pre-set communication identification library, indicating that the terminal's communication module is authorized, the second server retrieves the login information based on the login information acquisition instruction and returns it to the communication module. Therefore, by sending the first server login information only to the communication module of the authorized terminal, the second server can prevent the risk of hackers attacking the first server.

[0096] When the second server sends data to the communication module, Figure 5 An example of a third data transmission protocol between the second server and the communication module is given, such as... Figure 5 As shown, the second server, based on the third data transmission protocol, encrypts the first server identification information and the third valid information (i.e., login information) using the second public key and then returns them to the communication module, so that the communication module can decrypt them using the second private key to obtain the login information of the first server.

[0097] Step 305: Log in to the first server based on the login information, so that the first server can verify whether the login information is consistent with its own login information.

[0098] The first server verifies whether the login name and password used by the terminal to log in to the first server are consistent with its own login name and password. If both are consistent, step 306 is executed; if either is inconsistent, the login fails.

[0099] Step 306: Upon receiving information indicating that the two pieces of information are consistent, send the second sequence number information and the second encrypted information to the first server to request online access.

[0100] Here, the second sequence number information is the sequence number information of the key library where the second key pair of the second encryption algorithm is located.

[0101] Step 307: Upon receiving the online success information returned by the first server in response to the online request, it indicates that the terminal has successfully communicated with the first server.

[0102] The online request includes a second sequence number and second encrypted information. Here, the terminal sends the second sequence number to the first server so that the first server can retrieve the second key pair from its built-in key store based on the second sequence number to decrypt the second encrypted information, obtaining the communication module identifier and combined information. The combined information includes the first sequence number and the first encrypted information, enabling the first server to retrieve the first key pair from its built-in key store based on the first sequence number to decrypt the first encrypted information, obtaining the main control identifier. When the first server verifies the communication module and main controller based on the communication module identifier and main controller identifier, and verifies that the terminal is qualified to go online, the terminal receives a successful online message from the first server.

[0103] In some embodiments, the second server pre-configures login information for the new first server; the login information for the new first server is information sent by the system management device when performing a server migration operation; the system management device is used to manage the terminal, the second server, the first server, and the new first server; the method further includes: if a server migration instruction returned by the first server is received within a preset time period, a third acquisition request to obtain the login information of the new first server is sent to the second server; the login information of the new first server returned by the second server in response to the third acquisition request is received and stored in the preset space.

[0104] Here, if a server migration instruction is received within the preset time period, it means that the first server has been migrated. At this time, the login information of the first server in the terminal's preset space is invalid, and the terminal needs to obtain the login information of the migrated server. Specifically, it requests the login information of the new first server from the second server. When the second server verifies that the terminal's communication module has been authorized, it sends the login information of the new first server to the communication module. Subsequently, the communication module logs into the new first server based on the new first server login information and requests to go online from the new first server.

[0105] Using the above technical solution, in this embodiment, the server includes a first server and a second server. The second server sends login information of the first server to the terminal. When a server migration is required, the migration can be completed simply by having the second server send login information of the new first server after the migrated server (i.e., the new first server) has been deployed. The terminal includes a main controller and a communication module, which have encryption mechanisms between them to ensure that information is not leaked during data transmission.

[0106] Based on the above embodiments, this application provides a method for putting a device online and running. Figure 6 This is a schematic diagram of the third process of the device online operation method in this application embodiment, which is applied to the first server.

[0107] like Figure 6 As shown, the specific methods for launching and running this device may include:

[0108] Step 601: Receive an online request sent by the terminal; wherein the online request includes second encrypted information.

[0109] In some embodiments, step 601 may specifically include: verifying whether the login information of the terminal is consistent with its own login information when the terminal logs into the first server based on the login information of the first server; if it is determined that they are consistent, receiving the online request sent by the terminal.

[0110] The first server verifies whether the login name and password used by the terminal to log in to the first server are consistent with its own login name and password. If both are consistent, step 601 is executed; if either is inconsistent, the login fails.

[0111] Step 602: In response to the online request, decrypt the second encrypted information according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal.

[0112] Here, the second decryption algorithm corresponds to the second encryption algorithm mentioned in the previous embodiment.

[0113] In some embodiments, the first server has a pre-set key library; the online request further includes: second sequence number information; step 602 may specifically include: finding a second key pair from the key library according to the second sequence number information; decrypting the second encrypted information using the second private key in the second key pair to obtain the communication module identification information and the combined information; or, decrypting the second encrypted information using the second public key in the second key pair to obtain the communication module identification information and the combined information.

[0114] Here, the second sequence number information is the sequence number information of the key library where the second key pair of the second encryption algorithm is located.

[0115] In other words, the first server retrieves the second key pair from its built-in key store based on the second sequence number information in the online request. If the second public key was used for encryption, the first server uses the second private key to decrypt the second encrypted information; if the second private key was used for encryption, the first server uses the second public key to decrypt the second encrypted information.

[0116] Step 603: Decrypt the combined information according to the first decryption algorithm to obtain the main controller identification information of the terminal.

[0117] Here, the first decryption algorithm corresponds to the first encryption algorithm mentioned in the previous embodiment.

[0118] In some embodiments, the combined information includes first sequence number information and first encryption information; step 603 may specifically include: finding a first key pair from the key library according to the first sequence number information; decrypting the first encryption information using the first private key in the first key pair to obtain the main controller identification information; or, decrypting the first encryption information using the first public key in the first key pair to obtain the main controller identification information.

[0119] Here, the first sequence number information is the sequence number information of the key library where the first key pair of the first encryption algorithm is located.

[0120] In other words, the first server finds the first key pair from the built-in key library based on the first sequence number information in the combined information. If the encryption is performed using the first public key, the first server uses the first private key to decrypt the first encrypted information; if the encryption is performed using the first private key, the first server uses the first public key to decrypt the first encrypted information.

[0121] Step 604: Based on the communication module identification information and the main controller identification information, when it is determined that the terminal is qualified to go online, send an online success message to the terminal.

[0122] After step 604, the terminal successfully communicates with the first server, and the two can then transmit data to each other.

[0123] Regarding data transmission between the terminal and the first server, this application exemplifies a fourth data transmission protocol between the communication modules of the first server and the terminal. Figure 7 This is a schematic diagram of the fourth data transmission protocol between the first server and the communication module in an embodiment of this application, as shown below. Figure 7 As shown, when the first server sends data to the communication module, it encrypts the fourth valid information (i.e. the valid information sent to the communication module) using the second public key in the second key pair based on the fourth data transmission protocol, and then sends it to the communication module after combining it with the received identifier packet.

[0124] This application also illustrates a fifth data transmission protocol between the communication modules of a first server and a terminal. Figure 8 This is a schematic diagram of the fifth data transmission protocol between the first server and the communication module in an embodiment of this application, as shown below. Figure 8As shown, when the first server needs to send data to the main controller, it encrypts the fifth valid information (i.e. the valid information sent to the main controller) using the first public key in the first key pair based on the fifth data transmission protocol. After encrypting the fifth valid information (i.e. the valid information sent to the main controller) with the main controller's receiving identifier, it sends the data to the communication module. The communication module forwards the corresponding information to the main controller based on the main controller's receiving identifier.

[0125] In some embodiments, the first server has a pre-configured communication module identifier library and a main controller identifier library; the method further includes: verifying that the communication module identifier information exists in the communication module identifier library and the main controller identifier information exists in the main controller identifier library, indicating that the terminal is qualified to go online; verifying that the communication module identifier information does not exist in the communication module identifier library and / or the main controller identifier information does not exist in the main controller identifier library, indicating that the terminal is not qualified to go online.

[0126] Here, the communication module identifier library includes multiple communication module identifiers, and the main controller identifier library includes multiple main controller identifiers.

[0127] In other words, if the first server verifies that both the communication module identifier information and the main control module identifier information exist in the main control identifier database, the verification passes, and the terminal is qualified to go online. Conversely, if either identifier is not present in the corresponding database, the verification fails, and the terminal is not qualified to go online.

[0128] In some embodiments, the method further includes: receiving a server migration instruction sent by a system management device; and, based on the server migration instruction, sending the key library, the communication module identifier library, and the main controller identifier library to a new first server, so that the new first server verifies whether the terminal is qualified to go online based on the key library, the communication module identifier library, and the main controller identifier library.

[0129] Here, system device management is used to manage terminals, the first server, and the new first server.

[0130] In other words, when the first server receives the server migration instruction, it sends the pre-set key library, communication module identifier library, and main controller identifier library to the new first server. This allows the new first server to verify whether a terminal is qualified to go online when it requests to do so, based on the key library, communication module identifier library, and main controller identifier library. The specific method for determining whether a terminal is qualified to go online has been described in the previous embodiments.

[0131] Using the above technical solution, when the first server verifies whether the terminal is qualified to go online, it not only needs to verify whether the login information used by the terminal to log in is consistent with its own login information, but also needs to verify whether the communication module and the main controller are pre-authorized. Only when both are verified successfully can it be said that the terminal is qualified to go online, that is, the terminal communicates successfully with the first server.

[0132] Based on the above embodiments, before executing the terminal device online operation method of this application, it is necessary to pre-configure corresponding information for the involved terminal and server. In this regard, this application intuitively provides a system structure block diagram of the terminal and server, which also includes their respective pre-configured information content.

[0133] Figure 9 This is a schematic diagram of the system architecture of the terminal and server in an embodiment of this application, as shown below. Figure 9 As shown, the system includes a terminal and a server. The terminal includes a communication module 901 and a main controller 902. The server includes a key server (i.e., a second server) 903 and a business server (i.e., a first server) 904.

[0134] Here, the system management device uses an asymmetric encryption algorithm to generate a series of key pairs (a total of N key pairs) in the background, called a key database (SDB) (containing a public key (PK), a private key (PVK), and the serial number (SN) of the key pair in the key database SDB). The system management device is used to manage terminals and servers.

[0135] The system management device sorts each key pair in the key database SDB by serial number 1 to N, and publishes the key database SDB to the key server management device and the business server management device respectively, so that the key server management device pre-installs the key database SDB in the key server 903, and the business server management device pre-installs the key database SDB in the business server 904.

[0136] The system management device also publishes the communication module identification database (Management Data Unit Database, MDUDB) (containing multiple communication module identification information, such as IMEI) to the key server management device and the business server management device respectively, so that the key server management device pre-installs the communication module identification database MDUDB in the key server 903, and the business server management device pre-installs the communication module identification database MDUDB in the business server 904.

[0137] The system management device also publishes the Microprogrammed Control Unit Database (MCUDB) (which contains multiple main controller identification information, such as the main controller SN number) to the business server management device, so that the business server management device pre-installs the MCUDB in the business server 904.

[0138] The business server management device provides the business server login information (BSI) to the key server management device, so that the key server management device pre-installs the business server login information (BSI) in the key server 903.

[0139] The system management device further splits the key library SDB into two parts, SDB_A and SDB_B, with serial numbers 1 to M and (M+1) to N, respectively. Key pair groups SDB_A with serial numbers 1 to M are published to the communication module management device, and key pair groups SDB_B with serial numbers (M+1) to N are published to the main controller management device. This allows the communication module management device to randomly or sequentially extract a second key pair from key pair group SDB_A, and pre-install the second public key PK_A, second private key PVK_A, and second serial number information SN_A of the second key pair in the communication module. Similarly, the main controller management device can randomly or sequentially extract a first key pair from key pair group SDB_B, and pre-install the first public key PK_B, first private key PVK_B, and first serial number information SN_B of the first key pair in the main controller.

[0140] based on Figure 9 The system architecture block diagram of the terminal and server shown in this application provides a schematic diagram of information interaction between the terminal and the server. Figure 10 This is a schematic diagram of information interaction between a terminal and a server in an embodiment of this application. The terminal includes a communication module 901 and a main controller 902, and the server includes a key server (i.e., a second server) 903 and a business server (i.e., a first server) 904.

[0141] like Figure 10 As shown, the information interaction process specifically includes:

[0142] Step 1001: The communication module requests the main controller identification information from the main controller.

[0143] Here, the communication module forms a request to obtain the main controller identification information according to the pre-defined serial communication protocol, and sends the request to the main controller.

[0144] Step 1002: The communication module receives the combined information reported by the main controller; wherein, the combined information includes first sequence number information and first encryption information, and the first encryption information includes main controller identification information.

[0145] Here, to ensure the security of data transmission between the communication module and the main controller, the main controller reads the preset first public key PK_B, first private key PVK_B, first sequence number information SN_B, and main controller identification information. It then assembles this information into a packet according to a pre-defined serial communication protocol, encrypts it using the first public key PK_B, and finally combines it with the first sequence number information SN_B before returning it to the communication module. In this embodiment, public key encryption and private key decryption are used for data encryption.

[0146] For the serial communication protocol between the communication module and the main controller mentioned in steps 1001 and 1002, for example, the serial communication protocol can include sequence number verification and data packet validity verification mechanisms for sending and receiving data packets. For instance, the data sender can add packet sequence number information and packet data checksum information at certain specific positions in the sent packet. After receiving the message, the data responder should verify the validity of the data packet based on the checksum information. If the verification passes, the responder can add packet sequence number information and packet data checksum information at certain specific positions in the data packet it replies with. Furthermore, a protocol for mutual control between the two can be added to achieve mutual control. This data protocol can be implemented in plaintext or using a custom encryption method (which can be decrypted by both parties). For example, the serial communication protocol can include instructions such as the communication module restarting the main controller and the main controller restarting the communication module.

[0147] Step 1003: The communication module requests the login information of the business server from the key server.

[0148] Specifically, the communication module reads the preset second public key PK_A, second private key PVK_A, second sequence number information SN_A, and communication module identification information. According to the pre-defined second data transmission protocol between the communication module and the key server (i.e., the second server), the communication module uses the second public key PK_A to encrypt the communication module identification information and login information acquisition command (i.e., communication module payload information), and then combines it with the second sequence number information SN_A to form a data request packet (login information acquisition request). The communication module then sends the data request packet to the key server.

[0149] Step 1004: The communication module receives the login information of the business server issued by the key server.

[0150] Specifically, upon receiving a data request packet, the key server parses out the second sequence number information SN_A, uses SN_A to locate the second key pair in the key library SDB, and uses the second public key PK_A from the second key pair to decrypt the encrypted information to obtain the communication module identification information and login information retrieval instructions. When the key server determines that the communication module identification information exists in the pre-set communication identification library MDUDB, it retrieves the corresponding business server (i.e., the first server) identification information and login information based on the login information retrieval instructions. Then, according to the pre-defined third data transmission protocol between the key server (i.e., the second server) and the communication module, it uses the second public key PK_A from the found second key pair to encrypt the business server (i.e., the first server) identification information and login information, and returns it to the communication module. This allows the communication module to use the second private key PVK_A to parse out the first server login information and store it in a preset space (such as flash memory).

[0151] Step 1005: The communication module requests to go online from the business server.

[0152] Here, the system first checks whether a server migration instruction has been received. If not, it retrieves the login information of the first server from the flash memory and logs into the first server based on the login information. Only when the first server verifies that the login information used for login is consistent with its own login information can the communication module request to go online from the business server.

[0153] Next, based on the first data transmission protocol, the communication module packages the communication module identification information and combination information, encrypts them using the second public key PK_A to obtain the second encrypted information, and then packages them together with the second sequence number information SN_A and sends them to the business server to request online status.

[0154] Step 1006: The communication module receives the online success message from the business server.

[0155] Here, the business server has a pre-configured key library SDB, a communication module representation library MDUDB, and a main controller identifier library MCUDB.

[0156] Specifically, the service server retrieves the second key pair from the key repository SDB based on the second sequence number information SN_A, and uses the second private key PVK_A to parse the second encrypted information to obtain the combined information and communication module identification information. Then, based on the first sequence number information SN_B in the combined information, it retrieves the first key pair from the key repository SDB, and uses the first private key PVK_B to parse the first encrypted information to obtain the main controller identification information. Finally, it determines that both the communication module identification information and the main controller identification information belong to the communication module representation library MDUDB and the main controller identification library MCUDB, signifying that the terminal has successfully gone online, meaning the terminal has completed communication with the first server.

[0157] Step 1007: The communication module reports data to the business server.

[0158] Step 1008: The communication module receives data sent by the service server.

[0159] Step 1009: The communication module forwards the data reported by the main controller to the business server to the business server.

[0160] Step 1010: The communication module forwards the data sent from the service server to the main controller to the main controller.

[0161] In the communication process following step 1006, the information reported by the main controller is encrypted using the first public key PK_B and transmitted to the communication module along with the first sequence number SN_B. The communication module then assembles the encrypted information and its identification information into a packet, encrypts it again using the second public key PK_A, and sends it to the service server along with the second sequence number SN_A. The information reported by the communication module is encrypted using the second public key PK_A and sent to the service server along with the second sequence number SN_A. The service server, depending on the recipient of the data it is sending it to, encrypts the data using either the second public key PK_A or the first public key PK_B, and sends the encrypted data packet along with the terminal receiving identification information (including the communication module receiving identifier and the main controller receiving identifier) ​​to the communication module.

[0162] To implement the method of the embodiments of this application, based on the same inventive concept, the embodiments of this application also provide a device for online operation. Figure 11 This is a schematic diagram of the first structure of the device online operation device in the embodiments of this application. The device online operation device is applied to a terminal, which includes a main controller and a communication module.

[0163] like Figure 11 As shown, the online operation device 110 of this equipment includes:

[0164] The first sending unit 1101 is used to control the communication module to send a first acquisition request to the main controller to acquire the main controller identification information;

[0165] The first receiving unit 1102 is configured to control the communication module to receive combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encrypted information, which is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm;

[0166] Encryption unit 1103 is used to control the communication module to encrypt the communication module identification information and the combined information based on a preset second encryption algorithm to obtain second encrypted information;

[0167] The first sending unit 1101 is used to send an online request to the first server; wherein the online request includes the second encrypted information;

[0168] The first receiving unit 1102 is used to receive online success information returned by the first server when responding to the online request, indicating that the terminal has successfully communicated with the first server.

[0169] Using the above technical solution, when the communication module requests the main controller's identification information from the main controller, the main controller encrypts the main controller's identification information using a preset first encryption algorithm and sends it to the communication module. The two use a non-plaintext transmission method to ensure the security of data transmission between the communication module and the main controller. At the same time, the communication module also uses a non-plaintext transmission method with the first server to ensure the security of data transmission between the communication module and the first server.

[0170] In some embodiments, the combined information further includes first sequence number information; the first sequence number information is the sequence number information of the key library where the first key pair of the first encryption algorithm is located; the encryption unit 1103 is specifically used to control the communication module to concatenate the communication module identification information, the first sequence number information and the first encryption information based on the first data transmission protocol between the communication module and the first server, and to encrypt the concatenated information using the second key pair of the second encryption algorithm to obtain the second encryption information.

[0171] In some embodiments, the encryption unit 1103 is specifically used to control the communication module to encrypt the concatenated information with the second public key of the second key pair to obtain the second encrypted information; or, to control the communication module to encrypt the concatenated information with the second private key of the second key pair to obtain the second encrypted information.

[0172] In some embodiments, the online request further includes: second sequence number information; the second sequence number information is the sequence number information of the key library where the second key pair of the second encryption algorithm is located; the first sending unit 1101 is specifically used to obtain the login information of the first server from the preset space of the terminal if no server migration instruction sent by the first server is received within a preset time period; log in to the first server based on the login information so that the first server can verify whether the login information is consistent with its own login information; when receiving information indicating that the two information are consistent, send the second sequence number information and the second encryption information to the first server to request online.

[0173] In some embodiments, a second acquisition request to obtain the login information of the first server is sent to the second server; the login information returned by the second server in response to the second acquisition request is received and stored in the preset space.

[0174] In some embodiments, the second server further includes a pre-configured key library; sending a second acquisition request to the second server to obtain the login information of the first server includes: based on the second data transmission protocol between the communication module and the second server, controlling the communication module to concatenate the communication module identification information and the login information acquisition instruction, encrypting the concatenated information using the second key to obtain third encrypted information; concatenating the second sequence number information and the third encrypted information, and sending the concatenated information as the second acquisition request to the second server.

[0175] In some embodiments, the second server pre-configures login information for the new first server; the login information for the new first server is information sent by the system management device when performing a server migration operation; the system management device is used to manage the terminal, the second server, the first server, and the new first server; if a server migration instruction is received from the first server within a preset time period, a third acquisition request to obtain the login information of the new first server is sent to the second server; the login information of the new first server returned by the second server in response to the third acquisition request is received and stored in the preset space.

[0176] To implement the method of the embodiments of this application, based on the same inventive concept, the embodiments of this application also provide a device for online operation. Figure 12 This is a schematic diagram of the second structure of the device online operation device in an embodiment of this application, which is applied to the first server.

[0177] like Figure 12 As shown, the online operation device 120 of this equipment includes:

[0178] The second receiving unit 1201 is used to receive an online request sent by the terminal; wherein the online request includes second encrypted information;

[0179] The decryption unit 1202 is used to respond to the online request and decrypt the second encrypted information according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal.

[0180] The decryption unit 1202 is used to decrypt the combined information according to the first decryption algorithm to obtain the main controller identification information of the terminal;

[0181] The second sending unit 1203 is used to send an online success message to the terminal when it is determined that the terminal is qualified to go online based on the communication module identification information and the main controller identification information.

[0182] Using the above technical solution, when the first server verifies whether the terminal is qualified to go online, it not only needs to verify whether the login information used by the terminal to log in is consistent with its own login information, but also needs to verify whether the communication module and the main controller are pre-authorized. Only when both are verified successfully can it be said that the terminal is qualified to go online, that is, the terminal communicates successfully with the first server.

[0183] In some embodiments, the second receiving unit 1201 is specifically used to verify whether the login information of the terminal is consistent with its own login information when the terminal logs into the first server based on the login information of the first server; if it is determined that they are consistent, the receiving unit receives the online request sent by the terminal.

[0184] In some embodiments, the first server has a pre-set key library; the online request further includes second sequence number information; the decryption unit 1202 is specifically used to find a second key pair from the key library according to the second sequence number information; decrypt the second encrypted information using the second private key in the second key pair to obtain the communication module identification information and the combined information; or, decrypt the second encrypted information using the second public key in the second key pair to obtain the communication module identification information and the combined information.

[0185] In some embodiments, the combined information includes first sequence number information and first encrypted information; the decryption unit 1202 is specifically used to find a first key pair from the key library according to the first sequence number information; decrypt the first encrypted information using the first private key in the first key pair to obtain the main controller identification information; or, decrypt the first encrypted information using the first public key in the first key pair to obtain the main controller identification information.

[0186] In some embodiments, the first server pre-configures a communication module identifier library and a main controller identifier library; verifying that the communication module identifier information exists in the communication module identifier library and the main controller identifier information exists in the main controller identifier library indicates that the terminal is qualified to go online; verifying that the communication module identifier information does not exist in the communication module identifier library and / or the main controller identifier information does not exist in the main controller identifier library indicates that the terminal is not qualified to go online.

[0187] In some embodiments, a server migration instruction sent by a system management device is received; based on the server migration instruction, the key library, the communication module identifier library, and the main controller identifier library are sent to a new first server, so that the new first server verifies whether the terminal is qualified to go online based on the key library, the communication module identifier library, and the main controller identifier library.

[0188] This application also provides another terminal. Figure 13 This is a schematic diagram of the terminal structure in an embodiment of this application, as shown below. Figure 13 As shown, the terminal 130 includes: a processor 1301 and a memory 1302 configured to store computer programs capable of running on the processor;

[0189] When the processor 1301 is configured to run a computer program, it controls the communication module 1304 and the main controller 1305 to execute the method steps in the foregoing embodiments.

[0190] Of course, in practical applications, such as Figure 13 As shown, the various components in this terminal are coupled together via a bus system 1303. It is understood that the bus system 1303 is used to implement communication between these components. In addition to a data bus, the bus system 1303 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 13 The general designated all buses as Bus System 1303.

[0191] This application also provides another first server in its embodiments. Figure 14 This is a schematic diagram of the structure of the first server in the embodiments of this application, as shown below. Figure 14 As shown, the first server 140 includes: a processor 1401 and a memory 1402 configured to store computer programs capable of running on the processor;

[0192] When the processor 1401 is configured to run a computer program, it executes the method steps described in the foregoing embodiments.

[0193] Of course, in practical applications, such as Figure 14 As shown, the various components in this terminal are coupled together via a bus system 1403. It can be understood that the bus system 1403 is used to implement communication between these components. In addition to a data bus, the bus system 1403 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 14 The general designated all buses as Bus System 1403.

[0194] In practical applications, the aforementioned processor can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), controller, microcontroller, and microprocessor. It is understood that, for different devices, the electronic devices used to implement the functions of the aforementioned processor can also be other types, and the embodiments of this application do not specifically limit this.

[0195] The aforementioned memory can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the processor.

[0196] In an exemplary embodiment, this application also provides a computer-readable storage medium for storing a computer program.

[0197] Optionally, the computer-readable storage medium can be applied to any of the methods in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes implemented by the processor in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0198] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0199] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0200] Furthermore, in the various embodiments of the present invention, all functional units can be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units. Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0201] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0202] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0203] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0204] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for launching a device, applied to a terminal, characterized in that, The terminal includes a main controller and a communication module. Data transmission between the server and the communication module occurs via a network, and data transmission between the communication module and the main controller occurs via electrical signals. The method includes: The communication module is controlled to send a first acquisition request to the main controller to obtain the main controller identification information; The communication module is controlled to receive combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encryption information and first sequence number information, the first encryption information is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm, and the first sequence number information is the sequence number information of the key library in which the first key pair of the first encryption algorithm is located; Based on the first data transmission protocol between the communication module and the first server, the communication module is controlled to concatenate the communication module identification information, the first sequence number information and the first encryption information, and the concatenated information is encrypted using the second key of the preset second encryption algorithm to obtain the second encryption information; A request to go online is sent to the first server; wherein, the request to go online includes the second encrypted information, so that the first server performs two decryption processes on the second encrypted information to obtain communication module identification information and main controller identification information, and the first server verifies the communication module and the main controller based on the communication module identification information and the main controller identification information to determine whether the terminal is qualified to go online; Receiving the online success information returned by the first server in response to the online request indicates that the terminal has successfully communicated with the first server.

2. The method according to claim 1, characterized in that, The encryption of the concatenated information using the second key pair of the second encryption algorithm includes: The communication module is controlled to encrypt the concatenated information using the second public key of the second key pair to obtain the second encrypted information. Alternatively, the communication module can be controlled to encrypt the concatenated information using the second private key of the second key pair to obtain the second encrypted information.

3. The method according to claim 1, characterized in that, The online request also includes: second sequence number information; the second sequence number information is the sequence number information of the key library where the second key pair of the second encryption algorithm is located; Sending the online request to the first server includes: If no server migration instruction is received from the first server within a preset time period, the login information of the first server is obtained from the preset space of the terminal. Log in to the first server based on the login information, so that the first server can verify whether the login information is consistent with its own login information; Upon receiving information indicating that the two pieces of information are consistent, the second sequence number information and the second encrypted information are sent to the first server to request online access.

4. The method according to claim 3, characterized in that, The method further includes: Send a second request to the second server to obtain the login information of the first server; The login information returned by the second server in response to the second acquisition request is received and stored in the preset space.

5. The method according to claim 4, characterized in that, The second server also has a pre-installed key store; the step of sending a second request to the second server to obtain the login information of the first server includes: Based on the second data transmission protocol between the communication module and the second server, the communication module is controlled to concatenate the communication module identification information and the login information acquisition instruction, and the concatenated information is encrypted using the second key to obtain the third encrypted information. The second sequence number information and the third encrypted information are concatenated, and the concatenated information is sent to the second server as the second acquisition request.

6. The method according to claim 4, characterized in that, The second server is pre-configured with the login information of the new first server; the login information of the new first server is the information sent by the system management device when performing the server migration operation; The system management device is used to manage the terminal, the second server, the first server, and the new first server; The method further includes: If a server migration instruction is received from the first server within a preset time period, a third request to obtain the login information of the new first server is sent to the second server. The system receives the login information of the new first server returned by the second server in response to the third acquisition request, and stores it in the preset space.

7. A method for launching a device, applied to a first server, characterized in that, The method includes: The system receives an online request from a terminal; wherein the terminal includes a main controller and a communication module, the server and the communication module transmit data via a network, and the communication module and the main controller transmit data via electrical signals, and the online request includes second encrypted information; the terminal controls the communication module to send a first acquisition request to the main controller to obtain the main controller's identification information; the terminal controls the communication module to receive combined information returned by the main controller in response to the first acquisition request; wherein the combined information includes first encrypted information and first sequence number information, the first encrypted information is information in which the main controller encrypts the main controller's identification information based on a preset first encryption algorithm, and the first sequence number information is the sequence number information of the key library where the first key pair of the first encryption algorithm is located; the terminal, based on a first data transmission protocol between the communication module and the first server, controls the communication module to concatenate the communication module's identification information, the first sequence number information, and the first encrypted information, and encrypts the concatenated information using the second key pair of a preset second encryption algorithm to obtain second encrypted information; In response to the online request, the second encrypted information is decrypted according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal; The combined information is decrypted according to the first decryption algorithm to obtain the main controller identification information of the terminal; When the terminal is determined to be qualified to go online based on the communication module identification information and the main controller identification information, a successful online message is sent to the terminal.

8. The method according to claim 7, characterized in that, The online request sent by the receiving terminal includes: When the terminal logs into the first server based on the login information of the first server, it verifies whether the login information is consistent with its own login information; Upon confirmation of agreement, the online request sent by the terminal is received.

9. The method according to claim 8, characterized in that, The first server has a pre-set key store; the online request also includes second sequence number information; The step of decrypting the second encrypted information according to the second decryption algorithm includes: The second key pair is retrieved from the key store based on the second serial number information; The second encrypted information is decrypted using the second private key in the second key pair to obtain the communication module identification information and the combined information; or, The second encrypted information is decrypted using the second public key in the second key pair to obtain the communication module identification information and the combined information.

10. The method according to claim 9, characterized in that, The step of decrypting the combined information according to the first decryption algorithm includes: The first key pair is retrieved from the key store based on the first sequence number information; The first encrypted information is decrypted using the first private key in the first key pair to obtain the main controller identification information; or, The first encrypted information is decrypted using the first public key in the first key pair to obtain the main controller identification information.

11. The method according to claim 7, characterized in that, The first server has a pre-configured communication module identifier library and a main controller identifier library; the method further includes: Verifying that the communication module identification information exists in the communication module identification library and that the main controller identification information exists in the main controller identification library indicates that the terminal is qualified to go online; If the communication module identification information is not found in the communication module identification library, and / or the main controller identification information is not found in the main controller identification library, it indicates that the terminal is not qualified to go online.

12. The method according to claim 11, characterized in that, The method further includes: Receive server migration instructions sent by the system management device; Based on the server migration instruction, the key library, the communication module identifier library, and the main controller identifier library are sent to the new first server, so that the new first server can verify whether the terminal is qualified to go online based on the key library, the communication module identifier library, and the main controller identifier library.

13. A device for online operation, applied to a terminal, characterized in that, The terminal includes a main controller and a communication module. Data transmission between the server and the communication module occurs via a network, and data transmission between the communication module and the main controller occurs via electrical signals. The device includes: The first sending unit is used to control the communication module to send a first acquisition request to the main controller to acquire the main controller identification information; The first receiving unit is configured to control the communication module to receive the combined information returned by the main controller when responding to the first acquisition request; wherein, the combined information includes first encryption information and first sequence number information, the first encryption information is information in which the main controller encrypts the main controller identification information based on a preset first encryption algorithm, and the first sequence number information is the sequence number information of the key library in which the first key pair of the first encryption algorithm is located; An encryption unit is configured to control the communication module to concatenate communication module identification information, first sequence number information, and first encryption information based on a first data transmission protocol between the communication module and the first server, and to encrypt the concatenated information using a second key of a preset second encryption algorithm to obtain second encryption information. The first sending unit is used to send an online request to the first server; wherein, the online request includes the second encrypted information, so that the first server performs two decryption processes on the second encrypted information to obtain communication module identification information and main controller identification information, and the first server verifies the communication module and the main controller based on the communication module identification information and the main controller identification information to determine whether the terminal is qualified to go online; The first receiving unit is configured to receive online success information returned by the first server in response to the online request, indicating that the terminal has successfully communicated with the first server.

14. A device for online operation, applied to a first server, characterized in that, The device includes: The second receiving unit is used to receive an online request sent by a terminal. The terminal includes a main controller and a communication module. Data transmission between the server and the communication module occurs via a network, and data transmission between the communication module and the main controller occurs via electrical signals. The online request includes second encrypted information. The terminal controls the communication module to send a first acquisition request to the main controller to obtain the main controller's identification information. The terminal controls the communication module to receive combined information returned by the main controller in response to the first acquisition request. The combined information includes first encrypted information and first sequence number information. The first encrypted information is information encrypted by the main controller using a preset first encryption algorithm, and the first sequence number information is the sequence number information of the key database containing the first key pair of the first encryption algorithm. Based on a first data transmission protocol between the communication module and the first server, the terminal controls the communication module to concatenate the communication module's identification information, the first sequence number information, and the first encrypted information. The concatenated information is then encrypted using the second key pair of a preset second encryption algorithm to obtain the second encrypted information. The decryption unit is used to respond to the online request and decrypt the second encrypted information according to the second decryption algorithm to obtain the communication module identification information and combination information of the terminal. The decryption unit is used to decrypt the combined information according to the first decryption algorithm to obtain the main controller identification information of the terminal; The second sending unit is used to send an online success message to the terminal when it is determined that the terminal is qualified to go online based on the communication module identification information and the main controller identification information.

15. A terminal in an Internet of Things (IoT) control platform, characterized in that, The terminal includes a main controller and a communication module, and further includes a processor and a memory configured to store computer programs capable of running on the processor. Wherein, when the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 1 to 6.

16. A first server in an Internet of Things (IoT) control platform, characterized in that, The first server includes: a processor and a memory configured to store computer programs capable of running on the processor. Wherein, when the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 7 to 12.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Account verification method and device

    CN105516153A

  • Dynamic encryption / decryption method and system

    CN106100842A

  • Method for performing authentication between IOT (Internet of Things) terminal and cloud data platform

    CN106506157A

  • Power consumption data transmission system

    CN110636052A