WO2023124328A1 - Wireless communication module and function recovery method thereof, electronic device, and storage medium - Google Patents

Wireless communication module and function recovery method thereof, electronic device, and storage medium Download PDF

Info

Publication number
WO2023124328A1
WO2023124328A1 PCT/CN2022/122421 CN2022122421W WO2023124328A1 WO 2023124328 A1 WO2023124328 A1 WO 2023124328A1 CN 2022122421 W CN2022122421 W CN 2022122421W WO 2023124328 A1 WO2023124328 A1 WO 2023124328A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless communication
communication module
transmission interface
host
interface
Prior art date
Application number
PCT/CN2022/122421
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 WO2023124328A1 publication Critical patent/WO2023124328A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Definitions

  • the present disclosure generally relates to the field of computer technology, and more specifically relates to a wireless communication module and its function restoration method, electronic equipment and storage media.
  • cellular wireless communication modules have become an essential part of new smart cars or electric cars, which enables cars to access cellular wireless networks, thereby providing car owners with rich Function.
  • the cellular wireless communication module is very important in its reliability design.
  • reliability designs should include strong recovery patterns. That is, when the internal firmware fails to start and run normally, the product should enter the recovery mode, so as to re-download, upgrade, and repair the internal firmware, and finally restore the normal function of the product.
  • the traditional recovery mode is generally implemented in the boot program of the product.
  • the present disclosure relates to a function recovery method of a wireless communication module, which includes:
  • the wireless communication module When it is determined that the wireless communication module enters the recovery mode, from the preset transmission interface cluster of the wireless communication module, determine the target transmission interface for communicating with the host, and the preset transmission interface cluster includes at least two transmission interfaces;
  • the firmware image file is loaded to the wireless communication module to restore the normal function of the wireless communication module.
  • the determining that the wireless communication module enters the recovery mode includes:
  • the bootstrap program fails to start the high-level operating system in the wireless communication module, it is determined that the wireless communication module enters the recovery mode.
  • the determination of the target transmission interface communicating with the host in the preset transmission interface cluster of the wireless communication module includes:
  • the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
  • each transmission interface in the preset transmission interface cluster in each detection period, it is detected whether the transmission interface receives the request sent by the host.
  • the bootloader of the wireless communication module is integrated with the drivers of the transmission interfaces in the preset transmission interface cluster.
  • the firmware image file after the firmware image file is loaded into the wireless communication module, it further includes:
  • the wireless communication module is restarted based on the firmware image file, so that the wireless communication module can recover normal functions.
  • the interface type of the transmission interface in the preset transmission interface cluster is at least one of a universal serial bus interface, a serial peripheral interface, a universal asynchronous transceiver interface and an Ethernet interface kind.
  • the present disclosure relates to a wireless communication module, which includes: a processor, a transmission interface, a memory, and a communication bus, wherein the processor, the transmission interface, and the memory complete mutual communication through the communication bus communication;
  • the memory configured to store a computer program
  • the processor is configured to execute the program stored in the memory to implement the function recovery method of the wireless communication module described in the present disclosure.
  • the present disclosure relates to electronic equipment, which includes the wireless communication module described in the present disclosure, and a host connected to the wireless communication module.
  • the present disclosure relates to a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method for restoring the function of the wireless communication module described in the present disclosure is implemented.
  • the target transmission interface for communicating with the host is determined from the preset transmission interface cluster of the wireless communication module.
  • the interface cluster includes at least two transmission interfaces; obtain the firmware image file sent by the host based on the target transmission interface; load the firmware image file to the wireless communication module, so that the wireless communication module recovers normal function.
  • at least two transmission interfaces are used to connect with the host, and when the wireless communication module enters the recovery mode, it can be selected from the preset transmission interface cluster to communicate with the host.
  • the target transmission interface and then obtain the firmware image file from the target transmission interface, so as to load the firmware image file to the wireless communication module, so that the wireless communication module can restore its function, avoiding the limitation of communication connection only through a single interface, and can When one of the interfaces fails, other interfaces are used for communication, which improves the service life of the wireless communication module and reduces the cost of the manufacturer.
  • FIG. 1 is an application scene diagram of a function recovery method of a wireless communication module provided by an embodiment of the present disclosure
  • FIG. 2 is a flow chart of a function recovery method of a wireless communication module provided by an embodiment of the present disclosure
  • FIG. 3 is a flow chart of a function restoration method of a wireless communication module provided by another embodiment of the present disclosure.
  • FIG. 4 is a structural diagram of a wireless communication module provided by an embodiment of the present disclosure.
  • FIG. 5 is a structural diagram of a function recovery device for a wireless communication module provided by an embodiment of the present disclosure.
  • Bootloader runs before the operating system kernel runs.
  • the hardware device can be initialized, and the memory space map can be established, so as to bring the system's software and hardware environment to a suitable state, so as to prepare the correct environment for the final call of the operating system kernel.
  • Firmware refers to the device "driver" stored inside the device. Through firmware, the operating system can realize the operation of a specific machine according to the standard device driver. For example, CD-ROM drives and recorders have internal firmware.
  • An application scenario of the function recovery method of a wireless communication module provided according to an embodiment of the present disclosure.
  • the above method for restoring the function of the wireless communication module can be applied to the hardware environment composed of the wireless communication module 101 and the host 102 as shown in FIG. 1 .
  • the host 102 is connected to the wireless communication module 101 , and firmware is stored in the host, which can send a firmware image file to the wireless communication module, so that the wireless communication module performs function recovery according to the firmware image file.
  • the method provided in the embodiments of the present disclosure can be applied to an electronic device.
  • the electronic device can be a module capable of realizing a communication function or a terminal device including the module.
  • the terminal device can be a mobile terminal or a smart terminal.
  • the mobile terminal can be at least one of mobile phones, tablet computers, notebook computers, etc.;
  • the smart terminal can be a terminal containing a wireless communication module such as a smart car, a smart watch, a shared bicycle, and a smart cabinet;
  • the module can specifically be a wireless communication module.
  • Group such as any one of 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-IOT communication module, etc.
  • the present disclosure relates to a function recovery method of a wireless communication module, which can be applied to any form of electronic equipment, such as a wireless communication module.
  • the function recovery method of the functional module includes:
  • Step 201 when it is determined that the wireless communication module enters the recovery mode, determine the target transmission interface for communicating with the host from the preset transmission interface cluster of the wireless communication module, and the preset transmission interface cluster includes at least two transmission interface;
  • Step 202 obtain the firmware image file sent by the host based on the target transmission interface
  • Step 203 loading the firmware image file to the wireless communication module, so that the wireless communication module resumes normal functions.
  • the wireless communication module is provided with a preset transmission interface cluster, and the preset transmission interface cluster includes at least two transmission interfaces.
  • any transmission interface of the wireless communication module can be correspondingly connected to the transmission interface of the host computer used by the wireless communication module, so as to perform data transmission through the connected transmission interface.
  • a plurality of transmission interfaces may also be set on the host computer where the wireless communication module is applied, so as to connect the wireless communication module to the same interface on the host computer correspondingly.
  • the Bootloader determines that the wireless communication module has entered the recovery mode, it first determines the target for communication with the host from the preset transmission interface cluster of the wireless communication module. transport interface.
  • the wireless communication module may be a product with a Bootloader capable of realizing certain functions.
  • the wireless communication module may be but not limited to a wireless communication module.
  • the interface types of the transmission interfaces included in the preset transmission interface cluster may be but not limited to Universal Serial Bus (USB) interface, Serial Peripheral Interface (SPI) interface, Universal Asynchronous Receiver Transmitter (UART) interface and Ethernet (ETH) interface.
  • USB Universal Serial Bus
  • SPI Serial Peripheral Interface
  • UART Universal Asynchronous Receiver Transmitter
  • ETH Ethernet
  • the interface type of the transmission interface in the preset transmission interface cluster can be at least one of the above interface types, that is, at least two transmission interfaces can be of the same interface type or different interface types , and its specific implementation can be selected according to the actual situation.
  • the driver program of each transmission interface in the preset transmission interface cluster will also be integrated in the boot program of the wireless communication module, so that when using When the target transmission interface performs data transmission, the driver program of the target transmission interface can be called, and the function of the target transmission interface is realized based on the driver program.
  • determining that the wireless communication module enters the recovery mode includes:
  • the bootstrap program fails to start the high-level operating system in the wireless communication module, it is determined that the wireless communication module enters the recovery mode.
  • the Bootloader in the wireless communication module starts first, and after starting, loads the advanced operating system in the wireless communication module. If the advanced operating system starts successfully, the wireless The communication module enters the normal functional state to realize normal functions; if the advanced operating system fails to start, it is determined that the wireless communication module is in recovery mode, and the firmware image file needs to be obtained again for upgrading and repairing.
  • determining the target transmission interface for communicating with the host in the preset transmission interface cluster of the wireless communication module includes:
  • the Bootloader will detect whether the transmission interface in the preset transmission interface cluster has received the request sent by the host, and if the transmission interface has received the request sent by the host, It means that the transmission interface has established a communication connection with the host, so that the transmission interface that has received the request is used as the target transmission interface.
  • the Bootloader there are many ways for the Bootloader to detect whether the transmission interface has received the request sent by the host, and the following two real-time ways are used as examples for illustration. It can be understood that the actual implementation process is not limited to the following two manners.
  • the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
  • each transmission interface in the preset transmission interface cluster in each detection period, it is detected whether the transmission interface receives the request sent by the host.
  • a detection cycle can be set for each transmission interface, and the detection of the transmission interface can detect once per detection cycle whether the transmission interface receives a request sent by the host.
  • the detection period for each transmission interface may be the same or different. If the detection period of each transmission interface is different, the detection may be performed according to its respective detection period; if the detection period of each transmission interface is the same, each transmission interface may be detected in sequence within the same detection period.
  • the detection period of the first transmission interface can be set to 0.02 microseconds for detection once, and the detection period of the first transmission interface is 0.03 microseconds for detection once.
  • the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
  • the detection order of transmission interfaces can be set according to actual needs, or when the detection order is not preset, at the first detection, one of the transmission interfaces in the preset transmission interface cluster can be randomly selected One is detected until each transmission interface in the preset transmission interface cluster is detected once. If no target transmission interface is detected, the preset transmission interface cluster will Subsequent detection is performed on the transmission interface in .
  • the preset duration can be set according to the actual situation, which is not limited here, for example, the preset duration can be 0.01 to 0.03 microseconds.
  • the host after determining the target transmission interface, the host will send the firmware image file to the wireless communication module through the target transmission interface, so that the wireless communication module can obtain the firmware image file sent by the host through the target transmission interface.
  • corresponding firmware is stored in the host, and when the wireless communication module enters the recovery mode, the host can copy the firmware to obtain a firmware image file, thereby sending it to the wireless communication module.
  • the firmware in the host may be obtained from the cloud, or may be configured by developers after the host is developed.
  • the Bootloader can store the firmware image file to the corresponding area of the wireless communication module, thereby starting the firmware image file by the Bootloader to realize the restart of the wireless communication module. And then make the wireless communication module resume the normal function.
  • the above-mentioned function of returning to normal means that the wireless communication module can operate according to its internally configured program.
  • the firmware image file after the firmware image file is loaded into the wireless communication module, it also includes:
  • the wireless communication module is restarted based on the firmware image file, so that the wireless communication module can recover normal functions.
  • the executive program of the above-mentioned advanced operating system is stored in the firmware image file, therefore, after the firmware image file is loaded into the wireless communication module, the Bootloader restarts and starts the advanced operating system in the firmware image file , if the high-level operating system is started successfully, the wireless communication module can resume its normal function.
  • the method for restoring the function of the wireless communication module in the present disclosure can be applied to a product that supports the integration of multiple hardware transmission interfaces.
  • the integrated transmission interface in this product includes USB hardware interface, SPI hardware interface, UART hardware interface and ETH hardware interface.
  • a new function is added in the Bootloader of this product, and multiple hardware transmission interface driver codes that need to be supported are integrated into the Bootloader, thereby realizing the function of "download adapter" in the Bootloader.
  • the method includes:
  • the function restoration method disclosed in the present disclosure can make the product no longer limited by a single hardware transmission interface in the recovery mode, allowing the Bootloader to flexibly adapt to various hardware transmission interfaces in the recovery mode, which can greatly enhance the reliability of the product. Flexibility enables the same product to meet the hardware integration design requirements of various manufacturers. Thereby streamlining the firmware version, reducing product management costs, and reducing after-sales maintenance costs.
  • the present disclosure also relates to a wireless communication module 400.
  • a wireless communication module 400 As shown in FIG. 403 Complete mutual communication.
  • the memory 402 stores a program executable by the processor 401, and the processor 401 executes the program stored in the memory 402 to implement the following steps:
  • the wireless communication module When it is determined that the wireless communication module enters the recovery mode, from the preset transmission interface cluster of the wireless communication module, determine the target transmission interface for communicating with the host, and the preset transmission interface cluster includes at least two transmission interfaces;
  • the firmware image file is loaded to the wireless communication module to restore the normal function of the wireless communication module.
  • the communication bus 403 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 403 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.
  • the memory 402 may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. In some embodiments, the memory may also be at least one storage device located far away from the aforementioned processor 401 .
  • RAM Random Access Memory
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located far away from the aforementioned processor 401 .
  • the above-mentioned processor 401 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc., and can also be a digital signal processor (Digital Signal Processing, referred to as DSP). ), Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the present disclosure relates to a function restoration device 500 of a wireless communication module.
  • the device 500 please refer to the description of the method embodiment, and the repetition will not be repeated.
  • the device 500 mainly includes:
  • the determination module 501 is configured to, when it is determined that the wireless communication module enters the recovery mode, determine the target transmission interface for communicating with the host from the preset transmission interface cluster of the wireless communication module, and the preset transmission interface cluster includes At least two transmission interfaces;
  • the obtaining module 502 is configured to obtain the firmware image file sent by the host based on the target transmission interface
  • the loading module 503 is configured to load the firmware image file to the wireless communication module, so that the wireless communication module can restore normal functions.
  • the electronic device mainly includes: The wireless communication module described in the above embodiments, and the host connected to the wireless communication module.
  • the above-mentioned host can be any device capable of communicating with a wireless communication module.
  • the electronic device can be a POS machine, a PC computer, a smart phone, a vehicle host, etc.
  • a computer-readable storage medium is also provided.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is run on a computer, the computer is made to perform the operations described in the above-mentioned embodiments.
  • a function recovery method of a wireless communication module is also provided.
  • the computer may be realized in whole or in part by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present disclosure will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) to another website site, computer, host or data center.
  • DSL digital subscriber line
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a host computer, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Facsimiles In General (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a wireless communication module and a function recovery method therefor, an electronic device, and a storage medium. The method comprises: when it is determined that a wireless communication module has entered a recovery mode, determining a target transmission interface for communication with a host from a preset transmission interface cluster of the wireless communication module, the preset transmission interface cluster comprising at least two transmission interfaces; on the basis of the target transmission interface, obtaining a firmware mirror image file sent by the host; and loading the firmware mirror image file into the wireless communication module, so as to cause the wireless communication module to recover normal function.

Description

无线通信模组及其功能恢复方法、电子设备和存储介质Wireless communication module and its function recovery method, electronic device and storage medium
相关申请的引用References to related applications
本公开要求于2021年12月30日向中华人民共和国国家知识产权局提交的申请号为202111657244.3,发明名称为“无线通信模组及其功能恢复方法、电子设备和存储介质”的发明专利公开的全部权益,并通过引用的方式将其全部内容并入本公开。This disclosure requires the application number 202111657244.3 submitted to the State Intellectual Property Office of the People's Republic of China on December 30, 2021, and the invention title is "wireless communication module and its function recovery method, electronic equipment and storage medium". interests, and the entire contents of which are incorporated into this disclosure by reference.
领域field
本公开大体上涉及计算机技术领域,更具体地涉及无线通信模组及其功能恢复方法、电子设备和存储介质。The present disclosure generally relates to the field of computer technology, and more specifically relates to a wireless communication module and its function restoration method, electronic equipment and storage media.
背景background
随着智能汽车的概念发展与蜂窝无线通信技术的发展,蜂窝无线通信模组已经成为新型智能汽车或电动汽车一个必备的部件,这使得汽车得以接入蜂窝无线网络,从而为车主提供丰富的功能。With the development of the concept of smart cars and the development of cellular wireless communication technology, cellular wireless communication modules have become an essential part of new smart cars or electric cars, which enables cars to access cellular wireless networks, thereby providing car owners with rich Function.
蜂窝无线通信模组作为汽车电气系统的重要部件,其可靠性设计非常重要。通常,可靠性设计应当包含强大的恢复模式。即,在内部固件无法正常启动运行时,产品应当进入恢复模式,以便对内部的固件进行重新下载,升级,修复,最终恢复产品的正常功能。传统的恢复模式,一般在产品的启动引导程序中实现。As an important part of the automotive electrical system, the cellular wireless communication module is very important in its reliability design. In general, reliability designs should include strong recovery patterns. That is, when the internal firmware fails to start and run normally, the product should enter the recovery mode, so as to re-download, upgrade, and repair the internal firmware, and finally restore the normal function of the product. The traditional recovery mode is generally implemented in the boot program of the product.
概述overview
第一方面,本公开涉及无线通信模组的功能恢复方法,其包括:In a first aspect, the present disclosure relates to a function recovery method of a wireless communication module, which includes:
在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口;When it is determined that the wireless communication module enters the recovery mode, from the preset transmission interface cluster of the wireless communication module, determine the target transmission interface for communicating with the host, and the preset transmission interface cluster includes at least two transmission interfaces;
基于所述目标传输接口获取所述主机发送的固件镜像文件;以及Obtaining the firmware image file sent by the host based on the target transmission interface; and
将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。The firmware image file is loaded to the wireless communication module to restore the normal function of the wireless communication module.
在某些实施方案中,所述确定无线通信模组进入恢复模式,包括:In some embodiments, the determining that the wireless communication module enters the recovery mode includes:
在启动引导程序启动所述无线通信模组中的高级操作系统失败时,确定所述无线通信模组进入所述恢复模式。When the bootstrap program fails to start the high-level operating system in the wireless communication module, it is determined that the wireless communication module enters the recovery mode.
在某些实施方案中,所述确定所述无线通信模组的预设传输接口集群中与主机通信的目标传输接口,包括:In some embodiments, the determination of the target transmission interface communicating with the host in the preset transmission interface cluster of the wireless communication module includes:
检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求;以及Detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host; and
确定接收到所述主机发送的请求的传输接口为所述目标传输接口。Determining that the transmission interface that receives the request sent by the host is the target transmission interface.
在某些实施方案中,所述检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求,包括:In some implementations, the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
按照所述预设传输接口集群中每个传输接口的检测周期,在每个所述检测周期内,检测所述传输接口是否接收到所述主机发送的请求。According to the detection period of each transmission interface in the preset transmission interface cluster, in each detection period, it is detected whether the transmission interface receives the request sent by the host.
在某些实施方案中,所述无线通信模组的启动引导程序中集成有所述预设传输接口集群中各传输接口的驱动程序。In some embodiments, the bootloader of the wireless communication module is integrated with the drivers of the transmission interfaces in the preset transmission interface cluster.
在某些实施方案中,所述将所述固件镜像文件加载至所述无线通信模组之后,还包括:In some implementations, after the firmware image file is loaded into the wireless communication module, it further includes:
基于所述固件镜像文件重新启动所述无线通信模组,以使所述无线通信模组恢复正常功能。The wireless communication module is restarted based on the firmware image file, so that the wireless communication module can recover normal functions.
在某些实施方案中,所述预设传输接口集群中的所述传输接口的接口类型为通用串行总线接口、串行外设接口、通用异步收发传输器接口和以太网接口中的至少一种。In some embodiments, the interface type of the transmission interface in the preset transmission interface cluster is at least one of a universal serial bus interface, a serial peripheral interface, a universal asynchronous transceiver interface and an Ethernet interface kind.
第二方面,本公开涉及无线通信模组,其包括:处理器、传输接口、存储器和通信总线,其中,所述处理器、所述传输接口和所述存储器通过所述通信总线完成相互间的通信;In a second aspect, the present disclosure relates to a wireless communication module, which includes: a processor, a transmission interface, a memory, and a communication bus, wherein the processor, the transmission interface, and the memory complete mutual communication through the communication bus communication;
所述存储器,配置为存储计算机程序;the memory configured to store a computer program;
所述处理器,配置为执行所述存储器中所存储的程序,实现本公开所述的无线通信模组的功能恢复方法。The processor is configured to execute the program stored in the memory to implement the function recovery method of the wireless communication module described in the present disclosure.
第三方面,本公开涉及电子设备,其包括本公开所述的无线通信模组,以及与所述无线通信模组连接的主机。In a third aspect, the present disclosure relates to electronic equipment, which includes the wireless communication module described in the present disclosure, and a host connected to the wireless communication module.
第四方面,本公开涉及计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现本公开所述的无线通信模组的功能恢复方法。In a fourth aspect, the present disclosure relates to a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method for restoring the function of the wireless communication module described in the present disclosure is implemented.
本公开实施例提供的该方法,通过在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口;基于所述目标传输接口获取所述主机发送的固件镜像文件;将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。如此,在通过在无线通信模组上设置预设传输接口集群,以至少两传输接口与主机进行连接,在无线通信模组进入恢复模式时,能够从预设传输接口集群中选择出与主机通信的目标传输接口,进而由目标传输接口获取固件镜像文件,从而将固件镜像文件加载至无线通信模组,使无线通信模组恢复功能,避免了仅通过单一的接口进行通信连接的局限性,能够在其中一个接口故障时,采用其他接口进行通信,提高了无线通信模组使用寿命,降低了厂商的成本。In the method provided by the embodiment of the present disclosure, when it is determined that the wireless communication module enters the recovery mode, the target transmission interface for communicating with the host is determined from the preset transmission interface cluster of the wireless communication module. The interface cluster includes at least two transmission interfaces; obtain the firmware image file sent by the host based on the target transmission interface; load the firmware image file to the wireless communication module, so that the wireless communication module recovers normal function. In this way, by setting a preset transmission interface cluster on the wireless communication module, at least two transmission interfaces are used to connect with the host, and when the wireless communication module enters the recovery mode, it can be selected from the preset transmission interface cluster to communicate with the host. The target transmission interface, and then obtain the firmware image file from the target transmission interface, so as to load the firmware image file to the wireless communication module, so that the wireless communication module can restore its function, avoiding the limitation of communication connection only through a single interface, and can When one of the interfaces fails, other interfaces are used for communication, which improves the service life of the wireless communication module and reduces the cost of the manufacturer.
附图简要说明Brief description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本公开一实施例提供的无线通信模组的功能恢复方法的应用场景图;FIG. 1 is an application scene diagram of a function recovery method of a wireless communication module provided by an embodiment of the present disclosure;
图2为本公开一实施例提供的无线通信模组的功能恢复方法的流程图;FIG. 2 is a flow chart of a function recovery method of a wireless communication module provided by an embodiment of the present disclosure;
图3为本公开另一实施例提供的无线通信模组的功能恢复方法的流程图;FIG. 3 is a flow chart of a function restoration method of a wireless communication module provided by another embodiment of the present disclosure;
图4为本公开一实施例提供的无线通信模组的结构图;以及FIG. 4 is a structural diagram of a wireless communication module provided by an embodiment of the present disclosure; and
图5为本公开一实施例提供的无线通信模组的功能恢复装置的结构图。FIG. 5 is a structural diagram of a function recovery device for a wireless communication module provided by an embodiment of the present disclosure.
详述detail
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。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 It is a part of embodiments of the present disclosure, but not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.
在对本公开实施例进行进一步详细说明之前,对本公开实施例中涉及的名词和术语进行说明,本公开实施例中涉及的名词和术语适用于如下的解释。Before the embodiments of the present disclosure are further described in detail, the nouns and terms involved in the embodiments of the present disclosure will be described, and the nouns and terms involved in the embodiments of the present disclosure are applicable to the following explanations.
启动引导程序(BootLoader):在操作系统内核运行之前运行。可以初始化硬件设备、建立内存空间映射图,从而将系统的软硬件环境带到一个合适状态,以便为最终调用操作系统内核准备好正确的环境。Bootloader (BootLoader): runs before the operating system kernel runs. The hardware device can be initialized, and the memory space map can be established, so as to bring the system's software and hardware environment to a suitable state, so as to prepare the correct environment for the final call of the operating system kernel.
固件:指设备内部保存的设备“驱动程序”,通过固件,操作系统才能按照标准的设备驱动实现特定机器的运行动作,比如光驱、刻 录机等都有内部固件。Firmware: refers to the device "driver" stored inside the device. Through firmware, the operating system can realize the operation of a specific machine according to the standard device driver. For example, CD-ROM drives and recorders have internal firmware.
根据本公开一实施例提供的无线通信模组的功能恢复方法的一种应用场景。An application scenario of the function recovery method of a wireless communication module provided according to an embodiment of the present disclosure.
在某些实施方案中,在本公开实施例中,上述无线通信模组的功能恢复方法可以应用于如图1所示的由无线通信模组101和主机102所构成的硬件环境中。如图1所示,主机102与无线通信模组101进行连接,主机中存储有固件,能够向无线通信模组发送固件镜像文件,从而使无线通信模组依据固件镜像文件进行功能恢复。In some implementations, in the embodiments of the present disclosure, the above method for restoring the function of the wireless communication module can be applied to the hardware environment composed of the wireless communication module 101 and the host 102 as shown in FIG. 1 . As shown in FIG. 1 , the host 102 is connected to the wireless communication module 101 , and firmware is stored in the host, which can send a firmware image file to the wireless communication module, so that the wireless communication module performs function recovery according to the firmware image file.
本公开实施例中所提供的方法可以应用于电子设备中,该电子设备可以为能够实现通信功能的模组或包含该模组的终端设备等,该终端设备可以为移动终端或智能终端。移动终端可以为手机、平板电脑、笔记本电脑等中的至少一种;智能终端可以是智能汽车、智能手表、共享单车、智能柜等含有无线通信模组的终端;模组具体可以为无线通信模组,例如2G通信模组、3G通信模组、4G通信模组、5G通信模组、NB-IOT通信模组等中的任意一种。The method provided in the embodiments of the present disclosure can be applied to an electronic device. The electronic device can be a module capable of realizing a communication function or a terminal device including the module. The terminal device can be a mobile terminal or a smart terminal. The mobile terminal can be at least one of mobile phones, tablet computers, notebook computers, etc.; the smart terminal can be a terminal containing a wireless communication module such as a smart car, a smart watch, a shared bicycle, and a smart cabinet; the module can specifically be a wireless communication module. Group, such as any one of 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-IOT communication module, etc.
在某些实施方案中,本公开涉及无线通信模组的功能恢复方法,该方法可以应用于任意一种形式的电子设备中,如无线通信模组中。如图2所示,该功能模块的功能恢复方法,包括:In some embodiments, the present disclosure relates to a function recovery method of a wireless communication module, which can be applied to any form of electronic equipment, such as a wireless communication module. As shown in Figure 2, the function recovery method of the functional module includes:
步骤201,在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口; Step 201, when it is determined that the wireless communication module enters the recovery mode, determine the target transmission interface for communicating with the host from the preset transmission interface cluster of the wireless communication module, and the preset transmission interface cluster includes at least two transmission interface;
步骤202,基于所述目标传输接口获取所述主机发送的固件镜像文件;以及 Step 202, obtain the firmware image file sent by the host based on the target transmission interface; and
步骤203,将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。 Step 203, loading the firmware image file to the wireless communication module, so that the wireless communication module resumes normal functions.
在某些实施方案中,无线通信模组上设置有预设传输接口集群,预设传输接口集群中包括至少两个传输接口。在无线通信模组使用时,可以将无线通信模组的任一传输接口与该无线通信模组应用的主机的传输接口对应连接,从而通过连接的传输接口进行数据传输。可以理解的是,在无线通信模组应用的主机上,也可以设置多个传输接口,将无线通信模组与主机上相同的接口对应连接。In some embodiments, the wireless communication module is provided with a preset transmission interface cluster, and the preset transmission interface cluster includes at least two transmission interfaces. When the wireless communication module is in use, any transmission interface of the wireless communication module can be correspondingly connected to the transmission interface of the host computer used by the wireless communication module, so as to perform data transmission through the connected transmission interface. It can be understood that a plurality of transmission interfaces may also be set on the host computer where the wireless communication module is applied, so as to connect the wireless communication module to the same interface on the host computer correspondingly.
在某些实施方案中,在无线通信模组与主机连接并开机后,Bootloader若确定无线通信模组进入到恢复模式,先从无线通信模组的预设传输接口集群中确定与主机通信的目标传输接口。In some embodiments, after the wireless communication module is connected to the host and powered on, if the Bootloader determines that the wireless communication module has entered the recovery mode, it first determines the target for communication with the host from the preset transmission interface cluster of the wireless communication module. transport interface.
其中,无线通信模组可以是具有Bootloader,能够实现一定功能的产品,例如,无线通信模组可以但不限于无线通信模组。Wherein, the wireless communication module may be a product with a Bootloader capable of realizing certain functions. For example, the wireless communication module may be but not limited to a wireless communication module.
其中,所述预设传输接口集群中包括的传输接口的接口类型可以但不限于为通用串行总线(USB)接口、串行外设接口(SPI)接口、通用异步收发传输器(UART)接口和以太网(ETH)接口。Wherein, the interface types of the transmission interfaces included in the preset transmission interface cluster may be but not limited to Universal Serial Bus (USB) interface, Serial Peripheral Interface (SPI) interface, Universal Asynchronous Receiver Transmitter (UART) interface and Ethernet (ETH) interface.
在某些实施方案中,预设传输接口集群中的传输接口的接口类型可以为上述接口类型中的至少一种,即在至少两个传输接口可以是相同的接口类型也可以是不同的接口类型,其具体实施时,可以依据实际情况进行选择。In some embodiments, the interface type of the transmission interface in the preset transmission interface cluster can be at least one of the above interface types, that is, at least two transmission interfaces can be of the same interface type or different interface types , and its specific implementation can be selected according to the actual situation.
在某些实施方案中,无线通信模组上除设置传输接口外,还会在无线通信模组的启动引导程序中集成所述预设传输接口集群中各传输接口的驱动程序,从而,在采用目标传输接口进行数据传输时,能够调用该目标传输接口的驱动程序,基于该驱动程序实现目标传输接口的功能。In some embodiments, in addition to setting the transmission interface on the wireless communication module, the driver program of each transmission interface in the preset transmission interface cluster will also be integrated in the boot program of the wireless communication module, so that when using When the target transmission interface performs data transmission, the driver program of the target transmission interface can be called, and the function of the target transmission interface is realized based on the driver program.
其中,确定无线通信模组进入恢复模式的方式有多种,在一个可选实施例中,确定无线通信模组进入恢复模式,包括:Wherein, there are many ways to determine that the wireless communication module enters the recovery mode. In an optional embodiment, determining that the wireless communication module enters the recovery mode includes:
在启动引导程序启动所述无线通信模组中的高级操作系统失败时,确定所述无线通信模组进入所述恢复模式。When the bootstrap program fails to start the high-level operating system in the wireless communication module, it is determined that the wireless communication module enters the recovery mode.
在某些实施方案中,在无线通信模组开机后,无线通信模组中的Bootloader优先启动,并在启动后,加载无线通信模组中的高级操作系统,若高级操作系统启动成功,则无线通信模组进入正常功能状态,以实现正常的功能;若高级操作系统启动失败,确定无线通信模组进行恢复模式,需要重新获取固件镜像文件,以进行升级、修复等。In some embodiments, after the wireless communication module is turned on, the Bootloader in the wireless communication module starts first, and after starting, loads the advanced operating system in the wireless communication module. If the advanced operating system starts successfully, the wireless The communication module enters the normal functional state to realize normal functions; if the advanced operating system fails to start, it is determined that the wireless communication module is in recovery mode, and the firmware image file needs to be obtained again for upgrading and repairing.
在某些实施方案中,确定所述无线通信模组的预设传输接口集群中与主机通信的目标传输接口,包括:In some embodiments, determining the target transmission interface for communicating with the host in the preset transmission interface cluster of the wireless communication module includes:
检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求;确定接收到所述主机发送的请求的传输接口为所述目标传输接口。Detecting whether the transmission interface in the preset transmission interface cluster has received the request sent by the host; determining that the transmission interface that has received the request sent by the host is the target transmission interface.
在某些实施方案中,在无线通信模组进入恢复模式后,Bootloader便会检测预设传输接口集群中的传输接口是否接收到所述主机发送的请求,若传输接口接收到了主机发送的请求,则表示该传输接口与主机建立了通信连接,从而将该接收到请求的传输接口作为目标传输接口。In some embodiments, after the wireless communication module enters the recovery mode, the Bootloader will detect whether the transmission interface in the preset transmission interface cluster has received the request sent by the host, and if the transmission interface has received the request sent by the host, It means that the transmission interface has established a communication connection with the host, so that the transmission interface that has received the request is used as the target transmission interface.
其中,Bootloader检测传输接口是否接收到主机发送的请求的方式有多种,以以下两种实时方式进行举例说明。可以理解的是,在实际实施过程中并不限于以下两种方式。Among them, there are many ways for the Bootloader to detect whether the transmission interface has received the request sent by the host, and the following two real-time ways are used as examples for illustration. It can be understood that the actual implementation process is not limited to the following two manners.
在某些实施方案中,所述检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求,包括:In some implementations, the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
按照所述预设传输接口集群中每个传输接口的检测周期,在每个所述检测周期内,检测所述传输接口是否接收到所述主机发送的请求。According to the detection period of each transmission interface in the preset transmission interface cluster, in each detection period, it is detected whether the transmission interface receives the request sent by the host.
在某些实施方案中,可以对每个传输接口设置检测周期,对该传 输接口的检测,可以每个检测周期检测一次该传输接口是否接收到主机发送的请求。In some implementations, a detection cycle can be set for each transmission interface, and the detection of the transmission interface can detect once per detection cycle whether the transmission interface receives a request sent by the host.
可以理解的是,对于每个传输接口的检测周期可以相同也可以不同。若每个传输接口的检测周期不同,则可以按照其各自的检测周期进行检测;若每个传输接口的检测周期相同,可以在同一检测周期内,按照先后顺序对每个传输接口进行检测。It can be understood that the detection period for each transmission interface may be the same or different. If the detection period of each transmission interface is different, the detection may be performed according to its respective detection period; if the detection period of each transmission interface is the same, each transmission interface may be detected in sequence within the same detection period.
在某些实施方案中,以传输接口的数量为两个为例,可以设置第一传输接口的检测周期为0.02微秒检测一次,第一传输接口的检测周期为0.03微秒检测一次。In some implementations, taking two transmission interfaces as an example, the detection period of the first transmission interface can be set to 0.02 microseconds for detection once, and the detection period of the first transmission interface is 0.03 microseconds for detection once.
在某些实施方案中,所述检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求,包括:In some implementations, the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
每间隔预设时长,依次检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求。At intervals of preset time intervals, it is sequentially detected whether the transmission interfaces in the preset transmission interface cluster receive the request sent by the host.
在某些实施方案中,传输接口的检测顺序可以依据实际需要进行设置,或在未预先设定检测顺序时,在第一次检测时,可以随机选择预设传输接口集群中的传输接口中的一个进行检测,直至预设传输接口集群中的每个传输接口均检测一遍后,若未检测到目标传输接口,按照第一次检测时的顺序,每间隔预设时长,对预设传输接口集群中的传输接口进行后续的检测。In some implementations, the detection order of transmission interfaces can be set according to actual needs, or when the detection order is not preset, at the first detection, one of the transmission interfaces in the preset transmission interface cluster can be randomly selected One is detected until each transmission interface in the preset transmission interface cluster is detected once. If no target transmission interface is detected, the preset transmission interface cluster will Subsequent detection is performed on the transmission interface in .
其中,预设时长可以根据实际情况进行设置,此处不做限定,例如,预设时长可以是0.01至0.03微秒。Wherein, the preset duration can be set according to the actual situation, which is not limited here, for example, the preset duration can be 0.01 to 0.03 microseconds.
在某些实施方案中,在确定目标传输接口后,主机便会通过目标传输接口向无线通信模组发送固件镜像文件,从而由无线通信模组通过目标传输接口,获取到主机发送的固件镜像文件。In some embodiments, after determining the target transmission interface, the host will send the firmware image file to the wireless communication module through the target transmission interface, so that the wireless communication module can obtain the firmware image file sent by the host through the target transmission interface. .
其中,主机中存储有相应的固件,在无线通信模组进入恢复模式 时,主机可以将该固件进行复制,得到固件镜像文件,从而将其发送至无线通信模组中。Wherein, corresponding firmware is stored in the host, and when the wireless communication module enters the recovery mode, the host can copy the firmware to obtain a firmware image file, thereby sending it to the wireless communication module.
其中,主机中的固件,可以是从云端获取的,也可以是主机在开发后由开发人员配置的。Wherein, the firmware in the host may be obtained from the cloud, or may be configured by developers after the host is developed.
在某些实施方案中,在获取到固件镜像文件后,Bootloader便可以将固件镜像文件存储至无线通信模组的对应区域,从而由Bootloader启动该固件镜像文件,实现无线通信模组的重新启动,进而使无线通信模组恢复正常功能。In some embodiments, after obtaining the firmware image file, the Bootloader can store the firmware image file to the corresponding area of the wireless communication module, thereby starting the firmware image file by the Bootloader to realize the restart of the wireless communication module. And then make the wireless communication module resume the normal function.
其中,上述的恢复正常功能是指无线通信模组能够按照其内部配置的程序运行。Wherein, the above-mentioned function of returning to normal means that the wireless communication module can operate according to its internally configured program.
在某些实施方案中,将所述固件镜像文件加载至所述无线通信模组之后,还包括:In some implementations, after the firmware image file is loaded into the wireless communication module, it also includes:
基于所述固件镜像文件重新启动所述无线通信模组,以使所述无线通信模组恢复正常功能。The wireless communication module is restarted based on the firmware image file, so that the wireless communication module can recover normal functions.
在某些实施方案中,在固件镜像文件中存储有上述高级操作系统的执行程序,因此,在固件镜像文件加载到无线通信模组后,Bootloader重新启动,并启动固件镜像文件中的高级操作系统,若高级操作系统启动成功,则该无线通信模组便能够恢复正常功能。In some embodiments, the executive program of the above-mentioned advanced operating system is stored in the firmware image file, therefore, after the firmware image file is loaded into the wireless communication module, the Bootloader restarts and starts the advanced operating system in the firmware image file , if the high-level operating system is started successfully, the wireless communication module can resume its normal function.
在某些实施方案中,参见图3,本公开中的无线通信模组的功能恢复方法,可以应用在支持的多个硬件传输接口集成的产品上。其中,该产品中集成的传输接口包括USB硬件接口、SPI硬件接口、UART硬件接口和ETH硬件接口。在该产品的Bootloader中新增功能,将需要支持的多个硬件传输接口驱动程序代码集成到Bootloader,从而,在Bootloader中实现“下载适配器”的功能。具体的,该方法包括:In some embodiments, referring to FIG. 3 , the method for restoring the function of the wireless communication module in the present disclosure can be applied to a product that supports the integration of multiple hardware transmission interfaces. Among them, the integrated transmission interface in this product includes USB hardware interface, SPI hardware interface, UART hardware interface and ETH hardware interface. A new function is added in the Bootloader of this product, and multiple hardware transmission interface driver codes that need to be supported are integrated into the Bootloader, thereby realizing the function of "download adapter" in the Bootloader. Specifically, the method includes:
第一,定时检测USB硬件接口,如果能接收到主机下载固件镜像 请求,则选定此硬件接口实现下载流程;First, regularly detect the USB hardware interface, if the host can receive a request to download the firmware image, then select this hardware interface to implement the download process;
第二,定时检测SPI硬件接口,如果能接收到主机下载固件镜像请求,则选定此硬件接口实现下载流程;Second, regularly detect the SPI hardware interface, if the host can receive the firmware image download request, select this hardware interface to implement the download process;
第三,定时检测UART硬件接口,如果能接收到主机下载固件镜像请求,则选定此硬件接口实现下载流程;Third, regularly detect the UART hardware interface. If the host can receive the firmware image download request, select this hardware interface to implement the download process;
第四,定时检测ETH硬件接口,如果能接收到主机下载固件镜像请求,则选定此硬件接口实现下载流程;Fourth, regularly detect the ETH hardware interface. If the host can receive the firmware image download request, select this hardware interface to implement the download process;
第五,定时检测其他需要支持硬件接口,如果能接收到主机下载固件镜像请求,则选定此硬件接口实现下载流程。Fifth, regularly detect other hardware interfaces that need to be supported, and if the request for downloading the firmware image from the host can be received, this hardware interface is selected to implement the download process.
第六,Bootloader进入恢复模式后,使用“下载适配器”检测到的硬件接口完成固件的“重新下载,升级,修复”过程。Sixth, after the Bootloader enters the recovery mode, use the hardware interface detected by the "download adapter" to complete the process of "re-downloading, upgrading, and repairing" the firmware.
本公开的功能恢复方法,能够使得产品在恢复模式下,不再受限于单一的硬件传输接口限制,让Bootloader在恢复模式下灵活适配多种硬件传输接口,可以大大增强产品的可靠性,灵活性,使得同一产品能够满足各个不同厂商的硬件集成设计需求。从而精简固件版本,降低产品管理成本,降低售后维护成本。The function restoration method disclosed in the present disclosure can make the product no longer limited by a single hardware transmission interface in the recovery mode, allowing the Bootloader to flexibly adapt to various hardware transmission interfaces in the recovery mode, which can greatly enhance the reliability of the product. Flexibility enables the same product to meet the hardware integration design requirements of various manufacturers. Thereby streamlining the firmware version, reducing product management costs, and reducing after-sales maintenance costs.
基于同一构思,本公开还涉及无线通信模组400,如图4所示,该无线通信模组主要包括:处理器401、存储器402和通信总线403,其中,处理器401和存储器402通过通信总线403完成相互间的通信。其中,存储器402中存储有可被处理器401执行的程序,处理器401执行存储器402中存储的程序,实现如下步骤:Based on the same idea, the present disclosure also relates to a wireless communication module 400. As shown in FIG. 403 Complete mutual communication. Wherein, the memory 402 stores a program executable by the processor 401, and the processor 401 executes the program stored in the memory 402 to implement the following steps:
在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口;When it is determined that the wireless communication module enters the recovery mode, from the preset transmission interface cluster of the wireless communication module, determine the target transmission interface for communicating with the host, and the preset transmission interface cluster includes at least two transmission interfaces;
基于所述目标传输接口获取所述主机发送的固件镜像文件;Obtaining the firmware image file sent by the host based on the target transmission interface;
将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。The firmware image file is loaded to the wireless communication module to restore the normal function of the wireless communication module.
上述电子设备中提到的通信总线403可以时外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线403可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 403 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The communication bus 403 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.
存储器402可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。在某些实施方案中,存储器还可以是至少一个位于远离前述处理器401的存储装置。The memory 402 may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. In some embodiments, the memory may also be at least one storage device located far away from the aforementioned processor 401 .
上述的处理器401可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 401 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc., and can also be a digital signal processor (Digital Signal Processing, referred to as DSP). ), Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
基于同一构思,本公开涉及无线通信模组的功能恢复装置500,该装置500的实施可参见方法实施例部分的描述,重复之处不再赘述,如图5所示,该装置500主要包括:Based on the same idea, the present disclosure relates to a function restoration device 500 of a wireless communication module. For the implementation of the device 500, please refer to the description of the method embodiment, and the repetition will not be repeated. As shown in FIG. 5, the device 500 mainly includes:
确定模块501,配置为在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口;The determination module 501 is configured to, when it is determined that the wireless communication module enters the recovery mode, determine the target transmission interface for communicating with the host from the preset transmission interface cluster of the wireless communication module, and the preset transmission interface cluster includes At least two transmission interfaces;
获取模块502,配置为基于所述目标传输接口获取所述主机发送的固件镜像文件;以及The obtaining module 502 is configured to obtain the firmware image file sent by the host based on the target transmission interface; and
加载模块503,配置为将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。The loading module 503 is configured to load the firmware image file to the wireless communication module, so that the wireless communication module can restore normal functions.
基于同一构思,本公开实施例中提供了一种电子设备,该电子设备的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图1所示,该电子设备主要包括:上述实施例中所述的无线通信模组,以及与所述无线通信模组连接的主机。Based on the same idea, an electronic device is provided in an embodiment of the present disclosure. For the specific implementation of the electronic device, please refer to the description of the method embodiment, and the repetition will not be repeated. As shown in Figure 1, the electronic device mainly includes: The wireless communication module described in the above embodiments, and the host connected to the wireless communication module.
可以理解的是,上述的主机可以为任意一种能够利用无线通信模组进行通信的设备。It can be understood that the above-mentioned host can be any device capable of communicating with a wireless communication module.
在某些实施方案中,电子设备可以是POS机、PC电脑、智能手机、车载主机等。In some embodiments, the electronic device can be a POS machine, a PC computer, a smart phone, a vehicle host, etc.
在本公开的又一实施例中,还提供了计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的无线通信模组的功能恢复方法。In yet another embodiment of the present disclosure, a computer-readable storage medium is also provided. A computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, the computer is made to perform the operations described in the above-mentioned embodiments. A function recovery method of a wireless communication module.
在某些实施方案中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本公开实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、主机或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、主机或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的主机、数据中心 等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。In some embodiments, it may be realized in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present disclosure will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) to another website site, computer, host or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a host computer, a data center, and the like integrated with one or more available media. The usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk), and the like.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative 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 these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

  1. 无线通信模组的功能恢复方法,其包括:A function restoration method of a wireless communication module, which includes:
    在确定无线通信模组进入恢复模式时,从所述无线通信模组的预设传输接口集群中,确定与主机通信的目标传输接口,所述预设传输接口集群中包括至少两个传输接口;When it is determined that the wireless communication module enters the recovery mode, from the preset transmission interface cluster of the wireless communication module, determine the target transmission interface for communicating with the host, and the preset transmission interface cluster includes at least two transmission interfaces;
    基于所述目标传输接口获取所述主机发送的固件镜像文件;以及Obtaining the firmware image file sent by the host based on the target transmission interface; and
    将所述固件镜像文件加载至所述无线通信模组,以使所述无线通信模组恢复正常功能。The firmware image file is loaded to the wireless communication module to restore the normal function of the wireless communication module.
  2. 如权利要求1所述的无线通信模组的功能恢复方法,其中,所述确定无线通信模组进入恢复模式,包括:The function recovery method of the wireless communication module according to claim 1, wherein said determining that the wireless communication module enters the recovery mode comprises:
    在启动引导程序启动所述无线通信模组中的高级操作系统失败时,确定所述无线通信模组进入所述恢复模式。When the bootstrap program fails to start the high-level operating system in the wireless communication module, it is determined that the wireless communication module enters the recovery mode.
  3. 如权利要求1或2所述的无线通信模组的功能恢复方法,其中,所述确定所述无线通信模组的预设传输接口集群中与主机通信的目标传输接口,包括:The function recovery method of the wireless communication module according to claim 1 or 2, wherein said determining the target transmission interface communicating with the host in the preset transmission interface cluster of the wireless communication module comprises:
    检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求;以及Detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host; and
    确定接收到所述主机发送的请求的传输接口为所述目标传输接口。Determining that the transmission interface that receives the request sent by the host is the target transmission interface.
  4. 如权利要求3所述的无线通信模组的功能恢复方法,其中,所述检测所述预设传输接口集群中的传输接口是否接收到所述主机发送的请求,包括:The function recovery method of the wireless communication module according to claim 3, wherein the detecting whether the transmission interface in the preset transmission interface cluster receives the request sent by the host includes:
    按照所述预设传输接口集群中每个传输接口的检测周期,在每个所述检测周期内,检测所述传输接口是否接收到所述主机发送的请求。According to the detection period of each transmission interface in the preset transmission interface cluster, in each detection period, it is detected whether the transmission interface receives the request sent by the host.
  5. 如权利要求1至4中任一权利要求所述的无线通信模组的功能恢复方法,其中,所述无线通信模组的启动引导程序中集成有所述预设传输接口集群中各传输接口的驱动程序。The function recovery method of the wireless communication module according to any one of claims 1 to 4, wherein, the startup boot program of the wireless communication module is integrated with each transmission interface in the preset transmission interface cluster driver.
  6. 如权利要求1至5中任一权利要求所述的无线通信模组的功能恢复方法,其特征在于,所述将所述固件镜像文件加载至所述无线通信模组之后,还包括:The function recovery method of the wireless communication module according to any one of claims 1 to 5, wherein, after loading the firmware image file to the wireless communication module, further comprising:
    基于所述固件镜像文件重新启动所述无线通信模组,以使所述无线通信模组恢复正常功能。The wireless communication module is restarted based on the firmware image file, so that the wireless communication module can recover normal functions.
  7. 如权利要求1至6中任一权利要求所述的无线通信模组的功能恢复方法,其中,所述预设传输接口集群中的所述传输接口的接口类型为通用串行总线接口、串行外设接口、通用异步收发传输器接口和以太网接口中的至少一种。The function recovery method of the wireless communication module according to any one of claims 1 to 6, wherein the interface types of the transmission interfaces in the preset transmission interface cluster are Universal Serial Bus interface, serial At least one of a peripheral interface, a Universal Asynchronous Receiver Transmitter interface and an Ethernet interface.
  8. 无线通信模组,其包括:处理器、传输接口、存储器和通信总线,其中,所述处理器、所述传输接口和所述存储器通过所述通信总线完成相互间的通信;A wireless communication module, which includes: a processor, a transmission interface, a memory, and a communication bus, wherein the processor, the transmission interface, and the memory complete mutual communication through the communication bus;
    所述存储器,配置为存储计算机程序;以及the memory configured to store a computer program; and
    所述处理器,配置为执行所述存储器中所存储的程序,实现权利要求1至7任一权利要求所述的无线通信模组的功能恢复方法。The processor is configured to execute the program stored in the memory, so as to implement the function restoration method of the wireless communication module according to any one of claims 1 to 7.
  9. 电子设备,其包括如权利要求8所述的无线通信模组,以及与所述无线通信模组连接的主机。An electronic device comprising the wireless communication module according to claim 8, and a host connected to the wireless communication module.
  10. 计算机可读存储介质,存储有计算机程序,其中,所述计算 机程序被处理器执行时实现权利要求1至7任一权利要求所述的无线通信模组的功能恢复方法。A computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the method for restoring the function of the wireless communication module according to any one of claims 1 to 7 is implemented.
