Upgrading method and device of cellular communication module, equipment, storage medium and product

By using custom data packets to interact with terminal devices to upgrade firmware when the cellular communication module is not in a network-hosted state, the problem of low efficiency in disassembly and upgrading in the existing technology is solved, and a more efficient and flexible upgrade process is achieved.

CN121151931APending Publication Date: 2025-12-16LINKZHILIAN (CHONGQING) TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510463801.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-12-16

AI Technical Summary

Technical Problem

In existing technologies, when a cellular communication module malfunctions, it needs to be disassembled and removed for fault upgrades, resulting in low upgrade efficiency and inflexibility, especially in the Internet of Things field where shipments are huge and maintenance is difficult.

Method used

When the cellular communication module is not in a network-hosted state, it interacts with the terminal device through its adapted communication interface and performs firmware upgrades using custom data packets and commands, avoiding disassembly operations.

Benefits of technology

It improves the upgrade time efficiency and flexibility of cellular communication modules and reduces maintenance difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121151931A_ABST
    Figure CN121151931A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and particularly provides a cellular communication module upgrading method and device, equipment, a storage medium and a product. The method comprises the following steps: when the cellular communication module is in a non-resident network state, determining a first data packet, and sending the first data packet to the terminal equipment through an adaptive communication interface of the cellular communication module; receiving firmware data sent by the terminal device based on the first data packet; wherein the first data packet carries an upgrading instruction, and the firmware data is used for indicating upgrading data of the cellular communication module and the length of the upgrading data; and upgrading the cellular communication module based on the firmware data to obtain an upgraded cellular communication module, and modifying the state of the upgraded cellular communication module into a resident network state.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of communication technology, and in particular to a cellular communication module upgrading method, device, equipment, storage medium and product. BACKGROUND

[0002] The cellular communication technology adopts a cellular wireless networking manner, and terminals and network devices are connected through a wireless channel, thereby realizing mutual communication among various terminals. The cellular communication module can enable each terminal to realize communication function by means of a wireless module.

[0003] In the related art, for a cellular communication module that appears abnormal (for example, unable to camp on a network), the module needs to be disassembled and removed, and returned to the factory for fault upgrading. For a cellular communication module that is difficult to disassemble, a serial port needs to be introduced, and a mobile terminal is connected through a serial port line to perform firmware upgrading. However, the cellular communication module has a huge shipment volume in the Internet of Things field, and the above-mentioned upgrading manner causes problems of low time efficiency and inflexibility of cellular communication module upgrading, thereby causing a problem of difficulty in maintaining the cellular communication module. SUMMARY

[0004] The present disclosure is proposed in view of the above problems. The present disclosure provides a cellular communication module upgrading method, device, equipment, storage medium and product.

[0005] According to one aspect of the present disclosure, a cellular communication module upgrading method is provided, applied to a cellular communication module, and includes the following steps.

[0006] In a case where the cellular communication module is in a non-camped state, a first data packet is determined, and the first data packet is sent to a terminal device through an adaptive communication interface of the cellular communication module.

[0007] Receiving firmware data sent by the terminal device based on the first data packet; wherein the first data packet carries an upgrading instruction, and the firmware data is used to indicate upgrading data of the cellular communication module and a length of the upgrading data.

[0008] Based on the firmware data, the cellular communication module is upgraded to obtain an upgraded cellular communication module, the upgraded cellular communication module is controlled to camp on a network, and in a case where the upgraded cellular communication module camps on the network successfully, a state of the upgraded cellular communication module is modified to a normal state.

[0009] In addition, according to another embodiment of one aspect of the present disclosure, the step of determining the first data packet and sending the first data packet to the terminal device through the adaptive communication interface of the cellular communication module includes the following steps.

[0010] determining a version number of the cellular communication module through a protocol logic layer in the module firmware;

[0011] generating a first data packet based on the version number through a data packet processing layer in the module firmware;

[0012] sending the first data packet to the terminal device through a platform interface layer in the module firmware.

[0013] In addition, in another embodiment according to one aspect of the present disclosure, the receiving the firmware data sent by the terminal device based on the first data packet comprises:

[0014] determining a target upgrade mode; wherein the target upgrade mode is used to indicate a receiving mode of receiving the firmware data by the cellular communication module;

[0015] receiving the firmware data sent based on the first data packet in the receiving mode indicated by the target upgrade mode.

[0016] In addition, in another embodiment according to one aspect of the present disclosure, the receiving the firmware data sent by the terminal device based on the first data packet comprises:

[0017] receiving the firmware data sent by the terminal device in a case where it is determined that the cellular communication module meets an upgrade condition based on the version number in the first data packet;

[0018] determining a second data packet based on the firmware data, and sending the second data packet to the terminal device; wherein the second data packet carries data request information and a data request instruction, and the data request information is used to indicate sub-firmware upgrade data requested to be used by the cellular communication module;

[0019] receiving a third data packet carrying the sub-firmware upgrade data sent by the terminal device; wherein the third data packet is obtained by the terminal device based on the data request information after detecting the data request instruction;

[0020] verifying the sub-firmware upgrade data, and combining the verified sub-firmware upgrade data to obtain the upgrade data in a case where it is determined that the verified sub-firmware upgrade data meets a combination condition.

[0021] In addition, in another embodiment according to one aspect of the present disclosure, the verifying the sub-firmware upgrade data comprises:

[0022] verifying the sub-firmware upgrade data requested to be used in the third data packet to obtain a first verification value;

[0023] analyzing a second verification value carried in the third data packet;

[0024] In a case where the first check value is same as the second check value, the post-check sub-firmware upgrade data is obtained; otherwise, the data request information for the sub-firmware upgrade data is re-sent to the terminal device.

[0025] In addition, according to another embodiment of one aspect of the present disclosure, before the first data packet is determined, the method further comprises:

[0026] If the cellular communication module is unable to camp on the network is detected for a plurality of times continuously, the state of the cellular communication module is identified as a non-camping state by a control layer in the module firmware.

[0027] In addition, according to another embodiment of one aspect of the present disclosure, the method further comprises:

[0028] If the cellular communication module is able to camp on the network is detected in the state of the cellular communication module is identified as the non-camping state, whether the cellular communication module needs to be upgraded is determined.

[0029] In a case where the cellular communication module does not need to be upgraded, the state of the cellular communication module is modified as a camping state.

[0030] In addition, according to another embodiment of one aspect of the present disclosure, after the cellular communication module is upgraded based on the firmware upgrade data, the post-upgrade cellular communication module is obtained, the method further comprises:

[0031] A communication connection between the post-upgrade cellular communication module and the terminal device is established.

[0032] An upgrade result is sent to the terminal device based on the communication connection.

