Method, device and system for enabling internet of things card

CN116723217BActive Publication Date: 2026-06-02CHINA UNITED NETWORK COMM GRP CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-06-26
Publication Date
2026-06-02

Smart Images

  • Figure CN116723217B_ABST
    Figure CN116723217B_ABST
Patent Text Reader

Abstract

The application provides an activation method, device and system of an Internet of Things card, which can be used in the field of Internet of Things. The method comprises the following steps: obtaining device information of an Internet of Things device and Internet of Things card information; performing encryption processing on the device information of the Internet of Things device and the Internet of Things card information to generate encrypted information; receiving identification code information sent by a user device of a current user; performing decryption processing on the encrypted information in the identification code information to obtain card number information corresponding to decrypted information; and sending the card number information corresponding to the decrypted information to the user device. The method of the application can make the Internet of Things card information only transmitted in a server, so that the Internet of Things card information cannot be leaked, and the data security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT), and more particularly to a method, apparatus, and system for activating an IoT card. Background Technology

[0002] When users use IoT devices, they need to enable the corresponding IoT SIM card so that the IoT device can use the network traffic on the IoT SIM card to access the Internet and realize the IoT device's networking function.

[0003] In existing technologies, IoT cards and IoT devices are integrated into a single package. Users can scan a QR code on the IoT device to obtain the IoT card information, bind the IoT card information, and determine the data plan to activate the IoT card.

[0004] However, in the above method, the information of the IoT card needs to be transmitted from the backend server to the user's terminal device. During the information transmission process, there is an abnormal situation of information leakage, which in turn affects data security. Summary of the Invention

[0005] This application provides a method, apparatus, and system for enabling an Internet of Things (IoT) card, in order to solve the problem of data security being affected by information leakage during information transmission.

[0006] In a first aspect, this application provides a method for activating an Internet of Things (IoT) card, the method being applied to a server connected to a user equipment; the method includes:

[0007] Obtain device information and IoT card information of IoT devices; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device;

[0008] The device information of the IoT device and the IoT card information are encrypted to generate encrypted information; wherein, the encrypted information is used to generate an identification code, the identification code is set on the IoT device so that it can be scanned by the user device, and the identification code corresponds one-to-one with the IoT device;

[0009] Receive identification code information sent by the user's current user device; wherein the identification code information is obtained by the user device scanning the identification code on the IoT device, and the identification code information includes encrypted information; and decrypt the encrypted information in the identification code information to obtain the card number information corresponding to the decrypted information; wherein the card number information represents the card number of the IoT card encapsulated in the IoT device;

[0010] The card number information corresponding to the decryption information is sent to the user equipment; wherein, the card number information corresponding to the decryption information is used to activate the IoT card.

[0011] In one example, the device information of the IoT device and the IoT card information are encrypted to generate encrypted information, including:

[0012] According to a preset information processing smart contract, the device information of the IoT device and the IoT card information are verified to obtain a verification result; wherein, the verification result indicates whether the device information of the IoT device and the IoT card information have all passed the verification.

[0013] If the verification result indicates that the device information of the IoT device and the IoT card information have all passed the verification, then a string is determined based on the device information of the IoT device and the IoT card information; wherein, the string represents the card information of the IoT card encapsulated in the IoT device;

[0014] Based on the device information of the IoT device and a preset random number, key information is determined; wherein, the key information includes private key parameters and public key parameters;

[0015] The encrypted information is determined based on the private key parameter and the string.

[0016] In one example, according to a preset information processing smart contract, the device information of the IoT device and the IoT card information are verified to obtain the verification result, including:

[0017] The execution code corresponding to the preset information processing smart contract is triggered; wherein, the execution code is used to perform format verification on the device information of the IoT device and the IoT card information;

[0018] If it is determined that the format of the IoT device's device information and the format of the IoT card information both meet the preset conditions, then it is determined that the IoT device's device information and the IoT card information have all passed the verification; if it is determined that the format of the IoT device's device information does not meet the preset conditions, and / or if it is determined that the format of the IoT card information does not meet the preset conditions, then it is determined that the IoT device's device information and the IoT card information have all failed the verification.

[0019] In one example, based on the device information of the IoT device and the IoT card information, a string is determined, including:

[0020] The device information of the IoT device and the IoT card information are encapsulated to obtain encapsulated data;

[0021] The string is generated based on the encapsulated data.

[0022] In one example, the encrypted information in the identification code is decrypted to obtain the card number information corresponding to the decrypted information, including:

[0023] Based on the public key parameters, the encrypted information in the identification code information is decrypted to obtain the decrypted information; wherein, the decrypted information includes IoT card information;

[0024] If it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, then the card number information corresponding to the pre-stored IoT card information is determined from the database; wherein, the database is used to store preset IoT card information and card number information; the preset IoT card information and the card number information correspond one-to-one.

[0025] In one example, the device information of the IoT device includes the device code information and the manufacturer code information of the IoT device;

[0026] The IoT card information includes the IoT card identification code information and the IoT card unlock code information;

[0027] The identification code is a QR code or a one-dimensional code.

[0028] Secondly, this application provides a method for activating an Internet of Things (IoT) card, the method being applied to a user equipment connected to a server; the method includes:

[0029] In response to the scanning command input by the current user, the system scans the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, the identification code corresponds one-to-one with the IoT device, the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device;

[0030] The encrypted information is sent to the server; wherein the encrypted information is used to obtain the card number information corresponding to the decrypted information after being decrypted; wherein the card number information represents the card number of the IoT card encapsulated in the IoT device;

[0031] Receive the card number information corresponding to the decryption information sent by the server, and obtain the user information input by the current user;

[0032] The IoT card is activated based on the user information entered by the current user and the card number information corresponding to the decryption information; wherein the user information entered by the current user and the card number information are associated.

[0033] In one example, after scanning the identification code on an IoT device and obtaining the identification code information, the process also includes:

[0034] The encrypted information in the identification code information is verified to obtain a verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification.

[0035] If the verification result indicates that the encrypted information in the identification code information has been verified, then the step of sending the encrypted information to the server is executed.

[0036] In one example, the encrypted information includes manufacturer identification information, wherein the manufacturer identification information represents the manufacturer's identifier of the IoT device; the encrypted information in the identification code information is verified to obtain a verification result, including:

[0037] Retrieve the pre-stored manufacturer identifier and compare it with the manufacturer identifier of the encrypted information;

[0038] If the manufacturer identifier of the encrypted information is determined to be consistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed successful; if the manufacturer identifier of the encrypted information is determined to be inconsistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed unsuccessful.

[0039] In one example, enabling the IoT card based on the user information entered by the current user and the card number information includes:

[0040] The user information input by the current user is authenticated to obtain an authentication result; wherein, the authentication result indicates whether the user information input by the current user has been successfully authenticated.

[0041] If the authentication result indicates that the user information entered by the current user has been successfully authenticated, then the association between the user information entered by the current user and the card number information is determined, and the data plan information of the IoT card is determined to enable the IoT card; wherein, the data plan information is used for IoT devices to access the network for Internet access; if the authentication result indicates that the user information entered by the current user has failed to be authenticated, then the step of scanning the identification code on the IoT device to obtain encrypted information is executed.

[0042] In one example, the user information entered by the current user is authenticated to obtain an authentication result, including:

[0043] The user information entered by the current user is reviewed. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is deemed to have passed authentication.

[0044] If it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or it is determined that the user information entered by the current user is invalid, then it is determined that the authentication of the user information entered by the current user fails.

[0045] In one example, the device information of the IoT device includes the device code information and the manufacturer code information of the IoT device;

[0046] The IoT card information includes the IoT card identification code information and the IoT card unlock code information;

[0047] The identification code is a QR code or a one-dimensional code.

[0048] Thirdly, this application provides an activation device for an Internet of Things (IoT) card, the device being applied to a server, the server being connected to a user equipment; the device includes:

[0049] The acquisition unit is used to acquire device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device;

[0050] An encryption unit is used to encrypt the device information of the IoT device and the IoT card information to generate encrypted information; wherein, the encrypted information is used to generate an identification code, the identification code is used to be set on the IoT device for scanning by a user device, and the identification code corresponds one-to-one with the IoT device;