PCT/CN2022/122421 2021-12-30 2022-09-29 Wireless communication module and function recovery method thereof, electronic device, and storage medium WO2023124328A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111657244.3A CN114448779A (en) 2021-12-30 2021-12-30 Wireless communication module, function recovery method thereof, electronic device and storage medium
CN202111657244.3 2021-12-30

Publications (1)

Publication Number Publication Date
WO2023124328A1 true WO2023124328A1 (en) 2023-07-06

Family

ID=81365155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/122421 WO2023124328A1 (en) 2021-12-30 2022-09-29 Wireless communication module and function recovery method thereof, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114448779A (en)
WO (1) WO2023124328A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448779A (en) * 2021-12-30 2022-05-06 锐凌无线有限责任公司 Wireless communication module, function recovery method thereof, electronic device and storage medium
CN115185741A (en) * 2022-06-14 2022-10-14 锐凌无线有限责任公司 Data recovery method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307157A1 (en) * 2007-06-06 2008-12-11 Yi-Feng Jang Method and system for updating firmware of microcontroller
CN102859963A (en) * 2010-04-19 2013-01-02 苹果公司 Booting and configuring a subsystem securely from non-local storage
CN108023765A (en) * 2017-11-03 2018-05-11 珠海格力电器股份有限公司 Equipment firmware upgrading method and device and storage medium
CN112463243A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 Online cascade loading firmware system based on boundary scanning and method thereof
CN114448779A (en) * 2021-12-30 2022-05-06 锐凌无线有限责任公司 Wireless communication module, function recovery method thereof, electronic device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8499295B2 (en) * 2010-09-20 2013-07-30 American Megatrends, Inc. Microcontroller firmware running from RAM and applications of the same
JP6198843B2 (en) * 2012-12-12 2017-09-20 華為技術有限公司Huawei Technologies Co.,Ltd. Hard disk system operating method, storage system, and processor
US9477564B2 (en) * 2014-06-20 2016-10-25 Intel Corporation Method and apparatus for dynamic node healing in a multi-node environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307157A1 (en) * 2007-06-06 2008-12-11 Yi-Feng Jang Method and system for updating firmware of microcontroller
CN102859963A (en) * 2010-04-19 2013-01-02 苹果公司 Booting and configuring a subsystem securely from non-local storage
CN108023765A (en) * 2017-11-03 2018-05-11 珠海格力电器股份有限公司 Equipment firmware upgrading method and device and storage medium
CN112463243A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 Online cascade loading firmware system based on boundary scanning and method thereof
CN114448779A (en) * 2021-12-30 2022-05-06 锐凌无线有限责任公司 Wireless communication module, function recovery method thereof, electronic device and storage medium