[0033] According to one aspect of the present disclosure, a cellular communication module upgrade method is provided, applied to a terminal device, comprising:

[0034] A first data packet sent by a cellular communication module in a non-camping state through an adaptive communication interface with the cellular communication module is received; wherein the first data packet carries an upgrade instruction;

[0035] Based on the first data packet, firmware data of the cellular communication module is determined; wherein the firmware data is used to indicate upgrade data of the cellular communication module and a length of the upgrade data.

[0036] The firmware data is sent to the cellular communication module, so that the cellular communication module performs upgrade processing on the cellular communication module based on the firmware data, and the state of the post-upgrade cellular communication module is modified as a camping state.

[0037] Further, according to another embodiment of one aspect of the present disclosure, the sending of the firmware upgrade information and the firmware data corresponding to the firmware upgrade information to the cellular communication module comprises:

[0038] In a case where it is determined based on the version number in the first data packet that the cellular communication module meets the upgrade condition, firmware data is sent to the cellular communication module;

[0039] The second data packet sent by the cellular communication module is received; wherein the second data packet is determined based on the firmware data, and the second data packet carries data request information and a data request instruction, the data request information being used to indicate the sub-firmware upgrade data requested by the cellular communication module;

[0040] After the second data packet is parsed and the data request instruction is detected, the sub-firmware upgrade data requested by the cellular communication module is obtained based on the data request information;

[0041] A third data packet carrying the sub-firmware upgrade data is generated, and the third data packet is sent to the cellular communication module, so that the cellular communication module combines based on the data request information to obtain the firmware data in a case where the sub-firmware upgrade data meets a check condition.

[0042] According to another aspect of the present disclosure, a cellular communication module upgrade device is provided, comprising:

[0043] A first determination module is configured to determine a first data packet in a case where the cellular communication module is in a non-network camping state, and send the first data packet to a terminal device through an adaptive communication interface of the cellular communication module;

[0044] A first receiving module is configured to receive firmware data sent by the terminal device based on the first data packet; wherein the first data packet carries an upgrade instruction, and the firmware data is used to indicate upgrade data of the cellular communication module and a length of the upgrade data;

[0045] An upgrade module is configured to perform upgrade processing on the cellular communication module based on the firmware data to obtain an upgraded cellular communication module, and modify a state of the upgraded cellular communication module to a network camping state.

[0046] According to still another aspect of the present disclosure, a cellular communication module upgrade device is provided, comprising:

[0047] A second receiving module is configured to receive a first data packet sent by a cellular communication module in a non-network camping state through an adaptive communication interface of the cellular communication module; wherein the first data packet carries an upgrade instruction;

[0048] The second determining module is configured to determine firmware data of the cellular communication module based on the first data packet, wherein the firmware data is used to indicate upgrade data of the cellular communication module and a length of the upgrade data.

[0049] The sending module is configured to send the firmware data to the cellular communication module, so that the cellular communication module performs upgrade processing on the cellular communication module based on the firmware data, and modifies a state of the upgraded cellular communication module to a network camping state.

[0050] According to yet another aspect of the present disclosure, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement steps of a cellular communication module upgrade method.

[0051] According to yet another aspect of the present disclosure, a computer readable storage medium is provided, which stores a computer program / instruction, and the computer program / instruction is executed by a processor to implement steps of a cellular communication module upgrade method.

[0052] According to yet another aspect of the present disclosure, a computer program product is provided, which includes a computer program / instruction, and the computer program / instruction is executed by a processor to implement steps of a cellular communication module upgrade method.

[0053] As will be described in detail below, the cellular communication module upgrade method, device, equipment, storage medium, and product according to embodiments of the present disclosure. In the case where the cellular communication module is in a non-network camping state, i.e., cannot camp on a network, the cellular communication module communicates with a terminal device through a communication interface adapted to the cellular communication module to obtain firmware data required for upgrade. Moreover, through a self-defined data packet and instructions carried by the data packet, it is ensured that the cellular communication module and the terminal device can interact normally. In the prior art, the cellular communication module that cannot camp on a network needs to be disassembled and returned to the factory for fault upgrade; for the cellular communication module that is difficult to disassemble, a serial port needs to be introduced, and a mobile terminal is connected through a serial cable for firmware upgrade. In the present disclosure, the cellular communication module can be upgraded by adapting to the communication mode of the cellular communication module, without disassembling the communication module. Therefore, the present disclosure improves the time efficiency and flexibility of the cellular communication module upgrade.

[0054] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the subject technology. BRIEF DESCRIPTION OF DRAWINGS

[0055] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0056] Figure 1 A flowchart illustrating an upgrade method for a cellular communication module provided in this embodiment of the disclosure.

[0057] Figure 2 This is a structural diagram of a data packet for an upgrade method of a cellular communication module provided in an embodiment of this disclosure.

[0058] Figure 3 A flowchart of another method for upgrading a cellular communication module provided in an embodiment of this disclosure.

[0059] Figure 4 This is a framework diagram of a device terminal in an upgrade method for a cellular communication module provided in an embodiment of this disclosure.

[0060] Figure 5 This is an overall flowchart of an upgrade method for a cellular communication module provided in an embodiment of this disclosure.

[0061] Figure 6 This is a schematic diagram of an upgrade device for a cellular communication module provided in an embodiment of the present disclosure.

[0062] Figure 7 A schematic diagram of an upgrade device for another cellular communication module provided in an embodiment of this disclosure.

[0063] Figure 8 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this disclosure more apparent, exemplary embodiments according to this disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments of this disclosure. It should be understood that this disclosure is not limited to the exemplary embodiments described herein.

[0065] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0066] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0067] Research has shown that cellular communication technology uses a cellular wireless network approach to connect terminals and network devices via wireless channels, enabling various terminals to communicate with each other. Specifically, cellular communication modules allow terminals to communicate using wireless modules.

[0068] In related technologies, for cellular communication modules that malfunction (i.e., cannot connect to the network), the module needs to be disassembled, removed, and returned to the factory for fault upgrades. For cellular communication components that are difficult to disassemble, a serial port needs to be brought out, and a serial cable needs to be used to connect to a mobile terminal for firmware upgrades. However, given the massive shipment volume of cellular communication modules in the IoT field, using the above methods for upgrades leads to low time efficiency and inflexibility in cellular communication module upgrades, resulting in difficulties in maintaining cellular communication modules.

[0069] Based on the above research, this disclosure provides an upgrade method for a cellular communication module. When the cellular communication module is in a non-networked state (i.e., unable to network), it communicates with the terminal device through the communication interface adapted to the cellular communication module to obtain the firmware data required for the upgrade. Furthermore, by using custom data packets and the instructions carried in the data packets, normal interaction between the cellular communication module and the terminal device is ensured. In existing technologies, cellular communication modules that cannot network be installed need to be removed and returned to the factory for fault upgrades; for cellular communication components that are difficult to disassemble, a serial port needs to be brought out and connected to the mobile terminal via a serial cable for firmware upgrades. In this disclosure, the cellular communication module can be upgraded using a communication method adapted to the cellular communication module, without the need to remove the communication module. Therefore, this disclosure improves the time efficiency and flexibility of cellular communication module upgrades.

