A processing method for data download terminal to update eSIM card data
By using an eSIM card and data download terminal in smart metering devices, combined with a signal scanner and a remote server, the system automatically optimizes operator networks and updates card data, solving the problem of the complex SIM card replacement process in smart metering devices. This simplifies operations and improves the success rate of card replacement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2026-03-03
AI Technical Summary
The process of replacing SIM cards in the wireless communication devices of existing smart meters is complex, relies on manual experience, has a low success rate, and increases the complexity of the work.
By replacing the physical SIM card with an eSIM card, and through a data download terminal combined with a signal scanner and a remote server, the system automatically optimizes the operator network and updates the card data, simplifying the operation process and improving the success rate of card replacement.
It enables card replacement without the need for physical card switching, reducing work complexity and improving the success rate and efficiency of card replacement.
Smart Images

Figure CN115567912B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method for updating eSIM card data in a data download terminal. Background Technology
[0002] With the development and application of IoT technology in the energy industry, many smart metering devices that can be connected to external wireless communication devices have emerged on the market, such as smart electricity meters, smart water meters, and smart gas meters. These smart metering devices can achieve real-time meter reading by linking with remote billing platforms through wireless communication devices, and can also send real-time alarms to remote monitoring platforms in the event of dangers such as leakage of electricity, water, or gas.
[0003] Normally, the wireless communication devices connected to smart meters have a pre-installed SIM card slot. During smart meter installation, the installer will pre-install the wireless communication device with the corresponding smart meter, without inserting a SIM card into the SIM card slot of each device. After all smart meters are installed, the inspection staff will insert a SIM card into the SIM card slot of each device. After the smart meters are put into use, if the communication performance of a certain device's SIM card with a particular telecom operator is poor, the inspection staff will need to bring a SIM card from another operator to replace the old one. If the communication performance is still unsatisfactory after a period of use, the inspection staff will need to bring another SIM card from another operator to replace it again. In this conventional process, the inspection staff needs to repeatedly apply for new cards and return old ones, increasing the complexity of the work; moreover, each time a card is replaced, the selection of a new card can only be based on the staff's personal experience, and the success rate of card replacement is not guaranteed.
[0004] To address this issue, we eliminated the SIM card slot in the wireless communication equipment, replacing the physical SIM card with a pre-installed eSIM (Embedded-SIM) card. We implemented a remote card writing solution to replace the old and new eSIM card data. This eliminates the need for inspection staff to apply for / return physical cards or insert / remove cards from the wireless communication equipment during each card replacement, significantly reducing workload. We also provided inspection staff with a signal scanner to acquire real-time signal strength data from various operators. This allows even inexperienced staff to easily select the operator with the best communication performance during each card replacement. To effectively integrate the signal scanner results with the eSIM card data update process and further simplify operations, we provided a data download terminal. This terminal allows staff to easily complete card replacement tasks while ensuring a high success rate. Summary of the Invention
[0005] The purpose of this invention is to address the shortcomings of existing technologies by providing a data download terminal for updating eSIM card data, an electronic device, and a computer-readable storage medium. When the data download terminal receives an eSIM card data download command triggered by a staff member, it invokes a signal scanner to perform a signal scan to obtain a corresponding set of scan records; it obtains the corresponding device identifier and eSIM card identifier from a wireless communication device; it obtains a list of operator resources matching the device identifier and eSIM card identifier from a remote server; it performs operator network optimization based on the scan record set and the operator resource list to obtain the corresponding preferred operator + network standard; it obtains new card issuance data under the preferred operator + network standard from the remote server; and it writes the new card issuance data to the eSIM card through the wireless communication device to obtain a new card. After completing the new card loading, the data download terminal also identifies the network access status of the new card and displays a task completion prompt to the staff member upon successful network access. Through this invention, the data download terminal can provide staff with a card replacement process that does not require physical card switching. It can also improve the accuracy of card replacement based on the scanning results of the signal scanner, and simplify the operation steps for staff, thereby reducing work complexity, improving work efficiency, and increasing the success rate of card replacement.
[0006] To achieve the above objectives, a first aspect of the present invention provides a method for updating eSIM card data in a data download terminal, the method comprising:
[0007] The data download terminal recognizes the first work instruction entered by the staff;
[0008] When the first working instruction is an eSIM card data download instruction, connections are established with the signal scanner, wireless communication device and remote server respectively to generate corresponding first, second and third connection states;
[0009] When the first, second, and third connection states are all successful, an eSIM card status detection command is sent to the wireless communication device; and the first card status is received back from the wireless communication device.
[0010] When the first card is in a normal state, a signal scanning command is sent to the signal scanner; and a first scan record set is received from the signal scanner; a device identifier acquisition command is sent to the wireless communication device; and a first device identifier is received from the wireless communication device; an eSIM card identifier acquisition command is sent to the wireless communication device; and a first eSIM card identifier is received from the wireless communication device; and an operator resource acquisition command carrying the first device identifier and the first eSIM card identifier is sent to the remote server; and a first operator resource list is received from the remote server.
[0011] Based on the first scan record set and the first operator resource list, operator network optimization processing is performed to generate corresponding first preferred operator identifier and first preferred network standard identifier; a card data download request instruction carrying the first device identifier, the first eSIM card identifier, the first preferred operator identifier and the first preferred network standard identifier is sent to the remote server; and the first card number data packet sent back by the remote server is received;
[0012] Based on the first preferred operator identifier, the first preferred network standard identifier, and the first card number data packet, the card writing script preparation process is performed to generate the corresponding first card writing script;
[0013] The first loading state is generated by loading card data onto the eSIM card according to the first card writing script and the wireless communication device.
[0014] When the first loading status is successful, a device network access command is sent to the wireless communication device; and the first network access status is received back from the wireless communication device.
[0015] When the first network login status is successful, a message indicating successful eSIM card data download is displayed to the staff.
[0016] Preferably, the communication method between the data download terminal and the signal scanner includes Bluetooth communication, WiFi communication, wired network communication, and USB communication.
[0017] The communication methods between the data download terminal and the wireless communication device include Bluetooth communication, WiFi communication, wired network communication, and USB communication.
[0018] The communication methods between the data download terminal and the remote server include WiFi communication, wired network communication, 2G network communication, 3G network communication, 4G network communication and 5G network communication.
[0019] The first scan record set includes multiple first scan records; the first scan record includes a first operator identifier field, a first network standard field, and a first signal strength field; the first network standard field includes 2G standard, 3G standard, 4G standard, and 5G standard;
[0020] The first operator resource list includes multiple first operator resource records; the first operator resource record includes a second operator identifier field, a second network standard field, and a first available card number quantity field;
[0021] The first card number data packet includes a first card number identifier and a first card issuance data set.
[0022] Preferably, the step of establishing connections with the signal scanner, wireless communication device, and remote server to generate corresponding first, second, and third connection states specifically includes:
[0023] The data download terminal sends a scanner connection request to the signal scanner, and sets the corresponding first connection status to a successful status when the signal scanner returns a scanner connection success message; it also sends a device connection request to the wireless communication device, and sets the corresponding second connection status to a successful status when the wireless communication device returns a device connection success message; and it sends a server connection request to the remote server, and sets the corresponding third connection status to a successful status when the remote server returns a server connection success message.
[0024] Preferably, the method further includes:
[0025] When the wireless communication device receives the eSIM card status detection command sent by the data download terminal, it performs a reset operation on the eSIM card. If it receives reset information from the eSIM card within a preset reset waiting period, it sets the corresponding first card status to normal. If it does not receive reset information from the eSIM card within the reset waiting period, it sets the corresponding first card status to abnormal. The device then sends the obtained first card status back to the data download terminal.
[0026] Preferably, the method further includes:
[0027] When the signal scanner receives the signal scanning command sent by the data download terminal, it iterates through each first operator signal frequency band record in the preset operator signal frequency band list; during the iteration, it takes the currently iterated first operator signal frequency band record as the corresponding current record, and extracts the third operator identifier field, first signal frequency band field, first signal frequency range field, and third network standard field of the current record as the corresponding current operator identifier, current signal frequency band, current signal frequency range, and current network standard; and calls the local modulation and demodulation module to perform sampling based on the preset sampling time interval T and sampling number M for signals whose signal frequency band is the current signal frequency band, whose signal frequency meets the current signal frequency range, and whose signal standard meets the current network standard. The signal strength of the line signal is scanned to obtain M sampled signal strengths, and the average of the M sampled signal strengths is calculated to generate the corresponding current signal strength. The obtained current operator identifier, current network standard, and current signal strength are used as the corresponding first operator identifier field, first network standard field, and first signal strength field to form the corresponding first scan record. The operator signal frequency band list includes multiple first operator signal frequency band records. The first operator signal frequency band record includes the third operator identifier field, the first signal frequency band field, the first signal frequency range field, and the third network standard field. The third network standard field includes 2G standard, 3G standard, 4G standard, and 5G standard.
[0028] At the end of the traversal, all the first scan records obtained are combined into a corresponding first scan record set and sent back to the data download terminal.
[0029] Preferably, the method further includes:
[0030] When the wireless communication device receives the device identifier acquisition instruction sent by the data download terminal, it sends back the locally stored International Mobile Equipment Identity (IMEI) as the corresponding first device identifier to the data download terminal.
[0031] Preferably, the method further includes:
[0032] When the wireless communication device receives the eSIM card identifier acquisition instruction sent by the data download terminal, it forwards the eSIM card identifier acquisition instruction to the eSIM card; and sends the first eSIM card identifier sent back by the eSIM card back to the data download terminal.
[0033] When the eSIM card receives the eSIM card identifier acquisition instruction forwarded by the wireless communication device, it sends back the locally stored eSIM card identification code as the corresponding first eSIM card identifier to the wireless communication device.
[0034] Preferably, the method further includes:
[0035] When the remote server receives the operator resource acquisition instruction sent by the data download terminal, it extracts the first device identifier and the first eSIM card identifier from it.
[0036] The first region field of the first wireless communication device record in the preset wireless communication device database that matches the first device identifier field and the first eSIM card identifier field is extracted as the corresponding current device region; wherein, the wireless communication device database includes multiple first wireless communication device records; the first wireless communication device record includes the first device identifier field, the first eSIM card identifier field, and the first region field;
[0037] All first-region operator resource records in the preset regional operator resource database that match the second region field with the current device region are marked as matching records; and the fourth operator identifier field, fourth network standard field, and second available SIM card number field of each matching record are extracted to form the corresponding second operator identifier field, second network standard field, and first available SIM card number field to form the corresponding first operator resource record; wherein, the regional operator resource database includes multiple first-region operator resource records; the first-region operator resource record includes the second region field, the fourth operator identifier field, the fourth network standard field, and the second available SIM card number field;
[0038] The corresponding first operator resource list, composed of all the obtained first operator resource records, is sent back to the data download terminal.
[0039] Preferably, the step of generating a corresponding first preferred operator identifier and a first preferred network standard identifier based on the first scan record set and the first operator resource list specifically includes:
[0040] The data download terminal initializes an empty first merge list; counts the number of first scan records in the first scan record set to generate a corresponding number N of first records; adds N first merge records to the first merge list; and initializes the third available card number field of each first merge record to 0; wherein, the first merge list includes multiple first merge records; each first merge record corresponds to one first scan record; the first merge record includes a fifth operator identifier field, a fifth network standard field, a second signal strength field, and the third available card number field;
[0041] Based on the first operator identifier field, the first network standard field, and the first signal strength field of each of the first scan records, the corresponding fifth operator identifier field, the fifth network standard field, and the second signal strength field in the corresponding first merged record are set;
[0042] The first operator resource record in the first operator resource list is traversed; during the traversal, the currently traversed first operator resource record is recorded as the corresponding current resource record, and the second operator identifier field and the second network standard field of the current resource record are extracted as the corresponding current operator identifier and current network standard; the first merged record in the first merged list whose fifth operator identifier field matches the current operator identifier and whose fifth network standard field matches the current network standard is recorded as the corresponding matched merged record; and the third available card number number field of the matched merged record is set according to the first available card number number field of the current resource record.
[0043] When the traversal ends, a card number resource selection interface is displayed to the staff; and the contents of the first merged list are displayed on the card number resource selection interface in the form of text, tables or statistical charts; and the operator identifier and network standard identifier selected by the staff on the card number resource selection interface are used as the corresponding first preferred operator identifier and first preferred network standard identifier.
[0044] Preferably, the method further includes:
[0045] When the remote server receives the card data download request instruction sent by the data download terminal, it extracts the first device identifier, the first eSIM card identifier, the first preferred operator identifier, and the first preferred network standard identifier from it.
[0046] In a preset wireless communication device database, the first region field of a first wireless communication device record whose first device identifier field matches the first device identifier and whose first eSIM card identifier field matches the first eSIM card identifier is extracted as the corresponding current device region; wherein, the wireless communication device database includes multiple first wireless communication device records; the first wireless communication device record includes the first device identifier field, the first eSIM card identifier field, and the first region field;
[0047] In a preset card number resource database, the first card number resource record whose first bound device identifier field matches the first device identifier and whose first bound eSIM card identifier field matches the first eSIM card identifier is used as the corresponding old card number resource record; if the old card number resource record is not empty, then the first bound device identifier field and the first bound eSIM card identifier field of the old card number resource record are reset to empty; wherein, the card number resource database includes multiple first card number resource records; the first card number resource record includes a first card number identifier field, a third region field, a sixth operator identifier field, a sixth network standard field, a first card issuance data field, a first bound device identifier field, and a first bound eSIM card identifier field; the first card issuance data field includes multiple first card issuance data groups; the first card issuance data group includes a first data name and first card issuance data;
[0048] In the card number resource database, any first card number resource record in which the third region field matches the current device region, the sixth operator identifier field matches the first preferred operator identifier, the sixth network standard field matches the first preferred network standard identifier, and both the first bound device identifier field and the first bound eSIM card identifier field are empty is selected as the corresponding new card number resource record. The first card number identifier field of the new card number resource record is extracted as the corresponding first card number identifier. All first card issuance data groups in the first card issuance data field of the new card number resource record are extracted to form the corresponding first card issuance data group set. The first bound device identifier field and the first bound eSIM card identifier field of the new card number resource record are set as the corresponding first device identifier and first eSIM card identifier.
[0049] The first card number identifier and the first card issuance data set are combined to form the corresponding first card number data packet and sent back to the data download terminal.
[0050] Preferably, the step of generating the corresponding first card writing script based on the first preferred operator identifier, the first preferred network standard identifier, and the first card number data packet specifically includes:
[0051] The data download terminal extracts the first card number identifier and the first card issuance data set from the first card number data packet; extracts multiple first card issuance data sets from the first card issuance data set; extracts the corresponding first data name and first card issuance data from each first card issuance data set; and initializes the first card writing script to empty.
[0052] The card writing script template that matches the first preferred operator identifier and the first preferred network standard identifier among the multiple locally preset card writing script templates is used as the current template; each card writing script template corresponds to a set of operator + network standard; each card writing script template consists of multiple sequentially arranged first card writing instruction records, each first card writing instruction record includes a first instruction header, a first instruction body and first instruction expected return data, and each first instruction body corresponds to a first card issuance data name;
[0053] Starting from the first first write card instruction record of the current template, the first write card instruction records of the current template are traversed one by one; during the traversal, the first write card instruction record currently traversed is taken as the corresponding current write card instruction record; the first instruction header of the current write card instruction record is extracted as the corresponding second instruction header; the first card issuance data name corresponding to the first instruction body of the current write card instruction record is taken as the corresponding current instruction body data name; the first card issuance data of the first card issuance data group in the first card issuance data group set whose first data name matches the current instruction body data name is extracted as the corresponding second instruction body; the first instruction expected return data of the current write card instruction record is extracted as the corresponding second instruction expected return data; and the obtained second instruction header, second instruction body and second instruction expected return data form the corresponding second write card instruction record and add it to the first write card script;
[0054] When the traversal is complete, the first card number identifier is saved locally; and the obtained first card writing script is output as the card writing script preparation processing result.
[0055] Preferably, the step of generating a corresponding first loading state by performing card data loading processing on the eSIM card according to the first card writing script and the wireless communication device specifically includes:
[0056] The data download terminal iterates through each of the second write instruction records in the first write script, starting from the first second write instruction record in the first write script. During the iteration, the currently iterated second write instruction record is taken as the corresponding current write instruction record. The second instruction header and the second instruction body of the current write instruction record are combined to form the corresponding first eSIM card instruction, which is then sent to the wireless communication device. The terminal also receives the first instruction return data sent back by the wireless communication device and identifies whether the first instruction return data matches the expected return data of the second instruction in the current write instruction record. If they match, the corresponding first instruction execution status is set to a successful status; otherwise, the corresponding first instruction execution status is set to an error status.
[0057] When the traversal ends, it is determined whether all the execution states of the first instruction obtained are in a successful state; if so, the corresponding first loading state is set to loading successful, otherwise the corresponding first loading state is set to loading failed.
[0058] Furthermore, the method also includes:
[0059] When the wireless communication device receives the first eSIM card instruction sent by the data download terminal, it forwards the first eSIM card instruction to the eSIM card; and sends the first instruction return data sent back by the eSIM card back to the data download terminal.
[0060] When the eSIM card receives the first eSIM card instruction forwarded by the wireless communication device, it extracts the second instruction header and the second instruction body from the first eSIM card instruction; and calls the locally preset instruction processing interface corresponding to the second instruction header to perform instruction parsing processing on the second instruction body to generate the corresponding first instruction return data and send it back to the wireless communication device.
[0061] Preferably, the method further includes:
[0062] When the wireless communication device receives the device registration instruction sent by the data download terminal, it calls the eSIM card to perform registration processing; if the registration processing is successful, the corresponding first registration status is set to successful registration; if the registration processing fails, the corresponding first registration status is set to failed registration; and the first registration status is sent back to the data download terminal.
[0063] A second aspect of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
[0064] The processor is used to couple with the memory, read and execute instructions in the memory to implement the steps of the method described in the first aspect above;
[0065] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
[0066] A third aspect of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the instructions described in the first aspect.
[0067] This invention provides a method for updating eSIM card data using a data download terminal, an electronic device, and a computer-readable storage medium. When the data download terminal receives an eSIM card data download command triggered by a staff member, it invokes a signal scanner to perform a signal scan and obtain a corresponding set of scan records. It also obtains the corresponding device identifier and eSIM card identifier from a wireless communication device. Furthermore, it obtains a list of operator resources matching the device identifier and eSIM card identifier from a remote server. Based on the scan record set and the operator resource list, it performs operator network optimization to obtain the corresponding preferred operator and network standard. It then obtains new card issuance data under the preferred operator and network standard from the remote server. Finally, it writes the new card issuance data to the eSIM card via the wireless communication device, thus obtaining a new card. After loading the new card, the data download terminal also identifies the network access status of the new card and displays a task completion prompt to the staff member upon successful network access. Through this invention, the data download terminal can provide staff with a card replacement process that does not require physical card switching. It can also improve the accuracy of card replacement based on the scan results of the signal scanner, simplify the staff's operation steps, reduce work complexity, improve work efficiency, and increase the success rate of card replacement. Attached Figure Description
[0068] Figure 1 This is a schematic diagram of a data download terminal performing eSIM card data update processing method according to Embodiment 1 of the present invention;
[0069] Figure 2 This is a schematic diagram showing the connection between the data download terminal and the signal scanner, wireless communication device and remote server provided in Embodiment 1 of the present invention.
[0070] Figure 3 This is a schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. Detailed Implementation
[0071] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0072] Embodiment 1 of the present invention provides a method for updating eSIM card data in a data download terminal, such as... Figure 1 The diagram illustrates a method for updating eSIM card data using a data download terminal, as provided in Embodiment 1 of the present invention. This method mainly includes the following steps:
[0073] Step 1: The data download terminal recognizes the first work instruction entered by the staff.
[0074] Here, the data download terminal in this embodiment of the invention is a mobile phone, PC, tablet computer, or mobile terminal. The data download terminal supports Bluetooth communication, WiFi communication, wired network communication, and USB communication, as well as 2G / 3G / 4G / 5G network communication. The data download terminal is used to provide the inspection staff of smart meter equipment with a service trigger interface for eSIM card data update. Once the staff clicks the start option on the service trigger interface, the data download terminal will receive a first working instruction, which is a specific eSIM card data download instruction. Subsequently, the data download terminal will complete the SIM card data update task through data interaction with the signal scanner, wireless communication equipment, and remote server.
[0075] Step 2: When the first working instruction is an eSIM card data download instruction, connections are established with the signal scanner, wireless communication device and remote server respectively to generate the corresponding first, second and third connection states;
[0076] Specifically, this includes: when the first working instruction is an eSIM card data download instruction, the data download terminal sends a scanner connection request to the signal scanner, and sets the corresponding first connection state to a successful state when the signal scanner returns a scanner connection success message; it also sends a device connection request to the wireless communication device, and sets the corresponding second connection state to a successful state when the wireless communication device returns a device connection success message; and it sends a server connection request to the remote server, and sets the corresponding third connection state to a successful state when the remote server returns a server connection success message.
[0077] Here, when the data download terminal of this embodiment receives a first working instruction specifically an eSIM card data download instruction, it automatically initiates a connection with the signal scanner, wireless communication device, and remote server. The connection method involves the data download terminal actively sending a connection request to the signal scanner, wireless communication device, and remote server, and receiving a successful connection confirmation message from the other party. When the first, second, and third connection states are all successful, the data download terminal of this embodiment will continue to execute subsequent step 3. It should be noted that if any of the first, second, and third connection states is a failure, the data download terminal of this embodiment will stop executing subsequent steps and display the corresponding connection failure message to the staff.
[0078] In this embodiment of the invention, the connection relationship between the data download terminal and the signal scanner, wireless communication device, and remote server is as follows: Figure 2 The diagram illustrates the connection between the data download terminal, signal scanner, wireless communication device, and remote server provided in Embodiment 1 of the present invention.
[0079] It should be noted that the communication methods between the data download terminal and the signal scanner in this embodiment of the invention include Bluetooth communication, WiFi communication, wired network communication, and USB communication; the communication methods between the data download terminal and the wireless communication device include Bluetooth communication, WiFi communication, wired network communication, and USB communication; and the communication methods between the data download terminal and the remote server include WiFi communication, wired network communication, 2G network communication, 3G network communication, 4G network communication, and 5G network communication.
[0080] It should be noted that the signal scanner in this embodiment of the invention is an external device of the data download terminal; the signal scanner includes a modulation and demodulation module, which can scan the signal strength of signals of different frequencies under different frequency bands; the signal scanner supports Bluetooth communication, WiFi communication, wired network communication and USB communication; the signal scanner can be connected to the data download terminal through any of the following connection methods: Bluetooth, WiFi, Ethernet cable and USB data cable.
[0081] It should be noted that the wireless communication device in this embodiment of the invention is a mobile communication module. As can be seen from the background section above, in actual application scenarios, this wireless communication device is bound and connected to a smart meter device. The wireless communication device has a pre-installed eSIM card. The wireless communication device supports Bluetooth, WiFi, wired network, and USB communication methods, and also supports 2G / 3G / 4G / 5G network communication methods. The wireless communication device can connect to a data download terminal via any of the following connection methods: Bluetooth, WiFi, Ethernet cable, and USB data cable. It can perform network access operations on the corresponding 2G, 3G, 4G, or 5G networks based on the card number data in the eSIM card.
[0082] It should be noted that the eSIM card in this embodiment of the invention differs from the traditional SIM card. A traditional SIM card is a physical telecommunications card with fixed card number data, while an eSIM card is a software or hardware module or device that can update card number data. Each SIM card corresponds to a fixed card number identifier, also known as an Integrated Circuit Card Identity (ICCID), and each ICCID corresponds to a fixed dialing number (telephone number). However, each eSIM card corresponds to a fixed eSIM card identifier, which is not an ICCID but a unique module / device code for the software / hardware module or device. Because the card number data on the eSIM card can be updated, the ICCID corresponding to the card number data loaded on the eSIM card is not fixed. This embodiment of the invention uses an eSIM card to replace the traditional SIM card based on the feature of its updatable card number data to simplify the complexity of card replacement work for staff, so that staff do not need to apply for / return a physical card or insert / remove a card from the wireless communication device each time they replace a card.
[0083] Step 3: When the first, second, and third connection states are all successful, send an eSIM card status detection command to the wireless communication device; and receive the first card status returned by the wireless communication device.
[0084] The first card status includes normal status and abnormal status.
[0085] Here, when the first, second, and third connection states are all successful, it indicates that the connection between the data download terminal and the signal scanner, the wireless communication device, and the remote server has been successfully established. At this time, the data download terminal of this embodiment will further confirm the working status of the eSIM card pre-installed on the wireless communication device. The confirmation method is to send an eSIM card status detection command to the wireless communication device to obtain the first card status that can reflect the working status of the eSIM card. If the first card status is normal, it means that the eSIM card has entered a normal working state. If the first card status is abnormal, it means that the eSIM card is malfunctioning.
[0086] It should be noted that the processing steps of the wireless communication device in this embodiment of the invention when receiving the eSIM card status detection command sent by the data download terminal are as follows: When the wireless communication device receives the eSIM card status detection command sent by the data download terminal, it performs a reset operation on the eSIM card; if the reset information returned by the eSIM card is received within a preset reset waiting period, the corresponding first card status is set to normal status; if the reset information returned by the eSIM card is not received within the reset waiting period, the corresponding first card status is set to abnormal status; and the obtained first card status is sent back to the data download terminal.
[0087] Here, when the wireless communication device of this embodiment receives the eSIM card status detection command sent by the data download terminal, it will perform a reset operation on the eSIM card to confirm the working status of the eSIM card. During the reset operation, the wireless communication device will send a reset signal to the eSIM card and receive the return information from the eSIM card according to the prescribed reset information reception time, i.e., the reset waiting period. If the reset information returned by the eSIM card can be received within the preset reset waiting period, it means that the eSIM card has entered a normal working state. At this time, the wireless communication device will return a first card status specifically set to normal state to the data download terminal. If no return information is received from the eSIM card within the preset reset waiting period, it means that the eSIM card status is abnormal. At this time, the wireless communication device will return a first card status specifically set to abnormal state to the data download terminal. When the first card status is normal, the data download terminal of this embodiment will continue to execute the subsequent step 4. It should be noted that when the first card status is abnormal, the data download terminal of this embodiment will stop continuing to execute the subsequent steps and display the corresponding eSIM card abnormality prompt information to the staff.
[0088] Step 4: When the first card is in a normal state, send a signal scanning command to the signal scanner; receive the first scan record set returned by the signal scanner; send a device identifier acquisition command to the wireless communication device; receive the first device identifier returned by the wireless communication device; send an eSIM card identifier acquisition command to the wireless communication device; receive the first eSIM card identifier returned by the wireless communication device; send an operator resource acquisition command carrying the first device identifier and the first eSIM card identifier to the remote server; and receive the first operator resource list returned by the remote server.
[0089] Here, when the first card status is normal, it indicates that the connection between the data download terminal and the signal scanner, the wireless communication device, and the remote server has been successfully established, and the eSIM card pre-installed on the wireless communication device has also entered a normal working state. At this time, the data download terminal of this embodiment will obtain the wireless signal strength of each network standard of each operator in the current environment, i.e., the first scan record set, by sending a signal scanning command to the signal scanner. The data download terminal will also obtain the first device identifier of the wireless communication device and the first eSIM card identifier of the eSIM card by sending a device identifier acquisition command and an eSIM card identifier acquisition command to the wireless communication device. The data download terminal will also obtain the corresponding operator card number resource information, i.e., the first operator resource list, by sending an operator resource acquisition command to the remote server.
[0090] Specifically, this includes: Step 41, when the first card is in a normal state, sending a signal scanning command to the signal scanner; and receiving the first scan record set sent back by the signal scanner;
[0091] The first scan record set includes multiple first scan records; the first scan record includes a first operator identifier field, a first network standard field, and a first signal strength field; the first network standard field includes 2G standard, 3G standard, 4G standard, and 5G standard;
[0092] Here, in this embodiment of the invention, the data download terminal sends a signal scanning command to the signal scanner to obtain the wireless signal strength of each network standard of each operator in the current environment, i.e., the first scan record set; each first scan record in the first scan record set corresponds to a set of operator + network standard, the first operator identifier field and the first network standard field in the record are the operator identifier and network standard of this set of operator + network standard, and the first signal strength field in the record is the signal strength of the wireless signal corresponding to this set of operator + network standard;
[0093] It should be noted that the processing steps of the signal scanner in this embodiment of the invention when receiving a signal scanning command sent by the data download terminal include the following steps A1-A2:
[0094] Step A1: When the signal scanner receives the signal scanning command sent by the data download terminal, it iterates through each first operator signal frequency band record in the preset operator signal frequency band list. During the iteration, the currently iterated first operator signal frequency band record is taken as the corresponding current record, and the third operator identifier field, first signal frequency band field, first signal frequency range field, and third network standard field of the current record are extracted as the corresponding current operator identifier, current signal frequency band, current signal frequency range, and current network standard. The local modulation and demodulation module is called to scan and sample the signal strength of wireless signals whose signal frequency band is the current signal frequency band, whose signal frequency meets the current signal frequency range, and whose signal standard meets the current network standard according to the preset sampling time interval T and sampling number M, thereby obtaining M sampled signal strengths. The average of the M sampled signal strengths is calculated to generate the corresponding current signal strength. The obtained current operator identifier, current network standard, and current signal strength are used as the corresponding first operator identifier field, first network standard field, and first signal strength field to form the corresponding first scan record.
[0095] The operator signal frequency band list includes multiple first operator signal frequency band records; the first operator signal frequency band record includes a third operator identifier field, a first signal frequency band field, a first signal frequency range field, and a third network standard field; the third network standard field includes 2G standard, 3G standard, 4G standard, and 5G standard;
[0096] Specifically, the local modulation and demodulation module is invoked to scan and sample the signal strength of wireless signals whose signal frequency band is the current signal frequency band, whose signal frequency meets the current signal frequency range, and whose signal type meets the current network type, according to a preset sampling time interval T and sampling number M, thereby obtaining M sampled signal strengths.
[0097] For example, the signal scanner's locally preset list of operator signal frequency bands includes three first operator signal frequency band records: First Operator Signal Frequency Band Record 1, 2, and 3, specifically: First Operator Signal Frequency Band Record 1 (third operator identifier field is operator 1, first signal frequency band field is frequency band 1, first signal frequency range field is range 1, third network standard field is 4G standard), First Operator Signal Frequency Band Record 2 (third operator identifier field is operator 1, first signal frequency band field is frequency band 1, first signal frequency range field is range 1, third network standard field is 5G standard), and First Operator Signal Frequency Band Record 3 (third operator identifier field is operator 2, first signal frequency band field is frequency band 2, first signal frequency range field is range 2, third network standard field is 5G standard); it is known that the sampling time interval T is 10 seconds and the number of samples M is 3.
[0098] Then, the signal scanner will iterate through the three first operator signal frequency band records in the operator signal frequency band list;
[0099] When the current record is the first operator signal frequency band record 1, the current operator identifier is operator 1, the current signal frequency band is frequency band 1, the current signal frequency range is range 1, and the current network standard is 4G. Every 10 seconds, the signal scanner calls the modulation and demodulation module to scan the signal strength of the wireless signal with frequency band 1, signal frequency range 1, and signal standard 4G to obtain a corresponding sampled signal strength until 3 sampled signal strengths are obtained. Then, the signal scanner calculates the average of the 3 sampled signal strengths to generate the corresponding signal strength 1. The operator 1, 4G standard, and signal strength 1 are used as the corresponding first operator identifier field, first network standard field, and first signal strength field to form the corresponding first scan record 1.
[0100] When the current record is the first operator signal frequency band record 2, the current operator identifier is operator 1, the current signal frequency band is frequency band 1, the current signal frequency range is range 1, and the current network standard is 5G. Every 10 seconds, the signal scanner calls the modulation and demodulation module to scan the signal strength of the wireless signal with frequency band 1, signal frequency range 1, and 5G standard to obtain a corresponding sampled signal strength until 3 sampled signal strengths are obtained. Then, the signal scanner calculates the average of the 3 sampled signal strengths to generate the corresponding signal strength 2. The operator 1, 5G standard, and signal strength 2 are used as the corresponding first operator identifier field, first network standard field, and first signal strength field to form the corresponding first scan record 2.
[0101] When the current record is the first operator signal frequency band record 3, the current operator identifier is operator 2, the current signal frequency band is frequency band 2, the current signal frequency range is range 2, and the current network standard is 5G. Every 10 seconds, the signal scanner calls the modulation and demodulation module to scan the signal strength of the wireless signal with frequency band 2, signal frequency range 2, and 5G standard to obtain a corresponding sampled signal strength until 3 sampled signal strengths are obtained. Then, the signal scanner calculates the average of the 3 sampled signal strengths to generate the corresponding signal strength 3. The operator 2, 5G standard, and signal strength 3 are used as the corresponding first operator identifier field, first network standard field, and first signal strength field to form the corresponding first scan record 3.
[0102] Step A2: At the end of the traversal, all the obtained first scan records are combined into a corresponding first scan record set and sent back to the data download terminal;
[0103] For example, if a signal scanner obtains three first scan records, namely first scan records 1, 2, and 3, by traversing the three first operator signal frequency band records in the operator signal frequency band list, then the signal scanner will form the obtained first scan records 1, 2, and 3 into a first scan record set and send it back to the data download terminal.
[0104] Step 42, and send a device identifier acquisition command to the wireless communication device; and receive the first device identifier sent back by the wireless communication device;
[0105] Here, the data download terminal of this embodiment of the invention obtains the unique device code of the wireless communication device, namely the first device identifier, by sending a device identifier acquisition instruction to the wireless communication device;
[0106] It should be noted that the processing steps of the wireless communication device in this embodiment of the invention when receiving the device identifier acquisition instruction sent by the data download terminal are as follows: when the wireless communication device receives the device identifier acquisition instruction sent by the data download terminal, it sends back the locally stored International Mobile Equipment Identity (IMEI) as the corresponding first device identifier to the data download terminal.
[0107] Here, each wireless communication device stores an International Mobile Equipment Identity (IMEI) locally as a unique device code. When the wireless communication device receives a device identifier retrieval command, it will send the IMEI code back to the data download terminal as the first device identifier.
[0108] Step 43, and send an eSIM card identifier acquisition command to the wireless communication device; and receive the first eSIM card identifier sent back by the wireless communication device;
[0109] Here, the data download terminal of this embodiment of the invention will obtain the unique eSIM card identifier, i.e. the first eSIM card identifier, of the pre-installed eSIM card on the wireless communication device by sending an eSIM card identifier acquisition instruction to the wireless communication device;
[0110] It should be noted that the processing steps of the wireless communication device in this embodiment of the invention when receiving the eSIM card identifier acquisition instruction sent by the data download terminal are as follows: when the wireless communication device receives the eSIM card identifier acquisition instruction sent by the data download terminal, it forwards the eSIM card identifier acquisition instruction to the eSIM card; and sends back the first eSIM card identifier returned by the eSIM card to the data download terminal; here, when the wireless communication device in this embodiment of the invention receives the eSIM card identifier acquisition instruction sent by the data download terminal, it directly forwards it to the eSIM card and sends back the first eSIM card identifier returned by the eSIM card to the data download terminal;
[0111] It should also be noted that the processing steps of the eSIM card in this embodiment of the invention when receiving the eSIM card identifier acquisition instruction forwarded by the wireless communication device are as follows: when the eSIM card receives the eSIM card identifier acquisition instruction forwarded by the wireless communication device, it sends back the locally stored eSIM card identification code as the corresponding first eSIM card identifier to the wireless communication device; here, each eSIM card in this embodiment of the invention stores a corresponding fixed and unique eSIM card identifier locally, and when the eSIM card receives the eSIM card identifier acquisition instruction forwarded by the wireless communication device, it sends back the fixed and unique eSIM card identifier as the first eSIM card identifier to the wireless communication device;
[0112] Step 44, and send the operator resource acquisition instruction carrying the first device identifier and the first eSIM card identifier to the remote server; and receive the first operator resource list sent back by the remote server;
[0113] The first operator resource list includes multiple first operator resource records; the first operator resource record includes a second operator identifier field, a second network standard field, and a first available card number field.
[0114] Here, the data download terminal of this embodiment of the invention obtains the corresponding operator card number resource information, i.e., the first operator resource list, by sending an operator resource acquisition instruction to a remote server; each first operator resource record in the first operator resource list corresponds to a set of operator + network standard, the second operator identifier field and the second network standard field in the record are the operator identifier and network standard of the set of operator + network standard, and the first available card number quantity field in the record is the quantity of available card number data that can be used to update the current eSIM card under the set of operator + network standard;
[0115] It should be noted that the processing steps of the remote server in this embodiment of the invention when receiving the operator resource acquisition instruction sent by the data download terminal include the following steps B1-B4:
[0116] Step B1: When the remote server receives the operator resource acquisition instruction sent by the data download terminal, it extracts the first device identifier and the first eSIM card identifier from it.
[0117] Step B2: Extract the first region field of the first wireless communication device record in the preset wireless communication device database that matches the first device identifier field with the first device identifier and the first eSIM card identifier field with the first eSIM card identifier, and use it as the corresponding current device region;
[0118] The wireless communication device database includes multiple first wireless communication device records; each first wireless communication device record includes a first device identifier field, a first eSIM card identifier field, and a first region field.
[0119] Here, the wireless communication device database preset on the remote server in this embodiment of the invention is used to store the deployment area information of each wireless communication device; each first wireless communication device record in the database corresponds to one wireless communication device, the first device identifier field is the IMEI code of the corresponding device, the first eSIM card identifier field is the eSIM card identifier of the pre-installed eSIM card on the corresponding device, and the first region field is the deployment area information of the corresponding device; the encoding format of the first region field can be a country-province level two region encoding format, a country-province-city level three region encoding format, a country-province-city-district level four region encoding format, or other pre-agreed location or region encoding formats;
[0120] The remote server queries the wireless communication device database based on the first device identifier and the first eSIM card identifier to obtain the deployment area information of the wireless communication device, i.e., the current device area.
[0121] Step B3: Mark all first-region operator resource records in the preset regional operator resource database that match the second region field with the current device region as matching records; and extract the fourth operator identifier field, fourth network standard field, and second available card number quantity field of each matching record as the corresponding second operator identifier field, second network standard field, and first available card number quantity field to form the corresponding first operator resource record;
[0122] The regional operator resource database includes multiple first-region operator resource records; each first-region operator resource record includes a second-region field, a fourth operator identifier field, a fourth network standard field, and a second available card number field.
[0123] Here, the regional operator resource database preset on the remote server in this embodiment of the invention is used to store the number of available card numbers under different operators and network standards in each region; each first regional operator resource record corresponds to one region; in the first regional operator resource record, the regional encoding format of the second region field is consistent with the regional encoding format of the first region field in the regional operator resource database, the fourth operator identifier field and the fourth network standard field are the operator identifier and network standard of the corresponding operator and network standard, and the second available card number quantity field is the number of available card numbers under the current region and the current operator and network standard;
[0124] The remote server queries the regional operator resource database through the current device region to obtain the number of available SIM card numbers under all operators and network standards in the region. Each group of operators and network standards corresponds to a first operator resource record.
[0125] For example, it is known that the current device region is Country 1 / Province 1 / City 1; it is also known that the regional operator resource database includes 3 first-region operator resource records, namely first-region operator resource record 1, 2, and 3:
[0126] First region operator resource record 1 (Second region field is country 1 / province 1 / city 1, fourth operator identifier field is operator 1, fourth network standard field is 4G standard, second available card number number field is 100).
[0127] First region operator resource record 2 (Second region field is country 1 / province 1 / city 1, fourth operator identifier field is operator 1, fourth network standard field is 5G standard, second available card number number field is 120),
[0128] First region operator resource record 3 (Second region field is country 1 / province 1 / city 2, fourth operator identifier field is operator 2, fourth network standard field is 5G standard, second available card number number field is 80);
[0129] Therefore, all matching records in the regional operator resource database that match the second region field with country 1 / province 1 / city 1 are the first regional operator resource records 1 and 2;
[0130] The fourth operator identifier field, the fourth network standard field, and the second available card number field of the first regional operator resource record 1 are extracted and used as the corresponding second operator identifier field, second network standard field, and first available card number field to form the first operator resource record 1 (the second operator identifier field is operator 1, the second network standard field is 4G standard, and the first available card number field is 100).
[0131] The fourth operator identifier field, the fourth network standard field, and the second available card number field of the first regional operator resource record 2 are extracted and used as the corresponding second operator identifier field, second network standard field, and first available card number field to form the first operator resource record 2 (the second operator identifier field is operator 1, the second network standard field is 5G standard, and the first available card number field is 120).
[0132] Step B4 involves sending back a corresponding first operator resource list, composed of all the obtained first operator resource records, to the data download terminal.
[0133] For example, if step B3 outputs two first operator resource records, namely first operator resource record 1 and 2, then the remote server will use the obtained first operator resource records 1 and 2 to form a corresponding first operator resource list and send it back to the data download terminal.
[0134] Step 5: Based on the first scan record set and the first operator resource list, perform operator network optimization processing to generate the corresponding first preferred operator identifier and first preferred network standard identifier; send the card data download request instruction carrying the first device identifier, first eSIM card identifier, first preferred operator identifier and first preferred network standard identifier to the remote server; and receive the first card number data packet sent back by the remote server;
[0135] Here, the data download terminal of this embodiment merges the contents of the first scan record set and the first operator resource list, and provides the staff with a card number resource selection interface to display the merged contents. This allows the staff to clearly see the signal strength and number of available card numbers for each operator and network standard on site. The selection result of the staff on the card number resource selection interface is used as the corresponding preferred operator and network standard, i.e., the first preferred operator identifier + the first preferred network standard identifier. Subsequently, the data download terminal sends a card data download request instruction to the remote server to obtain an eSIM card update data, i.e., the first card number data packet, that meets the requirements of the preferred operator and network standard.
[0136] Specifically, it includes: Step 51, performing operator network optimization processing based on the first scan record set and the first operator resource list to generate the corresponding first preferred operator identifier and first preferred network standard identifier;
[0137] Specifically, this includes: Step 511, the data download terminal initializes a first merge list with empty content; and counts the number of first scan records in the first scan record set to generate the corresponding number of first records N; and adds N first merge records to the first merge list; and initializes the third available card number field of each first merge record to 0;
[0138] The first merge list includes multiple first merge records; each first merge record corresponds to a first scan record; the first merge record includes a fifth operator identifier field, a fifth network standard field, a second signal strength field, and a third available card number field.
[0139] Here, the first merge list initialized by the data download terminal in this embodiment of the invention will be used in subsequent steps to merge the content of the first scan record set and the first operator resource list;
[0140] For example, the first scan record set is known to include first scan record 1, 2, and 3. First scan record 1 has a first operator identifier field of operator 1, a first network standard field of 4G, and a first signal strength field of signal strength 1. First scan record 2 has a first operator identifier field of operator 1, a first network standard field of 5G, and a first signal strength field of signal strength 2. First scan record 3 has a first operator identifier field of operator 2, a first network standard field of 5G, and a first signal strength field of signal strength 3.
[0141] Therefore, the first merge list should include three first merge records, namely first merge record 1, 2, and 3. After initialization: first merge record 1 (the fifth operator identifier field is empty, the fifth network standard field is empty, the second signal strength field is empty, and the third available card number field is 0), first merge record 2 (the fifth operator identifier field is empty, the fifth network standard field is empty, the second signal strength field is empty, and the third available card number field is 0), first merge record 3 (the fifth operator identifier field is empty, the fifth network standard field is empty, the second signal strength field is empty, and the third available card number field is 0).
[0142] The first merged records 1, 2, and 3 correspond to the first scan records 1, 2, and 3, respectively;
[0143] Step 512: Set the corresponding fifth operator identifier field, fifth network standard field and second signal strength field in the corresponding first merged record according to the first operator identifier field, first network standard field and first signal strength field of each first scan record;
[0144] For example, as shown in the example of step 511 above, the first scan record set and the first merged list are as follows: After the data download terminal of this embodiment of the invention fills the content of each first merged record in the first merged list based on each first scan record of the first scan record set in the current step, the first merged list is as follows:
[0145] First merged record 1 (the fifth operator identifier field is operator 1, the fifth network standard field is 4G standard, the second signal strength field is signal strength 1, and the third available card number field is 0).
[0146] First merged record 2 (the fifth operator identifier field is operator 1, the fifth network standard field is 5G standard, the second signal strength field is signal strength 2, and the third available card number field is 0),
[0147] First merged record 3 (the fifth operator identifier field is operator 2, the fifth network standard field is 5G standard, the second signal strength field is signal strength 3, and the third available card number field is 0);
[0148] Step 513: Iterate through each first operator resource record in the first operator resource list; during the iteration, record the currently iterated first operator resource record as the corresponding current resource record, and extract the second operator identifier field and the second network standard field of the current resource record as the corresponding current operator identifier and current network standard; record the first merged record in the first merged list whose fifth operator identifier field matches the current operator identifier and whose fifth network standard field matches the current network standard as the corresponding matched merged record; and set the third available card number number field of the matched merged record according to the first available card number number field of the current resource record.
[0149] For example, the first merged list is the first merged list updated in the example of step 512 above; it is also known that the first operator resource list includes first operator resource records 1 and 2, first operator resource record 1 (the second operator identifier field is operator 1, the second network standard field is 4G standard, and the first available card number field is 100), and first operator resource record 2 (the second operator identifier field is operator 1, the second network standard field is 5G standard, and the first available card number field is 120);
[0150] Therefore, when the data download terminal of this embodiment of the invention iterates through each first operator resource record in the first operator resource list:
[0151] When the current resource record is the first operator resource record 1, the current operator identifier is operator 1, the current network standard is 4G, the matching merge record in the first merge list is the first merge record 1, and the first merge record 1 is obtained by setting the third available card number field of the first merge record 1 according to the first available card number field of the first operator resource record 1. The fifth operator identifier field is operator 1, the fifth network standard field is 4G, the second signal strength field is signal strength 1, and the third available card number field is 100.
[0152] When the current resource record is the first operator resource record 2, the current operator identifier is operator 1, the current network standard is 5G, the matching merge record in the first merge list is the first merge record 2, and the first merge record 2 is obtained by setting the third available card number field of the first merge record 2 according to the first available card number field of the first operator resource record 2 (the fifth operator identifier field is operator 1, the fifth network standard field is 5G, the second signal strength field is signal strength 2, and the third available card number field is 120).
[0153] In other words, at the end of the traversal, after the data download terminal of this embodiment of the invention fills the content of the first merged list based on the first operator resource list in the current step, the resulting first merged list is as follows:
[0154] First merged record 1 (the fifth operator identifier field is operator 1, the fifth network standard field is 4G standard, the second signal strength field is signal strength 1, and the third available card number field is 100).
[0155] First merged record 2 (the fifth operator identifier field is operator 1, the fifth network standard field is 5G standard, the second signal strength field is signal strength 2, and the third available card number field is 120),
[0156] First merged record 3 (the fifth operator identifier field is operator 2, the fifth network standard field is 5G standard, the second signal strength field is signal strength 3, and the third available card number field is 0);
[0157] Step 514: When the traversal ends, display the card number resource selection interface to the staff; and display the contents of the first merged list on the card number resource selection interface in the form of text, table or statistical chart; and use the operator identifier and network standard identifier selected by the staff on the card number resource selection interface as the corresponding first preferred operator identifier and first preferred network standard identifier.
[0158] Here, the data download terminal of this embodiment of the invention provides staff with a card number resource selection interface to display the contents of the first merged list, so that staff can clearly see the signal strength and number of available card numbers for each operator and network standard on site; based on the displayed content, staff can easily select a set of operator and network standards as the preferred operator and network standards on the card number resource selection interface, and the data download terminal obtains the operator identifier and network standard of the preferred operator and network standards as the corresponding first preferred operator identifier + first preferred network standard identifier;
[0159] Step 52: Send a card data download request instruction carrying the first device identifier, the first eSIM card identifier, the first preferred operator identifier, and the first preferred network standard identifier to the remote server; and receive the first card number data packet sent back by the remote server;
[0160] The first card number data packet includes a first card number identifier and a first card issuance data set; the first card issuance data set includes multiple first card issuance data sets; and each first card issuance data set includes a first data name and first card issuance data.
[0161] Here, in this embodiment of the invention, the data download terminal sends a card data download request instruction to a remote server to obtain eSIM card update data, namely the first card number data packet, which meets the preferred operator and network standard requirements selected by the staff. The first card number data packet is similar to the card issuance data packet of a traditional physical SIM card. The first card number identifier is similar to the integrated circuit card identity (ICCID) of a traditional physical SIM card. Each first card issuance data group in the first card issuance data group set corresponds to a specific card issuance data object. The first data name is the name of the card issuance data object, and the first card issuance data is the specific data content of the card issuance data object.
[0162] It should be noted that the processing steps of the remote server in this embodiment of the invention when receiving a card data download request instruction sent by the data download terminal include the following steps C1-C5:
[0163] Step C1: When the remote server receives the card data download request instruction sent by the data download terminal, it extracts the first device identifier, the first eSIM card identifier, the first preferred operator identifier, and the first preferred network standard identifier from it.
[0164] Step C2: In the preset wireless communication device database, extract the first region field of the first wireless communication device record that matches the first device identifier field and the first eSIM card identifier field as the corresponding current device region;
[0165] Here, as described above, the wireless communication device database preset on the remote server of this embodiment of the invention is used to store the deployment area information of each wireless communication device. The remote server can obtain the deployment area information of the corresponding wireless communication device, i.e., the current device area, by querying the wireless communication device database according to the first device identifier + the first eSIM card identifier.
[0166] Step C3: In the preset card number resource database, the first card number resource record that matches the first bound device identifier field with the first device identifier and the first bound eSIM card identifier field with the first eSIM card identifier is taken as the corresponding old card number resource record; if the old card number resource record is not empty, the first bound device identifier field and the first bound eSIM card identifier field of the old card number resource record are reset to empty;
[0167] The card number resource database includes multiple first card number resource records; each first card number resource record includes a first card number identifier field, a third region field, a sixth operator identifier field, a sixth network standard field, a first card issuance data field, a first bound device identifier field, and a first bound eSIM card identifier field; the first card issuance data field includes multiple first card issuance data groups; each first card issuance data group includes a first data name and first card issuance data;
[0168] Here, the pre-set card number resource database on the remote server in this embodiment of the invention is used to store the ICCID, region, operator, network standard, card issuance data, bound device identifier (IMEI) and bound eSIM card identifier corresponding to each telecom card number; each first card number resource record in the database corresponds to one telecom card number;
[0169] The remote server queries the card number resource database based on the first device identifier and the first eSIM card identifier. If card number data has been previously loaded on the eSIM card corresponding to this set of first device identifier and first eSIM card identifier, then this query will find that the first card number resource record of the telecom card number bound to both is not empty. Conversely, if card number data has never been loaded on the eSIM card corresponding to this set of first device identifier and first eSIM card identifier, then this query will not find the first card number resource record of the telecom card number bound to both is empty. In the current step, when the old card number resource record is not empty, it will unbind it from the front-end wireless communication device and the eSIM card pre-installed on the device, that is, reset the first bound device identifier field and the first bound eSIM card identifier field of the old card number resource record to empty.
[0170] Step C4: In the card number resource database, select any first card number resource record where the third region field matches the current device region, the sixth operator identifier field matches the first preferred operator identifier, the sixth network standard field matches the first preferred network standard identifier, and both the first bound device identifier field and the first bound eSIM card identifier field are empty, and use this as the corresponding new card number resource record; extract the first card number identifier field from the new card number resource record as the corresponding first card number identifier, and extract all the first card issuance data groups from the first card issuance data field of the new card number resource record to form the corresponding first card issuance data group set; set the first bound device identifier field and the first bound eSIM card identifier field of the new card number resource record as the corresponding first device identifier and first eSIM card identifier;
[0171] Here, in this embodiment of the invention, the remote server selects a first card number resource record from the card number resource database that matches the current device's region, the operator + network standard matches the preferred operator + network standard, and is not bound to any wireless communication device or the eSIM card pre-installed on the device, as a new card number resource record. Based on the ICCID and card issuance data of the new card number resource record, a first card issuance data set is constructed. The wireless communication device and eSIM card binding markers are added to the new card number resource record by setting the first binding device identifier field and the first binding eSIM card identifier field.
[0172] Step C5: Combine the first card number identifier and the first card issuance data set into a corresponding first card number data packet and send it back to the data download terminal.
[0173] Step 6: Prepare the card writing script based on the first preferred operator identifier, the first preferred network standard identifier, and the first card number data packet to generate the corresponding first card writing script;
[0174] Here, the data download terminal of this embodiment of the invention will select the matching template from a plurality of locally preset card writing script templates according to the first preferred operator identifier + the first preferred network standard identifier; and bring the card issuance data in the first card number data packet into the current template to generate the corresponding first card writing script;
[0175] Specifically, this includes: Step 61, where the data download terminal extracts the first card number identifier and the first card issuance data set from the first card number data packet; extracts multiple first card issuance data sets from the first card issuance data set; extracts the corresponding first data name and first card issuance data from each first card issuance data set; and initializes the first card writing script to empty;
[0176] Step 62: Select the card writing script template that matches the first preferred operator identifier and the first preferred network standard identifier from the multiple locally preset card writing script templates as the current template;
[0177] Each card writing script template corresponds to a set of carrier + network standards; each card writing script template consists of multiple sequentially arranged first card writing instruction records. The first card writing instruction record includes a first instruction header, a first instruction body and the expected return data of the first instruction. Each first instruction body corresponds to a first card issuance data name.
[0178] For example, it is known that the data download terminal of this embodiment has two locally pre-set card writing script templates, namely card writing script template 1 and 2. Card writing script template 1 corresponds to the operator's 1+4G standard, and card writing script template 2 corresponds to the operator's 1+5G standard.
[0179] The card writing script template 1 consists of first card writing instruction records 11 and 12 arranged in sequence. The first card writing instruction record 11 is (the first instruction header is instruction header 11, the first card issuance data name corresponding to the first instruction body is data object name 11, and the expected return data of the first instruction is return data 11), and the first card writing instruction record 12 is (the first instruction header is instruction header 12, the first card issuance data name corresponding to the first instruction body is data object name 12, and the expected return data of the first instruction is return data 12).
[0180] The card writing script template 2 consists of sequentially arranged first card writing instruction records 21 and 22. The first card writing instruction record 21 is (the first instruction header is instruction header 21, the first card issuance data name corresponding to the first instruction body is data object name 21, and the expected return data of the first instruction is return data 21), and the first card writing instruction record 22 is (the first instruction header is instruction header 22, the first card issuance data name corresponding to the first instruction body is data object name 22, and the expected return data of the first instruction is return data 22).
[0181] It is also known that the first preferred operator identifier is operator 1 and the first preferred network standard identifier is 4G standard; therefore, the current template obtained by the data download terminal in this embodiment of the invention through the current step is card writing script template 1;
[0182] Step 63: Starting from the first write card instruction record of the current template, traverse each write card instruction record of the current template; during traversal, use the currently traversed first write card instruction record as the corresponding current write card instruction record; extract the first instruction header of the current write card instruction record as the corresponding second instruction header; use the first card issuance data name corresponding to the first instruction body of the current write card instruction record as the corresponding current instruction body data name; extract the first card issuance data of the first card issuance data group in the first card issuance data group set whose first data name matches the current instruction body data name as the corresponding second instruction body; extract the first instruction expected return data of the current write card instruction record as the corresponding second instruction expected return data; and add the corresponding second write card instruction record to the first write card script by combining the obtained second instruction header, second instruction body, and second instruction expected return data.
[0183] For example, the current template is the card writing script template 1 in step 62 above. It is also known that the first card number identifier of the first card number data packet is ICCID1. The first card issuance data set includes two first card issuance data groups, namely first card issuance data group 1 and 2. First card issuance data group 1 is (first data name is data object name 11, first card issuance data is card issuance data 11), and first card issuance data group 2 is (first data name is data object name 12, first card issuance data is card issuance data 12).
[0184] Therefore, the data download terminal of this embodiment of the invention iterates through the first write instruction records of the current template, i.e., the write script template 1, one by one:
[0185] When the current write instruction record is the first write instruction record 11, the obtained second instruction header is instruction header 11; the obtained current instruction body data name is data object name 11, and the first card issuance data group in the first card issuance data group set that matches the first data name with the data object name 11 is the first card issuance data group 1. Therefore, the obtained second instruction body is card issuance data 11; the obtained second instruction expected return data is return data 11; the obtained second write instruction record 1 is (second instruction header is instruction header 11, second instruction body is card issuance data 11, second instruction expected return data is return data 11), and the first write script after the record addition is completed is {second write instruction record 1};
[0186] When the current write instruction record is the first write instruction record 12, the obtained second instruction header is instruction header 12; the obtained current instruction body data name is data object name 12, and the first card issuance data group in the first card issuance data group set that matches the first data name with the data object name 12 is the first card issuance data group 2. Therefore, the obtained second instruction body is card issuance data 12; the obtained second instruction expected return data is return data 12; the obtained second write instruction record 2 is (second instruction header is instruction header 12, second instruction body is card issuance data 12, second instruction expected return data is return data 12), and the first write script after the record addition is completed is {second write instruction record 1, second write instruction record 2};
[0187] Step 64: When the traversal ends, save the first card number identifier locally; and output the obtained first card writing script as the card writing script preparation processing result.
[0188] Step 7: Based on the first card writing script and the wireless communication device, perform card data loading processing on the eSIM card to generate the corresponding first loading state;
[0189] The first loading status includes loading success and loading failure;
[0190] Here, the data download terminal of this embodiment of the invention will convert each second write card instruction record in the first write card script into a corresponding eSIM card instruction, and send it to the eSIM card through a wireless communication device as an instruction forwarding intermediary. It will also compare the actual returned data of the eSIM card with the expected returned data to confirm the instruction execution status of each eSIM card instruction, and confirm the card data loading status based on the instruction execution status of all eSIM card instructions.
[0191] Specifically, this includes: Step 71, the data download terminal iterates through the second write instruction records of the first write script one by one, starting from the first second write instruction record of the first write script; during the iteration, the currently iterated second write instruction record is taken as the corresponding current write instruction record; and the second instruction header and second instruction body of the current write instruction record are combined to form the corresponding first eSIM card instruction and sent to the wireless communication device; and the terminal receives the first instruction return data sent back by the wireless communication device; and identifies whether the first instruction return data matches the expected return data of the second instruction in the current write instruction record; if they match, the corresponding first instruction execution status is set to a successful status; if they do not match, the corresponding first instruction execution status is set to an error status.
[0192] It should be noted that the processing steps of the wireless communication device in this embodiment of the invention when receiving the first eSIM card instruction sent by the data download terminal are as follows: when the wireless communication device receives the first eSIM card instruction sent by the data download terminal, it forwards the first eSIM card instruction to the eSIM card; and sends the first instruction return data sent back by the eSIM card back to the data download terminal.
[0193] It should be noted that the processing steps of the eSIM card in this embodiment of the invention when receiving the first eSIM card instruction forwarded by the wireless communication device are as follows: when the eSIM card receives the first eSIM card instruction forwarded by the wireless communication device, it extracts the second instruction header and the second instruction body from the first eSIM card instruction; and calls the locally preset instruction processing interface corresponding to the second instruction header to perform instruction parsing processing on the second instruction body to generate the corresponding first instruction return data and send it back to the wireless communication device.
[0194] For example, the first card writing script is {second card writing instruction record 1, second card writing instruction record 2}, the second card writing instruction record 1 is (the second instruction header is instruction header 11, the second instruction body is card issuance data 11, and the second instruction expected return data is return data 11), and the second card writing instruction record 2 is (the second instruction header is instruction header 12, the second instruction body is card issuance data 12, and the second instruction expected return data is return data 12);
[0195] Therefore, the data download terminal of this embodiment of the invention iterates through the second write instruction records of the first write script one by one, starting from the first second write instruction record of the first write script:
[0196] When the current write card instruction record is the second write card instruction record 1, the first eSIM card instruction obtained is instruction header 11 + card issuance data 11. After the data download terminal sends the first eSIM card instruction to the wireless communication device, the first instruction return data obtained is return data 11. Since the first instruction return data matches the expected return data of the second instruction, the first instruction execution status 1 obtained is a successful status.
[0197] When the current write card instruction record is the second write card instruction record 2, the first eSIM card instruction obtained is instruction header 12 + card issuance data 12. After the data download terminal sends the first eSIM card instruction to the wireless communication device, the first instruction return data obtained is return data 12. Since the first instruction return data matches the expected return data of the second instruction, the first instruction execution status 2 obtained is a successful status.
[0198] Step 72: When the traversal ends, identify whether all the first instruction execution states are in a successful state; if so, set the corresponding first loading state to loading successful, otherwise set the corresponding first loading state to loading failed.
[0199] Here, if the first loading status is successful, the data download terminal of this embodiment will proceed to the subsequent step 8 to continue execution; it should be noted that if the first loading status is failed, the data download terminal of this embodiment will stop executing the subsequent steps, mark the first card number identifier saved in the aforementioned step 64 as failed to load, and output a pop-up window to display the eSIM card data loading failure prompt information to the staff, and provide confirmation and abandonment options for whether to reselect the network and whether to reselect a new card on the pop-up window, and return to step 51 when the staff clicks the confirmation option for reselecting the network, and return to step 52 when the staff clicks the confirmation option for reselecting a new card.
[0200] Step 8: When the first loading status is successful, send a device network access command to the wireless communication device; and receive the first network access status sent back by the wireless communication device.
[0201] The first login status includes successful login and failed login.
[0202] It should be noted that the processing steps of the wireless communication device in this embodiment of the invention when receiving the device network access instruction sent by the data download terminal are as follows: when the wireless communication device receives the device network access instruction sent by the data download terminal, it calls the eSIM card to perform network access processing; if the network access processing is successful, the corresponding first network access status is set to successful network access, and if the network access processing fails, the corresponding first network access status is set to failed network access; and the first network access status is sent back to the data download terminal.
[0203] Here, after successfully loading card data onto the eSIM card according to the first card writing script and the wireless communication device, the data download terminal of this embodiment of the invention will also verify whether the loaded card data can work normally. The verification method is to send a device registration command to the wireless communication device to activate the wireless communication device's registration process and obtain the corresponding first registration status. If the first registration status is successful, the data download terminal of this embodiment of the invention will proceed to the subsequent step 9 to continue execution. It should be noted that if the first registration status is failed, the data download terminal of this embodiment of the invention will execute the current step 8 again and determine the first registration status sent back by the wireless communication device. If the status is successful, and the first network access status obtained from the current step 8 is failed multiple times (the maximum number of consecutive times is determined by the preset network access number threshold), the data download terminal of this embodiment will mark the first card number identifier saved in the aforementioned step 64 as failed to load, and output a pop-up window to show the staff the prompt message that the eSIM card network access failed. The pop-up window provides confirmation and cancellation options for whether to reselect the network and whether to reselect a new card. When the staff clicks the confirmation option for reselecting the network, the system returns to step 51, and when the staff clicks the confirmation option for reselecting a new card, the system returns to step 52.
[0204] Step 9: When the first network login status is "network login successful", display a message indicating that the eSIM card data has been successfully downloaded to the staff.
[0205] Figure 3 This is a schematic diagram of an electronic device provided in Embodiment 2 of the present invention. This electronic device can be the aforementioned terminal device or server, or it can be a terminal device or server connected to the aforementioned terminal device or server that implements the method of the embodiments of the present invention. Figure 3 As shown, the electronic device may include: a processor 301 (e.g., CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transmission and reception operations of the transceiver 303. The memory 302 may store various instructions for performing various processing functions and implementing the processing steps described in the foregoing method embodiments. Preferably, the electronic device involved in the embodiments of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to realize communication connections between components. The communication port 306 is used for communication between the electronic device and other peripherals.
[0206] exist Figure 3The system bus 305 mentioned can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.
[0207] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), graphics processing units (GPUs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0208] It should be noted that the embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when run on a computer, cause the computer to perform the methods and processes provided in the above embodiments.
[0209] This invention also provides a chip for executing instructions, which is used to perform the processing steps described in the foregoing method embodiments.
[0210] This invention provides a method for updating eSIM card data using a data download terminal, an electronic device, and a computer-readable storage medium. When the data download terminal receives an eSIM card data download command triggered by a staff member, it invokes a signal scanner to perform a signal scan and obtain a corresponding set of scan records. It also obtains the corresponding device identifier and eSIM card identifier from a wireless communication device. Furthermore, it obtains a list of operator resources matching the device identifier and eSIM card identifier from a remote server. Based on the scan record set and the operator resource list, it performs operator network optimization to obtain the corresponding preferred operator and network standard. It then obtains new card issuance data under the preferred operator and network standard from the remote server. Finally, it writes the new card issuance data to the eSIM card via the wireless communication device, thus obtaining a new card. After loading the new card, the data download terminal also identifies the network access status of the new card and displays a task completion prompt to the staff member upon successful network access. Through this invention, the data download terminal can provide staff with a card replacement process that does not require physical card switching. It can also improve the accuracy of card replacement based on the scan results of the signal scanner, simplify the staff's operation steps, reduce work complexity, improve work efficiency, and increase the success rate of card replacement.
[0211] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0212] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0213] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A processing method for eSIM card data update by a data download terminal, characterized in that, The method comprises: The data download terminal identifies the first work instruction input by the staff; When the first work instruction is an eSIM card data download instruction, the signal scanner, wireless communication equipment and remote server are connected respectively to generate corresponding first, second and third connection states; When the first, second and third connection states are all successful states, an eSIM card state detection instruction is sent to the wireless communication equipment; and a first card state returned by the wireless communication equipment is received; When the first card state is a normal state, a signal scanning instruction is sent to the signal scanner; a first scanning record set returned by the signal scanner is received; an equipment identifier acquisition instruction is sent to the wireless communication equipment; a first equipment identifier returned by the wireless communication equipment is received; an eSIM card identifier acquisition instruction is sent to the wireless communication equipment; a first eSIM card identifier returned by the wireless communication equipment is received; and an operator resource acquisition instruction carrying the first equipment identifier and the first eSIM card identifier is sent to the remote server; and a first operator resource list returned by the remote server is received; According to the first scanning record set and the first operator resource list, an operator network optimization processing is performed to generate a corresponding first preferred operator identifier and a first preferred network mode identifier; and a card data download application instruction carrying the first equipment identifier, the first eSIM card identifier, the first preferred operator identifier and the first preferred network mode identifier is sent to the remote server; and a first card number data package returned by the remote server is received; According to the first preferred operator identifier, the first preferred network mode identifier and the first card number data package, a card data writing script preparation processing is performed to generate a corresponding first card data writing script; According to the first card data writing script and the wireless communication equipment, a card data loading processing is performed on the eSIM card to generate a corresponding first loading state; When the first loading state is a loading success, an equipment network login instruction is sent to the wireless communication equipment; and a first network login state returned by the wireless communication equipment is received; When the first network login state is a network login success, an eSIM card data successful download prompt information is displayed to the staff.
2. The processing method for eSIM card data update of the data download terminal according to claim 1, wherein The communication mode between the data download terminal and the signal scanner includes a Bluetooth communication mode, a WiFi communication mode, a wired network communication mode and a USB communication mode; The communication mode between the data download terminal and the wireless communication equipment includes a Bluetooth communication mode, a WiFi communication mode, a wired network communication mode and a USB communication mode; The communication mode between the data download terminal and the remote server includes a WiFi communication mode, a wired network communication mode, a 2G network communication mode, a 3G network communication mode, a 4G network communication mode and a 5G network communication mode; The first scan record set comprises a plurality of first scan records; the first scan record comprises a first operator identification field, a first network standard field and a first signal strength field; the first network standard field comprises a 2G standard, a 3G standard, a 4G standard and a 5G standard; The first operator resource list comprises a plurality of first operator resource records; the first operator resource record comprises a second operator identification field, a second network standard field and a first available card number field; The first card number data packet comprises a first card number identification and a first card issuing data group set. 3.The data download terminal processing method for eSIM card data update according to claim 1, wherein, The signal scanner, the wireless communication device and the remote server are connected respectively to generate corresponding first, second and third connection states, and specifically comprising: The data download terminal sends a scanner connection application to the signal scanner, and sets the corresponding first connection state as a success state when the signal scanner returns a scanner connection success information; sends a device connection application to the wireless communication device, and sets the corresponding second connection state as a success state when the wireless communication device returns a device connection success information; and sends a server connection application to the remote server, and sets the corresponding third connection state as a success state when the remote server returns a server connection success information. 4.The data download terminal processing method for eSIM card data update of claim 1, wherein, The method further comprises: When the wireless communication device receives the eSIM card state detection instruction sent by the data download terminal, the eSIM card is reset; if the reset information sent back by the eSIM card is received within a preset reset waiting period, the corresponding first card state is set as a normal state, and if the reset information sent back by the eSIM card is not received within the reset waiting period, the corresponding first card state is set as an abnormal state; and the obtained first card state is sent back to the data download terminal. 5.The data download terminal processing method for eSIM card data update according to claim 2, wherein, The method further comprises: When the signal scanner receives the signal scanning instruction sent by the data download terminal, each first operator signal frequency band record of a preset operator signal frequency band list is traversed; and when traversing, the first operator signal frequency band record currently traversed is taken as a corresponding current record, and the third operator identifier field, the first signal frequency band field, the first signal frequency range field and the third network standard field of the current record are extracted as a corresponding current operator identifier, a current signal frequency band, a current signal frequency range and a current network standard; and a local modem module is called to scan and sample the signal strength of a wireless signal with a signal frequency band of the current signal frequency band, a signal frequency satisfying the current signal frequency range and a signal standard satisfying the current network standard according to a preset sampling time interval T and a sampling number M to obtain M sampling signal strengths, and the M sampling signal strengths are subjected to mean value calculation to generate a corresponding current signal strength; and the current operator identifier, the current network standard and the current signal strength obtained are taken as the first operator identifier field, the first network standard field and the first signal strength field to form a corresponding first scanning record; wherein the operator signal frequency band list comprises a plurality of first operator signal frequency band records; the first operator signal frequency band record comprises the third operator identifier field, the first signal frequency band field, the first signal frequency range field and the third network standard field; the third network standard field comprises a 2G standard, a 3G standard, a 4G standard and a 5G standard; When the traversal ends, all the first scanning records obtained are taken as a corresponding first scanning record set to be sent back to the data download terminal. 6.The data download terminal processing method for eSIM card data update according to claim 2, wherein, The method further comprises: When the wireless communication device receives the device identifier acquisition instruction sent by the data download terminal, the locally stored international mobile equipment identity is taken as a corresponding first device identifier to be sent back to the data download terminal. 7.The data download terminal processing method for eSIM card data update of claim 2, wherein, The method further comprises: When the wireless communication device receives the eSIM card identifier acquisition instruction sent by the data download terminal, the eSIM card identifier acquisition instruction is forwarded to the eSIM card; and the first eSIM card identifier sent back by the eSIM card is sent back to the data download terminal; When the eSIM card receives the eSIM card identifier acquisition instruction forwarded by the wireless communication device, the locally stored eSIM card identifier is taken as a corresponding first eSIM card identifier to be sent back to the wireless communication device. 8.The data download terminal processing method for eSIM card data update of claim 6, wherein, The method further comprises: When the remote server receives the operator resource acquisition instruction sent by the data download terminal, the first device identifier and the first eSIM card identifier are extracted therefrom; extracting a first region field of a first wireless communication device record in a preset wireless communication device database as a corresponding current device region, where the wireless communication device database comprises a plurality of first wireless communication device records, each first wireless communication device record comprises the first device identification field, the first eSIM card identification field, and the first region field; marking all first region operator resource records in a preset region operator resource database as matching records, where the region operator resource database comprises a plurality of first region operator resource records, each first region operator resource record comprises the second region field, the fourth operator identification field, the fourth network mode field, and the second available card number field; and extracting the fourth operator identification field, the fourth network mode field, and the second available card number field of each matching record as the corresponding second operator identification field, the second network mode field, and the first available card number field to form a corresponding first operator resource record; and sending the first operator resource list composed of all the first operator resource records to the data download terminal. 9.The data download terminal processing method for eSIM card data update of claim 2, wherein, generating a corresponding first preferred operator identification and a first preferred network mode identification according to the first scan record set and the first operator resource list, specifically including: initializing a first merged list with an empty content; counting the number of first scan records in the first scan record set to generate a corresponding first record number N; adding N first merged records to the first merged list; and initializing a third available card number field of each first merged record to 0; where the first merged list comprises a plurality of first merged records, each first merged record corresponds to a first scan record, and each first merged record comprises a fifth operator identification field, a fifth network mode field, a second signal strength field, and the third available card number field; setting the corresponding fifth operator identification field, the fifth network mode field, and the second signal strength field in the corresponding first merged record according to the first operator identification field, the first network mode field, and the first signal strength field of each first scan record; and setting the corresponding fifth operator identification field, the fifth network mode field, and the second signal strength field in the corresponding first merged record according to the first operator identification field, the first network mode field, and the first signal strength field of each first scan record. traversing each of the first operator resource records of the first operator resource list; and extracting the second operator identifier field and the second network type field of the current traversed first operator resource record as a corresponding current operator identifier and a current network type; and matching the fifth operator identifier field and the fifth network type field of the first merged record in the first merged list with the current operator identifier and the current network type; and setting the third available card number field of the matched merged record according to the first available card number field of the current resource record; when the traversal is completed, displaying a card number resource selection interface to the staff; and displaying the content of the first merged list in the card number resource selection interface in the form of text, table or statistical chart; and taking the operator identifier and the network type identifier selected by the staff in the card number resource selection interface as the first preferred operator identifier and the first preferred network type identifier. 10.The processing method of eSIM card data update by the data download terminal according to claim 2, wherein, The method further comprises: extracting the first device identifier, the first eSIM card identifier, the first preferred operator identifier and the first preferred network type identifier from the card data download application instruction sent by the data download terminal when the remote server receives the card data download application instruction; extracting the first region field of the first wireless communication device record in the preset wireless communication device database, which matches the first device identifier and the first eSIM card identifier, as a corresponding current device region; wherein the wireless communication device database comprises a plurality of first wireless communication device records; the first wireless communication device record comprises the first device identifier field, the first eSIM card identifier field and the first region field; extracting the first card number resource record in the preset card number resource database, which matches the first device identifier and the first eSIM card identifier, as a corresponding old card number resource record; if the old card number resource record is not empty, resetting the first binding device identifier field and the first binding eSIM card identifier field of the old card number resource record to empty; wherein the card number resource database comprises a plurality of first card number resource records; the first card number resource record comprises a first card number identifier field, a third region field, a sixth operator identifier field, a sixth network type field, a first card issuing data field, a first binding device identifier field and a first binding eSIM card identifier field; the first card issuing data field comprises a plurality of first card issuing data groups; the first card issuing data group comprises a first data name and first card issuing data; In the card number resource database, the first card number resource record with the third region field matching the current device region, the sixth operator identification field matching the first preferred operator identification, the sixth network mode field matching the first preferred network mode identification, and the first binding device identification field and the first binding eSIM card identification field being empty is taken as a corresponding new card number resource record; the first card number identification field of the new card number resource record is extracted as a corresponding first card number identification, and all the first card issuance data groups of the first card issuance data field of the new card number resource record are extracted to form a corresponding first card issuance data group set; the first binding device identification field and the first binding eSIM card identification field of the new card number resource record are set as the corresponding first device identification and the first eSIM card identification; The first card number data packet composed of the first card number identification and the first card issuance data group set is sent back to the data download terminal. 11.The data download terminal processing method for eSIM card data update of claim 2, wherein, The first card number data packet composed of the first card number identification and the first card issuance data group set is sent back to the data download terminal. The first card number data packet composed of the first card number identification and the first card issuance data group set is sent back to the data download terminal. The data download terminal extracts the first card number identification and the first card issuance data group set from the first card number data packet; extracts a plurality of first card issuance data groups from the first card issuance data group set; extracts a corresponding first data name and first card issuance data from each first card issuance data group; and initializes the first card writing script as empty; A write card script template in a plurality of locally preset write card script templates that matches the first preferred operator identification and the first preferred network mode identification is taken as a current template; each write card script template corresponds to a group of operator+network mode; each write card script template is composed of a plurality of sequentially arranged first card writing instruction records, and the first card writing instruction record includes a first instruction header, a first instruction body, and first instruction expected return data, and each first instruction body corresponds to a first card issuance data name; From the first first card writing instruction record of the current template, the first card writing instruction record of the current template is traversed one by one; and when traversing, the first card writing instruction record currently traversed is taken as the corresponding current card writing instruction record; and the first instruction header of the current card writing instruction record is extracted as the corresponding second instruction header; and the first card data name corresponding to the first instruction body of the current card writing instruction record is taken as the corresponding current instruction body data name, and the first card data of the first data name in the first data group set matched with the current instruction body data name is extracted as the corresponding second instruction body; and the first instruction expected return data of the current card writing instruction record is extracted as the corresponding second instruction expected return data; and the second instruction header, the second instruction body and the second instruction expected return data obtained are combined to form the corresponding second card writing instruction record to add to the first card writing script; When the traversal is completed, the first card number identifier is saved locally; and the first card writing script obtained is taken as a card writing script preparation processing result output.
12. The processing method of eSIM card data update by the data download terminal according to claim 11, characterized in that, The first loading state corresponding to the eSIM card is generated according to the first card writing script and the wireless communication device, and specifically includes: The data download terminal traverses the second card writing instruction record of the first card writing script one by one from the first second card writing instruction record of the first card writing script; and when traversing, the second card writing instruction record currently traversed is taken as the corresponding current card writing instruction record; and the second instruction header and the second instruction body of the current card writing instruction record are combined to form the corresponding first eSIM card instruction and sent to the wireless communication device; and the first instruction return data returned by the wireless communication device is received; and whether the first instruction return data matches the second instruction expected return data of the current card writing instruction record is identified; if matched, the corresponding first instruction execution state is set as a success state, and if not matched, the corresponding first instruction execution state is set as an error state; When the traversal is completed, whether all the first instruction execution states obtained are success states is identified; if yes, the corresponding first loading state is set as a loading success, and if not, the corresponding first loading state is set as a loading failure.
13. The processing method of eSIM card data update by the data download terminal according to claim 12, characterized in that, The method further includes: When the wireless communication device receives the first eSIM card instruction sent by the data download terminal, the first eSIM card instruction is forwarded to the eSIM card; and the first instruction return data returned by the eSIM card is returned to the data download terminal; When the eSIM card receives the first eSIM card instruction forwarded by the wireless communication device, the second instruction header and the second instruction body are extracted from the first eSIM card instruction; and a locally preset instruction processing interface corresponding to the second instruction header is called to perform instruction analysis processing on the second instruction body to generate corresponding first instruction return data and send the first instruction return data back to the wireless communication device.
14. The processing method of eSIM card data update by the data download terminal according to claim 1, characterized in that, The method further comprises: When the wireless communication device receives the device network access instruction sent by the data download terminal, the eSIM card is called to perform network access processing; if the network access processing is successful, the corresponding first network access state is set as network access success, and if the network access processing fails, the corresponding first network access state is set as network access failure; and the first network access state is sent back to the data download terminal.
15. An electronic device, comprising: Comprise: a memory, a processor and a transceiver; The processor is used to couple with the memory, read and execute instructions in the memory to realize the method steps in any one of claims 1-14; The transceiver is coupled with the processor, and the transceiver is controlled by the processor to perform message transceiving.
16. A computer readable storage medium characterized by: The computer readable storage medium stores computer instructions, when the computer instructions are executed by a computer, the computer instructions make the computer execute the instructions of the method in any one of claims 1-14.
Citation Information
Patent Citations
Operator network test system and method based on eSIM
CN112105025A
ESIM device network access updating method and system, eSIM device and storage medium
CN112954629A