[0051] The receiving unit is used to receive identification code information sent by the user equipment of the current user; wherein the identification code information is obtained by the user equipment scanning the identification code on the Internet of Things device, and the identification code information includes encrypted information;

[0052] The decryption unit is used to decrypt the encrypted information in the identification code information to obtain the card number information corresponding to the decrypted information; wherein, the card number information represents the card number of the Internet of Things card encapsulated in the Internet of Things device;

[0053] A sending unit is used to send the card number information corresponding to the decryption information to the user equipment; wherein the card number information corresponding to the decryption information is used to activate the IoT card.

[0054] In one example, the encryption unit includes:

[0055] The verification module is used to verify the device information of the IoT device and the IoT card information according to a preset information processing smart contract, and obtain a verification result; wherein, the verification result indicates whether the device information of the IoT device and the IoT card information have all passed the verification.

[0056] The first determining module is configured to determine a string based on the device information of the IoT device and the IoT card information if the verification result indicates that the device information of the IoT device and the IoT card information have all passed the verification; wherein the string represents the card information of the IoT card encapsulated in the IoT device.

[0057] The second determining module is used to determine key information based on the device information of the IoT device and a preset random number; wherein, the key information includes private key parameters and public key parameters;

[0058] The third determining module is used to determine the encrypted information based on the private key parameter and the string.

[0059] In one example, the verification module includes:

[0060] The triggering submodule is used to trigger the execution code corresponding to the preset information processing smart contract; wherein, the execution code is used to perform format verification on the device information of the IoT device and the IoT card information;

[0061] The determination submodule is configured to determine that if the format of the IoT device's device information and the format of the IoT card information both meet preset conditions, then the verification of the IoT device's device information and the IoT card information is deemed to have passed; if the format of the IoT device's device information does not meet the preset conditions, and / or if the format of the IoT card information does not meet the preset conditions, then the verification of the IoT device's device information and the IoT card information is deemed to have failed.

[0062] In one example, the first determining module includes:

[0063] The encapsulation submodule is used to encapsulate the device information of the IoT device and the IoT card information to obtain encapsulated data;

[0064] A generation submodule is used to generate the string based on the encapsulated data.

[0065] In one example, the decryption unit includes:

[0066] The decryption module is used to decrypt the encrypted information in the identification code information according to the public key parameters to obtain the decrypted information; wherein, the decrypted information includes IoT card information;

[0067] The fourth determining module is used to determine the card number information corresponding to the pre-stored IoT card information from the database if it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information; wherein, the database is used to store the preset IoT card information and card number information; the preset IoT card information and the card number information correspond one-to-one.

[0068] In one example, the device information of the IoT device includes the device code information and the manufacturer code information of the IoT device;

[0069] The IoT card information includes the IoT card identification code information and the IoT card unlock code information;

[0070] The identification code is a QR code or a one-dimensional code.

[0071] Fourthly, this application provides an activation device for an Internet of Things (IoT) card, the device being applied to a user equipment connected to a server; the device includes:

[0072] A scanning unit is used to respond to a scanning command input by the current user and scan the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, and the identification code corresponds one-to-one with the IoT device; the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device;

[0073] A sending unit is used to send the encrypted information to the server; wherein the encrypted information is used to obtain the card number information corresponding to the decrypted information after decryption processing; the card number information represents the card number of the IoT card encapsulated in the IoT device;

[0074] The receiving unit is used to receive the card number information corresponding to the decryption information sent by the server;

[0075] The acquisition unit is used to acquire the user information input by the current user;

[0076] An activation unit is used to activate the IoT card based on the user information input by the current user and the card number information corresponding to the decryption information; wherein the user information input by the current user and the card number information are associated.

[0077] In one example, after the scanning unit scans the identification code on the IoT device and obtains the identification code information, it also includes:

[0078] The verification unit is used to verify the encrypted information in the identification code information to obtain a verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification.

[0079] The determining unit is configured to, if the verification result indicates that the encrypted information in the identification code information has been verified, then execute the step of sending the encrypted information to the server.

[0080] In one example, the encrypted information includes manufacturer identification information, wherein the manufacturer identification information represents the manufacturer's identifier of the IoT device; the verification unit includes:

[0081] The retrieval module is used to retrieve the pre-stored manufacturer identifier and compare the pre-stored manufacturer identifier with the manufacturer identifier of the encrypted information;

[0082] The first determining module is used to determine that the encrypted information verification is successful if the manufacturer identifier of the encrypted information is consistent with the pre-stored manufacturer identifier; and to determine that the encrypted information verification is unsuccessful if the manufacturer identifier of the encrypted information is inconsistent with the pre-stored manufacturer identifier.

[0083] In one example, the enabling unit includes:

[0084] The authentication module is used to authenticate the user information input by the current user and obtain an authentication result; wherein, the authentication result indicates whether the user information input by the current user has been successfully authenticated.

[0085] The second determining module is used to determine the association between the user information entered by the current user and the card number information if the authentication result indicates that the authentication of the user information entered by the current user is successful, and to determine the data plan information of the IoT card to enable the IoT card; wherein the data plan information is used for IoT devices to access the network for Internet access; if the authentication result indicates that the authentication of the user information entered by the current user is unsuccessful, the module performs the step of scanning the identification code on the IoT device to obtain encrypted information.

[0086] In one example, the authentication module includes:

[0087] The first determining submodule is used to review the user information entered by the current user. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is determined to be authenticated.

[0088] The second determining submodule is used to determine that the authentication of the user information entered by the current user fails if it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or it is determined that the user information entered by the current user is invalid.

[0089] In one example, the device information of the IoT device includes the device code information and the manufacturer code information of the IoT device;

[0090] The IoT card information includes the IoT card identification code information and the IoT card unlock code information;

[0091] The identification code is a QR code or a one-dimensional code.

[0092] Fifthly, this application provides a server, the server comprising: a processor, and a memory communicatively connected to the processor;

[0093] The memory stores computer-executed instructions;

[0094] The processor executes computer execution instructions stored in the memory to implement the method as described in the first aspect.

[0095] Sixthly, this application provides a user equipment, the user equipment comprising: a processor, and a memory communicatively connected to the processor;

[0096] The memory stores computer-executed instructions;

[0097] The processor executes computer execution instructions stored in the memory to implement the method as described in the second aspect.

[0098] In a seventh aspect, this application provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the method described in either the first or second aspect.

[0099] Eighthly, this application provides an IoT card activation system, the system comprising: a server, and a user equipment connected to the server; the system is used to implement the method described in either the first or second aspect.

[0100] The IoT card activation method, apparatus, and system provided in this application integrate the IoT card and IoT device into a single package. The server encrypts the IoT card information according to different manufacturers and generates an identification code, which is then set on the IoT device. The user obtains the encrypted information by scanning the identification code with their user device and sends it to the server. The server decrypts the encrypted information to obtain the IoT card information. The user activates the IoT card based on the corresponding IoT card number received from the server. Furthermore, the server encrypts and decrypts the IoT card information, ensuring that the IoT card information is transmitted only within the server, preventing information leakage and improving data security. Attached Figure Description

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

[0102] Figure 1 A flowchart illustrating an IoT card activation method provided in this application embodiment;

[0103] Figure 2 A flowchart illustrating another method for enabling an IoT card provided in an embodiment of this application;

[0104] Figure 3 This is a schematic diagram of the structure of an integrated support system for IoT cards and devices provided in an embodiment of this application;

[0105] Figure 4 A flowchart illustrating an IoT card activation method provided in this application embodiment;

[0106] Figure 5 A flowchart illustrating another method for enabling an IoT card provided in an embodiment of this application;

[0107] Figure 6 A schematic flowchart of an IoT card activation device provided in an embodiment of this application;

[0108] Figure 7 A schematic diagram of another IoT card activation device provided in an embodiment of this application;

[0109] Figure 8 A schematic diagram of the structure of an IoT card activation device provided in an embodiment of this application;

[0110] Figure 9 A schematic diagram of another IoT card activation device provided in an embodiment of this application;

[0111] Figure 10 This application provides a schematic diagram of the structure of a server according to an embodiment of the present application.

[0112] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0113] Figure 12 This is a schematic diagram of the structure of an IoT card activation system provided in an embodiment of this application.

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

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

