A communication method, device, storage medium and terminal equipment
By judging the communication status indication message in the terminal device, and switching to IoT mode with the first SIM card or the second SIM card, the problem of wireless communication service disconnection of the laptop in the sleep or shutdown state is solved, ensuring that the terminal device is in any state Maintain cloud connections, improving high availability of devices.
Patent Information
- Application Number
- CN202211041905.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2042-08-29
AI Technical Summary
When the laptop is in a hibernation or shutdown state, the wireless communication service is disconnected, resulting in interruption of network connection and inconvenience to users.
By determining whether the communication status indication message is received within the preset timer time, if received, a connection between the wireless communication module and the cloud server is established based on the first SIM card. If not received, the second SIM card is used to switch to the IoT mode and Establish a connection to ensure that the terminal device remains connected in the cloud in any working state.
It realizes that the terminal device maintains cloud connection in any working state, meets user usage needs, and ensures high availability of terminal devices.
Smart Images

Figure CN115413015B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a communication method, system, storage medium and terminal device. Background Art
[0002] Currently, the wireless communication modules in laptops all provide wireless communication services based on the MBB (Mobile Broadband) mode. However, once the laptop enters sleep or shutdown state, all the hardware of the PC, including the WWAN module, will be powered off, the corresponding wireless communication service will be disconnected, and all network connections of the PC will be disconnected, causing inconvenience to users. Summary of the invention
[0003] The purpose of the present application is to provide a communication method, apparatus, storage medium and terminal device, which can establish a wireless connection with a cloud server when the terminal device is powered off or in sleep mode.
[0004] In order to solve the above technical problems, the present application provides a communication method, which is applied to the wireless communication module of the terminal device. The specific technical solution is as follows:
[0005] Determine whether a communication status indication message sent by the host side is received within a preset timer time;
[0006] If the communication status indication message is received within the preset timer time, it is confirmed that the terminal device is in a normal working state, and wireless communication between the wireless communication module and the cloud server is established based on the communication status indication message and the first SIM card;
[0007] If the communication status indication message is not received within the preset timer time, it is confirmed that the terminal device is in an offline working state, and wireless communication between the wireless communication module and the cloud server is established using the second SIM card.
[0008] Optionally, after confirming that the terminal device is in an offline working state, the method further includes:
[0009] Powering the wireless communication module via an embedded controller integrated on the host side of the terminal device;
[0010] The current operation mode of the terminal device is switched from the mobile broadband mode to the IoT mode, and the currently used SIM card is switched from the first SIM card to the second SIM card.
[0011] Optionally, after the wireless communication module is powered by an embedded controller integrated on the host side of the terminal device, the method further includes:
[0012] Generates a system offline event;
[0013] The wireless communication module is determined to be in an offline state according to the system offline event, so as to execute the steps of switching the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switching the currently used SIM card from the first SIM card to the second SIM card.
[0014] Optionally, after the currently used SIM card is switched from the first SIM card to the second SIM card, the method further includes:
[0015] Activating the preset file of the second SIM card;
[0016] The network registration process is executed using the preset file, and a network connection is established after the network registration is successful.
[0017] Optionally, executing the network registration process using the preset file includes:
[0018] Sending a network registration request to the protocol stack based on the preset file;
[0019] After the protocol stack is successfully added to the network, a registration success message is received;
[0020] According to the registration success message, the wireless communication module is connected to the cloud server through a preset wireless communication protocol.
[0021] Optionally, if the communication status indication message is received within the preset timer time, confirming that the terminal device is in a normal working state, establishing wireless communication between the wireless communication module and the cloud server based on the communication status indication message includes:
[0022] If the communication status indication message is received within the preset timer time, a system online event is sent;
[0023] Confirming that the terminal device is in normal working state according to the system online event;
[0024] Performing network registration based on the communication status indication message using a protocol stack;
[0025] After the network registration is successful, the wireless communication module is used as an MQTT client, and a dial-up connection is initiated to the cloud server based on the MQTT protocol;
[0026] After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
[0027] Optionally, also include:
[0028] The mobile broadband mode is set as the default operating mode of the terminal device.
[0029] The present application also provides a communication device, comprising:
[0030] A judgment module, used to judge whether a communication status indication message sent by the host side is received within a preset timer time;
[0031] A first mode operation module is used to confirm that the terminal device is in a normal working state if the communication status indication message is received within the preset timer time, and establish wireless communication between the wireless communication module and the cloud server based on the communication status indication message and the first SIM card;
[0032] The second mode operation module is used to confirm that the terminal device is in an offline working state if the communication status indication message is not received within the preset timer time, and to establish wireless communication between the wireless communication module and the cloud server using the second SIM card.
[0033] The present application also provides a terminal device, including:
[0034] A host side having an embedded controller; the embedded controller is used to power the wireless communication module when no communication status indication message is received within a preset timer time;
[0035] The wireless communication module is used to confirm that the terminal device is in normal working state and establish wireless communication between the wireless communication module and the cloud server based on the first SIM card; or, after confirming that the terminal device is in offline working state, use the second SIM card to establish wireless communication between the wireless communication module and the cloud server.
[0036] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above-mentioned method when executed by a processor.
[0037] The present application provides a communication method, which is applied to a wireless communication module of a terminal device, comprising: determining whether a communication status indication message sent by a host side is received within a preset timer time; if the communication status indication message is received within the preset timer time, confirming that the terminal device is in a normal working state, and establishing wireless communication between the wireless communication module and a cloud server based on the communication status indication message and a first SIM card; if the communication status indication message is not received within the preset timer time, confirming that the terminal device is in an offline working state, and establishing wireless communication between the wireless communication module and the cloud server using a second SIM card.
[0038] This application determines the current working status of the terminal device by detecting whether the communication status indication message sent by the host side is received within the preset timer time, and uses different connection methods to establish a connection with the cloud server according to the current working status of the terminal device, ensuring that the terminal device maintains a cloud connection in any working status, which can meet user usage needs and ensure the high availability of the terminal device.
[0039] The present application also provides a communication device, a storage medium and a terminal device, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0041] Figure 1 A flow chart of a communication method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of the communication process of the wireless communication module in the MBB mode provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the communication process of the wireless communication module in IoT mode provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] Please refer to Figure 1 , Figure 1 A flow chart of a communication method provided in an embodiment of the present application, the method comprising:
[0047] S101: Determine whether a communication status indication message sent by a communication status indication message host side is received within a preset timer time;
[0048] The embodiment of the present application can be applied to a terminal device including a wireless communication module, and the communication status indication message can be used to indicate the current communication status or the current communication status of the terminal device. The specific type and content of the communication status indication message are not limited here, and an MBIM message can be used optionally. The MBIM information refers to a Mobile Broadband Interface Model message, which can be used to feedback the mobile communication status. And this step can be performed at any time, so as to detect the terminal device to adjust the working status of the terminal device.
[0049] The preset timer time is not limited here, and it can be set by those skilled in the art, for example, 1 minute, 3 minutes, etc. Of course, this step defaults to that the preset timer time can be set by those skilled in the art before executing this step.
[0050] In this step, it is necessary to determine whether the preset timer time has received the communication status indication message sent by the host side. The executor of this process can be a module related to the communication method in the terminal device, such as a wireless communication module, or a control module of the communication module, etc.
[0051] S102: If the communication status indication message is received within the preset timer time, it is confirmed that the terminal device is in a normal working state, and wireless communication between the wireless communication module and the cloud server is established based on the communication status indication message and the first SIM card;
[0052] In this step, if the communication status indication message is received within the preset timer time, that is, it is determined that the terminal device is in the mobile broadband connection process, then the terminal device is in a normal working state, and wireless communication can be established directly according to the communication status indication message.
[0053] The process of establishing wireless communication may include network registration and dial-up connection.
[0054] One possible implementation is as follows:
[0055] S102A: If the communication status indication message is received within the preset timer time, a system online event is sent;
[0056] S102B: confirming that the terminal device is in a normal working state according to the system online event;
[0057] S102C: Performing network registration based on the communication status indication message by using a protocol stack;
[0058] S102D: After the network registration is successful, the wireless communication module is used as an MQTT client, and a dial-up connection is initiated to the cloud server based on the MQTT protocol;
[0059] S102E: After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
[0060] In the above process, taking the wireless communication module as the execution body as an example, after the terminal device is powered on, if a communication status indication message is received within the preset timer time, control messages including network registration, dial-up connection, etc. can be obtained, and these control information are sent to the protocol stack to realize wireless network connection.
[0061] At this time, the wireless communication module can send a system online event to the device mode management subfunction in the terminal device for executing device mode management. After receiving the system online event, the device mode management subfunction confirms that the wireless communication module is online and can operate in mobile broadband mode.
[0062] After the protocol stack receives the control information, it needs to execute network injection and dial-up connection. After the network injection is successful, a network injection success message will be received. At this time, the wireless communication module can be used as an MQTT client to initiate a dial-up connection to the cloud server using the MQTT protocol. After the dial-up connection is established, the wireless communication module will establish a wireless communication connection with the cloud server. The MQTT client is the communication end that applies the MQTT protocol. The MQTT protocol is Message Queuing Telemetry Transport, which is a client-server based message publish / subscribe transmission protocol.
[0063] Of course, when actually executing wireless communication between the wireless communication module and the cloud server, those skilled in the art may also refer to the above process and adopt other protocols, which are not limited to examples one by one here.
[0064] S103: If the communication status indication message is not received within the preset timer time, it is confirmed that the terminal device is in an offline working state, and wireless communication between the wireless communication module and the cloud server is established using the second SIM card.
[0065] Once the communication status indication message is not received within the preset timer time, it indicates that the terminal device is not performing a mobile broadband connection at this time, and the terminal device is in an offline working state. It should be noted that the offline working state refers to the operating state of the terminal device when the communication status indication message is not received within the preset timer time, and does not represent the actual current operating state of the terminal device. Usually, the offline working state is when the terminal device is in sleep or shutdown state. At this time, the hardware of the terminal device is in a power-off state, and the corresponding wireless communication module is also in a power-off state. At this time, the diagnostic device is in an offline working state.
[0066] In this step, when the terminal device is in an offline working state, the second SIM card is used to establish wireless communication between the wireless communication module and the cloud server. The second SIM card is not specifically limited here, and the remaining first SIM cards are SIM cards used in different communication modes. In a preferred implementation, the second SIM card can be a built-in eSIM card. When using the second SIM card to establish wireless communication with the cloud server, various IoT protocols can be applied. It should be noted that only one SIM card can be in working state at any time.
[0067] Taking the Windows operating system as an example, the wireless network connection of the Windows operating system is based on the DSSA (Dual SIM Single Active) method, and the wireless communication module is also based on the DSSA method, that is, the Windows OS and the wireless communication module both work based on the dual-card single-standby mode. At this time, the dual cards can use the USIM card external to the terminal device and the eSIM card built into the wireless communication module.
[0068] Before executing this step, the wireless communication module can be powered by an embedded controller integrated on the host side of the terminal device, and the current operating mode of the terminal device can be switched from mobile broadband mode to IoT mode, and the currently used SIM card can be switched from the first SIM card to the second SIM card.
[0069] In addition, the status of the wireless communication module can also be confirmed through events. For example, a system offline event can be generated. Once the system offline event is received, it can be determined that the wireless communication module is in an offline state. Thus, the operating mode of the terminal device can be switched and the SIM card of the application can be switched.
[0070] Thereafter, the preconfiguration file of the second SIM card may be activated, the network registration process may be performed using the preconfiguration file, and a network connection may be established after the network registration is successful.
[0071] There is no limitation on how to use the preset file to perform the network registration process, which may include the following steps:
[0072] The first step is to send a network registration request to the protocol stack based on the preset file;
[0073] Step 2: After the protocol stack is successfully registered, a registration success message is received;
[0074] Step 3: According to the registration success message, the wireless communication module is connected to the cloud server through a preset wireless communication protocol.
[0075] It can be seen from the above process that the protocol stack can also be used for network injection. After the network injection is successful, the wireless communication module is used as the MQTT client and a dial-up connection to the cloud server is initiated based on the MQTT protocol to realize the IoT application of the terminal device.
[0076] In order to facilitate the use of the terminal device, the mobile broadband mode of the terminal device can be set as the default operation mode. In this way, when the terminal device is operating normally, the mobile broadband mode is used by default. Once it is detected that no communication status indication message is received within the preset timer time, it can switch to the offline working state and enter the IoT mode.
[0077] The embodiment of the present application can determine the current working status of the terminal device by detecting whether the communication status indication message sent by the host side is received within a preset timer period, and use different connection methods to establish a connection with the cloud server according to the current working status of the terminal device, ensuring that the terminal device maintains a cloud connection in any working state, which can meet user usage needs and ensure the high availability of the terminal device.
[0078] See also Figure 2 , Figure 2 A schematic diagram of a communication process of a terminal device in an MBB mode provided in an embodiment of the present application is provided. The process is a specific communication process in the MBB mode. The specific communication process is described with sub-functions and specific components involved in the communication process, and may include:
[0079] [1] After the terminal device is powered on, the wireless communication module will receive the communication status indication message sent by the host side, including control messages such as Register and Connect. The communication status indication message processing (MBIM Message Handler) sub-function of the wireless communication module will send the control message to the protocol stack (Cellular Protocol Stack) to establish a wireless network connection;
[0080] [2] The communication status indication message processing sub-function receives the communication status indication message and sends a system online event to the device mode manager sub-function;
[0081] [3] After the terminal device is started, the device mode management sub-function defaults to the MBB mode. Upon receiving the system online event, it is confirmed that the wireless communication module is online and the default MBB mode is maintained.
[0082] [4] After the protocol stack successfully completes the network injection control process based on the communication status indication message, the dial-up connection management (Connection Manager) subfunction will receive a message indicating the successful network injection;
[0083] [5] The dial-up connection management sub-function receives the message of successful network registration, uses the wireless communication module as an MQTT client, and uses the first SIM card to initiate a dial-up connection to the cloud server based on the MQTT protocol;
[0084] [6] After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
[0085] See also Figure 3 , Figure 3 A schematic diagram of a communication process of a terminal device in an IoT mode provided in an embodiment of the present application, which is a specific communication process in the IoT mode, describes the specific communication process with sub-functions and specific components involved in the communication process, and may include:
[0086] [1] After the wireless communication module is powered on, if the MBIM Message Handler sub-function timer times out and no communication status indication message is received, it will be confirmed that the current terminal device is in sleep / power-off state, so a system offline event is sent to the Device Mode Manager sub-function.
[0087] [2] The wireless communication module is started, the device mode management defaults to MBB mode, and upon receiving a system offline event, it is determined that the wireless communication module is in a system offline state, and will automatically switch to IoT mode, including switching the SIM card providing services from the first SIM card to the second SIM card, and activating the pre-configured file of the second SIM card; for example, it can switch from the USIM to the built-in eSIM card, and activate the pre-configured file of the eSIM card content;
[0088] [3] After activating the preconfiguration file of the second SIM card, the preconfiguration file will be used to initiate the network registration process, and the device mode management subfunction will send a network registration request message to the protocol stack (Cellular Protocol Stack);
[0089] [4] After the protocol stack is successfully injected into the network, the dial-up connection management (Connection Manager) subfunction will receive a message of successful injection;
[0090] [5] The dial-up connection management sub-function receives the message of successful network registration, uses the wireless communication module as (MQTTClient), and uses the second SIM card to initiate a dial-up connection to the cloud server (Cloud Server) based on the MQTT protocol;
[0091] [6] After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
[0092] The following describes the terminal device provided by the present application. The present application also provides a terminal device, including:
[0093] A host side having an embedded controller; the embedded controller is used to power the wireless communication module when no communication status indication message is received within a preset timer time;
[0094] The wireless communication module is used to confirm that the terminal device is in normal working state and establish wireless communication between the wireless communication module and the cloud server based on the first SIM card; or, after confirming that the terminal device is in offline working state, use the second SIM card to establish wireless communication between the wireless communication module and the cloud server.
[0095] Under normal operation of the terminal device, the battery contained in the terminal device powers the terminal device. Once the communication status indication message is not received within the preset timer time, it indicates that the terminal device may be in a dormant or shutdown state. At this time, the embedded controller is used to power the wireless communication module to achieve wireless communication between the wireless communication module and the cloud server. At the same time, since the original first SIM card has been powered off, the second SIM card, such as the built-in eSIM card in the wireless communication module, is directly used for communication, so that the terminal device can maintain communication with the cloud server, which is convenient for the terminal device to switch the communication mode under different working conditions.
[0096] A communication device provided in an embodiment of the present application is introduced below. The communication device described below and the communication method described above can refer to each other.
[0097] The present application also provides a communication device, wherein the terminal device includes a wireless communication module, including:
[0098] A judgment module, used to judge whether a communication status indication message sent by the host side is received within a preset timer time;
[0099] A first mode operation module is used to confirm that the terminal device is in a normal working state if the communication status indication message is received within the preset timer time, and establish wireless communication between the wireless communication module and the cloud server based on the communication status indication message and the first SIM card;
[0100] The second mode operation module is used to confirm that the terminal device is in an offline working state if the communication status indication message is not received within the preset timer time, and to establish wireless communication between the wireless communication module and the cloud server using the second SIM card.
[0101] Based on the above embodiments, as a preferred embodiment, it also includes:
[0102] A power supply switching module is used to power the wireless communication module through an embedded controller integrated on the host side of the terminal device; switch the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently used SIM card from the first SIM card to the second SIM card.
[0103] Based on the above embodiments, as a preferred embodiment, it also includes:
[0104] An offline handling module is used to generate a system offline event; determine that the wireless communication module is in an offline state according to the system offline event, so as to execute the steps of switching the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switching the currently used SIM card from the first SIM card to the second SIM card.
[0105] Based on the above embodiments, as a preferred embodiment, it also includes:
[0106] The network registration module is used to activate the preset file of the second SIM card; use the preset file to execute the network registration process, and establish a network connection after the network registration is successful.
[0107] Based on the above embodiments, as a preferred embodiment, the network injection module includes:
[0108] A request sending unit, configured to send a network registration request to the protocol stack based on the preset file;
[0109] A message receiving unit, configured to receive a registration success message after the protocol stack is successfully injected into the network;
[0110] A network connection unit is used to connect the wireless communication module to the cloud server through a preset wireless communication protocol according to the registration success message.
[0111] Based on the above embodiments, as a preferred embodiment, the mobile broadband mode operation module is a module for performing the following steps:
[0112] If the communication status indication message is received within the preset timer time, a system online event is sent;
[0113] Confirming that the terminal device is in normal working state according to the system online event;
[0114] Performing network registration based on the communication status indication message using a protocol stack;
[0115] After the network registration is successful, the wireless communication module is used as an MQTT client, and a dial-up connection is initiated to the cloud server based on the MQTT protocol;
[0116] After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
[0117] Based on the above embodiments, as a preferred embodiment, it also includes:
[0118] The operation mode setting module is used to set the mobile broadband mode as the default operation mode of the terminal device.
[0119] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0120] The present application also provides a server, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the server may also include various network interfaces, power supplies and other components.
[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0122] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0123] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A communication method, applied to a wireless communication module of a terminal device, characterized in that: include: Determine whether a communication status indication message sent by the host side is received within a preset timer time; If the communication status indication message is received within the preset timer time, it is confirmed that the terminal device is in a normal working state, and wireless communication between the wireless communication module and the cloud server is established based on the communication status indication message and the first SIM card; If the communication status indication message is not received within the preset timer time, confirming that the terminal device is in an offline working state, and establishing wireless communication between the wireless communication module and the cloud server using the second SIM card; After confirming that the terminal device is in an offline working state, the method further includes: Powering the wireless communication module via an embedded controller integrated on the host side of the terminal device; The current operation mode of the terminal device is switched from the mobile broadband mode to the IoT mode, and the currently used SIM card is switched from the first SIM card to the second SIM card.
2. The communication method according to claim 1, characterized in that: After the wireless communication module is powered by the embedded controller integrated on the host side of the terminal device, the method further includes: Generates a system offline event; The wireless communication module is determined to be in an offline state according to the system offline event, so as to execute the steps of switching the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switching the currently used SIM card from the first SIM card to the second SIM card.
3. The communication method according to claim 2, characterized in that: After the currently used SIM card is switched from the first SIM card to the second SIM card, the method further includes: Activating the preset file of the second SIM card; The network registration process is executed using the preset file, and a network connection is established after the network registration is successful.
4. The communication method according to claim 3, characterized in that: The network registration process using the preset file includes: Sending a network registration request to the protocol stack based on the preset file; After the protocol stack is successfully added to the network, a registration success message is received; According to the registration success message, the wireless communication module is connected to the cloud server through a preset wireless communication protocol.
5. The communication method according to claim 1, characterized in that: If the communication status indication message is received within the preset timer time, confirming that the terminal device is in a normal working state, establishing wireless communication between the wireless communication module and the cloud server based on the communication status indication message includes: If the communication status indication message is received within the preset timer time, a system online event is sent; Confirming that the terminal device is in normal working state according to the system online event; Performing network registration based on the communication status indication message using a protocol stack; After the network registration is successful, the wireless communication module is used as an MQTT client, and a dial-up connection is initiated to the cloud server based on the MQTT protocol; After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
6. The communication method according to claim 1 or 5, characterized in that: Also includes: The mobile broadband mode is set as the default operating mode of the terminal device.
7. A communication device, characterized in that: Wireless communication modules applied to terminal equipment include: A judgment module, used to judge whether a communication status indication message sent by the host side is received within a preset timer time; A first mode operation module is used to confirm that the terminal device is in a normal working state if the communication status indication message is received within the preset timer time, and establish wireless communication between the wireless communication module and the cloud server based on the communication status indication message and the first SIM card; A second mode operation module is used to confirm that the terminal device is in an offline working state if the communication status indication message is not received within the preset timer time, and to establish wireless communication between the wireless communication module and the cloud server using a second SIM card; Wherein, after confirming that the terminal device is in an offline working state, the second mode operation module further includes: A power supply switching module is used to power the wireless communication module through an embedded controller integrated on the host side of the terminal device; switch the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently used SIM card from the first SIM card to the second SIM card.
8. A terminal device, characterized in that: include: A host side having an embedded controller; the embedded controller is used to power the wireless communication module when no communication status indication message is received within a preset timer time; The wireless communication module is used to confirm that the terminal device is in a normal working state and establish wireless communication between the wireless communication module and the cloud server based on the first SIM card; or, after confirming that the terminal device is in an offline working state, establish wireless communication between the wireless communication module and the cloud server using the second SIM card; Among them, the wireless communication module is also used to switch the current operating mode of the terminal device from the mobile broadband mode to the IoT mode after confirming that the terminal device is in an offline working state, and to switch the currently used SIM card from the first SIM card to the second SIM card.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the communication method according to any one of claims 1 to 6 are implemented.
