WO2024046049A1 - Communication method and apparatus, storage medium and terminal device - Google Patents

Communication method and apparatus, storage medium and terminal device Download PDF

Info

Publication number
WO2024046049A1
WO2024046049A1 PCT/CN2023/111676 CN2023111676W WO2024046049A1 WO 2024046049 A1 WO2024046049 A1 WO 2024046049A1 CN 2023111676 W CN2023111676 W CN 2023111676W WO 2024046049 A1 WO2024046049 A1 WO 2024046049A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless communication
terminal device
sim card
indication message
communication module
Prior art date
Application number
PCT/CN2023/111676
Other languages
French (fr)
Chinese (zh)
Inventor
李建军
Original Assignee
西安广和通无线通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安广和通无线通信有限公司 filed Critical 西安广和通无线通信有限公司
Publication of WO2024046049A1 publication Critical patent/WO2024046049A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present disclosure relates generally to the field of wireless communication technologies, and more specifically to communication methods, systems, storage media and terminal devices.
  • the wireless communication modules in notebook computers provide wireless communication services based on MBB (Mobile Broadband, mobile broadband) mode.
  • MBB Mobile Broadband, mobile broadband
  • the present disclosure relates to a communication method applied to a wireless communication module of a terminal device, including:
  • the wireless communication module and the cloud server are established based on the communication status indication message and the first SIM card. wireless communications;
  • the communication status indication message is not received within the preset timer time, confirm that the terminal device is in an offline working state, and use the second SIM card to establish wireless communication between the wireless communication module and the cloud server.
  • the communication method further includes:
  • the communication method further includes:
  • the communication method further includes:
  • utilizing the preconfigured file to perform the network registration process includes:
  • the wireless communication module is connected to the cloud server through a preset wireless communication protocol according to the registration success message.
  • Wireless communication of cloud servers includes:
  • the wireless communication module After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol;
  • wireless communication between the wireless communication module and the cloud server is established.
  • the communication method further includes:
  • the mobile broadband mode is set as the default operating mode of the terminal device.
  • the present disclosure relates to communication devices including:
  • a judgment module configured to judge whether the communication status indication message sent by the host side is received within the preset timer time
  • the first mode operation module is configured to, if the communication status indication message is received within the preset timer time, confirm that the terminal device is in a normal working state, and establish a connection between the communication status indication message and the first SIM card based on the communication status indication message.
  • the second mode operation module is configured 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 use the second SIM card to establish the connection between the wireless communication module and Wireless communication of the cloud server.
  • the present disclosure relates to terminal equipment, including:
  • a host side provided with an embedded controller; the embedded controller is configured to power the wireless communication module when the communication status indication message is not received within a preset timer time;
  • the wireless communication module is configured 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, use
  • the second SIM card establishes wireless communication between the wireless communication module and the cloud server.
  • the present disclosure relates to a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the communication method of the present disclosure when executed by a processor.
  • the current working status of the terminal device is determined by detecting whether the communication status indication message is received within the preset timer time and the communication status indication message is sent by the host side, and different methods are adopted according to the current working status of the terminal device.
  • the connection method establishes a connection with the cloud server to ensure that the terminal device remains connected to the cloud in any working state. Sufficient to meet user needs and ensure high availability of terminal equipment.
  • Figure 1 is a flow chart of a communication method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of the communication process of the wireless communication module in MBB mode provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of the communication process of the wireless communication module in IoT mode provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a communication device provided by an embodiment of the present disclosure.
  • Figure 1 is a flow chart of a communication method provided by an embodiment of the present disclosure.
  • the method includes:
  • S101 Determine whether the communication status indication message sent by the host side is received within the preset timer time
  • Embodiments of the present disclosure may be applied to terminal devices including wireless communication modules, and the communication status indication message may be used to indicate the current communication status or communication status of the terminal device.
  • the specific type and content of the communication status indication message are not limited here.
  • MBIM messages may be used.
  • MBIM messages refer to Mobile Broadband Interface Model messages and may be used to feedback mobile communication status.
  • Step S101 can be executed at any time to detect the terminal device and adjust the working status of the terminal device.
  • the preset timer time is not limited here. It can be set by those skilled in the art, such as 1 minute, 3 minutes, etc. Of course, by default in step S101, the preset timer time can be set by those skilled in the art before executing step S101.
  • step S101 it is necessary to judge whether the communication status indication message received by the host side is a communication status indication message sent by the host side according to the preset timer time.
  • the execution subject of this process may be a module related to the communication mode in the terminal device, for example Wireless communication module, or control module of communication module, etc.
  • step S102 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, and the terminal device is in a normal working state. At this time, the communication status can be directly determined according to the communication status. Instruction message to establish wireless communication.
  • the process of establishing wireless communication may include processes such as network registration and dial-up connection.
  • one possible implementation is as follows:
  • S102C Use the protocol stack to perform network registration based on the communication status indication message
  • S102D After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol;
  • control messages including network registration, dial-up connection, etc. can be obtained, and these control messages are sent to the protocol stack to realize wireless network connection.
  • the wireless communication module can send system online events to the device mode management sub-function configured to perform device mode management in the terminal device.
  • the device mode management sub-function After receiving the system online event, the device mode management sub-function confirms that the wireless communication module is online and can use mobile Operates in broadband mode.
  • the protocol stack After the protocol stack receives the control information, it needs to perform network registration and dial-up connection. After the network registration is successful, a network registration success message will be received.
  • 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 a communication end that applies the MQTT protocol.
  • the MQTT protocol is Message Queuing Telemetry Transport, which is a message publishing/subscription transmission protocol based on client-server.
  • the offline working state refers to the operating state of the terminal device considered when no communication status indication message is received within the preset timer time, and does not represent the current actual operating state of the terminal device.
  • the offline working state is when the terminal device is in a 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.
  • the second SIM card is used to establish wireless communication between the wireless communication module and the cloud server.
  • the second SIM card There is no specific limitation on the second SIM card here, and the remaining first SIM cards are SIM cards used in different communication modes.
  • the second SIM card may be a built-in eSIM card.
  • various IoT protocols can be applied. It should be noted that only one SIM card can be working at any time.
  • the Windows operating system The wireless network connection of the operating system is based on the DSSA (Dual SIM Single Active, dual SIM Single Active) method, and the wireless communication module is also based on the DSSA method, that is, both the Windows OS and the wireless communication module work based on the dual SIM single standby mode.
  • the dual SIM The USIM card external to the terminal device and the eSIM card built into the wireless communication module can be used.
  • step S103 you can also power the wireless communication module through the 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 change the currently applied The SIM card is switched from the first SIM card to the second SIM card.
  • the status of the wireless communication module can also be confirmed through events.
  • a system offline event may be generated, and upon receipt of the system offline event, it may be determined that the wireless communication module is in an offline state. This allows you to switch the operating mode of the terminal device and switch the applied SIM card.
  • the preset file of the second SIM card can be activated, the preset file can be used to perform the network registration process, and a network connection can be established after successful network registration.
  • the wireless communication module is connected to the cloud server through the preset wireless communication protocol.
  • the protocol stack can also be used to perform network registration.
  • the wireless communication module is used as an MQTT client and initiates a dial-up connection to the cloud server based on the MQTT protocol to implement IoT applications for terminal devices. .
  • the mobile broadband mode of the terminal device can be set as the default operating mode. In this way, when the terminal device is running normally, the mobile broadband mode is adopted by default. Once it is detected that the communication status indication message is not received within the preset timer time, it can be switched to the offline working state and enter the IoT mode.
  • Embodiments of the present disclosure 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 the preset timer, and adopt different connection methods according to the current working status of the terminal device.
  • Build with the cloud The connection to the server ensures that the terminal device remains connected to the cloud in any working state, meeting user needs and ensuring high availability of the terminal device.
  • Figure 2 is a schematic diagram of the communication process of the terminal device in the MBB mode provided by an embodiment of the present disclosure. This process is the communication process in the MBB mode, and is divided into sub-functions and specific components involved in the communication process. Describe the specific communication process, which may include:
  • the wireless communication module After the terminal device is powered on and started, the wireless communication module will receive the communication status indication message sent by the host side, including network registration Register, dial-up Connect and other control messages, the wireless communication module's communication status indication message processing (MBIM Message Handler) sub-function sends control messages to the Cellular Protocol Stack to establish a wireless network connection;
  • MIM Message Handler communication status indication message processing
  • the communication status indication message processing sub-function When the communication status indication message processing sub-function receives the communication status indication message, it will send a system online event to the device mode management (Device Mode Manager) sub-function;
  • the device mode management sub-function defaults to MBB mode. After receiving the system online event, it confirms that the wireless communication module is online and maintains the default MBB mode;
  • the control process of the protocol stack is based on the communication status indication message. After the network injection is successful, the dial-up connection management (Connection Manager) sub-function will receive the network injection success message;
  • the dial-up connection management sub-function receives the message that the network registration is successful, uses the wireless communication module as the MQTT client (MQTT Client), and uses the first SIM card to initiate a dial-up connection to the cloud server (Cloud Server) based on the MQTT protocol; and
  • the wireless communication module After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
  • Figure 3 is a schematic diagram of the communication process of the terminal device in the IoT mode provided by an embodiment of the present disclosure. This process is the communication process in the IoT mode, with the sub-functions and specific components involved in the communication process. Describe the specific communication process, which may include:
  • the wireless communication module After the wireless communication module is powered on and started, if the communication status indication message processing (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 the sleep/shutdown state, so the system offline event is sent to Device Mode Manager sub-function;
  • MIM Message Handler communication status indication message processing
  • the wireless communication module module is started, and the device mode management defaults to MBB mode. After receiving the system offline event, it is judged that the wireless communication module is in the system offline state, and will automatically switch to the IoT mode, including switching the SIM card providing the service from the first SIM card to the second SIM card. SIM card, and activate the preset file of the second SIM card; for example, you can switch from USIM to the built-in eSIM card, and activate the preset file of the eSIM card content;
  • the preset file After activating the preset file of the second SIM card, the preset file will be used to initiate the network registration process, and the device mode management sub-function will send a network registration request message to the Cellular Protocol Stack;
  • dial-up connection management (Connection Manager) sub-function will receive a successful network registration message
  • the dial-up connection management sub-function receives the message of successful network registration, uses the wireless communication module as (MQTT Client), and uses the second SIM card to initiate a dial-up connection to the cloud server (Cloud Server) based on the MQTT protocol; and
  • the wireless communication module After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
  • the terminal equipment involved in the present disclosure is described below.
  • the present disclosure also provides terminal equipment, including:
  • a host side provided with an embedded controller; the embedded controller is configured to power the wireless communication module when the communication status indication message is not received within a preset timer time;
  • the wireless communication module is configured 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, use
  • the second SIM card establishes wireless communication between the wireless communication module and the cloud server.
  • the battery contained in the terminal device supplies power to the terminal device.
  • the communication status indication message is not received within the preset timer, it indicates that the terminal device may be in a sleep or shutdown state at this time.
  • the embedded controller is used to power the wireless communication module to realize wireless communication between the wireless communication module and the cloud server.
  • the second SIM card such as the built-in eSIM card in the wireless communication module, is directly used for communication. This allows the terminal device to maintain communication with the cloud server and facilitates the terminal device to communicate with the cloud server at different times. Communication mode under working condition style switching.
  • the communication device involved in the present disclosure will be introduced below.
  • the communication device described below and the communication method described above may be mutually referenced.
  • the present disclosure also provides a communication device.
  • the terminal device includes a wireless communication module, including:
  • a judgment module configured to judge whether the communication status indication message sent by the host side is received within the preset timer time
  • the first mode operation module is configured to, if the communication status indication message is received within the preset timer time, confirm that the terminal device is in a normal working state, and establish a connection between the communication status indication message and the first SIM card based on the communication status indication message.
  • the second mode operation module is configured 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 use the second SIM card to establish the connection between the wireless communication module and Wireless communication of the cloud server.
  • the communication device further includes:
  • a power supply switching module configured to provide power to 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 change the current operating mode of the terminal device to the IoT mode.
  • the applied SIM card is switched from the first SIM card to the second SIM card.
  • the communication device further includes:
  • An offline processing module configured to generate a system offline event; determine that the wireless communication module is in an offline state according to the system offline event, in order to perform the switching of the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and Steps to switch the currently used SIM card from the first SIM card to the second SIM card.
  • the communication device further includes:
  • the network registration module is configured 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.
  • the network injection module includes:
  • a request sending unit configured to send a network registration request to the protocol stack based on the preconfigured file
  • a message receiving unit configured to receive a registration success message after the protocol stack is successfully registered in the network
  • a network connection unit configured to connect the wireless communication module to the cloud server through a preset wireless communication protocol according to the registration success message.
  • the mobile broadband mode operation module is a module configured to perform the following steps:
  • the wireless communication module After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol;
  • wireless communication between the wireless communication module and the cloud server is established.
  • the communication device further includes:
  • An operating mode setting module is configured to set the mobile broadband mode as the default operating mode of the terminal device.
  • the present disclosure also provides a computer-readable storage medium on which a computer program is stored.
  • the storage medium can include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program code.
  • the present disclosure also provides a server, which may include a memory and a processor.
  • a computer program is stored in the memory.
  • the processor calls the computer program in the memory, the communication method of the present disclosure can be implemented.
  • the server may also include various network interfaces, power supplies and other components.

Abstract

Disclosed are a communication method and apparatus, a storage medium, and a terminal device. The communication method is applied to a wireless communication module of a terminal device, and comprises: determining whether a communication state indication message issued by a host side is received within a preset timer time; if the communication state indication message is received within the preset timer time, confirming that the terminal device is in a normal operating state, and establishing wireless communication between the wireless communication module and a cloud server on the basis of the communication state indication message and a first SIM card; and if the communication state indication message is not received within the preset timer time, confirming that the terminal device is in an offline operating state, and establishing wireless communication between the wireless communication module and the cloud server by using a second SIM card.

Description

通信方法、装置、存储介质和终端设备Communication methods, devices, storage media and terminal equipment
相关申请的引用References to related applications
本公开要求于2022年8月29日向中华人民共和国国家知识产权局提交的申请号为202211041905.4、发明名称为“一种通信方法、装置、存储介质和终端设备”的中国发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。This disclosure claims all the rights and interests of the Chinese invention patent application with the application number 202211041905.4 and the invention name "a communication method, device, storage medium and terminal equipment" submitted to the State Intellectual Property Office of the People's Republic of China on August 29, 2022, and are incorporated by reference into this disclosure in their entirety.
领域field
本公开大体上涉及无线通信技术领域,更具体地涉及通信方法、系统、存储介质和终端设备。The present disclosure relates generally to the field of wireless communication technologies, and more specifically to communication methods, systems, storage media and terminal devices.
背景background
当前,笔记本电脑中的无线通信模块均基于MBB(Mobile Broadband,移动宽带)模式提供无线通信服务,但一旦笔记本电脑进入休眠、或者关机、状态,PC整机所有的硬件,包括WWAN模块,都已经断电,对应的无线通信服务也会断开,PC所有的网络连接都会断开,给用户使用造成不便。Currently, the wireless communication modules in notebook computers provide wireless communication services based on MBB (Mobile Broadband, mobile broadband) mode. However, once the notebook computer enters sleep, or is shut down, all the hardware of the PC, including the WWAN module, has In the event of a power outage, the corresponding wireless communication service will also be disconnected, and all network connections on the PC will be disconnected, causing inconvenience to users.
概述Overview
一方面,本公开涉及通信方法,应用于终端设备的无线通信模块,包括:In one aspect, the present disclosure relates to a communication method applied to a wireless communication module of a terminal device, including:
判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;Determine whether the communication status indication message sent by the host side is received within the preset timer time;
若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及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 the wireless communication module and the cloud server are established based on the communication status indication message and the first SIM card. wireless communications; and
若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。 If the communication status indication message is not received within the preset timer time, confirm that the terminal device is in an offline working state, and use the second SIM card to establish wireless communication between the wireless communication module and the cloud server.
在某些实施方案中,确认所述终端设备处于离线工作状态后,通信方法还包括:In some embodiments, after confirming that the terminal device is in an offline working state, the communication method further includes:
通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;以及Powering the wireless communication module through an embedded controller integrated on the host side of the terminal device; and
将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。Switch the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently applied SIM card from the first SIM card to the second SIM card.
在某些实施方案中,通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电之后,通信方法还包括:In some embodiments, after powering the wireless communication module through an embedded controller integrated on the host side of the terminal device, the communication method further includes:
生成系统离线事件;以及Generate system offline events; and
根据所述系统离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。Determine that the wireless communication module is in an offline state according to the system offline event, in order to perform the switching of the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently applied SIM card from the first SIM card to the IoT mode. Steps to switch to a second SIM card.
在某些实施方案中,将当前应用的SIM卡由第一SIM卡切换至第二SIM卡之后,通信方法还包括:In some embodiments, after switching the currently applied SIM card from the first SIM card to the second SIM card, the communication method further includes:
激活所述第二SIM卡的预置文件;以及Activating the profile of the second SIM card; and
利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。Use the preset file to execute the network registration process, and establish a network connection after successful network registration.
在某些实施方案中,利用所述预置文件执行网络注册流程包括:In some embodiments, utilizing the preconfigured file to perform the network registration process includes:
基于所述预置文件向协议栈发送网络注册请求;Send a network registration request to the protocol stack based on the preset file;
在所述协议栈注网成功后,接收到注册成功消息;以及After the protocol stack is successfully registered on the network, a registration success message is received; and
根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。The wireless communication module is connected to the cloud server through a preset wireless communication protocol according to the registration success message.
在某些实施方案中,若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息建立所述无线通信模块与云服务器的无线通信包括:In some embodiments, 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 the wireless communication module and the wireless communication module are established based on the communication status indication message. Wireless communication of cloud servers includes:
若在所述预设定时器时间内接收到所述通信状态指示消息,发送系统在线事件;If the communication status indication message is received within the preset timer time, send a system online event;
根据所述系统在线事件确认所述终端设备处于正常工作状态;Confirm that the terminal device is in normal working condition according to the system online event;
利用协议栈基于所述通信状态指示消息进行网络注册; Utilize a protocol stack to perform network registration based on the communication status indication message;
在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol; and
在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
在某些实施方案中,通信方法还包括:In some embodiments, the communication method further includes:
将所述移动宽带模式设为所述终端设备的默认运行模式。The mobile broadband mode is set as the default operating mode of the terminal device.
另一方面,本公开涉及通信装置,包括:In another aspect, the present disclosure relates to communication devices including:
判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;A judgment module configured to judge whether the communication status indication message sent by the host side is received within the preset timer time;
第一模式运行模块,配置为若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及The first mode operation module is configured to, if the communication status indication message is received within the preset timer time, confirm that the terminal device is in a normal working state, and establish a connection between the communication status indication message and the first SIM card based on the communication status indication message. Wireless communication between the wireless communication module and the cloud server; and
第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The second mode operation module is configured 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 use the second SIM card to establish the connection between the wireless communication module and Wireless communication of the cloud server.
再一方面,本公开涉及终端设备,包括:In yet another aspect, the present disclosure relates to terminal equipment, including:
设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;以及A host side provided with an embedded controller; the embedded controller is configured to power the wireless communication module when the communication status indication message is not received within a preset timer time; and
所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The wireless communication module is configured 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, use The second SIM card establishes wireless communication between the wireless communication module and the cloud server.
又一方面,本公开涉及计算机可读存储介质,其上存储有计算机程序,其中所述计算机程序被处理器执行时实现本公开的通信方法。In yet another aspect, the present disclosure relates to a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the communication method of the present disclosure when executed by a processor.
在某些实施方案中,通过检测预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息判断终端设备的当前工作状态,并根据终端设备的当前工作状态采用不同的连接方式建立与云服务器的连接,确保终端设备在任何工作状态均保持云端连接,能 够满足用户使用需求,确保终端设备的高可用性。In some embodiments, the current working status of the terminal device is determined by detecting whether the communication status indication message is received within the preset timer time and the communication status indication message is sent by the host side, and different methods are adopted according to the current working status of the terminal device. The connection method establishes a connection with the cloud server to ensure that the terminal device remains connected to the cloud in any working state. Sufficient to meet user needs and ensure high availability of terminal equipment.
附图简要说明Brief description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present disclosure, and are not useful in this field. Ordinary technicians can also obtain other drawings based on the provided drawings without exerting creative efforts.
图1为本公开一实施例所提供的通信方法的流程图;Figure 1 is a flow chart of a communication method provided by an embodiment of the present disclosure;
图2为本公开一实施例所提供的无线通信模块在MBB模式的通信过程示意图;Figure 2 is a schematic diagram of the communication process of the wireless communication module in MBB mode provided by an embodiment of the present disclosure;
图3为本公开一实施例所提供的无线通信模块在IoT模式的通信过程示意图;以及Figure 3 is a schematic diagram of the communication process of the wireless communication module in IoT mode provided by an embodiment of the present disclosure; and
图4为本公开一实施例所提供的通信装置的结构示意图。FIG. 4 is a schematic structural diagram of a communication device provided by an embodiment of the present disclosure.
详述Elaborate
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments These are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this disclosure.
请参考图1,图1为本公开一实施例所提供的通信方法的流程图,该方法包括:Please refer to Figure 1, which is a flow chart of a communication method provided by an embodiment of the present disclosure. The method includes:
S101:判断在预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息;S101: Determine whether the communication status indication message sent by the host side is received within the preset timer time;
S102:若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及S102: If the communication status indication message is received within the preset timer time, confirm that the terminal device is in a normal working state, and establish the wireless communication module and the first SIM card based on the communication status indication message and the first SIM card. Wireless communication of cloud servers; and
S103:若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述 无线通信模块与所述云服务器的无线通信。S103: If the communication status indication message is not received within the preset timer time, confirm that the terminal device is in an offline working state, and use the second SIM card to establish the Wireless communication between the wireless communication module and the cloud server.
本公开实施例可以应用于包含无线通信模块的终端设备,该通信状态指示消息可以用于指示当前终端设备的通信状态或者所处的通信状态。在此对于该通信状态指示消息的具体类型和内容不作限定。在某些实施方案中,可以采用MBIM消息,MBIM信息指Mobile Broadband Interface Model(移动宽带接口模型)消息,可以用来反馈移动通信状态。步骤S101可以在任意时刻执行,从而对终端设备进行检测,以调整终端设备的工作状态。Embodiments of the present disclosure may be applied to terminal devices including wireless communication modules, and the communication status indication message may be used to indicate the current communication status or communication status of the terminal device. The specific type and content of the communication status indication message are not limited here. In some implementations, MBIM messages may be used. MBIM messages refer to Mobile Broadband Interface Model messages and may be used to feedback mobile communication status. Step S101 can be executed at any time to detect the terminal device and adjust the working status of the terminal device.
在此对于预设定时器时间不作限定,其可以由本领域技术人员设定,例如为1分钟、3分钟等等。当然,步骤S101默认在执行步骤S101前可由本领域技术人员对该预设定时器时间进行设置。The preset timer time is not limited here. It can be set by those skilled in the art, such as 1 minute, 3 minutes, etc. Of course, by default in step S101, the preset timer time can be set by those skilled in the art before executing step S101.
在步骤S101中,需要对预设定时器时间对判断是否接收到的通信状态指示消息主机侧下发的通信状态指示消息,该过程的执行主体可以为终端设备中与通信方式相关的模块,例如无线通信模块,或者通信模块的控制模块等等。In step S101, it is necessary to judge whether the communication status indication message received by the host side is a communication status indication message sent by the host side according to the preset timer time. The execution subject of this process may be a module related to the communication mode in the terminal device, for example Wireless communication module, or control module of communication module, etc.
在步骤S102中,若在所述预设定时器时间内接收到所述通信状态指示消息,即确定终端设备处于移动宽带连接过程中,则终端设备处于正常工作状态,此时可以直接根据通信状态指示消息建立无线通信。In step S102, 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, and the terminal device is in a normal working state. At this time, the communication status can be directly determined according to the communication status. Instruction message to establish wireless communication.
在建立无线通信的过程中,可以包括注网过程和拨号连接等过程。The process of establishing wireless communication may include processes such as network registration and dial-up connection.
在某些实施方案中,一种可行的执行方式如下:In some embodiments, one possible implementation is as follows:
S102A:若在所述预设定时器时间内接收到所述通信状态指示消息,发送系统在线事件;S102A: If the communication status indication message is received within the preset timer time, send a system online event;
S102B:根据所述系统在线事件确认所述终端设备处于正常工作状态;S102B: Confirm that the terminal device is in normal working status according to the system online event;
S102C:利用协议栈基于所述通信状态指示消息进行网络注册;S102C: Use the protocol stack to perform network registration based on the communication status indication message;
S102D:在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;S102D: After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol;
S102E:在所述拨号连接成功后,建立所述无线通信模块与云服务器的无线通信。S102E: After the dial-up connection is successful, establish wireless communication between the wireless communication module and the cloud server.
上述过程中,以无线通信模块为执行主体为例,在终端设备上电 启动后,若在预设定时器时间内若接收到通信状态指示消息,可以得到包含注网Register,拨号连接等控制消息,将这些控制信息发送至协议栈以实现无线网络连接。In the above process, taking the wireless communication module as the execution subject as an example, when the terminal device is powered on After startup, 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 messages are sent to the protocol stack to realize wireless network connection.
此时无线通信模块可以发送系统在线事件至终端设备中配置为执行设备模式管理的设备模式管理子功能,设备模式管理子功能接收到系统在线事件后,确认无线通信模块处于在线状态,可以采用移动宽带模式运行。At this time, the wireless communication module can send system online events to the device mode management sub-function configured to perform device mode management in the terminal device. After receiving the system online event, the device mode management sub-function confirms that the wireless communication module is online and can use mobile Operates in broadband mode.
协议栈接收到控制信息后,需要执行注网,并执行拨号连接,在注网成功后,会接收到注网成功消息。此时,可以将无线通信模块作为MQTT客户端,以便采用MQTT协议发起至云服务器的拨号连接,在拨号连接建立后,无线通信模块将与云服务器建立无线通信连接。MQTT客户端是应用MQTT协议的通信端,MQTT协议为Message Queuing Telemetry Transport,即消息队列遥测传输,是一种基于客户端-服务器的消息发布/订阅传输协议。After the protocol stack receives the control information, it needs to perform network registration and dial-up connection. After the network registration is successful, a network registration 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 a communication end that applies the MQTT protocol. The MQTT protocol is Message Queuing Telemetry Transport, which is a message publishing/subscription transmission protocol based on client-server.
当然,在实际执行无线通信模块与云服务器的无线通信时,本领域技术人员还可以参考上述过程采用其他协议,在此不一一举例限定。Of course, when actually performing wireless communication between the wireless communication module and the cloud server, those skilled in the art can also refer to the above process and adopt other protocols, which are not limited to examples here.
一旦在预设定时器时间内未接收到通信状态指示消息,表明此时终端设备未执行移动宽带连接,则终端设备处于离线工作状态。需要注意的是,该离线工作状态指在预设定时器时间内未接收到通信状态指示消息时所视为的终端设备的运行状态,并不代表终端设备当前真实的运行状态。通常该离线工作状态为终端设备进行休眠或者关机状态,此时终端设备的硬件处于断电状态,则相应的无线通信模块也处于断电状态,此时诊断设备处于离线工作状态。Once the communication status indication message is not received within the preset timer time, it indicates that the terminal device does not perform 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 considered when no communication status indication message is received within the preset timer time, and does not represent the current actual operating state of the terminal device. Usually, the offline working state is when the terminal device is in a 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.
在步骤S103中,在终端设备处于离线工作状态时,利用第二SIM卡建立无线通信模块与云服务器的无线通信。在此对于第二SIM卡不作具体限定,其余第一SIM卡为在不同通信模式中应用的SIM卡。一种优选的执行方式中,该第二SIM卡可以为内置eSIM卡。在利用第二SIM卡建立与云服务器的无线通信时,可以应用各种IoT协议。需要说明的是,在任意时刻仅能有一张SIM卡处于工作状态。In step S103, 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. There is no specific limitation on the second SIM card here, and the remaining first SIM cards are SIM cards used in different communication modes. In a preferred implementation manner, the second SIM card may be a built-in eSIM card. When establishing wireless communication with the cloud server using the second SIM card, various IoT protocols can be applied. It should be noted that only one SIM card can be working at any time.
在某些实施方案中,以Windows操作系统为例说明,Windows操 作系统的无线网络连接基于DSSA(Dual SIM Single Active,双卡单激活)方式,无线通信模块同样基于DSSA方式,即Windows OS和无线通信模块都是基于双卡单待方式工作,此时双卡可以采用终端设备外置的USIM卡和无线通信模块内置的eSIM卡。In some embodiments, taking the Windows operating system as an example, the Windows operating system The wireless network connection of the operating system is based on the DSSA (Dual SIM Single Active, dual SIM Single Active) method, and the wireless communication module is also based on the DSSA method, that is, both the Windows OS and the wireless communication module work based on the dual SIM single standby mode. At this time, the dual SIM The USIM card external to the terminal device and the eSIM card built into the wireless communication module can be used.
若执行步骤S103之前,还可以先通过集成在终端设备主机侧上的嵌入式控制器为无线通信模块供电,并将终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。Before performing step S103, you can also power the wireless communication module through the 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 change the currently applied The SIM card is switched from the first SIM card to the second SIM card.
此外,也可以通过事件确认无线通信模块的状态。在某些实施方案中,可以生成系统离线事件,一旦接收到系统离线事件,则可以确定无线通信模块处于离线状态。从而可以切换终端设备的运行模式,并切换应用的SIM卡。In addition, the status of the wireless communication module can also be confirmed through events. In some implementations, a system offline event may be generated, and upon receipt of the system offline event, it may be determined that the wireless communication module is in an offline state. This allows you to switch the operating mode of the terminal device and switch the applied SIM card.
此后可以激活所述第二SIM卡的预置文件,利用预置文件执行网络注册流程,并在网络注册成功后建立网络连接。Thereafter, the preset file of the second SIM card can be activated, the preset file can be used to perform the network registration process, and a network connection can be established after successful network registration.
在此对于如何利用预置文件执行网络注册流程不作限定,其可以包括如下步骤:There is no limit on how to use the preset file to perform the network registration process, which may include the following steps:
基于预置文件向协议栈发送网络注册请求;Send a network registration request to the protocol stack based on the preconfigured file;
在协议栈注网成功后,接收到注册成功消息;以及After the protocol stack is successfully registered in the network, a registration success message is received; and
根据注册成功消息将无线通信模块通过预设无线通信协议连接至云服务器。According to the registration success message, the wireless communication module is connected to the cloud server through the preset wireless communication protocol.
由上述过程可以看出,同样可以借助协议栈进行注网,同时在注网成功后,将无线通信模块作为MQTT客户端并基于MQTT协议发起至云服务器的拨号连接,以实现终端设备的IoT应用。As can be seen from the above process, the protocol stack can also be used to perform network registration. At the same time, after the network registration is successful, the wireless communication module is used as an MQTT client and initiates a dial-up connection to the cloud server based on the MQTT protocol to implement IoT applications for terminal devices. .
为了便于终端设备使用,可以将终端设备的移动宽带模式设为默认运行模式。如此在终端设备正常运行时,默认采用移动宽带模式,一旦检测到预设定时器时间内未接收到通信状态指示消息,可以切换至离线工作状态,进入IoT模式。In order to facilitate the use of the terminal device, the mobile broadband mode of the terminal device can be set as the default operating mode. In this way, when the terminal device is running normally, the mobile broadband mode is adopted by default. Once it is detected that the communication status indication message is not received within the preset timer time, it can be switched to the offline working state and enter the IoT mode.
本公开实施例可以通过检测预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息判断终端设备的当前工作状态,并根据终端设备的当前工作状态采用不同的连接方式建立与云 服务器的连接,确保终端设备在任何工作状态均保持云端连接,能够满足用户使用需求,确保终端设备的高可用性。Embodiments of the present disclosure 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 the preset timer, and adopt different connection methods according to the current working status of the terminal device. Build with the cloud The connection to the server ensures that the terminal device remains connected to the cloud in any working state, meeting user needs and ensuring high availability of the terminal device.
请参见图2,图2为本公开一实施例所提供的终端设备在MBB模式的通信过程示意图,该过程为在MBB模式下的通信过程,以通信过程中涉及的子功能和具体的组件对具体的通信过程进行描述,可以包括:Please refer to Figure 2. Figure 2 is a schematic diagram of the communication process of the terminal device in the MBB mode provided by an embodiment of the present disclosure. This process is the communication process in the MBB mode, and is divided into sub-functions and specific components involved in the communication process. Describe the specific communication process, which may include:
终端设备上电启动后,无线通信模块将会接收到通信状态指示消息主机侧下发的通信状态指示消息,包括注网Register,拨号Connect等控制消息,无线通信模块的通信状态指示消息处理(MBIM Message Handler)子功能将控制消息发送给协议栈(Cellular Protocol Stack)以建立无线网络连接;After the terminal device is powered on and started, the wireless communication module will receive the communication status indication message sent by the host side, including network registration Register, dial-up Connect and other control messages, the wireless communication module's communication status indication message processing (MBIM Message Handler) sub-function sends control messages to the Cellular Protocol Stack to establish a wireless network connection;
通信状态指示消息处理子功能接收到通信状态指示消息,将给设备模式管理(Device Mode Manager)子功能发送系统在线事件;When the communication status indication message processing sub-function receives the communication status indication message, it will send a system online event to the device mode management (Device Mode Manager) sub-function;
终端设备启动后,设备模式管理子功能默认为MBB模式,接收到系统在线事件,确认无线通信模块处于在线状态,保持默认的MBB模式;After the terminal device is started, the device mode management sub-function defaults to MBB mode. After receiving the system online event, it confirms that the wireless communication module is online and maintains the default MBB mode;
协议栈基于通信状态指示消息的控制流程注网成功后,拨号连接管理(Connection Manager)子功能会接收到注网成功的消息;The control process of the protocol stack is based on the communication status indication message. After the network injection is successful, the dial-up connection management (Connection Manager) sub-function will receive the network injection success message;
拨号连接管理子功能接收到注网成功的消息,将无线通信模块作为MQTT客户端(MQTT Client),利用第一SIM卡基于MQTT协议发起到云服务器(Cloud Server)的拨号连接;以及The dial-up connection management sub-function receives the message that the network registration is successful, uses the wireless communication module as the MQTT client (MQTT Client), and uses the first SIM card to initiate a dial-up connection to the cloud server (Cloud Server) based on the MQTT protocol; and
拨号连接建立后,无线通信模块与云服务器建立无线通信连接。After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
请参见图3,图3为本公开一实施例所提供的终端设备在IoT模式的通信过程示意图,该过程为在IoT模式下的通信过程,以通信过程中涉及的子功能和具体的组件对具体的通信过程进行描述,可以包括:Please refer to Figure 3. Figure 3 is a schematic diagram of the communication process of the terminal device in the IoT mode provided by an embodiment of the present disclosure. This process is the communication process in the IoT mode, with the sub-functions and specific components involved in the communication process. Describe the specific communication process, which may include:
无线通信模块上电启动后,通信状态指示消息处理(MBIM Message Handler)子功能定时器超时仍未接收到任何通信状态指示消息,将确认当前终端设备处于休眠/关机状态,所以发送系统离线事件给设备模式管理(Device Mode Manager)子功能; After the wireless communication module is powered on and started, if the communication status indication message processing (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 the sleep/shutdown state, so the system offline event is sent to Device Mode Manager sub-function;
无线通信模块模块启动,设备模式管理默认为MBB模式,接收到系统离线事件,判断无线通信模块处于系统离线状态,将自动切换到IoT模式,包括提供业务的SIM由第一SIM卡切换为第二SIM卡,并激活第二SIM卡的预置文件;例如可以从USIM切换至内置eSIM卡,并激活eSIM卡内容的预置文件;The wireless communication module module is started, and the device mode management defaults to MBB mode. After receiving the system offline event, it is judged that the wireless communication module is in the system offline state, and will automatically switch to the IoT mode, including switching the SIM card providing the service from the first SIM card to the second SIM card. SIM card, and activate the preset file of the second SIM card; for example, you can switch from USIM to the built-in eSIM card, and activate the preset file of the eSIM card content;
激活第二SIM卡的预置文件后,将使用该预置文件发起注网流程,设备模式管理子功能将给协议栈(Cellular Protocol Stack)发送注网请求消息;After activating the preset file of the second SIM card, the preset file will be used to initiate the network registration process, and the device mode management sub-function will send a network registration request message to the Cellular Protocol Stack;
协议栈注网成功后,拨号连接管理(Connection Manager)子功能会接收到注网成功的消息;After the protocol stack is successfully registered, the dial-up connection management (Connection Manager) sub-function will receive a successful network registration message;
拨号连接管理子功能接收到注网成功的消息,将无线通信模块作为(MQTT Client),利用第二SIM卡基于MQTT协议发起到云服务器(Cloud Server)的拨号连接;以及The dial-up connection management sub-function receives the message of successful network registration, uses the wireless communication module as (MQTT Client), and uses the second SIM card to initiate a dial-up connection to the cloud server (Cloud Server) based on the MQTT protocol; and
拨号连接建立后,无线通信模块与云服务器建立无线通信连接。After the dial-up connection is established, the wireless communication module establishes a wireless communication connection with the cloud server.
下文对本公开涉及的终端设备进行描述,本公开还提供了终端设备,包括:The terminal equipment involved in the present disclosure is described below. The present disclosure also provides terminal equipment, including:
设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;以及A host side provided with an embedded controller; the embedded controller is configured to power the wireless communication module when the communication status indication message is not received within a preset timer time; and
所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The wireless communication module is configured 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, use The second SIM card establishes wireless communication between the wireless communication module and the cloud server.
在终端设备的正常运行情况下,由终端设备内部包含的电池为终端设备供电,一旦在预设定时器时间内未接收到通信状态指示消息时,表明此时终端设备可能处于休眠或者关机状态,此时利用嵌入式控制器为无线通信模块供电,以实现无线通信模块与云服务器的无线通信。同时由于原先的第一SIM卡已经断电,此时直接利用第二SIM卡,例如无线通信模块中的内置eSIM卡进行通信,如此使得终端设备能够保持与云服务器的通信,便于终端设备在不同工作状态下进行通信模 式的切换。Under normal operation of the terminal device, the battery contained in the terminal device supplies power to the terminal device. Once the communication status indication message is not received within the preset timer, it indicates that the terminal device may be in a sleep or shutdown state at this time. At this time, the embedded controller is used to power the wireless communication module to realize 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. This allows the terminal device to maintain communication with the cloud server and facilitates the terminal device to communicate with the cloud server at different times. Communication mode under working condition style switching.
下面对本公开涉及的通信装置进行介绍,下文描述的通信装置与上文描述的通信方法可相互对应参照。The communication device involved in the present disclosure will be introduced below. The communication device described below and the communication method described above may be mutually referenced.
本公开还提供了通信装置,所述终端设备包括无线通信模块,包括:The present disclosure also provides a communication device. The terminal device includes a wireless communication module, including:
判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;A judgment module configured to judge whether the communication status indication message sent by the host side is received within the preset timer time;
第一模式运行模块,配置为若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及The first mode operation module is configured to, if the communication status indication message is received within the preset timer time, confirm that the terminal device is in a normal working state, and establish a connection between the communication status indication message and the first SIM card based on the communication status indication message. Wireless communication between the wireless communication module and the cloud server; and
第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The second mode operation module is configured 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 use the second SIM card to establish the connection between the wireless communication module and Wireless communication of the cloud server.
在某些实施方案中,通信装置还包括:In some embodiments, the communication device further includes:
供电切换模块,配置为通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。A power supply switching module configured to provide power to 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 change the current operating mode of the terminal device to the IoT mode. The applied SIM card is switched from the first SIM card to the second SIM card.
在某些实施方案中,通信装置还包括:In some embodiments, the communication device further includes:
离线处置模块,配置为生成系统离线事件;根据所述系统离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。An offline processing module configured to generate a system offline event; determine that the wireless communication module is in an offline state according to the system offline event, in order to perform the switching of the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and Steps to switch the currently used SIM card from the first SIM card to the second SIM card.
在某些实施方案中,通信装置还包括:In certain embodiments, the communication device further includes:
注网模块,配置为激活所述第二SIM卡的预置文件;利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。The network registration module is configured 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.
在某些实施方案中,注网模块包括:In some embodiments, the network injection module includes:
请求发送单元,配置为基于所述预置文件向协议栈发送网络注册请求; A request sending unit configured to send a network registration request to the protocol stack based on the preconfigured file;
消息接收单元,配置为在所述协议栈注网成功后,接收到注册成功消息;以及A message receiving unit configured to receive a registration success message after the protocol stack is successfully registered in the network; and
网络连接单元,配置为根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。A network connection unit configured to connect the wireless communication module to the cloud server through a preset wireless communication protocol according to the registration success message.
在某些实施方案中,移动宽带模式运行模块为配置为执行如下步骤的模块:In some embodiments, the mobile broadband mode operation module is a module configured to perform the following steps:
若在所述预设定时器时间内接收到所述通信状态指示消息,发送系统在线事件;If the communication status indication message is received within the preset timer time, send a system online event;
根据所述系统在线事件确认所述终端设备处于正常工作状态;Confirm that the terminal device is in normal working condition according to the system online event;
利用协议栈基于所述通信状态指示消息进行网络注册;Utilize a protocol stack to perform network registration based on the communication status indication message;
在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol; and
在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
在某些实施方案中,通信装置还包括:In some embodiments, the communication device further includes:
运行模式设定模块,配置为将所述移动宽带模式设为所述终端设备的默认运行模式。An operating mode setting module is configured to set the mobile broadband mode as the default operating mode of the terminal device.
本公开还提供了计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现本公开的通信方法。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the communication method of the present disclosure can be implemented. The storage medium can include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program code.
本公开还提供了服务器,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现本公开的通信方法。当然所述服务器还可以包括各种网络接口,电源等组件。The present disclosure also provides a server, which may include a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the communication method of the present disclosure can be implemented. Of course, the server may also include various network interfaces, power supplies and other components.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例提供的系统而言,由于其与实施例提供的方法 相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it is consistent with the method provided in the embodiment Correspondingly, the description is relatively simple. For relevant information, please refer to the method section.
本公开中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以对本公开进行若干改进和修饰,这些改进和修饰也落入本公开权利要求的保护范围内。This disclosure uses specific examples to illustrate the principles and implementations of the present disclosure. The description of the above embodiments is only used to help understand the methods and core ideas of the present disclosure. It should be noted that for those of ordinary skill in the art, several improvements and modifications can be made to the present disclosure without departing from the principles of the present disclosure, and these improvements and modifications also fall within the protection scope of the claims of the present disclosure.
还需要说明的是,在本公开书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。 It should also be noted that in this disclosure, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises,""comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

Claims (10)

  1. 通信方法,应用于终端设备的无线通信模块,包括:Communication method, applied to a wireless communication module of a terminal device, including:
    判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;Determine whether the communication status indication message sent by the host side is received within the preset timer time;
    若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及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 the wireless communication module and the cloud server are established based on the communication status indication message and the first SIM card. wireless communications; and
    若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。If the communication status indication message is not received within the preset timer time, confirm that the terminal device is in an offline working state, and use the second SIM card to establish wireless communication between the wireless communication module and the cloud server.
  2. 如权利要求1所述的通信方法,其中确认所述终端设备处于离线工作状态后,所述通信方法还包括:The communication method according to claim 1, wherein after confirming that the terminal device is in an offline working state, the communication method further includes:
    通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;以及Powering the wireless communication module through an embedded controller integrated on the host side of the terminal device; and
    将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。Switch the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently applied SIM card from the first SIM card to the second SIM card.
  3. 如权利要求2所述的通信方法,其中通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电之后,所述通信方法还包括:The communication method according to claim 2, wherein after powering the wireless communication module through an embedded controller integrated on the host side of the terminal device, the communication method further includes:
    生成系统离线事件;以及Generate system offline events; and
    根据所述系统离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。Determine that the wireless communication module is in an offline state according to the system offline event, in order to perform the switching of the current operating mode of the terminal device from the mobile broadband mode to the IoT mode, and switch the currently applied SIM card from the first SIM card to the IoT mode. Steps to switch to a second SIM card.
  4. 如权利要求3所述的通信方法,其中将当前应用的SIM卡由第一SIM卡切换至第二SIM卡之后,所述通信方法还包括:The communication method according to claim 3, wherein after switching the currently applied SIM card from the first SIM card to the second SIM card, the communication method further includes:
    激活所述第二SIM卡的预置文件;以及 Activating the profile of the second SIM card; and
    利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。Use the preset file to execute the network registration process, and establish a network connection after successful network registration.
  5. 如权利要求4所述的通信方法,其中利用所述预置文件执行网络注册流程包括:The communication method according to claim 4, wherein using the preset file to perform a network registration process includes:
    基于所述预置文件向协议栈发送网络注册请求;Send a network registration request to the protocol stack based on the preset file;
    在所述协议栈注网成功后,接收到注册成功消息;以及After the protocol stack is successfully registered on the network, a registration success message is received; and
    根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。The wireless communication module is connected to the cloud server through a preset wireless communication protocol according to the registration success message.
  6. 如权利要求1至5中任一权利要求所述的通信方法,其中若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息建立所述无线通信模块与云服务器的无线通信包括:The communication method according to any one of claims 1 to 5, wherein 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, based on the The communication status indication message establishing wireless communication between the wireless communication module and the cloud server includes:
    若在所述预设定时器时间内接收到所述通信状态指示消息,发送系统在线事件;If the communication status indication message is received within the preset timer time, send a system online event;
    根据所述系统在线事件确认所述终端设备处于正常工作状态;Confirm that the terminal device is in normal working condition according to the system online event;
    利用协议栈基于所述通信状态指示消息进行网络注册;Using a protocol stack to perform network registration based on the communication status indication message;
    在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及After successful network registration, use the wireless communication module as an MQTT client and initiate a dial-up connection to the cloud server based on the MQTT protocol; and
    在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。After the dial-up connection is successful, wireless communication between the wireless communication module and the cloud server is established.
  7. 如权利要求1至6中任一权利要求所述的通信方法,其还包括:The communication method according to any one of claims 1 to 6, further comprising:
    将所述移动宽带模式设为所述终端设备的默认运行模式。The mobile broadband mode is set as the default operating mode of the terminal device.
  8. 通信装置,包括:Communication devices, including:
    判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;A judgment module configured to judge whether the communication status indication message sent by the host side is received within the preset timer time;
    第一模式运行模块,配置为若在所述预设定时器时间内接收到所 述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及The first mode operation module is configured to: if all signals are received within the preset timer time, The communication status indication message confirms that the terminal device is in a normal working state, and establishes wireless communication between the wireless communication module and the cloud server based on the communication status indication message and the first SIM card; and
    第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The second mode operation module is configured 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 use the second SIM card to establish the connection between the wireless communication module and Wireless communication of the cloud server.
  9. 终端设备,包括:Terminal equipment, including:
    设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;A host side provided with an embedded controller; the embedded controller is configured to power the wireless communication module when the communication status indication message is not received within a preset timer time;
    所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。The wireless communication module is configured 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, use The second SIM card establishes wireless communication between the wireless communication module and the cloud server.
  10. 计算机可读存储介质,其上存储有计算机程序,其中所述计算机程序被处理器执行时实现权利要求1至7中任一权利要求所述的通信方法。 A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the communication method described in any one of claims 1 to 7 when executed by a processor.
PCT/CN2023/111676 2022-08-29 2023-08-08 Communication method and apparatus, storage medium and terminal device WO2024046049A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211041905.4 2022-08-29
CN202211041905.4A CN115413015A (en) 2022-08-29 2022-08-29 Communication method, device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
WO2024046049A1 true WO2024046049A1 (en) 2024-03-07

Family

ID=84162636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/111676 WO2024046049A1 (en) 2022-08-29 2023-08-08 Communication method and apparatus, storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN115413015A (en)
WO (1) WO2024046049A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115413015A (en) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 Communication method, device, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2362697A1 (en) * 2010-02-15 2011-08-31 Alcatel Lucent Power saving
CN102970775A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and SIM (subscriber identity module) card status switching method
CN112994971A (en) * 2021-02-01 2021-06-18 阳光电源(南京)有限公司 Equipment offline monitoring method based on cloud server and related device
CN115413015A (en) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 Communication method, device, storage medium and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2362697A1 (en) * 2010-02-15 2011-08-31 Alcatel Lucent Power saving
CN102970775A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Mobile terminal and SIM (subscriber identity module) card status switching method
CN112994971A (en) * 2021-02-01 2021-06-18 阳光电源(南京)有限公司 Equipment offline monitoring method based on cloud server and related device
CN115413015A (en) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 Communication method, device, storage medium and terminal equipment

Also Published As

Publication number Publication date
CN115413015A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
EP2645636B1 (en) Home gateway, cloud server, and method for communication therebetween
JP4122341B2 (en) System and method for session resetting between client terminal device and server
WO2024046049A1 (en) Communication method and apparatus, storage medium and terminal device
CN105095022B (en) Data backup method and device
US7882255B2 (en) Method and apparatus for maintaining local area network (“LAN”) and wireless LAN (“WLAN”) security associations
US11895364B2 (en) Bluetooth connection method and television
US11658870B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
WO2014086139A1 (en) Method and device for controlling shutdown of terminal
EP3197170B1 (en) Multimedia processing device, multimedia processing server and method therefor
EP3016448A1 (en) Method for keeping remote connection, electronic device and server
CN110012527B (en) Awakening method and electronic equipment
WO2020043006A1 (en) Terminal connection restoration method and apparatus
US6360267B1 (en) Communication control apparatus, method, and computer readable storage medium for determining a relay apparatus on information
JP2003044288A (en) Information processor, information processing system and program
US20170177058A1 (en) Communicating commands to an embedded controller of a system
JP2000505273A (en) Control and activation device for personal computer
CN113596197B (en) Address switching method and device, electronic equipment and storage medium
CN215867831U (en) Dormancy awakening device and NAS storage system
WO2023098055A1 (en) Low-power-consumption mode starting method and apparatus, storage medium, and electronic apparatus
CN113709142B (en) Hot spot distribution network method and device, intelligent terminal and storage medium
KR20160070726A (en) System for providing contents in virtualization service
US11652944B2 (en) Information processing apparatus, system, method for information processing apparatus, and storage medium for displaying a screen that corresponds to a screen of an image processing apparatus
CN114070884A (en) Remote management method, remote management equipment, module and readable storage medium
CN113364979A (en) Method and system for remote control of devices, server, client device, and medium
JP4260842B2 (en) Information terminal device, electronic conference system, communication setting method, and communication setting program