[0070] To facilitate understanding of this embodiment, a detailed description of an upgrade method for a cellular communication module disclosed in this disclosure will be provided first. The execution entity of the upgrade method for the cellular communication module provided in this disclosure is generally an electronic device with a certain computing capability. In some possible implementations, the upgrade method for the cellular communication module can be implemented by a processor calling computer-readable instructions stored in memory.

[0071] Reference Figure 1The diagram shows a flowchart of an upgrade method for a cellular communication module provided in this embodiment of the present disclosure. The method includes steps S101 to S103 and is applied to a cellular communication module, wherein:

[0072] S101. When the cellular communication module is in a non-networked state, determine the first data packet and send the first data packet to the terminal device through the adapter communication interface of the cellular communication module.

[0073] In the embodiments of this disclosure, the cellular communication module can determine whether it is in a non-networked state (i.e., an abnormal state) through self-testing; it can also determine whether it is in a non-networked state by being triggered by an external signal.

[0074] Here, if it is determined that the cellular communication module has lost network access and / or is unable to perform network services in accordance with the above methods (cellular communication module self-test and / or external signal triggering), the status of the cellular communication module will be determined as non-network-attached state.

[0075] Then, the current version number of the cellular communication module can be determined through the protocol logic layer in the module firmware (i.e., software development kit, SDK), and the version number can be sent to the lower layer of the protocol logic layer in the module firmware (i.e., the packet processing layer).

[0076] Here, after the packet processing layer receives the version number, it can determine the first packet based on the version number.

[0077] Here, refer to Figure 2 The diagram shown is a data packet structure diagram of an upgrade method for a cellular communication module provided in this embodiment of the present disclosure, wherein:

[0078] The data packet structure includes six fields: start field, upgrade method field, instruction field, data packet sequence number field, data length field, data field, and checksum field.

[0079] The data structure consists of the following fields: Start field (4 bytes), Upgrade method field (1 byte), Instruction field (1 byte), Data packet sequence number field (4 bytes), Data length field (4 bytes), Data field (N bytes), and Checksum field (2 bytes). Here, N represents the maximum length of data that the data packet can carry.

[0080] Here, the start field is used to identify the beginning of the data packet; the upgrade method field is used to identify which upgrade method is used (i.e., the target upgrade method below).

[0081] The packet sequence number field is used to identify the order of the packets; the data length field is used to identify the length of the data carried by the data field in the packet.

[0082] The data field carries the data transmitted in the data packet; the checksum field carries a checksum of the data in the data field. The checksum is used by the peer to verify the integrity of the data packet.

[0083] Here, the upgrade method field of the first data packet contains the following upgrade instruction. The data field carries the current version number of the cellular communication module. The checksum field contains the verification result for the aforementioned version number.

[0084] S102, Receive firmware data sent by the terminal device based on the first data packet; wherein, the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data.

[0085] In embodiments of this disclosure, after receiving the first data packet, the terminal device can determine the upgrade version number of the cellular communication module based on the version number carried in the first data packet.

[0086] The terminal device can then determine the firmware data corresponding to the upgrade version number. The upgrade version number indicates a higher version than the current version of the cellular data module.

[0087] Here, after the firmware data is determined, the terminal device can generate a fourth data packet based on the firmware data.

[0088] Here, the data field of the fourth data packet carries the length of the upgrade data in the firmware data. The upgrade method field of the fourth data packet is "Respond to Upgrade Command". The "Respond to Upgrade Command" indicates that the terminal device has responded to the upgrade command of the cellular communication module. The checksum field is the verification result for the length of the aforementioned upgrade data.

[0089] Here, after the fourth data packet is identified, the terminal device can send the fourth data packet to the cellular communication module. The cellular communication module can receive the fourth data packet through the platform interface layer in the module firmware.

[0090] Subsequently, the packet processing layer in the module firmware can be based on Figure 2 The provided data packet structure is used to parse the fourth data packet, thereby obtaining the length of the upgrade data.

[0091] Here, after the cellular communication module determines the length of the upgrade data, the length of the sub-data requested from the terminal device each time (i.e., the length of the sub-firmware upgrade data described below) can be determined based on the length of the upgrade data. Here, upgrade data can be requested from the terminal device based on the sub-data length.

[0092] S103. Upgrade the cellular communication module based on firmware data to obtain an upgraded cellular communication module. Control the upgraded cellular communication module to register on the network. If the upgraded cellular communication module successfully registers on the network, change the status of the upgraded cellular communication module to normal status.

[0093] In the embodiments of this disclosure, after the firmware data is determined, the cellular communication module can be upgraded based on the firmware data.

[0094] Here, after the cellular communication module completes the firmware upgrade, it can automatically restart. After the automatic restart confirms that the upgraded cellular communication module has successfully registered on the network, the upgraded cellular communication module can change its status from non-registered to normal.

[0095] In the embodiments of this disclosure, firstly, when the cellular communication module is in a non-networked state, a first data packet is determined and sent to the terminal device through the adapter communication interface of the cellular communication module; then, firmware data sent by the terminal device based on the first data packet is received; wherein, the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data and length of the cellular communication module; finally, the cellular communication module is upgraded based on the firmware data to obtain an upgraded cellular communication module, and the state of the upgraded cellular communication module is changed to a networked state.

[0096] In the above embodiments, when the cellular communication module is in a non-networked state, i.e., unable to network, it communicates with the terminal device through the communication interface adapted to the cellular communication module to obtain the firmware data required for the upgrade. Furthermore, by using custom data packets and the instructions carried in the data packets, normal interaction between the cellular communication module and the terminal device is ensured. In the prior art, cellular communication modules that cannot network are required to be removed and returned to the factory for fault upgrades; for cellular communication components that are difficult to disassemble, a serial port needs to be brought out, and a serial cable needs to be used to connect to the mobile terminal for firmware upgrades. Since the solution disclosed in this disclosure can upgrade the cellular communication module using a communication method adapted to the cellular communication module, it is not necessary to remove the communication module. Therefore, the solution disclosed in this disclosure improves the time efficiency and flexibility of cellular communication module upgrades.

[0097] In an optional embodiment, determining a first data packet and sending the first data packet to the terminal device through the adapter communication interface of the cellular communication module specifically includes the following steps:

[0098] First, the version number of the cellular communication module is determined through the protocol logic layer in the module firmware;