[0116] With the rapid development of the Internet of Things (IoT) industry, the demand for networks from IoT devices is increasing, and the number of IoT cards issued is also growing. When users use IoT devices, they need to activate the IoT card corresponding to the IoT device so that the IoT device can use the network traffic in the IoT card to access the Internet and realize the networking function of the IoT device.

[0117] In one example, the IoT SIM card and IoT device are integrated into a single package. Users can scan a QR code on the IoT device to obtain the IoT SIM card information, bind the IoT SIM card information, and determine the data plan to activate the IoT SIM card.

[0118] However, in the above method, the information of the IoT card needs to be transmitted from the backend server to the user's terminal device. During the information transmission process, there is an abnormal situation of information leakage, which in turn affects data security.

[0119] The IoT card activation method, apparatus, and system provided in this application are intended to solve the above-mentioned technical problems of the prior art.

[0120] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0121] It should be noted that the activation method, device and system of the IoT card in this application can be used in the field of IoT, or in any field other than IoT. The application field of the activation method, device and system of the IoT card in this application is not limited.

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

[0123] Figure 1 A flowchart illustrating an IoT card activation method provided in this application embodiment is shown below. Figure 1 As shown, this method is applied to a server, which is connected to a user device; the method includes:

[0124] S101. Obtain the device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0125] For example, the execution entity in this embodiment can be a server. To ensure that the IoT card is not used on other IoT devices that do not belong to the corresponding IoT device and to control the flow of IoT cards, for the IoT device that the user currently needs to use, the device manufacturer integrates the IoT device and the IoT card used with the IoT device into a single package. Based on the server, the device information of the IoT device and the card information of the IoT card packaged on the IoT device can be obtained from a local database or from the IoT card device manufacturer.

[0126] S102. Encrypt the device information and IoT card information of the IoT device to generate encrypted information; wherein, the encrypted information is used to generate an identification code, the identification code is set on the IoT device so that it can be scanned by the user device, and the identification code corresponds one-to-one with the IoT device.

[0127] For example, to ensure the data security of IoT card information, based on a server, for each IoT device, the device information of each IoT device and the corresponding card information of each IoT card are obtained. This information is then encrypted using encryption algorithms, such as symmetric or asymmetric encryption algorithms, to obtain encrypted information for each IoT card. After generating the encrypted information, the server processes it to generate a corresponding identification code, which is then provided to the IoT device manufacturer. The manufacturer prints each identification code and affixes it to the IoT device corresponding to that code. Upon receiving the IoT device, the user can issue a scanning command based on their own device, such as by using the scanning function of a pre-installed app on their device to scan the identification code on the IoT device.

[0128] S103. Receive the identification code information sent by the user equipment of the current user; wherein, the identification code information is obtained by the user equipment scanning the identification code on the IoT device, and the identification code information includes encrypted information; and decrypt the encrypted information in the identification code information to obtain the card number information corresponding to the decrypted information; the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0129] For example, after a user scans the identification code on an IoT device using their user device, they obtain the identification code information. Then, based on the user device, they send the obtained identification code information to the server. The server receives the identification code information sent by the user device. This identification code information includes encrypted information obtained after previously encrypting the device information and IoT card information of the IoT device. After receiving the identification code information, the server extracts the encrypted information from it and decrypts it using a preset decryption algorithm to obtain the decrypted IoT card information. Based on this IoT card information, the server can find the corresponding IoT card number information from a locally deployed database, that is, find the IoT card number encapsulated in the user's current IoT device.

[0130] S104. Send the card number information corresponding to the decrypted information to the user equipment; wherein, the card number information corresponding to the decrypted information is used to enable the IoT card.

[0131] For example, after finding the card number information corresponding to the decrypted information, the server sends the card number information to the user's currently held user device. The user device receives the card number information sent by the server and obtains the user information pre-entered by the user; based on the user device, the received card number information and the obtained user information are associated and bound, thus binding the IoT card with the user information, making the traffic usage of the IoT device controllable. After the binding operation is completed, the user device will prompt the user that the card number information and user information binding is complete, and the user issues an activation command to the user device, causing the user device to activate the IoT card corresponding to the card number information; then, by using the traffic of the IoT card, the IoT device's network connectivity function is realized.

[0132] This embodiment provides a method for activating an IoT card. The IoT card and IoT device are integrated into a single package. The server encrypts the IoT card information according to different manufacturers and generates an identification code, which is then set on the IoT device. The user scans the identification code with their user device to obtain the encrypted information and sends it to the server. The server decrypts the encrypted information to obtain the IoT card information. The user activates the IoT card based on the corresponding IoT card number received from the server. Furthermore, the server's encryption and decryption of the IoT card information ensures that the information is transmitted only within the server, preventing data leakage and improving data security.

[0133] Figure 2 A flowchart illustrating another method for enabling an IoT card provided in this application embodiment is shown below. Figure 2 As shown, this method is applied to a server, which is connected to a user device; the method includes:

[0134] S201. Obtain the device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0135] In one example, the device information of an IoT device includes the device code information and the manufacturer code information of the IoT device; the IoT card information includes the identification code information and the unlocking code information of the IoT card.

[0136] For example, the execution entity in this embodiment can be a server. First, Figure 3 This is a schematic diagram of the structure of an integrated IoT card and device support system provided in an embodiment of this application, as shown below. Figure 3As shown, to ensure that IoT cards are not used on other IoT devices that do not belong to them and to control the flow of IoT cards, a pre-defined integrated support system for IoT cards and devices is established. This system includes a device layer, where the device manufacturer integrates the IoT device and the IoT card used with it into a single package for the user's current IoT device. The system also includes a user operation layer, which performs relevant operations based on the user's device. Furthermore, the system includes a data layer, which, based on a server, can obtain device information of the IoT device from a local database or from the IoT card manufacturer, including the device code and manufacturer code of the IoT device; it also obtains the card information of the IoT card packaged on the IoT device, including the IoT card's identification code and unlock code. Finally, the system includes a service layer, which provides relevant services based on the data.

[0137] S202. According to the preset information processing smart contract, the device information and IoT card information of the IoT device are verified to obtain the verification result; wherein, the verification result indicates whether all the device information and IoT card information of the IoT device have passed the verification.

[0138] For example, an information processing smart contract is pre-deployed in the server to verify the device information and IoT card information of the IoT device. After the server obtains the device information and IoT card information of the IoT device, it performs verification processing on the device information and IoT card information of the IoT device according to the verification rules corresponding to the pre-set information processing smart contract, and obtains the verification result of whether the device information and IoT card information of the IoT device have passed the verification.

[0139] In one example, step S202 includes the following steps:

[0140] The first step of step S202 is to trigger the execution code corresponding to the preset information processing smart contract; wherein, the execution code is used to perform format verification on the device information and IoT card information of the IoT device.

[0141] In the second step of step S202, if it is determined that the format of the IoT device information and the format of the IoT card information both meet the preset conditions, then it is determined that the IoT device information and the IoT card information have all passed the verification; if it is determined that the format of the IoT device information does not meet the preset conditions, and / or, if it is determined that the format of the IoT card information does not meet the preset conditions, then it is determined that the IoT device information and the IoT card information have all failed the verification.

[0142] For example, to ensure the validity of the encrypted information, a smart contract for information processing is pre-deployed on the server to verify the device information and IoT card information of the IoT device. When the server obtains the device information and IoT card information, it triggers the execution code corresponding to the pre-defined smart contract to perform format verification on the device information and IoT card information respectively. Based on the server, according to preset conditions, such as preset formats, the formats of the device information and IoT card information are compared with preset formats. If both the device information and IoT card information formats match the preset formats, then the verification of the device information and IoT card information has passed. If the device information and IoT card information formats do not match the preset formats, and / or if the IoT card information formats do not match the preset formats, then the verification of the device information and IoT card information has failed.

[0143] S203. If the verification result indicates that the device information and IoT card information of the IoT device have all passed the verification, then determine the string based on the device information and IoT card information of the IoT device; wherein, the string represents the card information of the IoT card encapsulated in the IoT device.