Also Published As

Publication number Publication date
CN114448779A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2023124328A1 (en) Wireless communication module and function recovery method thereof, electronic device, and storage medium
US9563442B2 (en) Baseboard management controller and method of loading firmware
EP1571527A1 (en) System and method for providing anti-virus program using wireless communication terminal
CN103412769A (en) External card parameter configuration method, equipment and system
US20190391799A1 (en) Apparatus and Method to Execute Prerequisite Code Before Delivering UEFI Firmware Capsule
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
CN111338662A (en) Firmware upgrading method and device for slave station and terminal
CN106020875B (en) Firmware update management method and device of embedded terminal
US9727507B2 (en) USB device remote control method and system
US6915368B2 (en) Computer system and processing method for driving program of smart peripheral device
WO2019119408A1 (en) Manageability engine and automatic firmware validation
US11144328B2 (en) System method to update failover process by running basic input/output (BIOS) system boot code from non-volatile memory express device (NVME)
US10802916B2 (en) System and method to enable rapid recovery of an operating system image of an information handling system after a malicious attack
US20230061066A1 (en) Device failure repair method and apparatus, electronic device, and storage medium
KR20080108526A (en) Platform boot with bridge support
US20100064036A1 (en) Peripheral device operation method, peripheral device and host
US9594899B2 (en) Apparatus and method for managing operation of a mobile device
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN111459524A (en) Software upgrading method, device and system
US9792168B2 (en) System and method for cloud remediation of a client with a non-bootable storage medium
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
WO2024103583A1 (en) Method and apparatus for changed bios options to take effect, nonvolatile readable storage medium, and electronic apparatus
CN111813596A (en) Chip restarting method and device and computing equipment
WO2020102940A1 (en) Abnormality processing method, terminal device and storage medium

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: 22913593

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE