Interaction method and device of platform and dumb terminal, electronic equipment and storage medium
By optimizing the queue method to read dumb terminal SMS in batches and configure eSIM remotely, the problem of large resource occupation and excessive platform pressure in the existing technology is solved, and efficient and secure platform-dumb terminal interaction and eSIM configuration are achieved.
Patent Information
- Application Number
- CN202311385842.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2043-10-24
AI Technical Summary
When the existing technology deals with the interaction between dumb terminals and eSIM platforms, the resource occupies a large amount of resources, resulting in excessive pressure on the Internet of Things platform and may even cause the platform to be paralyzed.
By optimizing the queue method, batch reads the SMS sent by the dumb terminal and sends SMS instructions to the dumb terminal to remotely configure eSIM, achieving convenient interaction between the platform and the dumb terminal.
It improves the efficiency and security of the platform's reading of dumb terminal SMS and remotely configures eSIM, meets the platform's centralized management needs for dumb terminals, and avoids the problems of excessive resource occupation and platform pressure.
Smart Images

Figure CN119893451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, device, electronic device and computer-readable storage medium for interaction between a platform and a dumb terminal. Background Art
[0002] The Internet of Things is accelerating into a new stage of "cross-border integration, integrated innovation and large-scale development", and eSIM (Embedded-SIM) is an indispensable core technology in the era of 5G Internet of Everything. It is deeply intertwined with the new Internet of Things industrialization, urbanization, informatization and agricultural modernization construction, and faces broad development prospects.
[0003] However, dumb terminal IoT devices are limited to panels without active control and cannot actively interact with the eSIM platform for configuration. In addition, when multiple dumb terminals are connected to the IoT platform at the same time, the IoT platform reads new SMS messages from each dumb terminal at the same time and displays them on the front-end page. The common method is to start a background thread for polling and set a fixed time, usually a few seconds or a few minutes. Starting the background thread will take up a lot of resources and scan the table structure at the same time. If the set time is too short, it may cause excessive query pressure on the database and cause a bottleneck in the database query; if other tasks need to use the table at this time, the table may be locked, and other tasks may need to wait, which means that the page is displayed as a pseudo-dead page; therefore, the existing technology will take up a lot of resources, resulting in excessive pressure on the IoT platform, and in severe cases, it will cause the IoT platform to paralyze. Summary of the invention
[0004] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and to provide a method, device, electronic device and computer-readable storage medium for interaction between a platform and a dumb terminal. The method can realize convenient interaction between the platform and the dumb terminal, improve the efficiency and security of the platform in reading dumb terminal text messages and remotely configuring the dumb terminal eSIM, and meet the platform's centralized management requirements for dumb terminals.
[0005] In a first aspect, the present invention provides an interaction method between a platform and a dumb terminal, which is applied to the platform, and includes: batch reading first text messages sent by a target dumb terminal by optimizing a queue; sending a second text message to the target dumb terminal to remotely configure an embedded identity module eSIM of the target dumb terminal.
[0006] Preferably, the batch reading of the first text messages sent by the target dumb terminal by optimizing the queue method specifically includes: creating a task set for reading the first text messages sent by the target dumb terminal according to the first text messages sent by the target dumb terminal; pushing the task set into a queue and storing it in a database; periodically reading and executing the task set in the queue; if the platform crashes, reading the task set from the database for execution; and pushing the corresponding execution results of each task in the task set into the queue in real time.
[0007] Preferably, pushing the task set into the queue and storing it in the database specifically includes: serializing the task set to obtain the priority of the task set; pushing the task sets into the same queue respectively according to the priority of the task set; and persisting the task sets pushed into the same queue and storing them in the database.
[0008] Preferably, before sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal, the interaction method between the platform and the dumb terminal also includes: aggregating timestamp, application identifier, application key and application address information to generate text message content corresponding to the target dumb terminal; using the assigned identity identifier as the key to encrypt the text message content corresponding to the target dumb terminal, and encoding the encrypted text message content to generate a signature corresponding to the target dumb terminal; adding prefix information and suffix information to the signature to generate a second text message corresponding to the target dumb terminal.
[0009] In a second aspect, the present invention also provides an interaction method between a platform and a dumb terminal, which is applied to the dumb terminal, including: sending a first text message to the platform so that the platform batch reads the first text messages sent by the dumb terminal by optimizing the queue; receiving a second text message sent by the platform; and configuring its own embedded identity recognition module eSIM according to the second text message.
[0010] Preferably, configuring its own embedded identity identification module eSIM according to the second SMS specifically includes: determining whether the second SMS contains prefix information and suffix information, and if so, obtaining a disassembly rule; disassembling the second SMS based on the disassembly rule to obtain SMS content corresponding to the dumb terminal; configuring and executing a target instruction according to the SMS content corresponding to the dumb terminal to configure its own embedded identity identification module eSIM.
[0011] In a third aspect, the present invention also provides an interactive device between a platform and a dumb terminal, which is applied to the platform and includes: a reading module and a first sending module, the reading module is used to batch read first text messages sent by the target dumb terminal by optimizing the queue, and the first sending module is used to send a second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal.
[0012] In a fourth aspect, the present invention also provides an interactive device between a platform and a dumb terminal, which is applied to the dumb terminal and includes: a second sending module, a receiving module and a configuration module. The second sending module sends a first text message to the platform so that the platform batch reads the first text messages sent by the dumb terminal by optimizing the queue. The receiving module is used to receive a second text message sent by the platform. The configuration module is connected to the receiving module and is used to configure its own embedded identity identification module eSIM according to the second text message.
[0013] In a fifth aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the platform and dumb terminal interaction method provided in the first aspect or the second aspect above.
[0014] In a sixth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for interaction between the platform and the dumb terminal provided in the first aspect or the second aspect above is implemented.
[0015] The present invention provides a method, device, electronic device and computer-readable storage medium for interaction between a platform and a dumb terminal, which reads short messages in batches based on an optimized queue method, sends short message instructions, and remotely configures its own embedded identity recognition module eSIM based on the short message instructions. Therefore, the present invention realizes convenient interaction between the platform and the dumb terminal by reading short messages from the dumb terminal and sending short message instructions to the dumb terminal, reads short messages in batches based on an optimized queue method, thereby improving the efficiency of the platform in reading short messages from the dumb terminal, and sends short message instructions to remotely configure the embedded identity recognition module eSIM based on the short message instructions, thereby improving the efficiency and security of the platform in remotely configuring the dumb terminal eSIM, and meeting the platform's centralized management requirements for dumb terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of a method for interaction between a platform and a dumb terminal according to Embodiment 1 of the present invention;
[0017] Figure 2 This is a flow chart of a method for interaction between a platform and a dumb terminal according to Embodiment 2 of the present invention;
[0018] Figure 3 This is a flow chart of a method for batch reading short messages in Embodiment 3 of the present invention;
[0019] Figure 4 This is a flow chart of a method for disassembling a text message in Embodiment 4 of the present invention;
[0020] Figure 5 This is a schematic diagram of the structure of an interactive device between a platform and a dumb terminal in Embodiment 5 of the present invention;
[0021] Figure 6 This is a schematic diagram of the structure of an interactive device between a platform and a dumb terminal in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0023] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.
[0024] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.
[0025] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.
[0026] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0027] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.
[0028] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0029] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.
[0030] Embodiment 1:
[0031] like Figure 1 As shown, this embodiment provides a method for interacting between a platform and a dumb terminal, which is applied to the platform. The method for interacting between the platform and the dumb terminal includes:
[0032] Step S101, batch reading first short messages sent by a target dumb terminal by optimizing the queue.
[0033] In this embodiment, the number of target dumb terminals is one or more. The first short message may be an encrypted short message, thereby improving the security of the interaction between the target dumb terminal and the platform, or the first short message may be an unencrypted short message. By dynamically reading short messages sent by dumb terminals in an optimized queue manner, the efficiency of the platform in processing short messages can be improved, and the needs of dumb terminals can be responded to in a timely manner.
[0034] Specifically, step S101: batch reading the first short messages sent by the target dumb terminal by optimizing the queue, including steps S1011 to S1015:
[0035] Step S1011: creating a task set for reading the first short message sent by the target dumb terminal according to the first short message sent by the target dumb terminal.
[0036] Step S1012, pushing the task set into a queue and storing it in a database.
[0037] Specifically, step S1012: pushing the task set into the queue and storing it in the database includes: serializing the task set to obtain the priority of the task set; pushing the task sets into the same queue respectively according to the priority of the task set; persisting the task sets pushed into the same queue and storing them in the database.
[0038] In the present embodiment, the queue selects a priority blocking queue, and sets weight, start time, deadline, and duration for each first short message task of the target dumb terminal to be read, and then the tasks to be performed are encapsulated in a Java entity object, and when the task set is serialized, the task set is sorted according to the different weight values, and the priority of the task set is obtained, and the queue is pressed after serialization. Since the tasks in the queue are not persistent, data loss may occur, such as server stop, server restart and other operations, so when the scheduled task is executed each time, the task is persisted and stored in the database, when the server is down, the next time the server is started, the platform timing system will scan the tasks to be performed in the database, and the tasks to be performed scanned from the database are all pressed into the queue, and the tasks that have timed out are executed immediately. The present embodiment is by serializing the tasks, sorting the task set, obtaining the priority of the task set, improving the transmissibility of the tasks, objectively reflecting the differences and importance between different tasks, to improve the efficiency of task execution, and by persisting the tasks and storing them in the database, reducing the situation of task data loss due to server stop, restart and other reasons.
[0039] Step S1013, regularly reading and executing the task set in the queue.
[0040] In this embodiment, after the server is started, the first task in the task set is read according to the preset time, and the first task is executed. The duration of the first task is used as the blocking time, and the first SMS of the target dumb terminal is continuously read until the first task is read, and then the subsequent tasks in the task set are read.
[0041] Step S1014: if the platform is down, read the task set from the database for execution.
[0042] Step S1015: Push the corresponding execution result of each task in the task set into the queue in real time.
[0043] Step S102: sending a second SMS message to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal.
[0044] In this embodiment, remotely configuring the embedded identity module eSIM of the target dumb terminal specifically includes: the target dumb terminal receives the second SMS sent by the platform, and configures its own embedded identity module eSIM according to the second SMS. The target dumb terminal configures its own embedded identity module eSIM according to the second SMS, specifically including: the target dumb terminal determines whether the second SMS contains prefix information and suffix information, and if so, obtains a disassembly rule; the target dumb terminal disassembles the second SMS based on the disassembly rule to obtain the SMS content corresponding to the dumb terminal; the target dumb terminal configures and executes the target instruction according to the SMS content corresponding to the dumb terminal to configure its own embedded identity module eSIM.
[0045] After receiving the second SMS, the target dumb terminal low-order channel adapter LPA module parses the message according to the generation rules, and determines whether the second SMS is an encrypted SMS through the prefix information ("0x00") and the suffix information ("0xx0"). If the message includes the prefix information ("0x00") and the suffix information ("0xx0"), it is determined to be an encrypted SMS, where "0x00" and "0xx0" are only examples. If it is an encrypted SMS, it is decrypted and disassembled. After the target dumb terminal confirms the application identifier appId, it configures the AT command according to the application identifier appId, the application secret key appSecret and the application address information appUrl in the second SMS content. The example is as follows:
[0046] (1) AT+cgdcont=1,"IP","3GNET"
[0047] (2)AT+CGDCONT?
[0048] (3)AT+CGACT?
[0049] (4) AT+LPA = "AppId", "123" (Note that in this example, "123" refers to the appId in the decrypted second SMS. Fill in the appId in the decrypted second SMS.)
[0050] (5) AT+LPA = "AppSecret", "123545123123" (Note that in this example "123545123123" refers to the appSecret in the decrypted second SMS. Fill in the appSecret in the decrypted second SMS.)
[0051] (6) AT+LPA = "AppUrl", "http: / / 2k2w29.natappfree.cc / " (Note that in this example "http: / / 2k2w29.natappfree.cc / " refers to the appUrl in the second SMS after decryption. Fill in the appUrl in the second SMS after decryption)
[0052] (7) AT+LPA="STARTGUARDIAN".
[0053] It should be noted that, when the target dumb terminal applies for access, the first text messages sent by the target dumb terminal can be read in batches, and the second text messages can be sent to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal; the first text messages sent by the target dumb terminal can also be read in batches at any time later, and the second text messages can be sent to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal. There is no order or cause-effect relationship between batch reading of the first text message sent by the target dumb terminal and sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal. The interaction between the platform and the dumb terminal includes the following situations: ① only batch reading of the first text message sent by the target dumb terminal; ② only sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal or remotely control the target dumb terminal; ③ after batch reading of the first text message sent by the target dumb terminal, sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal; ④ after sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal, batch reading of the first text message sent by the target dumb terminal; ⑤ simultaneously batch reading of the first text message sent by the target dumb terminal and sending the second text message to the target dumb terminal to remotely configure the embedded identity identification module eSIM of the target dumb terminal.
[0054] Optionally, before step S102: sending a second SMS to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal, the method for interaction between the platform and the dumb terminal further includes steps S01 to S03:
[0055] S01, aggregating timestamp, application identification, application key and application address information to generate SMS content corresponding to the target dumb terminal.
[0056] In this embodiment, the platform allocates an application identifier, an application key, and application address information to the target dumb terminal, uses the generation time of the corresponding SMS content sent by the platform to the target dumb terminal as the timestamp, and aggregates the timestamp, application identifier, application key, and application address information to generate the SMS content corresponding to the target dumb terminal, such as the string: "timestamp+"|"+appId+"|"+appSecret+"|"+appUrl+"|"+#0001" (English separator is a vertical line |, not a slash / ), and the separator line cannot be omitted.
[0057] S02, using the assigned identity as a secret key to encrypt the SMS content corresponding to the target dumb terminal, and encoding the encrypted SMS content to generate a signature corresponding to the target dumb terminal.
[0058] In this embodiment, the identity (secretId, which refers to a credential used for identity authentication when accessing cloud services, is usually a unique identifier used to identify the identity of a cloud user and authorize access to corresponding resources and services) assigned to the dumb terminal by the platform is used as a secret key for AES (Advanced Encryption Standard) encryption, and base64 encoding is performed after encryption to generate a signature. Among them, the encryption mode adopts CBC (CipherBlock Chaining, ciphertext group chaining) mode, and the padding mode uses KCS5Padding during the encoding process. In addition to AES encryption, the encryption method can also be replaced by: DES encryption (Data Encryption Standard, i.e., Data Encryption Standard), 3DES (Triple DES, based on DES, a piece of data is encrypted three times with three different keys, with higher strength), Blowfish, RSA asymmetric encryption algorithm, etc. In addition to base64 encoding, the encoding method can also be replaced by: base32, Base16 encoding (also known as hex encoding), Base85 encoding, Base91 encoding, Base122 encoding, etc. In addition to the CBC mode, the encryption mode can also be replaced by: Electronic Code Book (ECB), Cipher Feedback (CFB), Output Feedback (OFB), Counter (CTR), etc. In addition to KCS5Padding, the padding mode can also be replaced by: ZeroPadding, PKCS7Padding, etc. This embodiment ensures the privacy and security of the second SMS sent by the platform to the dumb terminal by encrypting the second SMS content.
[0059] S03, adding prefix information and suffix information to the signature to generate a second short message corresponding to the target dumb terminal.
[0060] In this embodiment, base64 encoding is performed after encryption, and after the signature is generated, prefix information and suffix information are added to the signature as the second short message, such as: "0x00"+signature+"0xx0".
[0061] The present embodiment provides a method for interaction between a platform and a dumb terminal, which reads SMS in batches based on an optimized queue method, sends SMS instructions, and remotely configures its own embedded identity identification module eSIM based on SMS instructions. Therefore, the present invention realizes convenient interaction between the platform and the dumb terminal by reading SMS messages from the dumb terminal and sending SMS instructions to the dumb terminal, and batches read SMS messages based on an optimized queue method, thereby improving the efficiency of the platform in reading dumb terminal SMS messages, and sends SMS instructions to remotely configure the embedded identity identification module eSIM based on SMS instructions, thereby improving the efficiency and security of the platform in remotely configuring the dumb terminal eSIM, and meeting the platform's centralized management requirements for dumb terminals. In addition, by serializing the tasks, sorting the task set, obtaining the priority of the task set, improving the transmittability of the tasks, objectively reflecting the differences and importance between different tasks, so as to improve the efficiency of task execution, and by persisting the tasks and storing them in a database, reducing the loss of task data due to server stop, restart, etc. By encrypting the content of the second SMS, the privacy and security of the platform sending the second SMS to the dumb terminal are guaranteed.
[0062] Embodiment 2:
[0063] like Figure 2 As shown, this embodiment provides a method for interacting between a platform and a dumb terminal, which is applied to a dumb terminal. The method for interacting between a platform and a dumb terminal includes:
[0064] Step S201, sending a first short message to the platform, so that the platform reads the first short messages sent by the dumb terminal in batches by optimizing the queue.
[0065] In this embodiment, the platform batch reads the first text messages sent by the target dumb terminal by optimizing the queue, including: the platform creates a task set for reading the first text messages sent by the target dumb terminal according to the first text messages sent by the target dumb terminal; the platform pushes the task set into the queue and stores it in the database; the platform periodically reads and executes the task set in the queue; if the platform crashes, the platform reads the task set from the database for execution; the platform pushes the corresponding execution results of each task in the task set into the queue in real time. The first text message can be an encrypted text message, thereby improving the security of the interaction between the dumb terminal and the platform, and the first text message can also be an unencrypted text message. The platform dynamically reads text messages sent by dumb terminals by optimizing the queue, which can improve the efficiency of the platform in processing text messages and respond to the needs of dumb terminals in a timely manner.
[0066] The platform pushes the task set into the queue and stores it in the database, which specifically includes: the platform serializes the task set to obtain the priority of the task set; the platform pushes the task set into the same queue according to the priority of the task set; the platform persists the task set pushed into the same queue and stores it in the database. Among them, the queue selects the priority blocking queue, and sets the weight, start time, deadline, and duration for each task that reads the first SMS of the dumb terminal, and then encapsulates the tasks to be executed into the Java entity object. When serializing the task set, the task set is sorted according to the different weight values to obtain the priority of the task set, and then serialized and pushed into the queue. Since the tasks in the queue are not persisted, data loss may occur, such as server stop, server restart and other operations. Therefore, each time a scheduled task is executed, the task is persisted and stored in the database. When the server goes down, the next time the server is started, the platform timing system will scan the tasks to be executed in the database, push all the tasks to be executed scanned from the database into the queue, and immediately execute the tasks that have timed out. This embodiment serializes tasks through the platform, sorts the task set, obtains the priority of the task set, improves the transmittability of tasks, objectively reflects the differences and importance between different tasks, improves the efficiency of task execution, and reduces the loss of task data due to server stop, restart, etc. by persisting tasks and storing them in the database. After the server is started, the first task in the task set is read according to the preset time, and the first task is executed. The duration of the first task is used as the blocking time, and the first SMS of the target dumb terminal is continuously read until the first task is read, and the subsequent tasks in the task set are read.
[0067] Step S202: receiving a second SMS message sent by the platform.
[0068] In this embodiment, before the platform sends the second text message, the interaction method between the platform and the dumb terminal also includes: the platform aggregates the timestamp, application identifier, application key and application address information to generate text message content corresponding to the dumb terminal; the platform uses the assigned identity identifier as the key to encrypt the text message content corresponding to the dumb terminal, and encodes the encrypted text message content to generate a signature corresponding to the dumb terminal; the platform adds prefix information and suffix information to the signature to generate a second text message corresponding to the dumb terminal.
[0069] The platform allocates application identification, application secret key and application address information to the dumb terminal, takes the generation time of the corresponding SMS content sent by the platform to the dumb terminal as the timestamp, aggregates the timestamp, application identification, application secret key and application address information to generate the SMS content corresponding to the dumb terminal, such as the string: "timestamp+"|"+appId+"|"+appSecret+"|"+appUrl+"|"+#0001" (English separators are vertical bars |, not slashes / ), and the separator cannot be omitted. The platform uses the identity (secretId, which refers to a credential used for identity authentication when accessing cloud services, usually a unique identifier used to identify the identity of a cloud user and authorize access to corresponding resources and services) allocated to the dumb terminal by the platform as the secret key to perform AES (Advanced Encryption Standard) encryption, and performs base64 encoding after encryption to generate a signature. Among them, the encryption mode adopts CBC (Cipher Block Chaining) mode, and the padding mode in the encoding process uses KCS5Padding. In addition to AES encryption, the encryption method can also be replaced by: DES encryption (Data Encryption Standard), 3DES (Triple DES, based on DES, a piece of data is encrypted three times with three different keys, with higher strength), Blowfish, RSA asymmetric encryption algorithm, etc. In addition to base64 encoding, the encoding method can also be replaced by: base32, Base16 encoding (also known as hex encoding), Base85 encoding, Base91 encoding, Base122 encoding, etc. In addition to CBC mode, the encryption mode can also be replaced by: Electronic Code Book mode (ECB), Cipher Feedback mode (CFB), Output Feedback mode (OFB), Counter mode (CTR), etc. In addition to KCS5Padding, the padding mode can also be replaced by: ZeroPadding, PKCS7Padding, etc. In this embodiment, the platform encrypts and encodes the second SMS content to ensure the privacy and security of the platform sending the second SMS to the dumb terminal. After encryption, base64 encoding is performed. After the signature is generated, prefix information and suffix information are added to the signature as the second SMS, such as: "0x00"+signature+"0xx0".
[0070] Step S203: configure its own embedded identity module eSIM according to the second SMS.
[0071] Specifically, step S203: configuring its own embedded identity module eSIM according to the second SMS, including steps S2031 to S2033:
[0072] Step S2031, determining whether the second SMS message contains prefix information and suffix information, and if so, obtaining a disassembly rule;
[0073] Step S2032, disassemble the second SMS based on the disassembly rule to obtain SMS content corresponding to the dumb terminal;
[0074] Step S2033, configuring and executing the target instruction according to the SMS content corresponding to the dumb terminal to configure its own embedded identity module eSIM.
[0075] In this embodiment, after receiving the second SMS, the dumb terminal low-order channel adapter LPA module parses the message according to the generation rule, and determines whether it is an encrypted SMS through the prefix information ("0x00") and the suffix information ("0xx0"). If the message includes the prefix information ("0x00") and the suffix information ("0xx0"), it is determined to be an encrypted SMS. If it is an encrypted SMS, it is decrypted and disassembled. After confirming the application identifier appId, the AT command is configured according to the application identifier appId, the application secret key appSecret and the application address information appUrl in the second SMS content. The example is as follows:
[0076] (1) AT+cgdcont=1,"IP","3GNET"
[0077] (2)AT+CGDCONT?
[0078] (3)AT+CGACT?
[0079] (4) AT+LPA = "AppId", "123" (Note that in this example, "123" refers to the appId in the decrypted second SMS. Fill in the appId in the decrypted second SMS.)
[0080] (5) AT+LPA = "AppSecret", "123545123123" (Note that in this example "123545123123" refers to the appSecret in the decrypted second SMS. Fill in the appSecret in the decrypted second SMS.)
[0081] (6) AT+LPA = "AppUrl", "http: / / 2k2w29.natappfree.cc / " (Note that in this example "http: / / 2k2w29.natappfree.cc / " refers to the appUrl in the second SMS after decryption. Fill in the appUrl in the second SMS after decryption)
[0082] (7) AT+LPA="STARTGUARDIAN".
[0083] This embodiment provides a method for interaction between a platform and a dumb terminal, wherein the dumb terminal sends a text message to the platform so that the platform can batch read the text messages by optimizing the queue; the dumb terminal receives the text message instruction sent by the platform and configures its own embedded identity recognition module eSIM according to the text message instruction. Therefore, the present invention realizes convenient interaction between the platform and the dumb terminal by sending text messages to the platform through the dumb terminal, receiving the text message instruction sent by the platform, and configuring its own embedded identity recognition module eSIM based on the text message instruction, thereby improving the efficiency and security of the dumb terminal configuring eSIM and meeting the platform's centralized management requirements for dumb terminals.
[0084] Embodiment 3:
[0085] like Figure 3 As shown, this embodiment provides a method for batch reading of short messages. The method for batch reading of short messages includes:
[0086] In this embodiment, the platform batch reads the first SMS of the target dumb terminal as an example.
[0087] Step S301, setting time for tasks and serializing them simultaneously.
[0088] Step S302, pushing the task into the queue.
[0089] In this embodiment, the number of target dumb terminals is one or more. The first short message may be an encrypted short message, thereby improving the security of the interaction between the target dumb terminal and the platform, or the first short message may be an unencrypted short message. By dynamically reading short messages sent by dumb terminals in an optimized queue manner, the efficiency of the platform in processing short messages can be improved, and the needs of dumb terminals can be responded to in a timely manner.
[0090] The weight, start time, deadline, and duration are set for each task of reading the first SMS of the target dumb terminal, and then the tasks to be executed are encapsulated into Java entity objects. When the task set is serialized, the task set is sorted according to the different weight values to obtain the priority of the task set, and the task set is pressed into the queue after serialization. This embodiment improves the transmittability of the tasks by serializing the tasks, sorting the task set, and obtaining the priority of the task set, objectively reflects the differences and importance between different tasks, and improves the efficiency of task execution.
[0091] Step S303, persist the task data and store it in the database.
[0092] In this embodiment, since the tasks in the queue are not persistent, data loss may occur, such as server shutdown, server restart, etc. Therefore, each time a scheduled task is executed, the task is persisted and stored in the database. When the server goes down, the next time the server is started, the platform timing system will scan the tasks to be executed in the database, push all the tasks to be executed scanned from the database into the queue, and immediately execute the tasks that have timed out. This embodiment reduces the situation where task data is lost due to server shutdown, restart, etc. by persisting the tasks and storing them in the database.
[0093] Step S304: the timing system reads tasks from the queue for execution.
[0094] In this embodiment, after the server is started, the first task in the task set is read according to the preset time, and the first task is executed. The duration of the first task is used as the blocking time, and the first SMS of the target dumb terminal is continuously read until the first task is read, and then the subsequent tasks in the task set are read.
[0095] Step S305: if the timing system crashes, then read the task from the database for execution.
[0096] Step S306: After the task is executed, the task execution result is pushed into the queue.
[0097] In this embodiment, the platform reads the first short message sent by the target dumb terminal in batches by optimizing the queue, including: creating a task set for reading the first short message sent by the target dumb terminal according to the first short message sent by the target dumb terminal; pressing the task set into the queue and storing it in the database; regularly reading and executing the task set in the queue; reading the task set from the database for execution if the platform crashes; and pressing the corresponding execution results of each task in the task set into the queue in real time. Among them, the queue selection prioritizes the blocking queue.
[0098] The present embodiment provides a method for batch reading of short messages, which reads the first short message in batches by optimizing the queue mode, thereby realizing fast batch reading of short messages and improving the efficiency of short message reading. In addition, by serializing the tasks and sorting the task set, the priority of the task set is obtained, the transmittability of the tasks is improved, and the differences and importance between different tasks are objectively reflected to improve the efficiency of task execution. By persisting the tasks and storing them in a database, the loss of task data due to server stop, restart, etc. is reduced.
[0099] Embodiment 4:
[0100] like Figure 4 As shown, this embodiment provides a method for disassembling a text message. The method for disassembling a text message includes:
[0101] In this embodiment, a dumb terminal disassembling a text message sent by a platform to a dumb terminal is taken as an example.
[0102] Step S401, searching for the parsed text message.
[0103] In this embodiment, after receiving the short message sent by the platform to the dumb terminal, the dumb terminal low-order channel adaptation LPA module parses the message according to the generation rule.
[0104] Step S402, determine whether the short message contains special marking information, if it contains special marking information, execute step S403, if it does not contain special marking information, execute step S404.
[0105] Step S403, searching for the disassembly rules, and determining whether the short message satisfies the disassembly rules. If the disassembly rules are satisfied, executing step S405; if the disassembly rules are not satisfied, executing step S404.
[0106] In this embodiment, the special marking information is prefix information and suffix information, and it is determined whether the second SMS contains prefix information and suffix information. If so, the disassembly rule is obtained to determine whether the SMS satisfies the disassembly rule. It is determined whether it is an encrypted SMS by the prefix information ("0x00") and the suffix information ("0xx0"). If the message includes the prefix information ("0x00") and the suffix information ("0xx0"), it is determined to be an encrypted SMS. If it is an encrypted SMS, it is decrypted and disassembled.
[0107] Step S404: discard the text message.
[0108] Step S405, disassembling the short message.
[0109] In this embodiment, if the text message satisfies the disassembly rule, the second text message is disassembled based on the disassembly rule to obtain text message content corresponding to the dumb terminal.
[0110] Step S406, determining whether all the short messages are successfully disassembled, if all are successfully disassembled, storing the disassembled contents, if not all are successfully disassembled, executing step S404.
[0111] The present embodiment provides a method for disassembling a text message, which determines whether the text message is an encrypted text message through special marking information of the text message, and then searches for disassembly rules for decryption and disassembly, thereby realizing convenient disassembly of the text message and improving the efficiency of text message disassembly.
[0112] Embodiment 5:
[0113] like Figure 5As shown, this embodiment provides an interactive device between a platform and a dumb terminal, which is applied to the platform and includes: a reading module 51 and a first sending module 52. The reading module 51 is used to batch read first text messages sent by the target dumb terminal by optimizing the queue, and the first sending module 52 is used to send a second text message to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal.
[0114] Specifically, the reading module 51 includes: a creation unit 511, a first push unit 512, a first execution unit 513, a second execution unit 514 and a second push unit 515. The creation unit 511 is used to create a task set for reading the first text message of the target dumb terminal according to the first text message sent by the target dumb terminal. The first push unit 512 is connected to the creation unit 511 and is used to push the task set into the queue and store it in the database. The first execution unit 513 is used to periodically read and execute the task set in the queue. The second execution unit 514 is used to read the task set from the database for execution if the platform crashes. The second push unit 515 is connected to the first execution unit 513 and the second execution unit 514 respectively, and is used to push the corresponding execution results of each task in the task set into the queue in real time.
[0115] Specifically, the first push unit 512 includes: a serialization subunit, a push subunit and a storage subunit. The serialization subunit is used to serialize the task set to obtain the priority of the task set. The push subunit is connected to the serialization subunit and is used to push the task sets into the same queue according to the priority of the task sets. The storage subunit is connected to the push subunit and is used to persist the task sets pushed into the same queue and store them in the database.
[0116] Optionally, the interaction device between the platform and the dumb terminal also includes: a generation module 53, which is used to aggregate the timestamp, application identifier, application key and application address information to generate the SMS content corresponding to the target dumb terminal, use the assigned identity identifier as the key to encrypt the SMS content corresponding to the target dumb terminal, and encode the encrypted SMS content to generate a signature corresponding to the target dumb terminal, add prefix information and suffix information to the signature to generate a second SMS corresponding to the target dumb terminal.
[0117] It can be understood that the above-mentioned platform and dumb terminal interaction device is used to execute the method corresponding to the embodiment 1 provided above. Therefore, the beneficial effects that can be achieved can refer to the method of the above embodiment 1 and the beneficial effects of the corresponding scheme in the specific implementation method below, which will not be repeated here.
[0118] Embodiment 6:
[0119] like Figure 6As shown, this embodiment provides an interactive device between a platform and a dumb terminal, which is applied to the dumb terminal, including: a second sending module 61, a receiving module 62 and a configuration module 63, the second sending module 61 is used to send a first text message to the platform, so that the platform batch reads the first text messages sent by the dumb terminal by optimizing the queue, the receiving module 62 is used to receive the second text message sent by the platform, and the configuration module 63 is connected to the receiving module 62, and is used to configure its own embedded identity recognition module eSIM according to the second text message.
[0120] Specifically, the configuration module 63 includes: a judgment unit 631, a disassembly unit 632 and a configuration unit 633. The judgment unit 631 is used to judge whether the second SMS contains prefix information and suffix information. If so, the disassembly rule is obtained. The disassembly unit 632 is connected to the judgment unit 631 and is used to disassemble the second SMS based on the disassembly rule to obtain the SMS content corresponding to the dumb terminal. The configuration unit 633 is connected to the disassembly unit 632 and is used to configure and execute the target instruction according to the SMS content corresponding to the dumb terminal to configure its own embedded identity identification module eSIM.
[0121] It can be understood that the above-mentioned platform and dumb terminal interaction device is used to execute the method corresponding to the embodiment 2 provided above. Therefore, the beneficial effects that can be achieved can refer to the method of the embodiment 2 above and the beneficial effects of the corresponding scheme in the specific implementation method below, which will not be repeated here.
[0122] Embodiment 7:
[0123] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the interaction method between the platform and the dumb terminal in the above embodiment.
[0124] Embodiment 8:
[0125] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for interacting between the platform and the dumb terminal in the above embodiment is implemented.
[0126] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for interaction between a platform and a dumb terminal, applied to the platform, characterized in that: include: Batch read the first SMS sent by the target dumb terminal by optimizing the queue; A second SMS is sent to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal.
2. The method for interaction between a platform and a dumb terminal according to claim 1, characterized in that: The step of batch reading the first short messages sent by the target dumb terminal by optimizing the queue specifically includes: Creating a task set for reading a first short message sent by a target dumb terminal according to the first short message sent by the target dumb terminal; Push the task set into the queue and store it in the database; Read and execute the task set in the queue regularly; If the platform crashes, the task set is read from the database for execution; The corresponding execution results of each task in the task set are pushed into the queue in real time.
3. The method for interaction between a platform and a dumb terminal according to claim 2, characterized in that: The step of pressing the task set into the queue and storing it in the database specifically includes: Serialize the task set to obtain the priority of the task set; Push the task sets into the same queue according to their priorities; The set of tasks pushed into the same queue is persisted and stored in the database.
4. The method for interaction between a platform and a dumb terminal according to claim 1, characterized in that: Before sending the second SMS to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal, the method further includes: Aggregate the timestamp, application identifier, application key and application address information to generate the SMS content corresponding to the target dumb terminal; Encrypt the SMS content corresponding to the target dumb terminal using the assigned identity as a secret key, and encode the encrypted SMS content to generate a signature corresponding to the target dumb terminal; Prefix information and suffix information are added to the signature to generate a second short message corresponding to the target dumb terminal.
5. A method for interaction between a platform and a dumb terminal, applied to the dumb terminal, characterized in that: include: Sending a first SMS to the platform, so that the platform can batch read the first SMS sent by the dumb terminal by optimizing the queue; Receive the second SMS sent by the platform; The device configures its own embedded identity module eSIM according to the second SMS.
6. The method for interaction between a platform and a dumb terminal according to claim 5, characterized in that: The configuring its own embedded identity module eSIM according to the second SMS specifically includes: Determine whether the second SMS message contains prefix information and suffix information, and if so, obtain a disassembly rule; Disassemble the second SMS based on the disassembly rule to obtain SMS content corresponding to the dumb terminal; Configure and execute target instructions according to the SMS content corresponding to the dumb terminal to configure its own embedded identity module eSIM.
7. An interactive device between a platform and a dumb terminal, applied to the platform, characterized in that: include: A reading module and a first sending module, The reading module is used to batch read the first SMS sent by the target dumb terminal by optimizing the queue. The first sending module is used to send a second SMS to the target dumb terminal to remotely configure the embedded identity module eSIM of the target dumb terminal.
8. An interactive device between a platform and a dumb terminal, applied to a dumb terminal, characterized in that: include: The second sending module, receiving module and configuration module, The second sending module sends the first SMS to the platform, so that the platform can batch read the first SMS sent by the dumb terminal by optimizing the queue. The receiving module is used to receive the second SMS sent by the platform. The configuration module is connected to the receiving module and is used to configure its own embedded identity module eSIM according to the second SMS.
9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the method for interaction between a platform and a dumb terminal as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for interaction between a platform and a dumb terminal as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Internet of things information interactive communication method and system
CN105307108A
ESIM remote configuration management method, terminal device, integrated RSP platform and system
CN114125892A
Method and device for interaction between server platform and terminal equipment, equipment and medium
CN116319954A
Over the air provisioning of embedded subscriber identification module devices
US20210120387A1
System and method for rich short messaging service
US20230007449A1