[0144] For example, based on the server, after verifying the acquired device information and IoT card information of the IoT device, if the verification results show that all the device information and IoT card information of the IoT device have passed the verification, it means that the device information and IoT card information are valid. Then, based on the server, the device information and IoT card information are encrypted and calculated using a preset encryption algorithm to obtain the string corresponding to the device information and IoT card information, such as obtaining a hash string through a hash algorithm. The content represented by this string is the card information of the IoT card encapsulated in the IoT device.

[0145] In one example, step S203 includes the following steps:

[0146] The first step of step S203 is to encapsulate the device information and IoT card information of the IoT device to obtain encapsulated data.

[0147] The second step of step S203 is to generate a string based on the encapsulated data.

[0148] For example, based on the server, after verifying the acquired device information and IoT card information of the IoT device, if the verification results show that all the device information and IoT card information of the IoT device have passed the verification, it means that the device information and IoT card information are valid. Then, based on the server, the device information and IoT card information are first encapsulated to obtain encapsulated data in a unified encapsulation format. Then, the server performs encryption calculation on the encapsulated data using a preset encryption algorithm to obtain the string corresponding to the encapsulated data, such as obtaining a hash string through a hash algorithm. The content represented by this string is the card information of the IoT card encapsulated in the IoT device.

[0149] S204. Determine the key information based on the device information of the IoT device and the preset random number; wherein, the key information includes private key parameters and public key parameters.

[0150] For example, in order to improve the data security of IoT card information, the server needs to set different encryption parameters, i.e. key information, according to different device manufacturers to encrypt the IoT card information. Therefore, the obtained device information of IoT devices, including device number, device manufacturer number, etc., and preset random numbers, can be calculated and processed using existing encryption parameter generation technology to generate a corresponding pair of key information, including private key parameters and public key parameters. The encryption parameters corresponding to the information of the IoT card encapsulated on each IoT device are different, thereby improving the data security of the IoT card information.

[0151] S205. Determine the encrypted information based on the private key parameters and the string.

[0152] For example, based on a server, for each IoT device, the private key parameter and the generated string are extracted from the generated key information. Using a preset encryption algorithm, the private key parameter and string are processed to obtain encrypted information. After generating the encrypted information, the server processes it to generate a corresponding identification code. This identification code is provided to the IoT device manufacturer; for example, the encrypted information combined with manufacturer information forms a QR code and a barcode. The device manufacturer prints each identification code and affixes it to the IoT device corresponding to that code, selecting different display methods based on the device's size. After receiving the IoT device, the user can issue a scanning command based on their own device, such as opening the scanning function of a mini-program installed on the user's device to scan the identification code on the IoT device.

[0153] S206. Receive identification code information sent by the user's current user equipment; wherein the identification code information is obtained by the user equipment scanning the identification code on the IoT device, and the identification code information includes encrypted information.

[0154] In one example, the identification code is either a QR code or a one-dimensional barcode.

[0155] For example, after a user scans the identification code on an IoT device using their user device, they obtain the identification code information. Then, based on the user device, they send the obtained identification code information to the server. The server receives the identification code information sent by the user device. This identification code information includes encrypted information obtained after previously encrypting the device information and IoT card information of the IoT device. The identification code can be a QR code or a one-dimensional barcode.

[0156] S207. Based on the public key parameters, decrypt the encrypted information in the identification code information to obtain decrypted information; wherein, the decrypted information contains IoT card information.

[0157] For example, after receiving the identification code information, the server extracts the encrypted information from the identification code information and the public key parameter from the previously generated key information. Based on a preset decryption algorithm, the server performs decryption calculations on the public key parameter and the encrypted information to obtain the decrypted IoT card information.

[0158] S208. If it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, then the card number information corresponding to the pre-stored IoT card information is determined from the database; wherein, the database is used to store the preset IoT card information and card number information; the preset IoT card information and card number information correspond one-to-one.

[0159] For example, to ensure data security, a database is deployed locally on the server. This database stores IoT card information and corresponding IoT card number information. The corresponding IoT card can be used using this card number information. Based on the server, after obtaining the decrypted IoT card information, the server checks this information by comparing it one-to-one with the IoT card information stored in the database. If a matching IoT card is found in the database, it means the corresponding IoT card can be used. Then, based on the pre-stored matching IoT card information and the pre-defined one-to-one correspondence between IoT card information and card number information, the server retrieves the corresponding IoT card number information from the deployed database, i.e., finds the card number of the IoT card encapsulated in the user's current IoT device.

[0160] S209. Send the card number information corresponding to the decrypted information to the user equipment; wherein, the card number information corresponding to the decrypted information is used to activate the IoT card.

[0161] For example, after finding the card number information corresponding to the decrypted information, the server sends the card number information to the user's currently held user device. The user device receives the card number information sent by the server and obtains the user information pre-entered by the user. Based on the user device, the received card number information and the obtained user information are associated and bound. This binding of the IoT card with the user information makes the traffic usage of the IoT device controllable. After the binding operation is completed, the user device will prompt the user that the card number information and user information binding is complete. The user then issues an activation command to the user device, enabling the user device to activate the IoT card corresponding to the card number information; thereby, the network connectivity function of the IoT device is realized by using the traffic of the IoT card.

[0162] In this embodiment, based on the above embodiments, on the one hand, by integrating the IoT card and IoT device into a single package, the server encrypts the IoT card information according to different manufacturers and generates an identification code set on the IoT device; the user obtains the encrypted information by scanning the identification code with the user device and sends the encrypted information to the server, which decrypts it to obtain the IoT card information; the user activates the IoT card based on the corresponding IoT card number sent back by the server with the user device; thereby controlling the flow of IoT cards; on the other hand, by setting different encryption parameters according to different device manufacturer information, the data security of IoT card information is further improved.

[0163] Figure 4 A flowchart illustrating an IoT card activation method provided in this application embodiment is shown below. Figure 4 As shown, this method is applied to a user equipment, which is connected to a server; the method includes:

[0164] S301. Responding to the scanning command input by the current user, scan the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, the identification code corresponds one-to-one with the IoT device, the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0165] For example, firstly, to ensure that the IoT card is not used on other IoT devices that do not belong to the corresponding device, the flow of IoT cards is controlled. For the IoT device that the user currently needs to use, the device manufacturer integrates the IoT device and the IoT card used with it into a single package. To ensure the data security of the IoT card information, based on the server, for each IoT device, the device information of each IoT device and the card information of each corresponding IoT card are obtained and encrypted using encryption algorithms, such as symmetric or asymmetric encryption algorithms, to obtain the encrypted information corresponding to each IoT card. Based on the server, after generating the encrypted information, the encrypted information is processed to generate a corresponding identification code, and the generated identification code is provided to the IoT device manufacturer. The device manufacturer prints each identification code and affixes the printed identification code to the IoT device corresponding to that identification code. After receiving the IoT device, the user can issue a scanning command based on the user's device, such as opening the scanning function of a mini-program installed on the user's device, and scanning the identification code on the IoT device. The identification code information includes the encrypted information obtained after the previous encryption of the device information and IoT card information.

[0166] S302. Send the encrypted information to the server; wherein, the encrypted information is used to obtain the card number information corresponding to the decrypted information after being decrypted; the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0167] For example, based on the user device, the acquired identification code information is sent to the server. After receiving the identification code information, the server extracts the encrypted information from the identification code information and decrypts the encrypted information based on a preset decryption algorithm to obtain the decrypted IoT card information. Based on this IoT card information, the server can find the card number information of the IoT card corresponding to this IoT card information from the locally deployed database, that is, find the card number of the IoT card encapsulated in the user's current IoT device.

[0168] S303. Receive the card number information corresponding to the decryption information sent by the server, and obtain the user information entered by the current user.

[0169] For example, after finding the card number information corresponding to the decrypted information, the server sends the card number information to the user's currently held user device. The user device receives the card number information sent by the server and obtains the user information that the user has pre-entered.

[0170] S304. Activate the IoT card based on the user information entered by the current user and the card number information corresponding to the decryption information; wherein, the user information entered by the current user and the card number information are related.

[0171] For example, by associating and binding the received card number information with the acquired user information based on the user equipment, the IoT card is bound to the user information, making the traffic usage of the IoT device controllable. After the binding operation is completed, the user equipment will prompt the user that the card number information and user information are bound. The user then issues an activation command to the user equipment, enabling the user equipment to activate the IoT card corresponding to the card number information. Subsequently, the IoT device's network connectivity is achieved using the traffic of the IoT card.