[0099] Secondly, the first data packet is generated based on the version number by the data packet processing layer in the module firmware;

[0100] Finally, the first data packet is sent to the terminal device through the platform interface layer in the module firmware.

[0101] In embodiments of this disclosure, the module firmware is used to upgrade the cellular communication module when the cellular communication module is in a non-networked state.

[0102] Here, after the version number of the cellular communication module is determined at the protocol logic layer, the version number can be sent to the data packet processing layer.

[0103] Afterwards, the packet processing layer can determine the version number and Figure 2 The data packet structure shown is used to assemble data packets to generate a first data packet. The platform interface layer can determine the communication method (i.e., connection method) between the cellular data module and the terminal device, and send the first data packet to the terminal device based on the current communication method.

[0104] In the above embodiments, the firmware upgrade function in the module firmware adopts a layered architecture design, which makes the cellular communication module with the module firmware installed have good scalability and maintainability, and can be easily adapted to different chips and communication methods.

[0105] In an optional embodiment, receiving firmware data sent by the receiving terminal device based on the first data packet specifically includes the following steps:

[0106] First, determine the target upgrade method; the target upgrade method is used to indicate the method of receiving firmware data for the cellular communication module.

[0107] Then, the firmware data sent based on the first data packet is received according to the receiving method indicated by the target upgrade method.

[0108] In the embodiments of this disclosure, the receiving methods include: wireless receiving and wired receiving. Wireless receiving methods include: Wi-Fi receiving and Bluetooth receiving. Wired receiving methods include: serial port receiving, USB receiving, and Ethernet receiving.

[0109] Here, the module firmware can determine the receiving method of the cellular communication module and, based on the receiving method, determine the communication interface of the platform interface layer in the module firmware. For example, if the receiving method of the cellular communication module supports Bluetooth and serial communication, the platform interface layer in the module firmware can be configured to adapt the control and data transmission / reception functions of Bluetooth and serial ports.

[0110] Here, the firmware upgrade interface (i.e., the uniformly named interface below) can be uniformly encapsulated in the platform interface layer of the module firmware. For example, it can include interfaces for writing / erasing upgrade data, triggering upgrades, and obtaining upgrade results. In this way, only these uniformly named interfaces need to be adapted, which can shield the differences caused by using different main chips.

[0111] Here, the protocol logic layer in the module firmware is used to handle the interaction logic when connecting to the terminal device using different receiving methods.

[0112] Here, if the platform interface layer determines that the cellular communication module's receiving method is Bluetooth, the protocol logic layer can use the corresponding Bluetooth logic to control the communication between the cellular data module and the terminal device during the cellular communication module upgrade process. For example, when the cellular data module is in a non-network-hosted state, enabling its Bluetooth function will make the cellular data module discoverable. Furthermore, the cellular data module has a built-in pairing code. After the terminal device used for upgrade scans the cellular communication module and successfully pairs with it based on the pairing code, a connection is established between the terminal device and the cellular communication module.

[0113] Here, if the platform interface layer determines that the cellular communication module's receiving method is wireless connection (e.g., Wi-Fi connection), the protocol logic layer can use the relevant logic corresponding to the wireless connection to control the communication between the cellular data module and the terminal device during the process of the cellular communication module receiving firmware data. For example, when the cellular data module is in a non-network-hosted state, its wireless connection function is enabled to search for networks. When a network with the agreed name with the terminal device used for upgrades is found, it connects using the built-in password, thereby establishing a connection with the terminal device and placing the cellular communication module and the terminal device on the same local area network.

[0114] In addition, wired connections can also be used as the receiving method for cellular communication modules. For example, widely used wired connections such as serial ports, USB, and Ethernet ports can be used to establish a connection between the cellular communication module and the terminal device.

[0115] Among them, the wired upgrade method is relatively simple. If the cellular communication module has reserved these wired interfaces and the underlying driver supports them, when the cellular communication module is in a non-networked state and recognizes that the corresponding wire has been inserted, it can assemble data packets to try to interact with the terminal device used for upgrade (i.e., system upgrade).

[0116] In an optional embodiment, receiving firmware data sent by the receiving terminal device based on the first data packet specifically includes the following steps:

[0117] First, the receiving terminal device sends firmware data when it determines that the cellular communication module meets the upgrade conditions based on the version number in the first data packet;

[0118] Secondly, based on the firmware data, a second data packet is determined and sent to the terminal device; wherein, the second data packet carries data request information and data request instructions, and the data request information is used to indicate the sub-firmware upgrade data requested by the cellular communication module;

[0119] Next, the terminal device receives a third data packet carrying sub-firmware upgrade data; wherein, the third data packet is obtained by the terminal device based on the data request information after detecting the data request instruction;

[0120] Finally, the sub-firmware upgrade data is verified, and if the verified sub-firmware upgrade data meets the combination conditions, the verified sub-firmware upgrade data is combined to obtain the upgrade data.

[0121] In the embodiments of this disclosure, after receiving the first data packet, the terminal device can parse the first data packet to obtain the version number carried by the first data packet.

[0122] Here, the terminal device can determine whether the software version of the current cellular communication module is the latest version based on the version number. If the terminal device determines that the version number is not the latest version, it determines that the cellular communication module meets the upgrade requirements. Afterward, the terminal device can generate a fourth data packet and send it to the cellular communication module.

[0123] Here, after receiving the fourth data packet, the cellular data module can parse it to obtain the length of the upgrade data. Based on the length of the upgrade data, it determines the second data packet. The data field in the second data packet carries data request information. This data request information indicates that it expects to obtain upgrade data (i.e., sub-firmware upgrade data) from byte k to byte j.

[0124] For example, the data field content in the second data packet is [k,j], where jk≤N, meaning the length of the sub-firmware upgrade data is less than or equal to the maximum length of data that the data packet can carry. The minimum value of k is 1, and the maximum value of j is h, where h is the length of the upgrade data.

[0125] After receiving the second data packet, the terminal device can determine the sub-firmware upgrade data corresponding to the data request information in the second data packet from the upgrade data. Then, the terminal device can generate a third data packet based on the sub-firmware upgrade data.

[0126] Here, sub-firmware upgrade data can be added to the data fields of the third data packet. The instruction field of the third data packet is a request-response instruction. The request-response instruction indicates that the upgrade terminal has responded to the data request instruction.

[0127] After receiving the third data packet, the cellular communication module can parse it to obtain the sub-firmware upgrade data. Then, the cellular communication module can verify the sub-firmware upgrade data to obtain the verification result of the cellular communication module (i.e., the first verification value described below).

[0128] Here, the cellular communication module can verify the sub-firmware upgrade data based on the verification result of the cellular communication module and the verification result carried in the verification code field of the third data packet (i.e., the second verification value below), and obtain the verified sub-firmware upgrade data.

