WO2024046049A1 - 通信方法、装置、存储介质和终端设备 - Google Patents

通信方法、装置、存储介质和终端设备 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
English (en)
French (fr)
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/zh

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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

公开了通信方法、装置、存储介质和终端设备。该通信方法,应用于终端设备的无线通信模块,包括:判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;若在预设定时器时间内接收到通信状态指示消息,确认终端设备处于正常工作状态,基于通信状态指示消息和第一SIM卡建立无线通信模块与云服务器的无线通信;若在预设定时器时间内未接收到通信状态指示消息,确认终端设备处于离线工作状态,利用第二SIM卡建立无线通信模块与云服务器的无线通信。

Description

通信方法、装置、存储介质和终端设备
相关申请的引用
本公开要求于2022年8月29日向中华人民共和国国家知识产权局提交的申请号为202211041905.4、发明名称为“一种通信方法、装置、存储介质和终端设备”的中国发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。
领域
本公开大体上涉及无线通信技术领域,更具体地涉及通信方法、***、存储介质和终端设备。
背景
当前,笔记本电脑中的无线通信模块均基于MBB(Mobile Broadband,移动宽带)模式提供无线通信服务,但一旦笔记本电脑进入休眠、或者关机、状态,PC整机所有的硬件,包括WWAN模块,都已经断电,对应的无线通信服务也会断开,PC所有的网络连接都会断开,给用户使用造成不便。
概述
一方面,本公开涉及通信方法,应用于终端设备的无线通信模块,包括:
判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;
若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
在某些实施方案中,确认所述终端设备处于离线工作状态后,通信方法还包括:
通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;以及
将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。
在某些实施方案中,通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电之后,通信方法还包括:
生成***离线事件;以及
根据所述***离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。
在某些实施方案中,将当前应用的SIM卡由第一SIM卡切换至第二SIM卡之后,通信方法还包括:
激活所述第二SIM卡的预置文件;以及
利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。
在某些实施方案中,利用所述预置文件执行网络注册流程包括:
基于所述预置文件向协议栈发送网络注册请求;
在所述协议栈注网成功后,接收到注册成功消息;以及
根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。
在某些实施方案中,若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息建立所述无线通信模块与云服务器的无线通信包括:
若在所述预设定时器时间内接收到所述通信状态指示消息,发送***在线事件;
根据所述***在线事件确认所述终端设备处于正常工作状态;
利用协议栈基于所述通信状态指示消息进行网络注册;
在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及
在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。
在某些实施方案中,通信方法还包括:
将所述移动宽带模式设为所述终端设备的默认运行模式。
另一方面,本公开涉及通信装置,包括:
判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;
第一模式运行模块,配置为若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
再一方面,本公开涉及终端设备,包括:
设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;以及
所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
又一方面,本公开涉及计算机可读存储介质,其上存储有计算机程序,其中所述计算机程序被处理器执行时实现本公开的通信方法。
在某些实施方案中,通过检测预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息判断终端设备的当前工作状态,并根据终端设备的当前工作状态采用不同的连接方式建立与云服务器的连接,确保终端设备在任何工作状态均保持云端连接,能 够满足用户使用需求,确保终端设备的高可用性。
附图简要说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本公开一实施例所提供的通信方法的流程图;
图2为本公开一实施例所提供的无线通信模块在MBB模式的通信过程示意图;
图3为本公开一实施例所提供的无线通信模块在IoT模式的通信过程示意图;以及
图4为本公开一实施例所提供的通信装置的结构示意图。
详述
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
请参考图1,图1为本公开一实施例所提供的通信方法的流程图,该方法包括:
S101:判断在预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息;
S102:若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
S103:若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述 无线通信模块与所述云服务器的无线通信。
本公开实施例可以应用于包含无线通信模块的终端设备,该通信状态指示消息可以用于指示当前终端设备的通信状态或者所处的通信状态。在此对于该通信状态指示消息的具体类型和内容不作限定。在某些实施方案中,可以采用MBIM消息,MBIM信息指Mobile Broadband Interface Model(移动宽带接口模型)消息,可以用来反馈移动通信状态。步骤S101可以在任意时刻执行,从而对终端设备进行检测,以调整终端设备的工作状态。
在此对于预设定时器时间不作限定,其可以由本领域技术人员设定,例如为1分钟、3分钟等等。当然,步骤S101默认在执行步骤S101前可由本领域技术人员对该预设定时器时间进行设置。
在步骤S101中,需要对预设定时器时间对判断是否接收到的通信状态指示消息主机侧下发的通信状态指示消息,该过程的执行主体可以为终端设备中与通信方式相关的模块,例如无线通信模块,或者通信模块的控制模块等等。
在步骤S102中,若在所述预设定时器时间内接收到所述通信状态指示消息,即确定终端设备处于移动宽带连接过程中,则终端设备处于正常工作状态,此时可以直接根据通信状态指示消息建立无线通信。
在建立无线通信的过程中,可以包括注网过程和拨号连接等过程。
在某些实施方案中,一种可行的执行方式如下:
S102A:若在所述预设定时器时间内接收到所述通信状态指示消息,发送***在线事件;
S102B:根据所述***在线事件确认所述终端设备处于正常工作状态;
S102C:利用协议栈基于所述通信状态指示消息进行网络注册;
S102D:在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;
S102E:在所述拨号连接成功后,建立所述无线通信模块与云服务器的无线通信。
上述过程中,以无线通信模块为执行主体为例,在终端设备上电 启动后,若在预设定时器时间内若接收到通信状态指示消息,可以得到包含注网Register,拨号连接等控制消息,将这些控制信息发送至协议栈以实现无线网络连接。
此时无线通信模块可以发送***在线事件至终端设备中配置为执行设备模式管理的设备模式管理子功能,设备模式管理子功能接收到***在线事件后,确认无线通信模块处于在线状态,可以采用移动宽带模式运行。
协议栈接收到控制信息后,需要执行注网,并执行拨号连接,在注网成功后,会接收到注网成功消息。此时,可以将无线通信模块作为MQTT客户端,以便采用MQTT协议发起至云服务器的拨号连接,在拨号连接建立后,无线通信模块将与云服务器建立无线通信连接。MQTT客户端是应用MQTT协议的通信端,MQTT协议为Message Queuing Telemetry Transport,即消息队列遥测传输,是一种基于客户端-服务器的消息发布/订阅传输协议。
当然,在实际执行无线通信模块与云服务器的无线通信时,本领域技术人员还可以参考上述过程采用其他协议,在此不一一举例限定。
一旦在预设定时器时间内未接收到通信状态指示消息,表明此时终端设备未执行移动宽带连接,则终端设备处于离线工作状态。需要注意的是,该离线工作状态指在预设定时器时间内未接收到通信状态指示消息时所视为的终端设备的运行状态,并不代表终端设备当前真实的运行状态。通常该离线工作状态为终端设备进行休眠或者关机状态,此时终端设备的硬件处于断电状态,则相应的无线通信模块也处于断电状态,此时诊断设备处于离线工作状态。
在步骤S103中,在终端设备处于离线工作状态时,利用第二SIM卡建立无线通信模块与云服务器的无线通信。在此对于第二SIM卡不作具体限定,其余第一SIM卡为在不同通信模式中应用的SIM卡。一种优选的执行方式中,该第二SIM卡可以为内置eSIM卡。在利用第二SIM卡建立与云服务器的无线通信时,可以应用各种IoT协议。需要说明的是,在任意时刻仅能有一张SIM卡处于工作状态。
在某些实施方案中,以Windows操作***为例说明,Windows操 作***的无线网络连接基于DSSA(Dual SIM Single Active,双卡单激活)方式,无线通信模块同样基于DSSA方式,即Windows OS和无线通信模块都是基于双卡单待方式工作,此时双卡可以采用终端设备外置的USIM卡和无线通信模块内置的eSIM卡。
若执行步骤S103之前,还可以先通过集成在终端设备主机侧上的嵌入式控制器为无线通信模块供电,并将终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。
此外,也可以通过事件确认无线通信模块的状态。在某些实施方案中,可以生成***离线事件,一旦接收到***离线事件,则可以确定无线通信模块处于离线状态。从而可以切换终端设备的运行模式,并切换应用的SIM卡。
此后可以激活所述第二SIM卡的预置文件,利用预置文件执行网络注册流程,并在网络注册成功后建立网络连接。
在此对于如何利用预置文件执行网络注册流程不作限定,其可以包括如下步骤:
基于预置文件向协议栈发送网络注册请求;
在协议栈注网成功后,接收到注册成功消息;以及
根据注册成功消息将无线通信模块通过预设无线通信协议连接至云服务器。
由上述过程可以看出,同样可以借助协议栈进行注网,同时在注网成功后,将无线通信模块作为MQTT客户端并基于MQTT协议发起至云服务器的拨号连接,以实现终端设备的IoT应用。
为了便于终端设备使用,可以将终端设备的移动宽带模式设为默认运行模式。如此在终端设备正常运行时,默认采用移动宽带模式,一旦检测到预设定时器时间内未接收到通信状态指示消息,可以切换至离线工作状态,进入IoT模式。
本公开实施例可以通过检测预设定时器时间内是否接收到通信状态指示消息主机侧下发的通信状态指示消息判断终端设备的当前工作状态,并根据终端设备的当前工作状态采用不同的连接方式建立与云 服务器的连接,确保终端设备在任何工作状态均保持云端连接,能够满足用户使用需求,确保终端设备的高可用性。
请参见图2,图2为本公开一实施例所提供的终端设备在MBB模式的通信过程示意图,该过程为在MBB模式下的通信过程,以通信过程中涉及的子功能和具体的组件对具体的通信过程进行描述,可以包括:
终端设备上电启动后,无线通信模块将会接收到通信状态指示消息主机侧下发的通信状态指示消息,包括注网Register,拨号Connect等控制消息,无线通信模块的通信状态指示消息处理(MBIM Message Handler)子功能将控制消息发送给协议栈(Cellular Protocol Stack)以建立无线网络连接;
通信状态指示消息处理子功能接收到通信状态指示消息,将给设备模式管理(Device Mode Manager)子功能发送***在线事件;
终端设备启动后,设备模式管理子功能默认为MBB模式,接收到***在线事件,确认无线通信模块处于在线状态,保持默认的MBB模式;
协议栈基于通信状态指示消息的控制流程注网成功后,拨号连接管理(Connection Manager)子功能会接收到注网成功的消息;
拨号连接管理子功能接收到注网成功的消息,将无线通信模块作为MQTT客户端(MQTT Client),利用第一SIM卡基于MQTT协议发起到云服务器(Cloud Server)的拨号连接;以及
拨号连接建立后,无线通信模块与云服务器建立无线通信连接。
请参见图3,图3为本公开一实施例所提供的终端设备在IoT模式的通信过程示意图,该过程为在IoT模式下的通信过程,以通信过程中涉及的子功能和具体的组件对具体的通信过程进行描述,可以包括:
无线通信模块上电启动后,通信状态指示消息处理(MBIM Message Handler)子功能定时器超时仍未接收到任何通信状态指示消息,将确认当前终端设备处于休眠/关机状态,所以发送***离线事件给设备模式管理(Device Mode Manager)子功能;
无线通信模块模块启动,设备模式管理默认为MBB模式,接收到***离线事件,判断无线通信模块处于***离线状态,将自动切换到IoT模式,包括提供业务的SIM由第一SIM卡切换为第二SIM卡,并激活第二SIM卡的预置文件;例如可以从USIM切换至内置eSIM卡,并激活eSIM卡内容的预置文件;
激活第二SIM卡的预置文件后,将使用该预置文件发起注网流程,设备模式管理子功能将给协议栈(Cellular Protocol Stack)发送注网请求消息;
协议栈注网成功后,拨号连接管理(Connection Manager)子功能会接收到注网成功的消息;
拨号连接管理子功能接收到注网成功的消息,将无线通信模块作为(MQTT Client),利用第二SIM卡基于MQTT协议发起到云服务器(Cloud Server)的拨号连接;以及
拨号连接建立后,无线通信模块与云服务器建立无线通信连接。
下文对本公开涉及的终端设备进行描述,本公开还提供了终端设备,包括:
设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;以及
所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
在终端设备的正常运行情况下,由终端设备内部包含的电池为终端设备供电,一旦在预设定时器时间内未接收到通信状态指示消息时,表明此时终端设备可能处于休眠或者关机状态,此时利用嵌入式控制器为无线通信模块供电,以实现无线通信模块与云服务器的无线通信。同时由于原先的第一SIM卡已经断电,此时直接利用第二SIM卡,例如无线通信模块中的内置eSIM卡进行通信,如此使得终端设备能够保持与云服务器的通信,便于终端设备在不同工作状态下进行通信模 式的切换。
下面对本公开涉及的通信装置进行介绍,下文描述的通信装置与上文描述的通信方法可相互对应参照。
本公开还提供了通信装置,所述终端设备包括无线通信模块,包括:
判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;
第一模式运行模块,配置为若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
在某些实施方案中,通信装置还包括:
供电切换模块,配置为通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。
在某些实施方案中,通信装置还包括:
离线处置模块,配置为生成***离线事件;根据所述***离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。
在某些实施方案中,通信装置还包括:
注网模块,配置为激活所述第二SIM卡的预置文件;利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。
在某些实施方案中,注网模块包括:
请求发送单元,配置为基于所述预置文件向协议栈发送网络注册请求;
消息接收单元,配置为在所述协议栈注网成功后,接收到注册成功消息;以及
网络连接单元,配置为根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。
在某些实施方案中,移动宽带模式运行模块为配置为执行如下步骤的模块:
若在所述预设定时器时间内接收到所述通信状态指示消息,发送***在线事件;
根据所述***在线事件确认所述终端设备处于正常工作状态;
利用协议栈基于所述通信状态指示消息进行网络注册;
在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及
在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。
在某些实施方案中,通信装置还包括:
运行模式设定模块,配置为将所述移动宽带模式设为所述终端设备的默认运行模式。
本公开还提供了计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现本公开的通信方法。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本公开还提供了服务器,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现本公开的通信方法。当然所述服务器还可以包括各种网络接口,电源等组件。
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例提供的***而言,由于其与实施例提供的方法 相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
本公开中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以对本公开进行若干改进和修饰,这些改进和修饰也落入本公开权利要求的保护范围内。
还需要说明的是,在本公开书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (10)

  1. 通信方法,应用于终端设备的无线通信模块,包括:
    判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;
    若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
    若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
  2. 如权利要求1所述的通信方法,其中确认所述终端设备处于离线工作状态后,所述通信方法还包括:
    通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电;以及
    将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡。
  3. 如权利要求2所述的通信方法,其中通过集成在所述终端设备主机侧上的嵌入式控制器为所述无线通信模块供电之后,所述通信方法还包括:
    生成***离线事件;以及
    根据所述***离线事件确定所述无线通信模块处于离线状态,以便执行所述将所述终端设备的当前运行模式由移动宽带模式切换至IoT模式,并将当前应用的SIM卡由第一SIM卡切换至第二SIM卡的步骤。
  4. 如权利要求3所述的通信方法,其中将当前应用的SIM卡由第一SIM卡切换至第二SIM卡之后,所述通信方法还包括:
    激活所述第二SIM卡的预置文件;以及
    利用所述预置文件执行网络注册流程,并在网络注册成功后建立网络连接。
  5. 如权利要求4所述的通信方法,其中利用所述预置文件执行网络注册流程包括:
    基于所述预置文件向协议栈发送网络注册请求;
    在所述协议栈注网成功后,接收到注册成功消息;以及
    根据所述注册成功消息将所述无线通信模块通过预设无线通信协议连接至云服务器。
  6. 如权利要求1至5中任一权利要求所述的通信方法,其中若在所述预设定时器时间内接收到所述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息建立所述无线通信模块与云服务器的无线通信包括:
    若在所述预设定时器时间内接收到所述通信状态指示消息,发送***在线事件;
    根据所述***在线事件确认所述终端设备处于正常工作状态;
    利用协议栈基于所述通信状态指示消息进行网络注册;
    在网络注册成功后,将所述无线通信模块作为MQTT客户端,并基于MQTT协议向云服务器发起拨号连接;以及
    在所述拨号连接成功后,建立所述无线通信模块与所述云服务器的无线通信。
  7. 如权利要求1至6中任一权利要求所述的通信方法,其还包括:
    将所述移动宽带模式设为所述终端设备的默认运行模式。
  8. 通信装置,包括:
    判断模块,配置为判断在预设定时器时间内是否接收到主机侧下发的通信状态指示消息;
    第一模式运行模块,配置为若在所述预设定时器时间内接收到所 述通信状态指示消息,确认所述终端设备处于正常工作状态,基于所述通信状态指示消息和第一SIM卡建立所述无线通信模块与云服务器的无线通信;以及
    第二模式运行模块,配置为若在所述预设定时器时间内未接收到所述通信状态指示消息,确认所述终端设备处于离线工作状态,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
  9. 终端设备,包括:
    设有嵌入式控制器的主机侧;所述嵌入式控制器配置为在预设定时器时间内未接收到通信状态指示消息时,为无线通信模块供电;
    所述无线通信模块,配置为确认所述终端设备处于正常工作状态,基于第一SIM卡建立所述无线通信模块与云服务器的无线通信;或者,确认所述终端设备处于离线工作状态后,利用第二SIM卡建立所述无线通信模块与所述云服务器的无线通信。
  10. 计算机可读存储介质,其上存储有计算机程序,其中所述计算机程序被处理器执行时实现权利要求1至7中任一权利要求所述的通信方法。