[0172] This embodiment provides a method for activating an IoT card. The IoT card and IoT device are integrated into a single package. The server encrypts the IoT card information according to different manufacturers and generates an identification code, which is then set on the IoT device. The user scans the identification code with their user device to obtain the encrypted information and sends it to the server. The server decrypts the encrypted information to obtain the IoT card information. The user activates the IoT card based on the corresponding IoT card number received from the server. Furthermore, the server's encryption and decryption of the IoT card information ensures that the information is transmitted only within the server, preventing data leakage and improving data security.

[0173] Figure 5 A flowchart illustrating another method for enabling an IoT card provided in this application embodiment is shown below. Figure 5 As shown, this method is applied to a user equipment, which is connected to a server; the method includes:

[0174] S401. Responding to the scanning command input by the current user, scan the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, the identification code corresponds one-to-one with the IoT device, the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0175] In one example, the device information of the IoT device includes the device code information and the manufacturer code information of the IoT device; the IoT card information includes the identification code information and the unlocking code information of the IoT card; the identification code is a QR code or a barcode.

[0176] For example, firstly, to ensure that the IoT card is not used on other IoT devices that do not belong to the corresponding IoT device, the flow of IoT cards is controlled. For the IoT device that the user currently needs to use, the device manufacturer integrates the IoT device and the IoT card used with that IoT device into a single package. To ensure the data security of the IoT card information, based on the server, for each IoT device, the device information of each IoT device and the card information of each corresponding IoT card are obtained, including: the device code information and the manufacturer code information of the IoT device, as well as the identification code information and unlocking code information of the IoT card. Encryption is performed using encryption algorithms, such as symmetric or asymmetric encryption algorithms, to obtain the encrypted information corresponding to each IoT card. Based on the server, after generating the encrypted information, the encrypted information is processed to generate the corresponding identification code, which is then provided to the IoT device manufacturer. The device manufacturer prints each identification code and affixes the printed identification code to the IoT device corresponding to that identification code. The identification code can be a QR code or a barcode. After receiving the IoT device, the user can issue a scanning command to the user device based on the user device they own. For example, they can open the scanning function of the mini-program installed on the user device and scan the identification code on the IoT device. The identification code information includes encrypted information obtained after the device information and IoT card information of the IoT device have been encrypted.

[0177] S402. Verify the encrypted information in the identification code information to obtain the verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification.

[0178] For example, in order to determine that the current IoT device is a device from a partner manufacturer, the user device needs to verify the identification code information on the IoT device after obtaining the identification code information; that is, the user device extracts the encrypted information from the received identification code information, verifies the encrypted information according to the preset verification rules, and obtains the verification result of whether the encrypted information in the identification code information has passed the verification.

[0179] In one example, the encrypted information includes manufacturer identification information, whereby the manufacturer identification information represents the manufacturer's identifier for the IoT device; step S402 includes the following steps:

[0180] The first step of step S402 is to retrieve the pre-stored manufacturer identifier and compare it with the manufacturer identifier of the encrypted information.

[0181] In the second step of step S402, if the manufacturer identifier of the encrypted information is consistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed successful; if the manufacturer identifier of the encrypted information is inconsistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed unsuccessful.

[0182] For example, to determine if the current IoT device belongs to a partner manufacturer, the server sets corresponding manufacturer identification information for each encrypted message when generating encrypted information. This manufacturer identification information represents the manufacturer's identifier for the IoT device. Specifically, the user device extracts the manufacturer identification information from the received encrypted information and retrieves a pre-stored manufacturer identification, comparing it with the manufacturer identification information of the encrypted information. If the manufacturer identification information matches the pre-stored manufacturer identification, the encrypted information verification is successful, indicating that the IoT device corresponding to the encrypted information belongs to a partner manufacturer. If the manufacturer identification information does not match the pre-stored manufacturer identification, the encrypted information verification fails, indicating that the IoT device corresponding to the encrypted information is not a partner manufacturer's device, or that the identification code is invalid. In this case, the user device can prompt the user that the identification code is invalid.

[0183] S403. If it is determined that the verification result represents the encrypted information in the identification code information has been verified, then the step of sending the encrypted information to the server is executed.

[0184] Specifically, after the user equipment verifies the encrypted information in the identification code information, if the encrypted information in the identification code information passes the verification, then step S404 is executed.

[0185] S404. Send the encrypted information to the server; wherein, the encrypted information is used to obtain the card number information corresponding to the decrypted information after being decrypted; the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0186] For example, the user equipment sends the encrypted information from the identification code information, or the verified encrypted information, to the server. Upon receiving the encrypted information, the server extracts the public key parameter from the previously generated key information. Based on a preset decryption algorithm, it performs decryption calculations on the public key parameter and the encrypted information to obtain the decrypted IoT card information. The server then retrieves the IoT card number information corresponding to this IoT card information from its deployed database, i.e., it finds the IoT card number encapsulated in the user's current IoT device. After finding the card number information corresponding to the decrypted information, the server sends this card number information to the user equipment currently held by the user.

[0187] S405. Receive the card number information corresponding to the decryption information sent by the server, and obtain the user information entered by the current user.

[0188] For example, the user equipment receives card number information sent by the server, and after receiving the information, obtains the user information that the user has pre-entered.

[0189] S406. Perform authentication processing on the user information entered by the current user to obtain the authentication result; wherein, the authentication result indicates whether the user information entered by the current user has been successfully authenticated.

[0190] For example, in order to ensure that the current user's information is authentic and valid and to prevent the abuse of IoT cards, after the user device extracts the user information, it performs authentication and review processing on the user information according to the preset real-name authentication rules to determine whether the user information entered by the current user has been successfully authenticated.

[0191] In one example, step S406 includes the following steps:

[0192] The first step of step S406 is to review the user information entered by the current user. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is deemed to have passed authentication.

[0193] The second step of step S406 is: if it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or it is determined that the user information entered by the current user is invalid, then it is determined that the authentication of the user information entered by the current user fails.

[0194] For example, to ensure the authenticity and validity of the current user's information and prevent the misuse of IoT cards, the user device, after extracting the user information, reviews and processes it. For instance, it might redirect the user to a real-name authentication mini-program for real-name authentication and facial recognition to ensure that facial recognition information is not leaked during the real-name process, thus determining if the user's account is abnormal. Simultaneously, the user device reviews the user information to determine if the user's input is authentic and valid. Based on the user device's assessment, if it determines that the account information in the user's input is not abnormal and that the input is valid, then the user's input authentication is successful. If it determines that the account information in the user's input is abnormal, such as an incorrect account, an unpaid account, or a frozen account, and / or that the input is invalid, then the user's authentication fails, and the user needs to be prompted to scan the code again or re-enter their information for authentication.

[0195] S407. If the authentication result indicates that the user information entered by the current user has been successfully authenticated, then the association between the user information entered by the current user and the card number information is determined, and the data plan information of the IoT card is determined to enable the IoT card; wherein, the data plan information is used for the IoT device to access the network for Internet access; if the authentication result indicates that the user information entered by the current user has failed to be authenticated, then the step of scanning the identification code on the IoT device to obtain encrypted information is executed.

[0196] For example, based on the user equipment, after authenticating the user information entered by the current user, if the authentication is successful, the user information is associated with and bound to the received card number information. This binding of the IoT card with the user information allows for controllable data usage by the IoT device. After the binding is complete, the user equipment will notify the user that the card number and user information are bound. The user then issues a command to confirm the data plan information. The user equipment responds to this command by confirming the selected data plan information. Then, based on the user's activation command, the user equipment activates the IoT card corresponding to the card number information. Finally, using the data plan information corresponding to the confirmed IoT card, the IoT device's network connectivity is achieved.