[0129] After the cellular communication module determines all the verified sub-firmware upgrade data corresponding to the upgrade data, that is, after the cellular communication module receives the length of all the verified sub-firmware upgrade data, it is determined that the verified sub-firmware upgrade data meets the combination conditions.

[0130] Then, the cellular communication module can combine the verified sub-firmware upgrade data based on the position of the verified sub-firmware upgrade data in the upgrade data to obtain the upgrade data.

[0131] In an optional embodiment, the sub-firmware upgrade data is verified, specifically including the following steps:

[0132] First, the sub-firmware upgrade data requested in the third data packet is verified to obtain the first verification value;

[0133] Then, the second checksum carried in the third data packet is parsed;

[0134] Finally, if the first and second verification values ​​are the same, the verified sub-firmware upgrade data is obtained; otherwise, the data request information for the sub-firmware upgrade data is resent to the terminal device.

[0135] In embodiments of this disclosure, if the first check value and the second check value are different, the cellular communication module can delete the sub-firmware upgrade data in the local storage space and regenerate the second data packet based on the sub-firmware upgrade data.

[0136] The data field in the second data packet carries data request information indicating the start and end byte positions of the sub-firmware upgrade data. The instruction field in the second data packet indicates the comparison result between the first and second checksums. For example, an instruction field of "0" in the second data packet indicates that the first and second checksums are the same, and an instruction field of "1" indicates that the first and second checksums are different.

[0137] In an optional embodiment, before determining the first data packet, the following steps are further included:

[0138] If the cellular communication module is detected as unable to register on the network multiple times in a row, the control layer in the module firmware will mark the status of the cellular communication module as non-registered.

[0139] In embodiments of this disclosure, the cellular communication module periodically queries the current network connection status. It records any instances where the cellular communication module has lost network access or is unable to provide network services.

[0140] Here, if the cellular communication module has been disconnected from the network or is unable to perform network services for a preset number of consecutive records, the status of the cellular communication module will be marked as non-networked.

[0141] Afterwards, the cellular communication module can establish a communication connection with the terminal device based on the communication methods it supports, so as to upgrade the cellular communication module.

[0142] In an optional embodiment, the following steps are also included:

[0143] First, if the cellular communication module is detected to be able to connect to the network when its status is marked as non-networked, then it is determined whether the cellular communication module needs to be upgraded.

[0144] Then, if it is determined that the cellular communication module does not need to be upgraded, the status identifier of the cellular communication module is changed to the network-based status.

[0145] In the embodiments of this disclosure, determining whether a cellular communication module needs to be upgraded can be understood as determining whether the cellular communication module can perform network services.

[0146] If the cellular communication module can perform network services, it is determined that the cellular communication module does not need to be upgraded.

[0147] If the status identifier of the cellular communication module is changed to "online" and no communication connection is established with the terminal device, the connection with the terminal device will be stopped.

[0148] When the status identifier of the cellular communication module is changed to the network-connected status and a communication connection is established with the terminal device, the communication connection with the terminal device is disconnected.

[0149] In an optional embodiment, after upgrading the cellular communication module based on firmware upgrade data to obtain the upgraded cellular communication module, the following steps are further included:

[0150] First, establish a communication connection between the upgraded cellular communication module and the terminal device;

[0151] Then, the upgrade result is sent to the terminal device based on the communication connection.

[0152] In embodiments of this disclosure, the cellular communication module generates a fifth data packet based on the upgrade result.

[0153] Here, the instruction field in the fifth data packet is the upgrade result instruction. The upgrade result instruction indicates the upgrade result of the cellular communication module.

[0154] For example, a command field of "0" in the fifth data packet indicates that the cellular communication module upgrade was successful, while a command field of "1" in the second data packet indicates that the cellular communication module upgrade failed.

[0155] Reference Figure 3 The diagram shows a flowchart of another method for upgrading a cellular communication module provided in this embodiment of the present disclosure. The method includes steps S201 to S203 and is applied to a terminal device, wherein:

[0156] S201. Receive a first data packet sent by a cellular communication module in a non-networked state through an adapter communication interface with the cellular communication module; wherein the first data packet carries an upgrade instruction.

[0157] In the embodiments of this disclosure, it can be determined whether the cellular communication module is in a non-networked state by performing a self-test; it can also be determined whether the cellular communication module is in a non-networked state by being triggered by an external signal.

[0158] Here, if the cellular communication module determines that it has lost network access or is unable to perform network services through self-testing or external signal triggering, the status of the cellular communication module will be set to non-network-attached state.

[0159] Then, the current version number of the cellular communication module can be determined through the protocol logic layer in the module firmware, and the version number can be sent to the lower layer (data packet processing layer) of the protocol logic layer in the module firmware.

[0160] After receiving the version number at the packet processing layer, the first packet can be determined based on the version number.

[0161] Here, refer to Figure 2As shown, the data packet generated by the above data packet processing layer includes six fields: start field, upgrade method field, instruction field, data packet sequence number field, data length field, data field, and checksum field.

[0162] The data structure consists of the following fields: Start field (4 bytes), Upgrade method field (1 byte), Instruction field (1 byte), Data packet sequence number field (4 bytes), Data length field (4 bytes), Data field (N bytes), and Checksum field (2 bytes). Here, N represents the maximum length of data that the data packet can carry.

[0163] Here, the start field is used to identify the beginning of the data packet. The upgrade method field is used to identify which upgrade method is used.

[0164] The packet sequence number field is used to identify the order of the data packets. The data length field is used to identify the length of the data carried in the data field of this data packet.

[0165] The data field carries the data transmitted in the data packet. The checksum field carries a checksum of the data in the data field. This checksum is used by the other end to verify the integrity of the data packet.

[0166] Here, the upgrade method field of the first data packet contains the following upgrade instruction. The data field carries the current version number of the cellular communication module. The checksum field contains the verification result for the aforementioned version number.

[0167] S202. Based on the first data packet, determine the firmware data of the cellular communication module; wherein the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data.

[0168] In embodiments of this disclosure, after receiving the first data packet, the terminal device can determine the upgrade version number of the cellular communication module based on the version number carried in the first data packet.

[0169] The terminal device can then determine the firmware data corresponding to the upgrade version number. The upgrade version number indicates a higher version than the current version of the cellular data module.

[0170] After determining the firmware data, the terminal device can generate a fourth data packet based on the firmware data. The data field of the fourth data packet carries the length of the upgrade data in the firmware data. The upgrade method field of the fourth data packet is a response upgrade command. The response upgrade command indicates that the terminal device has responded to the upgrade command of the cellular communication module. The checksum field is the verification result for the length of the aforementioned upgrade data.

