Module production method and device, electronic equipment and storage medium
By obtaining triple data during the module production process and sending target triple and device certificates to the burning equipment, the problem of module authentication and connection speed is solved, and rapid authentication and connection is achieved, and production efficiency and equipment usage experience is improved.
Patent Information
- Application Number
- CN202311323344.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, it is difficult to effectively solve the problems of module certification and connection speed during the module production process, especially in the production of smart home devices and Internet of Things devices.
By obtaining triple data, receiving data requests for burning equipment, and sending target triple and device certificate corresponding to the target address information to the burning equipment, burning to the module to be produced. This method improves the authentication and connection speed of the module.
It realizes rapid authentication and connection of modules, improving production efficiency and equipment usage experience.
Smart Images

Figure CN119829070A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of equipment production, and in particular to a module production method, device, electronic equipment and storage medium. Background Art
[0002] Common wireless transmission protocols used in smart home devices (also known as Internet of Things (IoT) devices) include BLE (Bluetooth Low Energy), BLE Mesh (Bluetooth Low Energy), Wi-Fi (Wireless Fidelity), ZigBee, etc. Based on these underlying transmission protocols, various application vendors will build a rich application ecosystem. In order to facilitate the development and adaptation of third-party vendors, production modules such as BLE Mesh modules will be configured. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a module production method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a module production method is provided, which is applied to produce a server, and the method includes:
[0005] Acquire triplet data, the triplet data including at least one triplet, each of the triplet corresponding to address information of a module to be produced;
[0006] Receiving a data request sent by a burning device, wherein the data request includes target address information;
[0007] A target triplet corresponding to the target address information is sent to the burning device, where the target triplet is used to be burned into the module to be produced corresponding to the target address information.
[0008] In some embodiments, the data request further includes a device public key, and the method further includes:
[0009] Based on the device public key, generate a device certificate;
[0010] The sending the triplet corresponding to the target address to the burning device includes:
[0011] The target triplet and the device certificate are sent to the burning device, where the device certificate is used to be burned into the module to be produced corresponding to the target address information.
[0012] In some embodiments, generating a device certificate based on the device public key includes:
[0013] In a case where the target triplet corresponding to the target address information is included in the triplet data, the device certificate is generated based on the device public key and the target triplet.
[0014] In some embodiments, sending the target triplet and the device certificate to the burning device includes:
[0015] Determining verification parameters based on the target triplet and the device certificate;
[0016] The target triplet, the device certificate and the verification parameter are sent to the burning device, where the verification parameter is used to verify the target triplet and the device certificate.
[0017] In some embodiments, the obtaining of triple data includes:
[0018] Log in to a preset platform, and obtain the triplet data from the preset platform;
[0019] The preset platform is used to generate a triplet corresponding to the address information based on the acquired address information.
[0020] In some embodiments, before obtaining the triplet data, the method further includes:
[0021] receiving login information, the login information including a user ID and a password;
[0022] When the login information is verified, the triplet management service and the certificate issuance service are started.
[0023] In some embodiments, the production server includes a first preset interface, and the receiving a data request sent by the burning device includes:
[0024] Receiving the data request through the first preset interface;
[0025] The sending the target triplet corresponding to the target address information to the burning device includes:
[0026] The target triplet is sent to the burning device through the first preset interface.
[0027] In some embodiments, the production server further includes at least one of a second preset interface, a third preset interface, a fourth preset interface, and a fifth preset interface;
[0028] The second preset interface is used to receive login information, and when the login information is verified, start the triplet management service and the certificate issuance service, wherein the login information includes a user identifier and a password;
[0029] The third preset interface is used to log out of the current production server and stop the triplet management service and the certificate issuance service;
[0030] The fourth preset interface is used to obtain a root certificate and a production server certificate;
[0031] The fifth preset interface is used to delete the saved triplet.
[0032] In some embodiments, the obtaining of triple data includes:
[0033] When connected to the Internet, obtaining the triplet data;
[0034] The receiving of the data request sent by the burning device comprises:
[0035] When disconnected from the Internet, a data request sent by the burning device is received, and the production server and the burning device are in the same local area network.
[0036] According to a second aspect of an embodiment of the present disclosure, a module production method is provided, which is applied to a burning device, and the method includes:
[0037] Sending a data request to a production server, wherein the data request includes target address information;
[0038] Receiving a target triplet corresponding to the target address information sent by the production server;
[0039] Burn the target triplet into the module to be produced corresponding to the target address information.
[0040] According to a third aspect of an embodiment of the present disclosure, a module production device is provided, the device comprising:
[0041] A triplet acquisition module is configured to acquire triplet data, wherein the triplet data includes at least one triplet, and each triplet corresponds to address information of a module to be produced;
[0042] A request receiving module, configured to receive a data request sent by a burning device, wherein the data request includes target address information;
[0043] The triplet sending module is configured to send a target triplet corresponding to the target address information to the burning device, wherein the target triplet is used for burning to the module to be produced corresponding to the target address information.
[0044] According to a fourth aspect of an embodiment of the present disclosure, a module production device is provided, the device comprising:
[0045] A request sending module, configured to send a data request to a production server, wherein the data request includes target address information;
[0046] A triplet receiving module, configured to receive a target triplet corresponding to the target address information sent by the production server;
[0047] The burning module is configured to burn the target triplet into the module to be produced corresponding to the target address information.
[0048] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0049] processor;
[0050] a memory for storing processor-executable instructions;
[0051] The processor is configured to execute the method as described in the first aspect or the second aspect of the embodiment of the present disclosure.
[0052] According to the sixth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a method as described in the first aspect or the second aspect of the embodiment of the present disclosure.
[0053] The above method of the present disclosure has the following beneficial effects:
[0054] The method provided by the embodiment of the present disclosure is that the production server obtains triplet data, the triplet data includes at least one triplet, each triplet corresponds to the address information of a module to be produced; receives a data request sent by a burning device, the data request includes target address information; sends a target triplet corresponding to the target address information to the burning device, and the burning device burns the target triplet to the module to be produced corresponding to the target address information. The production server can provide the triplet, so that the produced module can use the triplet for authentication, thereby improving the authentication and connection speed of the module.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0057] Figure 1 is a schematic diagram of a production process according to an exemplary embodiment;
[0058] Figure 2is a flow chart of a module production method according to an exemplary embodiment;
[0059] Figure 3 is a flow chart showing another module production method according to an exemplary embodiment;
[0060] Figure 4 is a schematic diagram showing a relationship between a production server and a burning device according to an exemplary embodiment;
[0061] Figure 5 is a schematic diagram of a software architecture of a production server according to an exemplary embodiment;
[0062] Figure 6 is a flow chart showing another module production method according to an exemplary embodiment;
[0063] Figure 7 is a flow chart showing a process of obtaining a triplet and a device certificate according to an exemplary embodiment;
[0064] Figure 8 is a block diagram of a module production device according to an exemplary embodiment;
[0065] Fig. 9 is a block diagram of another module production device according to an exemplary embodiment;
[0066] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0068] The embodiments of the present disclosure are applied to the scenario of module production, involving a module factory for producing modules and an Internet of Things (IoT) device development and production control platform (hereinafter referred to as IoT platform), see Figure 1The schematic diagram of the production process shown in the figure shows that first, the module factory formulates a production plan, purchases the MAC (Media Access Control) addresses of the modules to be produced in advance, and applies for triples from the IoT platform. When applying, the MAC addresses of all modules to be produced must be submitted; then, the IoT platform generates a corresponding triple for each MAC address, and the production server located in the module factory connects to the Internet and obtains the triples of the batch from the IoT platform; finally, the production server disconnects from the Internet, and the module resource burning station (burning equipment) on the production line obtains the triples and device certificates from the production server and burns them. Among them, the IoT platform includes a developer platform and a production resource system. The developer platform is used to approve triple applications, and the production resource system is used to generate triples corresponding to MAC addresses.
[0069] In the disclosed embodiment, the production server may be an independent server, a server cluster composed of multiple servers, a cloud server, etc. The burning device includes at least one device, and the burning device includes a host computer, a burning tool, and the like.
[0070] Figure 2 is a flowchart of a module production method according to an exemplary embodiment, which is executed by a production server, see Figure 2 , the method comprises the following steps:
[0071] Step S201, obtaining triplet data, the triplet data including at least one triplet, each triplet corresponding to address information of a module to be produced.
[0072] For each triplet, the triplet includes a device identifier, a key, and address information. The device identifier can be a did (device identity) and the address information can be a MAC address. The device identifier is the identification code of the module to be generated, which is unique in the IoT system. The device identifier and address information correspond one-to-one, and the key is the PSK (Pre-Shared Key) key of the module to be produced. The device identifier and address information in different triplet are different. The modules to be produced correspond one-to-one to the address information, and each module to be produced has unique corresponding address information.
[0073] Step S202, receiving a data request sent by a burning device, the data request including target address information.
[0074] The data request is used to request a triplet, and the target address information is used to indicate the requested triplet.
[0075] Step S203, sending a target triplet corresponding to the target address information to a burning device, where the target triplet is used to burn into a module to be produced corresponding to the target address information.
[0076] The target triplet corresponding to the target address information is a triplet including the address information of the target address information. The production server can determine the target triplet from at least one triplet according to the target address information, and send the target triplet to the burning device. For the burning device, upon receiving the target triplet, the target triplet is burned into the module to be produced corresponding to the target address information, that is, the information included in the target triplet is burned into the module to be produced.
[0077] The method provided by the embodiment of the present disclosure is that the production server obtains triplet data, the triplet data includes at least one triplet, each triplet corresponds to the address information of a module to be produced; receives a data request sent by a burning device, the data request includes target address information; sends a target triplet corresponding to the target address information to the burning device, and the burning device burns the target triplet to the module to be produced corresponding to the target address information. The production server can provide the triplet, so that the produced module can use the triplet for authentication, thereby improving the authentication and connection speed of the module.
[0078] Figure 3 is a flow chart of another module production method according to an exemplary embodiment, which is executed by a burning device, see Figure 3 , the method comprises the following steps:
[0079] Step S301: Send a data request to a production server, where the data request includes target address information.
[0080] Step S302: Receive a target triplet corresponding to the target address information sent by the production server.
[0081] Step S303, burning the target triplet into the module to be produced corresponding to the target address information.
[0082] The implementation of steps S301-S303 refers to the above steps S201-S203, which will not be repeated here.
[0083] The method provided by the embodiment of the present disclosure is that a burning device sends a data request to a production server, and the data request includes target address information; a target triplet corresponding to the target address information sent by the production server is received, and the burning device burns the target triplet to the module to be produced corresponding to the target address information. The production server can provide the triplet, so that the produced module can use the triplet for authentication, thereby improving the authentication and connection speed of the module.
[0084] The method provided by the embodiment of the present disclosure is interactively executed by the production server and the burning device. In some embodiments, the relationship between the production server and the burning device is as follows: Figure 4As shown, the burning device includes a host computer and a burning tool. The production server and the host computer are in the same local area network. For example, the production server and the host computer are connected to a router via a network cable respectively, and the host computer and the burning tool are connected via a serial port.
[0085] In some embodiments, the software architecture of the production server is as follows: Figure 5 The software architecture of the production server includes three parts: HTTP (HyperText Transfer Protocol) service, secure storage area, and log monitoring service. Among them, HTTP service includes HTTP interface and Web login authentication service, and secure storage area includes cloud client, certificate issuance service, and triplet management service.
[0086] Among them, the HTTP interface is used to burn the device to obtain the triplet, device certificate, and provide other necessary interactive interfaces; the Web login authentication service is used to provide a web login page, verify the username and password to start the triplet service and certificate issuance service of the production server; the triplet management service is used to save the triplet obtained from the IoT platform, find or delete the triplet based on MAC; the certificate issuance service is used to issue device certificates; the cloud client is used to remotely connect to the IoT platform, automatically log in and obtain the triplet approved by the platform; the log monitoring service is used to record the operation log of each module for troubleshooting.
[0087] Figure 6 is a flowchart of another module production method according to an exemplary embodiment, which is executed by a production server and a burning device, see Figure 6 , the method comprises the following steps:
[0088] Step S601: The production server obtains triple data.
[0089] In some embodiments, a preset platform is logged in to obtain triplet data from the preset platform, wherein the preset platform is used to generate a triplet corresponding to the address information based on the acquired address information, and the preset platform may be an IoT platform or other platforms.
[0090] Optionally, a triplet application is submitted to a preset platform through any device, where the triplet application includes address information. After the preset platform obtains the triplet application, it generates a triplet corresponding to the address information based on the address information.
[0091] Optionally, the production server remotely connects to the preset platform through the cloud client, and automatically logs into the preset platform after connecting to the preset platform.
[0092] In some embodiments, triplet data is obtained while connected to the Internet.
[0093] In some embodiments, in order to prevent module resources from being illegally read when the production server is lost, login authentication is required before the production server obtains module resources. The user name and password used for login authentication are generated when the production server hardware machine is configured. That is, the production server receives login information, which includes a user ID and a password; when the login information is verified, the triplet management service and the certificate issuance service are started. When the triplet management service and the certificate issuance service are started, the implementation method shown in the embodiment of the present disclosure is executed.
[0094] Optionally, the technician opens a browser application on the host computer, enters the IP (Internet Protocol) address of the production server in the browser application, opens the login page of the production server, and enters the user name and password on the login page. This method is convenient for manual operation; or, the host computer calls the HTTP login interface to pass the user name and password to the production server in the form of parameter transmission. This method is convenient for access by automated tools.
[0095] Optionally, the production server includes a second preset interface, through which login information is received, and when the login information is verified, the triplet management service and the certificate issuance service are started, and the login information includes a user ID and a password. For example, the second preset interface is a login interface.
[0096] Optionally, the login information is received through the Web login authentication service, and when the login information is verified, the triplet management service and the certificate issuance service are started.
[0097] In some embodiments, triplet data is obtained through a triplet management service.
[0098] Step S602: the burning device sends a data request to the production device.
[0099] The data request includes the target address information. Optionally, the data request may also include a device public key, which is the device public key corresponding to the module to be produced corresponding to the target address information. The device public key is used to generate a device certificate.
[0100] In some embodiments, the production server includes a first preset interface, and the burning device calls the first preset interface to send a data request to the production server. For example, the first preset interface is an rsc_req interface.
[0101] Step S603: the production server receives a data request sent by the burning device.
[0102] In some embodiments, the production server receives the data request through a first preset interface.
[0103] In some embodiments, the data request sent by the burning device is received when the connection with the Internet is disconnected, and the production server and the burning device are in the same local area network. That is, the production server is connected to the Internet when obtaining triplet data, and is disconnected from the Internet in other cases, that is, the production server needs to be connected to the Internet when obtaining triplet data, and can be completely offline when producing modules to meet the production needs of the module factory. The production needs of the factory refer to: the working conditions on the production line are complex, the conditions are limited, and the external network cannot be connected or the external network connection is unstable. Therefore, in order to ensure that the production line is not shut down due to network problems, the production server must be disconnected from the external network and run offline. The module factory has very standardized asset management measures and strong security conditions. It is almost impossible for the production server to be lost or stolen. Moreover, since the production server is offline most of the time, external hackers can hardly crack the production server through the Internet. Therefore, the possibility of leakage of triplet data and the private key for the signature of the production server certificate in the production server is extremely low. This setting method has higher security while meeting production needs.
[0104] Step S604: The production server queries the target triplet corresponding to the target address information from the triplet data, and generates a device certificate based on the device public key.
[0105] The triplet includes address information, and according to the target address information, the triplet including the target address information is determined as the target triplet.
[0106] In some embodiments, the target triple is queried from the triple data through the triple management service.
[0107] In some embodiments, a device certificate is generated by a certificate issuing service based on a device public key.
[0108] In some embodiments, generating a device certificate based on a device public key includes: generating a device certificate based on the device public key and a device identifier in a target triplet.
[0109] In some embodiments, generating a device certificate based on a device public key includes: using a production server certificate signing private key to sign the device public key to obtain the device certificate.
[0110] Step S605: the production server sends the target triplet and the device certificate to the burning device.
[0111] In some embodiments, the production server determines the verification parameters based on the target triplet and the device certificate, and sends the target triplet, the device certificate and the verification parameters to the burning device, and the verification parameters are used to verify the target triplet and the device certificate. For example, the target triplet includes did, key and MAC, the device certificate is cert, and the calculation method of the verification parameters can be cks=CRC32(did+key+MAC+cert), "+" represents character concatenation, and CRC32 is a 32-bit cyclic redundancy check (CyclicRedundancy Check) algorithm. Optionally, did, key, MAC, cert, and cks are all encoded in Hex String format.
[0112] In some embodiments, the production server sends the target triplet and the device certificate to the burning device through a first preset interface.
[0113] Step S606: The burning device receives the target triplet and the device certificate, and burns the target triplet and the device certificate to the module to be generated corresponding to the target address information.
[0114] In some embodiments, when the production server also sends the verification parameters, the burning device calculates the verification parameters based on the target triplet and the device certificate. When the verification parameters calculated by the burning device are the same as the verification parameters sent by the production server, it is determined that the target triplet and the device certificate have been verified. If the target triplet and the device certificate have been verified, the target triplet and the device certificate are burned into the module to be produced. The burning device calculates the verification parameters in the same way as the production server computer verifies the parameters.
[0115] In the disclosed embodiment, the production server can provide a triplet and a device certificate, so that the produced module can use the triplet and / or the device certificate for authentication, which improves the authentication and connection speed of the module, and the authentication method is more flexible. In addition, when obtaining the triplet and the device certificate, the HTTP interface provided by the production server can be used, which has strong versatility and simple adaptation.
[0116] In some embodiments, the process of obtaining the triplet and device certificate requires the HTTP interface, triplet management service and certificate issuance service in the production server to interact, for example, see Figure 7 , including the following steps:
[0117] Step 1: The host computer calls the production server HTTP interface, sends MAC and pub_key (device public key) to the production server, and requests a triplet and device certificate.
[0118] Step 2: The HTTP interface sends a MAC to the triplet management service to request a triplet.
[0119] Step 3: The triplet management service searches for the triplet based on the MAC.
[0120] Step 4: The triplet management service sends the found triplet to the HTTP interface, that is, sends did, key and MAC.
[0121] Step 5: The HTTP interface sends pub_key and did to the certificate issuing service, requesting the issuance of a device certificate.
[0122] Step 6: The certificate issuance service generates a device certificate.
[0123] Step 7: The certificate issuance service sends the device certificate (cert) to the HTTP interface.
[0124] Step 8: The HTTP interface calculates the checksum (cks).
[0125] Step 9: The HTTP interface sends the triplet and device certificate to the host computer, that is, it sends did, key, MAC, cert, and cks.
[0126] Among them, the check value is equivalent to the above-mentioned check parameter.
[0127] In addition, the above Figure 6 The illustrated embodiment introduces a first preset interface and a second preset interface. In some embodiments, the production server also includes at least one of a third preset interface, a fourth preset interface, and a fifth preset interface; the third preset interface is used to log out of the current production server and stop the triplet management service and the certificate issuance service; the fourth preset interface is used to obtain the root certificate and the production server certificate; and the fifth preset interface is used to delete the saved triplet.
[0128] For example, the first preset interface is the rsc_req interface, the second preset interface is the login interface, the third preset interface is the logout interface, the fourth preset interface is the cert_chain interface, and the fifth preset interface is rsc_del, see the HTTP interface list shown in Table 1:
[0129] Table 1
[0130]
[0131] As shown in Table 1, the login interface is used to log in to the production server without using the web login interface, start the triple management service and certificate issuance service of the production server, that is, start the module resource acquisition function. The parameters of the login interface include user_id (user name) and password (password). The logout interface is used to log out of the production server without using the web login interface, stop the triple management service and certificate issuance service of the production server, that is, stop acquiring module resources. The rsc_req interface is an interface for obtaining triples and device certificates. The parameters of the rsc_req interface include MAC and pub_key. The return values of the rsc_req interface include did, key, MAC, cert, and cks. The cert_chain interface is used to obtain the root certificate and the production server certificate (secondary certificate). The return values of the cert_chain interface include root_cert (root certificate) and second_cert (secondary certificate). The root certificate and the production server certificate are written into the production server when configuring the production server hardware machine and cannot be changed during the entire life cycle of the production server. Optionally, the root certificate and production server certificate can be saved to the host computer. When burning the production server certificate to the module to be produced or using the root certificate to verify the module certificate chain, you only need to retrieve the relevant certificates from the host computer. The rsc_del interface is used to delete the triples saved in the production server. Due to the limited hard disk capacity of the production server, the saved triples cannot be increased indefinitely, so it is necessary to delete the triples that have been used for production in the production server.
[0132] Optionally, all interface parameters and return values are encoded in Hex String format.
[0133] Figure 8 is a block diagram of a module production device according to an exemplary embodiment, which is configured on a production server, see Figure 8 , the device comprises:
[0134] The triplet acquisition module 801 is configured to acquire triplet data, where the triplet data includes at least one triplet, and each triplet corresponds to address information of a module to be produced;
[0135] The request receiving module 802 is configured to receive a data request sent by the burning device, where the data request includes target address information;
[0136] The triplet sending module 803 is configured to send a target triplet corresponding to the target address information to the burning device, and the target triplet is used to burn into the module to be produced corresponding to the target address information.
[0137] In some embodiments, the data request further includes a device public key, and the apparatus further includes:
[0138] The certificate generation module is configured to generate a device certificate based on a device public key;
[0139] The triplet sending module 803 is configured as follows:
[0140] Send the target triplet and device certificate to the burning device. The device certificate is used to burn into the module to be produced corresponding to the target address information.
[0141] In some embodiments, the certificate generation module is configured to:
[0142] In the case where the target triplet corresponding to the target address information is included in the triplet data, a device certificate is generated based on the device public key and the target triplet.
[0143] In some embodiments, the triplet sending module 803 is configured to:
[0144] Determine verification parameters based on the target triplet and the device certificate;
[0145] Send the target triplet, device certificate and verification parameters to the burning device. The verification parameters are used to verify the target triplet and device certificate.
[0146] In some embodiments, the triple acquisition module 801 is configured to:
[0147] Log in to the preset platform and obtain triplet data from the preset platform;
[0148] The preset platform is used to generate a triplet corresponding to the address information based on the acquired address information.
[0149] In some embodiments, the apparatus further comprises:
[0150] A login module is configured to receive login information, the login information including a user ID and a password;
[0151] The service startup module is configured to start the triplet management service and the certificate issuance service when the login information is verified.
[0152] In some embodiments, the production server includes a first preset interface, a request receiving module 802, configured to:
[0153] Receiving a data request via a first preset interface;
[0154] The triplet sending module 803 is configured as follows:
[0155] The target triplet is sent to the burning device through the first preset interface.
[0156] In some embodiments, the production server further includes at least one of a second preset interface, a third preset interface, a fourth preset interface, and a fifth preset interface;
[0157] The second preset interface is used to receive login information, and when the login information is verified, start the triplet management service and the certificate issuance service, the login information includes a user ID and a password;
[0158] The third preset interface is used to log out of the current production server and stop the triplet management service and certificate issuance service;
[0159] The fourth preset interface is used to obtain the root certificate and the production server certificate;
[0160] The fifth preset interface is used to delete the saved triplet.
[0161] In some embodiments, the triple acquisition module 801 is configured to:
[0162] When connected to the Internet, obtain triple data;
[0163] The request receiving module 802 is configured to:
[0164] When disconnected from the Internet, the data request sent by the burning device is received, and the production server and the burning device are in the same local area network.
[0165] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0166] Fig. 9 is a block diagram of another module production device according to an exemplary embodiment, which is configured in a burning device, see Fig. 9 , the device comprises:
[0167] The request sending module 901 is configured to send a data request to the production server, where the data request includes target address information;
[0168] The triplet receiving module 902 is configured to receive a target triplet corresponding to the target address information sent by the production server;
[0169] The burning module 903 is configured to burn the target triplet into the module to be produced corresponding to the target address information.
[0170] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0171] An embodiment of the present disclosure also provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the module production method in the above embodiment.
[0172] Fig.10 is a block diagram of an electronic device 1000 according to an exemplary embodiment.
[0173] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0174] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0175] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0176] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.
[0177] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0178] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0179] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0180] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect the position change of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0181] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0182] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0183] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0184] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the module production method in the above embodiments.
[0185] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0186] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A module production method, applied to the production of servers, characterized in that: The method comprises: Acquire triplet data, the triplet data including at least one triplet, each of the triplet corresponding to address information of a module to be produced; Receiving a data request sent by a burning device, wherein the data request includes target address information; A target triplet corresponding to the target address information is sent to the burning device, where the target triplet is used to be burned into the module to be produced corresponding to the target address information.
2. The method according to claim 1, characterized in that: The data request also includes a device public key, and the method further includes: Based on the device public key, generate a device certificate; The sending the triplet corresponding to the target address to the burning device includes: The target triplet and the device certificate are sent to the burning device, where the device certificate is used to be burned into the module to be produced corresponding to the target address information.
3. The method according to claim 2, characterized in that The generating a device certificate based on the device public key includes: In a case where the target triplet corresponding to the target address information is included in the triplet data, the device certificate is generated based on the device public key and the target triplet.
4. The method according to claim 2, characterized in that: The sending the target triplet and the device certificate to the burning device includes: Determining verification parameters based on the target triplet and the device certificate; The target triplet, the device certificate and the verification parameter are sent to the burning device, where the verification parameter is used to verify the target triplet and the device certificate.
5. The method according to claim 1, characterized in that The step of obtaining triple data includes: Log in to a preset platform, and obtain the triplet data from the preset platform; The preset platform is used to generate a triplet corresponding to the address information based on the acquired address information.
6. The method according to claim 1, characterized in that: Before obtaining the triplet data, the method further includes: receiving login information, the login information including a user ID and a password; When the login information is verified, the triplet management service and the certificate issuance service are started.
7. The method according to claim 1, characterized in that The production server includes a first preset interface, and the receiving data request sent by the burning device includes: Receiving the data request through the first preset interface; The sending the target triplet corresponding to the target address information to the burning device includes: The target triplet is sent to the burning device through the first preset interface.
8. The method according to claim 7, characterized in that The production server further includes at least one of a second preset interface, a third preset interface, a fourth preset interface, and a fifth preset interface; The second preset interface is used to receive login information, and when the login information is verified, start the triplet management service and the certificate issuance service, wherein the login information includes a user identifier and a password; The third preset interface is used to log out of the current production server and stop the triplet management service and the certificate issuance service; The fourth preset interface is used to obtain a root certificate and a production server certificate; The fifth preset interface is used to delete the saved triplet.
9. The method according to claim 1, characterized in that: The step of obtaining triple data includes: When connected to the Internet, obtaining the triplet data; The receiving of the data request sent by the burning device comprises: When disconnected from the Internet, a data request sent by the burning device is received, and the production server and the burning device are in the same local area network.
10. A module production method, applied to a burning device, characterized in that: The method comprises: Sending a data request to a production server, wherein the data request includes target address information; Receiving a target triplet corresponding to the target address information sent by the production server; Burn the target triplet into the module to be produced corresponding to the target address information.
11. A module production device, characterized in that: The device comprises: A triplet acquisition module is configured to acquire triplet data, wherein the triplet data includes at least one triplet, and each triplet corresponds to address information of a module to be produced; A request receiving module, configured to receive a data request sent by a burning device, wherein the data request includes target address information; The triplet sending module is configured to send a target triplet corresponding to the target address information to the burning device, wherein the target triplet is used for burning to the module to be produced corresponding to the target address information.
12. A module production device, characterized in that: The device comprises: A request sending module, configured to send a data request to a production server, wherein the data request includes target address information; A triplet receiving module, configured to receive a target triplet corresponding to the target address information sent by the production server; The burning module is configured to burn the target triplet into the module to be produced corresponding to the target address information.
13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 9, or the processor is configured to execute the method according to claim 10.
14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 9, or the electronic device is enabled to execute the method as claimed in claim 10.