[0197] In this embodiment, based on the above embodiments, on the one hand, by integrating the IoT card and IoT device into a single package, the server encrypts the IoT card information according to different manufacturers and generates an identification code set on the IoT device; the user obtains the encrypted information by scanning the identification code with their user device and sends the encrypted information to the server, which decrypts it to obtain the IoT card information; the user activates the IoT card based on the corresponding IoT card number sent back by the server with their user device; thus, the flow of IoT cards is controlled, improving the data security of IoT card information; on the other hand, the user device verifies the user information submitted by the user, ensuring that only users with valid user information can activate the IoT card to use the IoT device; thus, the circulation channels of IoT cards are controlled.

[0198] Figure 6 This is a schematic diagram of the structure of an IoT card activation device provided in an embodiment of this application, as shown below. Figure 6 As shown, the device 500 is used in a server, which is connected to a user device; the device 500 includes:

[0199] The acquisition unit 501 is used to acquire device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0200] The encryption unit 502 is used to encrypt the device information and IoT card information of the IoT device to generate encrypted information; wherein, the encrypted information is used to generate an identification code, the identification code is used to be set on the IoT device so that it can be scanned by the user device, and the identification code corresponds one-to-one with the IoT device.

[0201] The receiving unit 503 is used to receive the identification code information sent by the user equipment of the current user; wherein the identification code information is obtained by the user equipment scanning the identification code on the Internet of Things device, and the identification code information includes encrypted information.

[0202] The decryption unit 504 is used to decrypt the encrypted information in the identification code information to obtain the card number information corresponding to the decrypted information; wherein, the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0203] The sending unit 505 is used to send the card number information corresponding to the decrypted information to the user equipment; wherein, the card number information corresponding to the decrypted information is used to enable the Internet of Things card.

[0204] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0205] Figure 7 A schematic diagram of another IoT card activation device provided in this application embodiment is shown below. Figure 7 As shown, the device 600 is used in a server, which is connected to a user device; the device 600 includes:

[0206] The acquisition unit 601 is used to acquire device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0207] The encryption unit 602 is used to encrypt the device information and IoT card information of the IoT device to generate encrypted information; wherein, the encrypted information is used to generate an identification code, the identification code is used to be set on the IoT device so that it can be scanned by the user device, and the identification code corresponds one-to-one with the IoT device.

[0208] The receiving unit 603 is used to receive the identification code information sent by the user equipment of the current user; wherein the identification code information is obtained by the user equipment scanning the identification code on the Internet of Things device, and the identification code information includes encrypted information.

[0209] The decryption unit 604 is used to decrypt the encrypted information in the identification code information to obtain the card number information corresponding to the decrypted information; wherein, the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0210] The sending unit 605 is used to send the card number information corresponding to the decrypted information to the user equipment; wherein, the card number information corresponding to the decrypted information is used to enable the Internet of Things card.

[0211] In one example, encryption unit 602 includes:

[0212] The verification module 6021 is used to verify the device information and IoT card information of IoT devices according to the preset information processing smart contract, and obtain the verification result; wherein, the verification result indicates whether all the device information and IoT card information of IoT devices have passed the verification.

[0213] The first determining module 6022 is used to determine a string based on the device information and IoT card information of the IoT device if the verification result indicates that all the device information and IoT card information of the IoT device have passed the verification; wherein the string represents the card information of the IoT card encapsulated in the IoT device.

[0214] The second determining module 6023 is used to determine key information based on the device information of the Internet of Things device and a preset random number; wherein, the key information includes private key parameters and public key parameters.

[0215] The third determining module 6024 is used to determine the encrypted information based on the private key parameters and the string.

[0216] In one example, the verification module 6021 includes:

[0217] The trigger submodule is used to trigger the execution code corresponding to the preset information processing smart contract; the execution code is used to perform format verification on the device information and IoT card information of IoT devices.

[0218] The determination submodule is used to determine that if the format of the device information and the format of the IoT card information of the IoT device all meet the preset conditions, then the device information and IoT card information of the IoT device are all verified successfully; if the format of the device information of the IoT device does not meet the preset conditions, and / or if the format of the IoT card information does not meet the preset conditions, then the device information and IoT card information of the IoT device are all verified unsuccessfully.

[0219] In one example, the first determining module 6022 includes:

[0220] The encapsulation submodule is used to encapsulate the device information and IoT card information of IoT devices to obtain encapsulated data.

[0221] The generation submodule is used to generate strings based on the encapsulated data.

[0222] In one example, decryption unit 604 includes:

[0223] The decryption module 6041 is used to decrypt the encrypted information in the identification code information according to the public key parameters to obtain decrypted information; wherein, the decrypted information contains IoT card information.

[0224] The fourth determining module 6042 is used to determine the card number information corresponding to the pre-stored IoT card information from the database if the IoT card information in the determined decryption information is consistent with the pre-stored IoT card information; wherein, the database is used to store the preset IoT card information and card number information; the preset IoT card information and card number information correspond one-to-one.

[0225] In one example, the device information of an IoT device includes the device code information and the manufacturer code information of the IoT device.

[0226] The IoT card information includes the IoT card identification code and the IoT card unlock code.

[0227] The identification code can be a QR code or a one-dimensional code.

[0228] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0229] Figure 8 This is a schematic diagram of the structure of an IoT card activation device provided in an embodiment of this application, as shown below. Figure 8 As shown, the device 700 is applied to a user equipment, which is connected to a server; the device 700 includes:

[0230] The scanning unit 701 is used to respond to the scanning command input by the current user and scan the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, and the identification code corresponds one-to-one with the IoT device; the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0231] The sending unit 702 is used to send encrypted information to the server; wherein, the encrypted information is used to obtain the card number information corresponding to the decrypted information after being decrypted; the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0232] The receiving unit 703 is used to receive the card number information corresponding to the decryption information sent by the server.

[0233] The acquisition unit 704 is used to acquire the user information input by the current user.

[0234] The activation unit 705 is used to activate the IoT card based on the user information input by the current user and the card number information corresponding to the decryption information; wherein the user information input by the current user and the card number information are associated.

[0235] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0236] Figure 9 A schematic diagram of another IoT card activation device provided in this application embodiment is shown below. Figure 9 As shown, the device 800 is applied to a user equipment, which is connected to a server; the device 800 includes:

[0237] The scanning unit 801 is used to respond to the scanning command input by the current user and scan the identification code on the IoT device to obtain identification code information; wherein, the identification code information includes encrypted information, and the identification code corresponds one-to-one with the IoT device; the encrypted information is obtained by encrypting the device information and IoT card information of the IoT device, and the IoT card information is the card information of the IoT card encapsulated in the IoT device.

[0238] The sending unit 802 is used to send encrypted information to the server; wherein, the encrypted information is used to obtain the card number information corresponding to the decrypted information after being decrypted; the card number information represents the card number of the IoT card encapsulated in the IoT device.

[0239] The receiving unit 803 is used to receive the card number information corresponding to the decryption information sent by the server.

[0240] The acquisition unit 804 is used to acquire the user information input by the current user.

[0241] The activation unit 805 is used to activate the IoT card based on the user information input by the current user and the card number information corresponding to the decryption information; wherein the user information input by the current user and the card number information are associated.

[0242] In one example, after scanning unit 801 scans the identification code on the IoT device and obtains the identification code information, it also includes:

[0243] The verification unit 806 is used to verify the encrypted information in the identification code information to obtain the verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification.

[0244] The determining unit 807 is used to perform the step of sending the encrypted information to the server if the verification result indicates that the encrypted information in the identification code information has been verified.

[0245] In one example, the encrypted information includes manufacturer identification information, which represents the manufacturer's identifier for the IoT device; the verification unit 806 includes:

[0246] The retrieval module 8061 is used to retrieve the pre-stored manufacturer identifier and compare the pre-stored manufacturer identifier with the manufacturer identifier of the encrypted information.

[0247] The first determining module 8062 is used to determine that the encrypted information verification is successful if the manufacturer identifier of the encrypted information is consistent with the pre-stored manufacturer identifier; and to determine that the encrypted information verification is unsuccessful if the manufacturer identifier of the encrypted information is inconsistent with the pre-stored manufacturer identifier.

[0248] In one example, enabling unit 805 includes:

[0249] The authentication module 8051 is used to authenticate the user information entered by the current user and obtain the authentication result; wherein, the authentication result indicates whether the user information entered by the current user has been successfully authenticated.