[0171] After the fourth data packet is identified, the terminal device can send it to the cellular communication module. The cellular communication module can receive the fourth data packet through the platform interface layer in the module firmware.

[0172] Subsequently, the packet processing layer in the module firmware can be based on Figure 2 The provided data packet structure is used to parse the fourth data packet, thereby obtaining the length of the upgrade data.

[0173] Here, after the cellular communication module determines the length of the upgrade data, the length of the sub-data requested from the terminal device each time (i.e., the length of the sub-firmware upgrade data described below) can be determined based on the length of the upgrade data. Here, upgrade data can be requested from the terminal device based on the sub-data length.

[0174] S203. Send firmware data to the cellular communication module so that the cellular communication module can upgrade itself based on the firmware data and change the status of the upgraded cellular communication module to the network-connected status.

[0175] In the embodiments of this disclosure, after the firmware data is determined, the cellular communication module can be upgraded based on the firmware data.

[0176] Here, after the cellular communication module completes its firmware upgrade, it can automatically restart. After the automatic restart, the upgraded cellular communication module can change its status from non-networked to networked.

[0177] In the above embodiments, when the cellular communication module is in a non-networked state, i.e., unable to network, it communicates with the terminal device through the communication interface adapted to the cellular communication module to obtain the firmware data required for the upgrade. Furthermore, by using custom data packets and the instructions carried in the data packets, normal interaction between the cellular communication module and the terminal device is ensured. In the prior art, cellular communication modules that cannot network are required to be removed and returned to the factory for fault upgrades; for cellular communication components that are difficult to disassemble, a serial port needs to be brought out, and a serial cable needs to be used to connect to the mobile terminal for firmware upgrades. Since the solution of this disclosure can be adapted to the communication method of the cellular communication module for upgrades without removing the communication module, this disclosure improves the flexibility and adaptability of cellular communication module upgrades.

[0178] In an optional embodiment, refer to Figure 4 The diagram shown is a framework diagram of a device terminal in an upgrade method for a cellular communication module provided in this embodiment of the present disclosure. The hardware of the device terminal includes: a processor, a wireless communication module, a storage module, a power management module, and a display module.

[0179] The communication module provides multiple communication methods (Bluetooth and wireless connection) or wired communication methods (serial port, USB, Ethernet port, etc.) to ensure connection with different types of abnormal cellular communication modules.

[0180] The processor (i.e., the core control unit) is responsible for handling all logic and data interactions, ensuring a smooth upgrade process.

[0181] The storage module is used to store firmware and important data, ensuring that the data is not lost after a power outage or restart.

[0182] The power management module provides a stable power supply to ensure that the upgrade process is not interrupted due to power issues.

[0183] The screen display module can be designed with a display interface to show device information (such as device IMEI, firmware version, etc.) and upgrade progress bar of the currently connected cellular communication module.

[0184] The software of the device terminal includes a module firmware support module, which is used to implement the corresponding logic of the module firmware installed in the cellular communication module.

[0185] Here, expandable modules, such as cellular communication modules, can also be set up to receive upgrade results from cellular communication modules in a timely manner.

[0186] In an optional embodiment, sending firmware upgrade information and corresponding firmware upgrade data to the cellular communication module specifically includes the following steps:

[0187] First, if the cellular communication module meets the upgrade conditions based on the version number in the first data packet, firmware data is sent to the cellular communication module.

[0188] Secondly, the second data packet sent by the cellular communication module is received; wherein the second data packet is determined based on firmware data, and the second data packet carries data request information and data request instructions, the data request information being used to indicate the sub-firmware upgrade data requested by the cellular communication module;

[0189] Secondly, after parsing the second data packet and detecting the data request instruction, the sub-firmware upgrade data requested by the cellular communication module is obtained based on the data request information;

[0190] Finally, a third data packet carrying the sub-firmware upgrade data is generated and sent to the cellular communication module so that the cellular communication module can combine the data based on the data request information to obtain the firmware data if the sub-firmware upgrade data meets the verification conditions.

[0191] In the embodiments of this disclosure, after receiving the first data packet, the terminal device can parse the first data packet to obtain the version number carried by the first data packet.

[0192] Here, the terminal device can determine whether the software version of the current cellular communication module is the latest version based on the version number. If the terminal device determines that the version number is not the latest version, it determines that the cellular communication module meets the upgrade requirements.

[0193] The terminal device can generate a fourth data packet and send it to the cellular communication module. After receiving the fourth data packet, the cellular data module can parse it to obtain the length of the upgrade data and determine the second data packet based on the length of the upgrade data.

[0194] Here, the data field in the second data packet carries data request information. This data request information indicates a desired acquisition of upgrade data (i.e., sub-firmware upgrade data) from byte k to byte j.

[0195] For example, the data field content in the second data packet is [k,j], where jk≤N, meaning the length of the sub-firmware upgrade data is less than or equal to the maximum length of data that the data packet can carry. The minimum value of k is 1, and the maximum value of j is h, where h is the length of the upgrade data.

[0196] Here, after receiving the second data packet, the terminal device can determine the sub-firmware upgrade data corresponding to the data request information in the second data packet from the upgrade data.

[0197] Subsequently, the terminal device can generate a third data packet based on the sub-firmware upgrade data. Here, the sub-firmware upgrade data can populate the data fields of the third data packet. The instruction field of the third data packet is a request-response instruction. The request-response instruction indicates that the upgrade terminal has responded to the data request instruction.

[0198] Here, after receiving the third data packet, the cellular communication module can parse the third data packet to obtain the sub-firmware upgrade data.

[0199] Afterwards, the cellular communication module can verify the sub-firmware upgrade data to obtain the verification result of the cellular communication module (i.e., the first verification value below).

[0200] Here, the cellular communication module can verify the sub-firmware upgrade data based on the verification result of the cellular communication module and the verification result carried in the verification code field of the third data packet (i.e., the second verification value below), and obtain the verified sub-firmware upgrade data.

[0201] Here, after the cellular communication module determines all the verified sub-firmware upgrade data corresponding to the upgrade data, that is, after the cellular communication module receives the length of all the verified sub-firmware upgrade data, it is determined that the verified sub-firmware upgrade data meets the combination conditions.

[0202] Then, the cellular communication module can combine the verified sub-firmware upgrade data based on the position of the verified sub-firmware upgrade data in the upgrade data to obtain the upgrade data.

[0203] Reference Figure 5 The diagram shown is an overall flowchart of an upgrade method for a cellular communication module provided in this embodiment of the present disclosure, wherein:

[0204] S10. If the cellular communication module is found to be unable to register on the network multiple times in a row, the status of the cellular communication module is marked as non-registered through the control layer in the module firmware.

[0205] S20. When the cellular communication module is in a non-networked state, a connection is established with the terminal device, the first data packet is determined, the status of the cellular communication module is marked as upgrade state, and the first data packet is sent to the terminal device through the adapter communication interface of the cellular communication module.