PCT/CN2023/111676 2022-08-29 2023-08-08 通信方法、装置、存储介质和终端设备 WO2024046049A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211041905.4A CN115413015A (zh) 2022-08-29 2022-08-29 一种通信方法、装置、存储介质和终端设备
CN202211041905.4 2022-08-29

Publications (1)

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

Family

ID=84162636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/111676 WO2024046049A1 (zh) 2022-08-29 2023-08-08 通信方法、装置、存储介质和终端设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115413015A (zh) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 一种通信方法、装置、存储介质和终端设备

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 (zh) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 移动终端及其sim卡状态切换方法
CN112994971A (zh) * 2021-02-01 2021-06-18 阳光电源(南京)有限公司 一种基于云服务器的设备离线监测方法及相关装置
CN115413015A (zh) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 一种通信方法、装置、存储介质和终端设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841422B2 (en) * 2017-06-26 2020-11-17 Huawei Technologies Co., Ltd. Multi-SIM call management method and apparatus, managed device, and server
CN113890885B (zh) * 2021-08-23 2024-04-05 飞思未来(深圳)科技有限公司 工控机物联控制方法、装置及计算机可读介质

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 (zh) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 移动终端及其sim卡状态切换方法
CN112994971A (zh) * 2021-02-01 2021-06-18 阳光电源(南京)有限公司 一种基于云服务器的设备离线监测方法及相关装置
CN115413015A (zh) * 2022-08-29 2022-11-29 西安广和通无线通信有限公司 一种通信方法、装置、存储介质和终端设备