[0250] The second determining module 8052 is used to determine the association between the user information entered by the current user and the card number information, and to determine the data plan information of the IoT card, if the determination result indicates that the authentication of the user information entered by the current user is successful, so as to enable the IoT card; wherein, the data plan information is used for the IoT device to access the network for Internet access; if the determination result indicates that the authentication of the user information entered by the current user is unsuccessful, the step of scanning the identification code on the IoT device to obtain encrypted information is performed.

[0251] In one example, authentication module 8051 includes:

[0252] The first determination submodule is used to review and process the user information entered by the current user. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is determined to be authenticated.

[0253] The second determination submodule is used to determine that the authentication of the user information entered by the current user fails if it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or the user information entered by the current user is invalid.

[0254] In one example, the device information of an IoT device includes the device code information and the manufacturer code information of the IoT device.

[0255] The IoT card information includes the IoT card identification code and the IoT card unlock code.

[0256] The identification code can be a QR code or a one-dimensional code.

[0257] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0258] Figure 10 This application provides a schematic diagram of the structure of a server, as shown in the embodiment of the present application. Figure 10 As shown, server 900 includes: memory 901 and processor 902; memory 901 is a memory used to store instructions executable by processor 902.

[0259] The processor 902 is configured to perform the method provided in the above embodiments.

[0260] Server 900 also includes receiver 903 and transmitter 904. Receiver 903 is used to receive instructions and data sent by other devices, and transmitter 904 is used to send instructions and data to external devices.

[0261] Figure 11 This is a schematic diagram of the structure of a user equipment provided in an embodiment of this application, such as... Figure 11 As shown, the user equipment 1000 includes: a memory 1001 and a processor 1002; the memory 1001 is a memory used to store instructions executable by the processor 1002.

[0262] The processor 1002 is configured to perform the method provided in the above embodiments.

[0263] User equipment 1000 also includes a receiver 1003 and a transmitter 1004. The receiver 1003 is used to receive instructions and data sent by other devices, and the transmitter 1004 is used to send instructions and data to external devices.

[0264] User equipment 1000 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0265] Figure 12 This is a schematic diagram of the structure of an IoT card activation system provided in an embodiment of this application, as shown below. Figure 12 As shown, the system 1100 includes a server 1101 and a user device 1102 connected to the server; the system 1100 is used to implement the method provided in any of the above embodiments.

[0266] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores a computer program that, when executed by one or more processors, implements the solution provided in any of the above embodiments.

[0267] According to an embodiment of this application, this application also provides a computer program product, which includes: a computer program stored in a readable storage medium, at least one processor can read the computer program from the readable storage medium, and the at least one processor executes the computer program to implement the solution provided in any of the above embodiments.

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

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

Claims

1. A method for activating an Internet of Things (IoT) card, characterized in that, The method is applied to a server, which is connected to a user equipment; the method includes: Obtain device information and IoT card information of IoT devices; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device; Based on the device information of the IoT device and the IoT card information, a string is determined; wherein, the string represents the card information of the IoT card encapsulated in the IoT device; based on the device information of the IoT device and a preset random number, key information is determined; wherein, the key information includes private key parameters and public key parameters; based on the private key parameters and the string, encrypted information is determined; wherein, the encrypted information is used to generate an identification code, the identification code is used to be set on the IoT device for scanning by a user device, and the identification code corresponds one-to-one with the IoT device; The server receives identification code information sent by the user's device; wherein the identification code information is obtained by the user device scanning the identification code on the IoT device, and the identification code information includes encrypted information; and decrypts the encrypted information in the identification code information according to the public key parameter to obtain decrypted information; wherein the decrypted information contains IoT card information; if it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, the server finds the card number information of the IoT card corresponding to the IoT card information from the locally deployed database; wherein the card number information represents the card number of the IoT card encapsulated in the IoT device; The card number information corresponding to the decryption information is sent to the user equipment; wherein, the card number information corresponding to the decryption information is used to activate the IoT card.

2. The method according to claim 1, characterized in that, The step of determining the string based on the device information of the IoT device and the IoT card information includes: According to a preset information processing smart contract, the device information of the IoT device and the IoT card information are verified to obtain a verification result; wherein, the verification result indicates whether the device information of the IoT device and the IoT card information have all passed the verification. If the verification result indicates that the device information of the IoT device and the IoT card information have all passed the verification, then a string is determined based on the device information of the IoT device and the IoT card information.

3. The method according to claim 2, characterized in that, According to a preset information processing smart contract, the device information of the IoT device and the IoT card information are verified to obtain the verification result, including: The execution code corresponding to the preset information processing smart contract is triggered; wherein, the execution code is used to perform format verification on the device information of the IoT device and the IoT card information; If it is determined that the format of the IoT device's device information and the format of the IoT card information both meet the preset conditions, then it is determined that the IoT device's device information and the IoT card information have all passed the verification; if it is determined that the format of the IoT device's device information does not meet the preset conditions, and / or if it is determined that the format of the IoT card information does not meet the preset conditions, then it is determined that the IoT device's device information and the IoT card information have all failed the verification.

4. The method according to claim 2, characterized in that, Based on the device information of the IoT device and the IoT card information, a string is determined, including: The device information of the IoT device and the IoT card information are encapsulated to obtain encapsulated data; The string is generated based on the encapsulated data.

5. The method according to claim 1, characterized in that, The database is used to store preset IoT card information and card number information; the preset IoT card information and the card number information correspond one-to-one.

6. The method according to any one of claims 1-5, characterized in that, The device information of the IoT device includes the device code information and the manufacturer code information of the IoT device. The IoT card information includes the IoT card identification code information and the IoT card unlock code information; The identification code is a QR code or a one-dimensional code.

7. A method for activating an Internet of Things (IoT) card, characterized in that, The method is applied to a user equipment, which is connected to a server; the method includes: In response to a scanning command input by the current user, the system scans the identification code on the IoT device to obtain identification code information. The identification code information includes encrypted information, and each identification code corresponds one-to-one with the IoT device. The encrypted information is determined based on a private key parameter and a string. The private key parameter can be obtained based on the device information of the IoT device and key information determined by a preset random number. The key information also includes a public key parameter. The string can be determined based on the device information of the IoT device and the IoT card information, and the string represents the card information of the IoT card encapsulated in the IoT device. The encrypted information is sent to the server; wherein, the encrypted information is used to obtain the card number information corresponding to the decrypted information after decryption processing; the card number information represents the card number of the IoT card encapsulated in the IoT device, and the card number information is obtained by the server: according to the public key parameter, decrypting the encrypted information in the identification code information to obtain the decrypted information, and when it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, finding the card number information of the IoT card corresponding to the IoT card information from the locally deployed database, and the decrypted information contains the IoT card information; Receive the card number information corresponding to the decryption information sent by the server, and obtain the user information input by the current user; The IoT card is activated based on the user information entered by the current user and the card number information corresponding to the decryption information; wherein the user information entered by the current user and the card number information are associated.

8. The method according to claim 7, characterized in that, After scanning the identification code on the IoT device and obtaining the identification code information, the process also includes: The encrypted information in the identification code information is verified to obtain a verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification. If the verification result indicates that the encrypted information in the identification code information has been verified, then the step of sending the encrypted information to the server is executed.

9. The method according to claim 8, characterized in that, The encrypted information includes manufacturer identification information, wherein the manufacturer identification information represents the manufacturer's identifier of the IoT device; the encrypted information in the identification code information is verified to obtain a verification result, including: Retrieve the pre-stored manufacturer identifier and compare it with the manufacturer identifier of the encrypted information; If the manufacturer identifier of the encrypted information is determined to be consistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed successful; if the manufacturer identifier of the encrypted information is determined to be inconsistent with the pre-stored manufacturer identifier, the encrypted information verification is deemed unsuccessful.

10. The method according to claim 7, characterized in that, Activating the IoT card based on the user information currently entered by the user and the card number information includes: The user information input by the current user is authenticated to obtain an authentication result; wherein, the authentication result indicates whether the user information input by the current user has been successfully authenticated. If the authentication result indicates that the user information entered by the current user has been successfully authenticated, then the association between the user information entered by the current user and the card number information is determined, and the data plan information of the IoT card is determined to enable the IoT card; wherein, the data plan information is used for IoT devices to access the network for Internet access; if the authentication result indicates that the user information entered by the current user has failed to be authenticated, then the step of scanning the identification code on the IoT device to obtain encrypted information is executed.