[0206] Here, the version number of the cellular communication module is determined by the protocol logic layer in the module firmware; a first data packet is generated based on the version number by the data packet processing layer in the module firmware; and the first data packet is sent to the terminal device by the platform interface layer in the module firmware.

[0207] S30. Receive firmware data sent by the terminal device when it is determined that the cellular communication module meets the upgrade conditions based on the version number.

[0208] S40. Based on the firmware data, determine the second data packet and send the second data packet to the terminal device; wherein the second data packet carries data request information and data request instructions.

[0209] S50. Receive a third data packet sent by the terminal device; wherein the third data packet carries sub-firmware upgrade data requested by the cellular communication module, and the sub-firmware upgrade data is determined based on the data request information.

[0210] S60. Verify the sub-firmware upgrade data, and if it is determined that the verified sub-firmware upgrade data meets the combination conditions, combine the verified sub-firmware upgrade data to obtain the upgrade data.

[0211] Here, the sub-firmware upgrade data requested in the third data packet is verified to obtain a first verification value; the second verification value carried in the third data packet is parsed; if the first verification value and the second verification value are the same, the verified sub-firmware upgrade data is obtained; otherwise, the data request information for the sub-firmware upgrade data is resent to the terminal device.

[0212] S70. Based on the firmware data, upgrade the cellular communication module to obtain an upgraded cellular communication module, and modify the status of the upgraded cellular communication module to a network-connected status.

[0213] S80. Establish a communication connection between the upgraded cellular communication module and the terminal device, and send the upgrade result to the terminal device based on the communication connection.

[0214] In actual operation, this solution can produce the following technical effects:

[0215] 1. A portable upgrade terminal that supports multiple data transmission methods.

[0216] Existing solutions typically rely on a single upgrade method and lack a dedicated terminal device for upgrading faulty devices. In contrast, this solution's terminal device integrates multiple methods for upgrade data transmission, including Bluetooth, Wi-Fi, serial port, USB, and Ethernet. This enhances flexibility and adaptability, especially when cellular networks are unavailable.

[0217] 2. Firmware upgrade functionality with a layered architecture design.

[0218] The firmware upgrade function in the module firmware adopts a layered architecture design, including a platform interface layer, a data processing layer, a protocol logic layer, and a control layer. This design approach gives the solution excellent scalability and maintainability, and allows for easy adaptation to different chips and communication methods. Existing technical solutions lack this design consideration.

[0219] 3. Customizable data packages and a simple, universal interaction flow.

[0220] Through a custom data packet and command protocol, this solution ensures the integrity and consistency of data transmission and can distinguish between different upgrade methods and commands. Furthermore, a state transition and general inter-device interaction process was designed based on this.

[0221] Based on the same inventive concept, this disclosure also provides an upgrade device for a cellular communication module corresponding to the upgrade method for a cellular communication module. Since the principle of the device in this disclosure for solving the problem is similar to the upgrade method for a cellular communication module described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0222] Reference Figure 6 The diagram shown is a schematic of an upgrade device for a cellular communication module provided in an embodiment of this disclosure. The device includes: a first determining module 11, a first receiving module 12, and an upgrade module 13; wherein:

[0223] The first determining module 11 is used to determine the first data packet when the cellular communication module is in a non-networked state, and send the first data packet to the terminal device through the adapter communication interface of the cellular communication module.

[0224] The first receiving module 12 is configured to receive firmware data sent by the terminal device based on the first data packet; wherein the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data;

[0225] Upgrade module 13 is used to upgrade the cellular communication module based on the firmware data to obtain the upgraded cellular communication module, and to modify the status of the upgraded cellular communication module to the network-connected status.

[0226] Reference Figure 7 The diagram shown is a schematic of another cellular communication module upgrade device provided in this embodiment of the present disclosure. The device includes: a second receiving module 21, a second determining module 22, and a transmitting module 23; wherein:

[0227] The second receiving module 21 is used to receive a first data packet sent by a cellular communication module in a non-networked state through an adaptive communication interface with the cellular communication module; wherein the first data packet carries an upgrade instruction;

[0228] The second determining module 22 is used to determine the firmware data of the cellular communication module based on the first data packet; wherein the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data;

[0229] The sending module 23 is used to send the firmware data to the cellular communication module so that the cellular communication module can upgrade itself based on the firmware data and change the status of the upgraded cellular communication module to the network-connected status.

[0230] In this embodiment, when the cellular communication module is in a non-networked state (i.e., unable to network), it communicates with the terminal device through the communication interface adapted to the cellular communication module to obtain the firmware data required for the upgrade. Furthermore, by using custom data packets and the instructions carried within those packets, normal interaction between the cellular communication module and the terminal device is ensured. In existing technologies, cellular communication modules that cannot network be installed need to be removed and returned to the factory for fault upgrades; for cellular communication components that are difficult to disassemble, a serial port needs to be brought out and connected to the mobile terminal via a serial cable for firmware upgrades. Because the solution in this disclosure can adapt to the communication method of the cellular communication module for upgrades, it is not necessary to remove the communication module. Therefore, this disclosure improves the flexibility and adaptability of cellular communication module upgrades.

[0231] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0232] Corresponding to Figure 1 This disclosure also provides an electronic device 800, such as a method for upgrading cellular communication modules. Figure 8 The diagram shown is a structural schematic of an electronic device 800 provided in an embodiment of this disclosure, including:

[0233] The system includes a processor 81, a memory 82, and a bus 83. The memory 82 stores execution instructions and includes main memory 821 and external memory 822. The main memory 821, also called internal memory, temporarily stores the computational data in the processor 81, as well as data exchanged with external memory such as a hard disk. The processor 81 exchanges data with the external memory 822 through the main memory 821. When the electronic device 800 is running, the processor 81 communicates with the memory 82 through the bus 83, causing the processor 81 to execute the following instructions:

[0234] When the cellular communication module is in a non-networked state, a first data packet is determined and sent to the terminal device through the adapter communication interface of the cellular communication module.

[0235] The terminal device receives firmware data based on the first data packet; wherein the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data;

[0236] The cellular communication module is upgraded based on the firmware data to obtain an upgraded cellular communication module, and the status of the upgraded cellular communication module is changed to a network-based status.

[0237] The processor 81 can also execute the following instructions:

[0238] Receive a first data packet sent by a cellular communication module in a non-resident state through an adapted communication interface with the cellular communication module; wherein the first data packet carries an upgrade instruction;

[0239] Based on the first data packet, firmware data of the cellular communication module is determined; wherein, the firmware data is used to indicate upgrade data of the cellular communication module and the length of the upgrade data;