Also Published As

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

Similar Documents

Publication Publication Date Title
EP2645636B1 (en) Home gateway, cloud server, and method for communication therebetween
KR101042745B1 (ko) 클라이언트 단말장치와 서버 사이의 세션 재설정을 위한시스템 및 방법
CN105095022B (zh) 一种数据备份方法及装置
WO2024046049A1 (zh) 通信方法、装置、存储介质和终端设备
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 (zh) 控制终端关机的方法及装置
EP3197170B1 (en) Multimedia processing device, multimedia processing server and method therefor
EP3016448A1 (en) Method for keeping remote connection, electronic device and server
CN110012527B (zh) 唤醒方法及电子设备
US6360267B1 (en) Communication control apparatus, method, and computer readable storage medium for determining a relay apparatus on information
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
JP2003044288A (ja) 情報処理装置、情報処理システム、及びプログラム
US20170177058A1 (en) Communicating commands to an embedded controller of a system
JP2000505273A (ja) パーソナルコンピューターの制御・起動装置
KR20090076712A (ko) 펌웨어 업그레이드 시스템
CN113596197B (zh) 一种地址切换方法、装置、电子设备及存储介质
CN215867831U (zh) 一种休眠唤醒装置和nas存储***
WO2023098055A1 (zh) 低功耗模式的开启方法和装置、存储介质及电子装置
CN113709142B (zh) 一种热点配网方法、装置、智能终端及存储介质
KR20160070726A (ko) 가상화 서비스 제공을 위한 컨텐츠 제공 시스템
CN114070884A (zh) 一种远程管理方法、远程管理设备、模块及可读存储介质
CN113364979A (zh) 远程控制设备的方法及***、服务器、客户端设备和介质
JP4260842B2 (ja) 情報端末装置、電子会議システム、通信設定方法および通信設定プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23859084

Country of ref document: EP

Kind code of ref document: A1