11. The method according to claim 10, characterized in that, The authentication process is performed on the user information input by the current user to obtain the authentication result, including: The user information entered by the current user is reviewed. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is deemed to have passed authentication. If it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or it is determined that the user information entered by the current user is invalid, then it is determined that the authentication of the user information entered by the current user fails.

12. The method according to any one of claims 7-11, characterized in that, The device information of the IoT device includes the device code information and the manufacturer code information of the IoT device. The IoT card information includes the IoT card identification code information and the IoT card unlock code information; The identification code is a QR code or a one-dimensional code.

13. An activation device for an Internet of Things (IoT) card, characterized in that, The device is used in a server, the server being connected to a user equipment; the device includes: The acquisition unit is used to acquire device information and IoT card information of the IoT device; wherein, the IoT card information is the card information of the IoT card encapsulated in the IoT device; An encryption unit is configured to: determine a string based on the device information of the IoT device and the IoT card information; wherein the string represents the card information of the IoT card encapsulated in the IoT device; determine key information based on the device information of the IoT device and a preset random number; wherein the key information includes private key parameters and public key parameters; and determine encrypted information based on the private key parameters and the string; wherein the encrypted information is used to generate an identification code, the identification code is used to be set on the IoT device for scanning by a user device, and the identification code corresponds one-to-one with the IoT device. The receiving unit is used to receive identification code information sent by the user equipment of the current user; wherein the identification code information is obtained by the user equipment scanning the identification code on the Internet of Things device, and the identification code information includes encrypted information; The decryption unit is used to decrypt the encrypted information in the identification code information according to the public key parameters to obtain decrypted information; wherein, the decrypted information includes IoT card information; if it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, then the server finds the card number information of the IoT card corresponding to the IoT card information from the locally deployed database; wherein, the card number information represents the card number of the IoT card encapsulated in the IoT device; A sending unit is used to send the card number information corresponding to the decryption information to the user equipment; wherein the card number information corresponding to the decryption information is used to activate the IoT card.

14. The apparatus according to claim 13, characterized in that, The encryption unit includes: The verification module is used to verify the device information of the IoT device and the IoT card information according to a preset information processing smart contract, and obtain a verification result; wherein, the verification result indicates whether the device information of the IoT device and the IoT card information have all passed the verification. The first determining module is configured to determine a string based on the device information of the IoT device and the IoT card information if the verification result indicates that the device information of the IoT device and the IoT card information have all passed the verification; wherein the string indicates the card information of the IoT card encapsulated in the IoT device.

15. The apparatus according to claim 14, characterized in that, The verification module includes: The triggering submodule is used to trigger the execution code corresponding to the preset information processing smart contract; wherein, the execution code is used to perform format verification on the device information of the IoT device and the IoT card information; The determination submodule is configured to determine that if the format of the IoT device's device information and the format of the IoT card information both meet preset conditions, then the verification of the IoT device's device information and the IoT card information is deemed to have passed; if the format of the IoT device's device information does not meet the preset conditions, and / or if the format of the IoT card information does not meet the preset conditions, then the verification of the IoT device's device information and the IoT card information is deemed to have failed.

16. The apparatus according to claim 14, characterized in that, The first determining module includes: The encapsulation submodule is used to encapsulate the device information of the IoT device and the IoT card information to obtain encapsulated data; A generation submodule is used to generate the string based on the encapsulated data.

17. The apparatus according to claim 14, characterized in that, The database is used to store preset IoT card information and card number information; the preset IoT card information and the card number information correspond one-to-one.

18. The apparatus according to any one of claims 13-17, characterized in that, The device information of the IoT device includes the device code information and the manufacturer code information of the IoT device. The IoT card information includes the IoT card identification code information and the IoT card unlock code information; The identification code is a QR code or a one-dimensional code.

19. An activation device for an Internet of Things (IoT) card, characterized in that, The device is applied to a user equipment, which is connected to a server; the device includes: A scanning unit is used to respond to a scanning command input by the current user and scan the identification code on the IoT device to obtain identification code information. The identification code information includes encrypted information, and the identification code corresponds one-to-one with the IoT device. The encrypted information is determined based on a private key parameter and a string. The private key parameter can be obtained based on the device information of the IoT device and key information determined by a preset random number. The key information also includes a public key parameter. The string can be determined based on the device information of the IoT device and IoT card information, and the string represents the card information of the IoT card encapsulated in the IoT device. A sending unit is configured to send the encrypted information to the server; wherein the encrypted information is used to obtain card number information corresponding to the decrypted information after decryption processing; the card number information represents the card number of the IoT card encapsulated in the IoT device, and the card number information is obtained by the server: according to the public key parameter, decrypting the encrypted information in the identification code information to obtain the decrypted information, and when it is determined that the IoT card information in the decrypted information is consistent with the pre-stored IoT card information, finding the card number information of the IoT card corresponding to the IoT card information from the locally deployed database, wherein the decrypted information contains the IoT card information; The receiving unit is used to receive the card number information corresponding to the decryption information sent by the server; The acquisition unit is used to acquire the user information input by the current user; An activation unit is used to activate the IoT card based on the user information input by the current user and the card number information corresponding to the decryption information; wherein the user information input by the current user and the card number information are associated.

20. The apparatus according to claim 19, characterized in that, The scanning unit, after scanning the identification code on the IoT device and obtaining the identification code information, further includes: The verification unit is used to verify the encrypted information in the identification code information to obtain a verification result; wherein, the verification result indicates whether the encrypted information in the identification code information has passed the verification. The determining unit is configured to, if the verification result indicates that the encrypted information in the identification code information has been verified, then execute the step of sending the encrypted information to the server.

21. The apparatus according to claim 20, characterized in that, The encrypted information includes manufacturer identification information, wherein the manufacturer identification information represents the manufacturer's identifier of the IoT device; the verification unit includes: The retrieval module is used to retrieve the pre-stored manufacturer identifier and compare the pre-stored manufacturer identifier with the manufacturer identifier of the encrypted information; The first determining module is configured to determine that the encrypted information verification is successful if the manufacturer identifier of the encrypted information is consistent with the pre-stored manufacturer identifier; and to determine that the encrypted information verification is unsuccessful if the manufacturer identifier of the encrypted information is inconsistent with the pre-stored manufacturer identifier.

22. The apparatus according to claim 19, characterized in that, The activation unit includes: The authentication module is used to authenticate the user information input by the current user and obtain an authentication result; wherein, the authentication result indicates whether the user information input by the current user has been successfully authenticated. The second determining module is used to determine the association between the user information entered by the current user and the card number information if the authentication result indicates that the authentication of the user information entered by the current user is successful, and to determine the data plan information of the IoT card to enable the IoT card; wherein the data plan information is used for IoT devices to access the network for Internet access; if the authentication result indicates that the authentication of the user information entered by the current user is unsuccessful, the module performs the step of scanning the identification code on the IoT device to obtain encrypted information.

23. The apparatus according to claim 22, characterized in that, The authentication module includes: The first determining submodule is used to review the user information entered by the current user. If it is determined that the account information in the user information entered by the current user is not in an abnormal state and that the user information entered by the current user is valid, then the user information entered by the current user is determined to be authenticated. The second determining submodule is used to determine that the authentication of the user information entered by the current user fails if it is determined that the account information in the user information entered by the current user is in an abnormal state, and / or it is determined that the user information entered by the current user is invalid.

24. The apparatus according to any one of claims 19-23, characterized in that, The device information of the IoT device includes the device code information and the manufacturer code information of the IoT device. The IoT card information includes the IoT card identification code information and the IoT card unlock code information; The identification code is a QR code or a one-dimensional code.

25. A server, characterized in that, The server is connected to a user equipment; the server includes a processor and a memory communicatively connected to the processor. The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 6.

26. A user equipment, characterized in that, The user equipment is connected to the server; the user equipment includes: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 7 to 12.

27. An IoT card activation system, characterized in that, The system includes: a server, and user equipment connected to the server; the system is used to implement the method as described in any one of claims 1 to 6 or the method as described in any one of claims 7 to 12.