Smart meter eSIM seed number local communication download method and system
By encapsulating and sending SGP.22 data packets to the smart meter, the smart meter parsing and generating AT standard instructions for local download of eSIM seed numbers, solving the problem of cumbersome operation of downloading seed numbers in existing smart meters and achieving efficient seed numbers download and replacement.
Patent Information
- Application Number
- CN202411845067.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-16
AI Technical Summary
After the existing smart meter is installed and put on the network, it needs to remove the shell to download the eSIM seed number through the USB interface. The operation is cumbersome and does not have the feasibility of on-site implementation, which limits the efficiency of downloading and replacing the seed number.
The SGP.22 data packet sent by the DP+ server is encapsulated into HDLC protocol data frames through the mobile terminal and sent to the smart meter. The smart meter is parsed and parsed according to the predefined data object model, and AT standard instructions are generated for local download of eSIM seed numbers.
It realizes that the local communication download of the eSIM seed number of the smart meter without disassembling the smart meter shell and changing the existing communication interface and HDLC communication protocol of the smart meter, which significantly improves the download and replacement efficiency of the seed number.
Smart Images

Figure CN119300011B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart meters, and in particular to a method and system for downloading local communication of an eSIM seed number for a smart meter. Background Art
[0002] With the popularity of eSIM (Embedded-SIM) technology in consumer electronic products (such as smartphones, tablets and smart wearable devices), many power companies around the world are gradually promoting the use of public network modules with eSIM functions in smart meters in power AMI systems. The existing patent application with publication number CN218920626U discloses a 5G remote communication module that integrates a physical SIM card circuit and an eSIM circuit, which can be connected to a smart meter to achieve online management of the meter.
[0003] However, the eSIM needs to be pre-set with a seed number in the factory before use. This is a key step to ensure that the power company has an initial traffic number to connect to the telecom operator's SM-DP+ (Subscription Manager - DataPreparation+) server when downloading the service number. Since the seed number Profile obtained from the SM-DP+ server follows the SGP.22 protocol specification of the GSMA (Global System for Mobile communications Association), traditionally, the seed number is usually pre-set through the USB interface on the 4G module, that is, the configuration file is directly downloaded to the eSIM card using the GSMA's SGP.22 protocol specification.
[0004] But the problem is that the smart meter is not equipped with a USB interface during installation and network operation. It is necessary to dismantle the meter shell, take out the module PCB board, and then download the seed number through the USB interface on the PCB board. This method is not only cumbersome to operate for smart meters that have been installed and networked, but also not feasible for on-site implementation, which greatly limits the efficiency of downloading and replacing the seed number. Summary of the invention
[0005] Based on this, it is necessary to provide a local communication download method and system for the eSIM seed number of a smart meter to address the problem that the existing download operation of the eSIM seed number of a smart meter is cumbersome and not feasible for on-site implementation.
[0006] In a first aspect, the present application provides a method for downloading a local communication seed number of an eSIM of a smart meter. The method comprises:
[0007] Step S1, the mobile terminal encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the smart meter;
[0008] Step S2, the smart meter parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to a predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet;
[0009] Step S3: The smart meter locally downloads the eSIM seed number according to the seed number authentication data packet and the seed number Profile configuration data packet.
[0010] Further, step S1 includes:
[0011] Step S11, when the length of the SGP.22 data packet exceeds a preset length, the mobile terminal divides the SGP.22 data packet according to a preset byte length;
[0012] Step S13: the mobile terminal encapsulates each segment of the divided data packet into a first HDLC protocol data frame.
[0013] Furthermore, after step S11 and between step S13, the following steps are further included:
[0014] Step S12, adding a subsequent frame flag after each data packet; when the subsequent frame flag is 0, it indicates that there is no subsequent frame, and when the subsequent frame flag is 1, it indicates that there is a subsequent frame.
[0015] Furthermore, the frame format of the first HDLC protocol data frame is: the frame header and the frame trailer are the first HDLC protocol data frame code, and between the frame header and the frame trailer are the frame type and frame length, the destination address field, the source address field, the control field, the frame header check, the LLC frame header, the SGP.22 data packet and the data frame check.
[0016] Furthermore, the predefined data object model includes an object name, a class, an attribute data type and length, and an OBIS code. The object name includes an ESIM data packet function, attribute 1 - data ID number, attribute 2 - seed number authentication file, and attribute 3 - seed number Profile configuration file data.
[0017] Further, step S3 includes:
[0018] Step S31, the smart meter generates an AT standard instruction according to the seed number authentication data packet and the seed number Profile configuration data packet;
[0019] Step S32: The smart meter locally downloads the eSIM seed number according to the AT standard instruction.
[0020] Further, step S32 includes:
[0021] Step S321, the smart meter obtains AT instructions;
[0022] Step S322, the smart meter determines whether the AT command is an AT standard command; if so, execute step S323; if not, execute step S324;
[0023] Step S323, the smart meter downloads the eSIM seed number locally according to the AT standard command;
[0024] Step S324: The smart meter processes the AT command according to the DLMS protocol.
[0025] Furthermore, the smart meter eSIM seed number local communication download method also includes:
[0026] Step S4, the smart meter encapsulates the response message into a second HDLC protocol data frame, and sends the second HDLC protocol data frame to the mobile terminal;
[0027] Step S5: The mobile terminal parses the second HDLC protocol data frame to obtain a response message, and sends the response message to the DP+ server.
[0028] In the second aspect, the present application also provides a smart meter eSIM seed number local communication download system. The system includes a smart meter, a mobile terminal and a DP+ server; wherein the mobile terminal includes a protocol conversion module, and the smart meter includes a communication module integrated with eSIM, a DLMS / HDLC protocol processing module, an HDLC protocol to AT command processing module and a local communication interface module;
[0029] The protocol conversion module encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the local communication interface module, and the local communication interface module uses serial port communication to send the first HDLC protocol data frame to the DLMS / HDLC protocol processing module;
[0030] The DLMS / HDLC protocol processing module parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to the predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet;
[0031] The HDLC protocol to AT command processing module generates AT standard commands according to the seed number authentication data packet and the seed number Profile configuration data packet, and sends the AT standard commands to the communication module;
[0032] The communication module downloads the eSIM seed number locally according to the AT standard command.
[0033] Furthermore, the interface type of the local communication interface module includes one of infrared communication, RS485 communication, RF wireless communication, and Bluetooth communication.
[0034] The above-mentioned smart meter eSIM seed number local communication download method and system encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame through the mobile terminal, and sends the first HDLC protocol data frame to the smart meter. The smart meter parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to the predefined data object model to obtain the seed number authentication data packet and the seed number Profile configuration data packet. The smart meter performs local download of the eSIM seed number according to the seed number authentication data packet and the seed number Profile configuration data packet, thereby realizing the local communication download of the eSIM seed number of the smart meter without disassembling the smart meter casing and changing the existing communication interface and HDLC communication protocol of the smart meter, significantly improving the download and replacement efficiency of the seed number. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of an application environment of a method for downloading a local communication seed number of an eSIM of a smart meter in an embodiment;
[0036] Figure 2 A schematic diagram of a flow chart of a method for downloading a local communication seed number of an eSIM of a smart meter in one embodiment;
[0037] Figure 3 A schematic diagram of a process of segmenting an SGP.22 data packet in one embodiment;
[0038] Figure 4 Schematic diagram of the communication process between the CPU processing unit and the module + eSIM in one embodiment;
[0039] Figure 5 A schematic diagram of the structure of a local communication download system for an eSIM seed number of a smart meter in one embodiment;
[0040] Figure 6 The figure is a communication flow diagram of a local communication downloading system for a smart meter eSIM seed number in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The local communication download method for the smart meter eSIM seed number provided in this application can be applied to Figure 1 In the application environment shown. Among them, the DP+ server is the operator's eSIM subscription management server, and the SGP.22 communication protocol is used between it and the mobile terminal. The HDLC (High Level Data Link Control) communication protocol is used between the mobile terminal and the smart meter, which specifically refers to the smart meter local communication interface data link layer communication protocol in this application. Mobile terminals include but are not limited to computers, handheld devices, etc. The local communication download method of the smart meter eSIM seed number of this application is explained below in conjunction with specific embodiments.
[0043] Example 1
[0044] like Figure 2 As shown, this embodiment provides a method for downloading a smart meter eSIM seed number through local communication, which specifically includes:
[0045] Step S1: The mobile terminal encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the smart meter.
[0046] Specifically, the mobile terminal encapsulates the SGP.22 data packet according to a preset HDLC protocol data frame format. The frame format of the HDLC protocol data frame may include a frame type, a destination address field, a source address field, an SGP.22 data packet, a frame check, etc. Preferably, the HDLC protocol data frame format is: the frame header and the frame tail are both frame codes, such as 0x7E, and the frame header and the frame tail are respectively the frame type and the frame length, the destination address field, the source address field, the control field, the frame header check, the LLC frame header, the SGP.22 data packet, and the data frame check.
[0047] Among them, the frame type is fixed to 4 bits. For example, the DLMS communication protocol uses frame type 3, and its frame type value is fixed to 1010. The smart meter acts as the server of the HDLC communication protocol, and the mobile terminal acts as the client of the HDLC communication protocol. When the mobile terminal transmits data to the smart meter, the destination address field is filled with the HDLC communication address of the smart meter, and the source address field is filled with the HDLC communication address of the mobile terminal. When the smart meter transmits data to the mobile terminal, the destination address field is filled with the HDLC communication address of the mobile terminal, and the source address is filled with the HDLC communication address of the smart meter. The control field is used to transmit control information that is critical to the transmission control of the data link layer, such as the frame category (information frame, monitoring frame, unnumbered frame), the sequence number of the sent and received frames, and the field used to implement the sliding window mechanism and confirm reception. The LLC (Logic Link Control) frame header is used to manage tasks such as frame synchronization, flow control, multiplexing, and error notification. The SGP.22 data packet is the SGP.22 data packet sent by the DP+ server. The data frame check is used to perform a cyclic redundancy check on the entire frame.
[0048] Step S2: The smart meter parses an SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to a predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet.
[0049] Among them, a DLMS / COSAM protocol object class is added inside the smart meter to implement the protocol parsing of eSIM related functions inside the smart meter. The predefined data object model is the eSIM function class DLMS / COSAM protocol communication object data model, which includes object name, class, attribute data type and length, OBIS code and its default value, and specifically defines the object name including eSIM data packet function, attribute 1-data ID number, attribute 2-seed number authentication file data, attribute 3-seed number Profile configuration file data; the class of the eSIM data packet function is 1, and the OBIS code is 0-0-0:96.1.8.255; Attribute 1 - The data type of the data ID number is a string, the string length is 6 bytes, and the OBIS code is 0000600108FF; Attribute 2 - The data type of the seed number authentication file data is a string, the maximum length of the string is 256 bytes, the initial default value of the OBIS code is 0, and it changes dynamically according to the size of the data received during communication; Attribute 3 - The data type of the seed number Profile configuration file data is a string, the maximum length of the string is 512 bytes, the initial default value of the OBIS code is 0, and it changes dynamically according to the size of the data received during communication.
[0050] Among them, the OBIS code, namely the encoding of the Object Identification System, is a unique identifier used to identify data items in smart meters. It helps to ensure that smart meters from different manufacturers can communicate and exchange data with each other, thereby improving the compatibility and scalability of the system.
[0051] Specifically, the smart meter divides the SGP.22 data packets parsed from the first HDLC protocol data frame into two categories, namely, seed number authentication file data packets and seed number Profile configuration file data packets. The seed number authentication file data packets and seed number Profile configuration file data packets correspond to attributes 2 and 3 in the eSIM functional class DLMS / COSAM protocol communication object data model, respectively. Among them, the header code of the seed number authentication file data packet is 0xAA, and the packet content is the seed number authentication file data. The seed number authentication file data contains information used to verify the legitimacy of the seed number download request, such as an encrypted authentication code or digital signature. The header code of the seed number Profile configuration file data packet is 0x55, and the packet content is the seed number Profile configuration file data. The seed number Profile configuration file data contains the configuration information required for the eSIM seed number download, such as the type and version of the seed number.
[0052] Furthermore, due to the limited RAM resources of the smart meter processor, when the length of the SGP.22 data packet received by the mobile terminal exceeds the preset length, the SGP.22 data packet needs to be segmented according to the preset byte length, and each segment of the data packet needs to be separately encapsulated into the first HDLC protocol data frame and transmitted in frames.
[0053] For example, based on the above-defined eSIM functional class DLMS / COSAM protocol communication object data model, the maximum length of the character string of attribute 2 is 256 bytes, and the maximum length of the character string of attribute 3 is 512 bytes. When the length of the SGP.22 data packet received by the mobile terminal exceeds 512 bytes, the SGP.22 data packet can be segmented into data frames of 512 bytes and transmitted in frames. Figure 3As shown, the mobile terminal divides the SGP.22 data packet into 500-byte packets, each 500 bytes being an SGP.22 small data packet (SGP.22 data packet N), and then adds a header at the starting position of each SGP.22 small data packet. If the SGP.22 small data packet includes seed number authentication file data, the header is 0xAA; if the SGP.22 small data packet includes seed number Profile configuration file data, the header is 0x55. In addition, a subsequent frame flag is added at the end position of each SGP.22 small data packet. When the value of the subsequent frame flag is 0, it indicates that there is no subsequent frame, and when the value of the subsequent frame flag is 1, it indicates that there is a subsequent frame. Thus, a single SGP.22 small data packet is encapsulated into an SGP.22 data frame. Afterwards, the mobile terminal encapsulates the SGP.22 data frame into the first HDLC protocol data frame according to the HDLC protocol data frame format defined above, and transmits it in frames.
[0054] Step S3: The smart meter locally downloads the eSIM seed number according to the seed number authentication data packet and the seed number Profile configuration data packet.
[0055] Specifically, the smart meter uses a built-in verification algorithm or security module to verify the authenticity and legitimacy of the seed number authentication data packet. Once the seed number authentication data packet is verified to be valid, the smart meter will parse the seed number Profile configuration data packet to obtain the detailed configuration information required to download the eSIM seed number. The smart meter then prepares the eSIM download environment based on the parsed configuration information and executes the eSIM seed number download operation.
[0056] Furthermore, when the smart meter includes a CPU processing unit and a module + eSIM (hereinafter referred to as a communication module), AT commands are used to communicate between the CPU processing unit and the communication module. The CPU processing unit first generates an AT standard instruction based on the seed number authentication data packet and the seed number Profile configuration data packet, and sends the AT standard instruction to the communication module, and the communication module then performs local download of the eSIM seed number according to the AT standard instruction. Among them, the module + eSIM is a hardware module that integrates 4G communication and eSIM functions. In addition, in this embodiment, the AT instruction used to implement the local download of the eSIM seed number is referred to as an AT standard instruction, and in order to ensure the correct transmission and parsing of the instruction, the CPU processing unit does not directly send the original form of the AT standard instruction, but converts it into ASCII code first, and then sends it to the communication module. The following is a specific example of an AT standard instruction, which has been converted into ASCII code:
[0057] AT+CSIM=42,“01A4040010A0000005591010FFFFFFFF8900000100”
[0058] "AT+CSIM" is the basic part of the command, indicating that this is an eSIM-related operation command, that is, an AT standard command;
[0059] "42" indicates the command length, that is, the total length of the subsequent parameters (excluding "AT+CSIM=" and the command length itself);
[0060] "01" is the value of CLA (Command Logical Channel Access). Here it is 1, indicating that the currently effective logical channel is 1.
[0061] "A4" is the value of INS (Instruction Code), indicating that this is an instruction to select a file;
[0062] "04" is the value of P1, which means to select the file by the DF (Dedicated File) name. The data field is the file name information.
[0063] "00" is the value of P2, indicating that FCI (File Control Info) is returned; P1 and P2 are both part of the APDU (Application Protocol Data Unit) instruction, which is used to specify the details of the operation, such as the method of selecting files and the type of information returned;
[0064] "10" is the value of Le (Length, data length), indicating that the byte length of the data field is 16 bytes;
[0065] "A0000005591010FFFFFFFF8900000100" is the data domain, which contains the seed number authentication file data or seed number Profile configuration file data mentioned above. This part of data is the key information required for the actual download of the eSIM seed number.
[0066] Figure 4The communication process between the CPU processing unit and the communication module is shown in detail, including key steps such as starting the communication module, preparing the eSIM, and receiving and processing AT commands. Specifically, after the communication module is started, the eSIM is ready. When the serial port of the CPU processing unit receives an AT command, it first determines whether the AT command is an AT standard command. If so, the at_cmd interface is called to send it to the communication module for processing. After the communication module completes the processing, the processing result is encapsulated into a data frame and the data frame is returned, that is, "transmitted back" to the CPU processing unit; if not, the CPU processing unit processes the AT command according to the DLMS (Device Language Message Specification) protocol. Among them, the at_cmd interface is an interface in the CPU processing unit for processing AT commands, which is responsible for receiving, parsing and executing these AT commands. DLMS is the standard communication protocol for electricity meters.
[0067] Step S4: The smart meter encapsulates the response message into a second HDLC protocol data frame, and sends the second HDLC protocol data frame to the mobile terminal.
[0068] Step S5: The mobile terminal parses the second HDLC protocol data frame to obtain a response message, and sends the response message to the DP+ server.
[0069] The response message is used to inform the DP+ server of the download status of the eSIM seed number of the smart meter. During the data transmission process, the smart meter will encapsulate the response message according to the preset HDLC protocol data frame format to generate a second HDLC protocol data frame. Subsequently, the smart meter sends the second HDLC protocol data frame to the mobile terminal, and the mobile terminal parses the response message from the second HDLC protocol data frame and sends the response message to the DP+ server.
[0070] The smart meter eSIM seed number local communication download method of this embodiment encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame through the mobile terminal, and sends the first HDLC protocol data frame to the smart meter, the smart meter parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to the predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet, the smart meter performs local download of the eSIM seed number according to the seed number authentication data packet and the seed number Profile configuration data packet, thereby realizing the local communication download of the eSIM seed number of the smart meter without disassembling the smart meter casing and changing the existing communication interface and HDLC communication protocol of the smart meter, significantly improving the download and replacement efficiency of the seed number.
[0071] Example 2
[0072] like Figure 5 As shown, this embodiment provides a smart meter eSIM seed number local communication download system, including a smart meter, a mobile terminal and a DP+ server.
[0073] Among them, the mobile terminal includes a protocol conversion module, and the smart meter includes a communication module integrated with an eSIM, a DLMS / HDLC protocol processing module, an HDLC protocol to AT command processing module, and a local communication interface module. The interface type of the local communication interface module includes one of infrared communication, RS485 communication, RF wireless communication, and Bluetooth communication. The communication protocol standards of infrared communication, RS485 communication, RF wireless communication, and Bluetooth communication are all HDLC communication protocols. In particular, the communication module in this embodiment is a 4G communication module.
[0074] The protocol conversion module encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the local communication interface module. The local communication interface module uses serial port communication to send the first HDLC protocol data frame to the DLMS / HDLC protocol processing module.
[0075] Furthermore, when the length of the SGP.22 data packet exceeds the preset length, the protocol conversion module divides the SGP.22 data packet according to the preset byte length, and separately encapsulates each segment of the segmented data packet into a first HDLC protocol data frame. In addition, the protocol conversion module can also add a subsequent frame flag after each data packet, when the subsequent frame flag is 0, it indicates that there is no subsequent frame, and when the subsequent frame flag is 1, it indicates that there is a subsequent frame.
[0076] The DLMS / HDLC protocol processing module parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to a predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet.
[0077] The HDLC protocol to AT command processing module generates AT standard commands according to the seed number authentication data packet and the seed number Profile configuration data packet, and sends the AT standard commands to the communication module.
[0078] The communication module downloads the eSIM seed number locally according to the AT standard command.
[0079] Furthermore, the DLMS / HDLC protocol processing module is also used to process DLMS protocol data packets. After the DLMS / HDLC protocol processing module obtains the DLMS protocol data packet, it sends it to the HDLC protocol to AT command processing module. The HDLC protocol to AT command processing module converts the DLMS protocol data packet into an AT command and sends it to the communication module. The communication module parses it according to the relevant standards of the DLMS protocol, thereby ensuring normal communication between the smart meter and other devices.
[0080] Figure 6 The figure shows the specific communication process between DP+server, PC host, smart meter and module+eSIM when the mobile terminal is a PC host. Figure 6 As shown, the DP+ server sends a seed number authentication data packet and a seed number Profile configuration data packet to the PC host computer. The protocol conversion module built into the PC host computer converts the SGP.22 data packet into an HDLC protocol data frame, and sends the HDLC protocol data frame to the smart meter. The smart meter completes the parsing of the SGP.22 data packet encapsulated in the HDLC protocol data frame according to the predefined data object model, and converts the parsed SGP.22 data packet into an AT command (as can be seen from the above, the AT command here is the AT standard command), and sends the ASCII code data packet corresponding to the AT command to the module+eSIM. After obtaining the ASCII code data packet, the module+eSIM parses the seed number authentication data file and the seed number Profile configuration data file, and then performs the seed number authentication and configuration operations. After that, the module+eSIM returns the processing result to the smart meter in the form of a data frame. The smart meter generates a response message based on the processing result, and encapsulates the response message into an HDLC protocol data frame and sends it to the PC host computer. The protocol conversion module built into the PC host computer parses the response message from the HDLC protocol data frame and sends the response message to the DP+ server. At this point, the local communication download of the smart meter eSIM seed number is completed.
[0081] The smart meter eSIM seed number local communication download system of this embodiment has a built-in protocol conversion module in the mobile terminal, a built-in DLMS / HDLC protocol processing module and an HDLC protocol to AT command processing module in the smart meter, and the protocol conversion module encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the local communication interface module, and the local communication interface module uses serial communication to send the first HDLC protocol data frame to the DLMS / HDLC protocol processing module, and the DLMS / HDLC protocol processing module parses the SGP from the first HDLC protocol data frame. 22 data packet, and parses the SGP.22 data packet according to the predefined data object model to obtain the seed number authentication data packet and the seed number Profile configuration data packet. The HDLC protocol to AT command processing module generates AT standard instructions according to the seed number authentication data packet and the seed number Profile configuration data packet, and sends the AT standard instructions to the communication module. The communication module performs local download of the eSIM seed number according to the AT standard instructions, thereby realizing the local communication download of the eSIM seed number of the smart meter without disassembling the smart meter casing and changing the existing communication interface and HDLC communication protocol of the smart meter, which significantly improves the download and replacement efficiency of the seed number.
[0082] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0083] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for downloading a local communication seed number of an eSIM of a smart meter, characterized in that: The method comprises: Step S1, the mobile terminal encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the smart meter; Step S2, the smart meter parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to a predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet; Step S3, the smart meter locally downloads the eSIM seed number according to the seed number authentication data packet and the seed number Profile configuration data packet; Wherein, the step S3 comprises: Step S31, the smart meter generates an AT standard instruction according to the seed number authentication data packet and the seed number Profile configuration data packet; Step S32: the smart meter locally downloads the eSIM seed number according to the AT standard instruction.
2. The method for downloading the local communication seed number of the smart meter eSIM according to claim 1, characterized in that: The step S1 comprises: Step S11, when the length of the SGP.22 data packet exceeds a preset length, the mobile terminal divides the SGP.22 data packet according to a preset byte length; Step S13: the mobile terminal encapsulates each segment of the divided data packet into the first HDLC protocol data frame separately.
3. The method for downloading the local communication of the smart meter eSIM seed number according to claim 2, characterized in that: After step S11 and before step S13, the method further includes: Step S12, adding a subsequent frame flag after each data packet; when the subsequent frame flag is 0, it indicates that there is no subsequent frame, and when the subsequent frame flag is 1, it indicates that there is a subsequent frame.
4. The method for downloading the local communication seed number of the smart meter eSIM according to any one of claims 1 or 2, characterized in that: The frame format of the first HDLC protocol data frame is: the frame header and the frame trailer are the first HDLC protocol data frame code, and between the frame header and the frame trailer are the frame type and frame length, the destination address field, the source address field, the control field, the frame header check, the LLC frame header, the SGP.22 data packet and the data frame check.
5. The method for downloading the local communication of the smart meter eSIM seed number according to claim 1, characterized in that: The predefined data object model includes an object name, a class, an attribute data type and length, and an OBIS code. The object name includes an eSIM data packet function, attribute 1-data ID number, attribute 2-seed number authentication file, and attribute 3-seed number Profile configuration file data.
6. The method for downloading the local communication of the smart meter eSIM seed number according to claim 1, characterized in that: The step S32 comprises: Step S321, the smart meter obtains AT instructions; Step S322, the smart meter determines whether the AT command is the AT standard command; if so, execute step S323; if not, execute step S324; Step S323, the smart meter locally downloads the eSIM seed number according to the AT standard instruction; Step S324: the smart meter processes the AT command according to the DLMS protocol.
7. The method for downloading the local communication seed number of the smart meter eSIM according to claim 1, characterized in that: The method further comprises: Step S4, the smart meter encapsulates the response message into a second HDLC protocol data frame, and sends the second HDLC protocol data frame to the mobile terminal; Step S5: the mobile terminal parses the response message from the second HDLC protocol data frame, and sends the response message to the DP+ server.
8. A local communication download system for eSIM seed numbers of smart meters, characterized in that: The system includes a smart meter, a mobile terminal and a DP+ server; wherein the mobile terminal includes a protocol conversion module, and the smart meter includes a communication module integrated with an eSIM, a DLMS / HDLC protocol processing module, an HDLC protocol to AT command processing module and a local communication interface module; The protocol conversion module encapsulates the SGP.22 data packet sent by the DP+ server into a first HDLC protocol data frame, and sends the first HDLC protocol data frame to the local communication interface module, and the local communication interface module uses serial port communication to send the first HDLC protocol data frame to the DLMS / HDLC protocol processing module; The DLMS / HDLC protocol processing module parses the SGP.22 data packet from the first HDLC protocol data frame, and parses the SGP.22 data packet according to a predefined data object model to obtain a seed number authentication data packet and a seed number Profile configuration data packet; The HDLC protocol to AT command processing module generates an AT standard command according to the seed number authentication data packet and the seed number Profile configuration data packet, and sends the AT standard command to the communication module; The communication module performs local downloading of the eSIM seed number according to the AT standard instruction.
9. The smart meter eSIM seed number local communication download system according to claim 8, characterized in that: The interface type of the local communication interface module includes one of infrared communication, RS485 communication, RF wireless communication, and Bluetooth communication.
Citation Information
Patent Citations
5G remote communication module
CN218920626U
ESIM card opening method, terminal equipment and SM-DP + platform
CN111542045A
Remote SIM provisioning
CN116349262A