[0240] The firmware data is sent to the cellular communication module so that the cellular communication module can upgrade itself based on the firmware data and change the status of the upgraded cellular communication module to a network-connected state.

[0241] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.

[0242] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0243] Additionally, as used herein, the “or” used in a list of items beginning with “at least one” indicates a separate list, such that a list of, for example, “at least one of A, B, or C” means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word “exemplary” does not imply that the described example is preferred or better than other examples.

[0244] It should also be noted that in the systems and methods of this disclosure, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions to this disclosure.

[0245] Various changes, substitutions, and modifications can be made to the technology described herein without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, events, means, methods, and actions described above. Currently existing or later-developed processes, machines, manufactures, events, means, methods, or actions that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein can be utilized. Therefore, the appended claims include such processes, machines, manufactures, events, means, methods, or actions within their scope.

[0246] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.

[0247] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.

Claims

1. A method for upgrading a cellular communication module, characterized in that, Applications in cellular communication modules include: When the cellular communication module is in a non-networked state, the first data packet is determined and sent to the terminal device through the adapter communication interface of the cellular communication module; The terminal device receives firmware data based on the first data packet; wherein the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data; The cellular communication module is upgraded based on the firmware data to obtain an upgraded cellular communication module. The upgraded cellular communication module is then controlled to register on the network. If the upgraded cellular communication module successfully registers on the network, its status is changed to normal.

2. The method as described in claim 1, characterized in that, The step of determining the first data packet and sending the first data packet to the terminal device through the adapter communication interface of the cellular communication module includes: The version number of the cellular communication module is determined by the protocol logic layer in the module firmware. The first data packet is generated by the data packet processing layer in the module firmware based on the version number; The first data packet is sent to the terminal device through the platform interface layer in the module firmware.

3. The method as described in claim 1, characterized in that, Receiving the firmware data sent by the terminal device based on the first data packet includes: Determine the target upgrade method; wherein, the target upgrade method is used to indicate the method of receiving firmware data for the cellular communication module; Receive firmware data based on the first data packet according to the receiving method indicated by the target upgrade method.

4. The method as described in claim 1 or 3, characterized in that, Receiving the firmware data sent by the terminal device based on the first data packet includes: Receive firmware data sent by the terminal device when it is determined that the cellular communication module meets the upgrade conditions based on the version number in the first data packet; Based on the firmware data, a second data packet is determined and sent to the terminal device; wherein, the second data packet carries data request information and a data request instruction, and the data request information is used to indicate the sub-firmware upgrade data requested by the cellular communication module; The terminal device receives a third data packet carrying the sub-firmware upgrade data; wherein the third data packet is obtained by the terminal device based on the data request information after detecting the data request instruction. The sub-firmware upgrade data is verified, and if the verified sub-firmware upgrade data meets the combination conditions, the verified sub-firmware upgrade data is combined to obtain the upgrade data.

5. The method as described in claim 4, characterized in that, The verification of the sub-firmware upgrade data includes: The sub-firmware upgrade data requested in the third data packet is verified to obtain a first verification value; Parse the second checksum carried in the third data packet; If the first verification value and the second verification value are the same, the verified sub-firmware upgrade data is obtained; otherwise, a data request message for the sub-firmware upgrade data is resent to the terminal device.

6. The method as described in claim 1, characterized in that, Before determining the first data packet, the method further includes: If the cellular communication module is detected as unable to register on the network multiple times in a row, the control layer in the module firmware will mark the status of the cellular communication module as non-registered.

7. The method as described in claim 6, characterized in that, The method further includes: If the cellular communication module is detected to be able to connect to the network when its status is marked as non-networked, then it is determined whether the cellular communication module needs to be upgraded. If it is determined that the cellular communication module does not need to be upgraded, the status identifier of the cellular communication module is changed to the network-based status.

8. The method as described in claim 1, characterized in that, After upgrading the cellular communication module based on the firmware data to obtain the upgraded cellular communication module, the method further includes: Establish a communication connection between the upgraded cellular communication module and the terminal device; The upgrade result is sent to the terminal device based on the communication connection.

9. A method for upgrading a cellular communication module, characterized in that, Applied to terminal devices, including: Receive a first data packet sent by a cellular communication module in a non-resident state through an adapted communication interface with the cellular communication module; wherein the first data packet carries an upgrade instruction; Based on the first data packet, firmware data of the cellular communication module is determined; wherein, the firmware data is used to indicate upgrade data of the cellular communication module and the length of the upgrade data; The firmware data is sent to the cellular communication module so that the cellular communication module can upgrade itself based on the firmware data and change the status of the upgraded cellular communication module to a network-connected state.

10. The method as described in claim 9, characterized in that, Sending firmware upgrade information and corresponding firmware data to the cellular communication module includes: If the cellular communication module meets the upgrade conditions based on the version number in the first data packet, firmware data is sent to the cellular communication module. The second data packet sent by the cellular communication module is received; wherein the second data packet is determined based on the firmware data, and the second data packet carries data request information and data request instructions, wherein the data request information is used to indicate the sub-firmware upgrade data requested by the cellular communication module; After parsing the second data packet and detecting the data request instruction, the sub-firmware upgrade data requested by the cellular communication module is obtained based on the data request information; A third data packet carrying the sub-firmware upgrade data is generated and sent to the cellular communication module, so that the cellular communication module can combine the data request information based on the sub-firmware upgrade data if the sub-firmware upgrade data meets the verification conditions to obtain the firmware data.

11. An upgrade device for a cellular communication module, characterized in that, include: The first determining module is used to determine the first data packet when the cellular communication module is in a non-networked state, and send the first data packet to the terminal device through the adapter communication interface of the cellular communication module. A first receiving module is configured to receive firmware data sent by the terminal device based on the first data packet; wherein the first data packet carries an upgrade instruction, and the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data; The upgrade module is used to upgrade the cellular communication module based on the firmware data to obtain the upgraded cellular communication module, and to modify the status of the upgraded cellular communication module to the network-connected status.

12. An upgrade device for a cellular communication module, characterized in that, include: The second receiving module is used to receive a first data packet sent by a cellular communication module in a non-resident state through an adapted communication interface with the cellular communication module; wherein the first data packet carries an upgrade instruction; The second determining module is configured to determine the firmware data of the cellular communication module based on the first data packet; wherein the firmware data is used to indicate the upgrade data of the cellular communication module and the length of the upgrade data; The sending module is used to send the firmware data to the cellular communication module so that the cellular communication module can upgrade itself based on the firmware data and change the status of the upgraded cellular communication module to a network-connected state.

13. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the upgrade method for the cellular communication module according to claims 1 to 10.

14. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the upgrade method for the cellular communication module as described in claims 1 to 10.

15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the upgrade method for the cellular communication module as described in claims 1 to 10.