WO2023123898A1 - 固件烧录方法、装置、烧录设备以及固件烧录系统 - Google Patents

固件烧录方法、装置、烧录设备以及固件烧录系统 Download PDF

Info

Publication number
WO2023123898A1
WO2023123898A1 PCT/CN2022/099698 CN2022099698W WO2023123898A1 WO 2023123898 A1 WO2023123898 A1 WO 2023123898A1 CN 2022099698 W CN2022099698 W CN 2022099698W WO 2023123898 A1 WO2023123898 A1 WO 2023123898A1
Authority
WO
WIPO (PCT)
Prior art keywords
firmware
module
burning
burned
identification
Prior art date
Application number
PCT/CN2022/099698
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 WO2023123898A1 publication Critical patent/WO2023123898A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present application relates to the technical field of firmware burning, in particular to a firmware burning method, device, burning equipment and firmware burning system.
  • Firmware is a program stored in an erasable read-only memory (EROM) or an erasable programmable read-only memory (EPROM). The popular understanding is "solidified software". Firmware acts as the software for the most basic and bottom-level work of a system. In hardware devices, firmware is the soul of hardware devices, because some hardware devices have no other software components except firmware, so firmware also determines the function and performance of hardware devices.
  • Firmware burning refers to the process of writing new firmware into the erasable programmable read-only memory to replace the original firmware. In the case that multiple module models need to be programmed, the programming efficiency is low.
  • a firmware burning method, device, burning equipment and firmware burning system with high burning efficiency are provided.
  • the present application provides a firmware burning method, which is applied to burning equipment, and the method includes: obtaining the module identification of the module to be burned, and the module identification carries the model of the module to be burned Information; burn the target firmware corresponding to the module identification in the firmware burning package into the module to be burned, and the firmware burning package includes a plurality of firmware corresponding to different models.
  • the firmware burning package also includes the corresponding relationship between the module identification and the firmware, and the target firmware corresponding to the module identification in the firmware burning package is burned to the waiting
  • the steps in the burning module include: obtaining the corresponding relationship between the module identification and the firmware from the firmware burning package; according to the corresponding relationship between the module identification and the firmware, the The target firmware corresponding to the module identification is burned into the module to be burned.
  • the firmware burning package includes a firmware file and a parsing file
  • the firmware file includes a plurality of firmware
  • the parsing file is used to store the information between the module identifier and the location identifier of the firmware.
  • the position identification is used to identify the position of the firmware in the firmware file
  • the step of burning the target firmware corresponding to the module identification in the firmware burning package to the module to be burned includes: Decompress the firmware burning package, obtain the parsing file and the firmware file; extract the corresponding relationship between the module identifier and the location identifier of the firmware from the parsing file, and determine the Burning the target location identifier corresponding to the module identifier of the module; extracting the target firmware corresponding to the target location identifier from the firmware file, and burning the target firmware into the module to be burned.
  • the firmware burning package also includes the correspondence between the module identification, operator information, and the firmware, and the target firmware corresponding to the module identification in the firmware burning package
  • the step of burning into the module to be burned includes: obtaining the operator information of the module to be burned; obtaining the module identification, operator information and the communication between the firmware from the firmware burning package; Correspondence; according to the correspondence between the module identification, operator information and the firmware, burn the target firmware corresponding to the module identification and operator information of the module to be burned in the firmware burning package to the described in the module to be programmed.
  • the module identification is stored in the setting storage area of the module to be burned, and the data stored in the setting storage area will not be cleared after the firmware burning is completed.
  • the step of acquiring the module identification of the module to be programmed includes: sending an acquisition instruction to the module to be programmed; receiving the module identification sent by the module to be programmed according to the acquisition instruction.
  • the present application also provides a firmware burning device, the device includes: an acquisition module, used to acquire the module identification of the module to be burned, and the module identification carries the model of the module to be burned Information; a burning module, which is used to burn the firmware corresponding to the module identification in the firmware burning package into the module to be burned, and the firmware burning package includes a plurality of firmware corresponding to different models.
  • the present application also provides a burning device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it realizes any of the above-mentioned first aspects. method steps.
  • the present application also provides a firmware burning system, the firmware burning system includes: a burning device, the burning device is used to implement the steps of the method described in any one of the above first aspects;
  • the module to be burned is connected with the burning device, and the module to be burned is preset with a module identification, and the module identification carries model information of the module to be burned.
  • the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.
  • the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.
  • Fig. 1 is the application environment figure of firmware burning method in an embodiment
  • Fig. 2 is a schematic flow chart of a firmware burning method in an embodiment
  • Fig. 3 is a schematic flow chart of the steps of burning the target firmware corresponding to the module identification in the firmware burning package to the module to be burned in the first embodiment
  • Fig. 4 is a schematic flow chart of the steps of burning the target firmware corresponding to the module identification in the firmware burning package to the module to be burned in the second embodiment;
  • Fig. 5 is a schematic flow chart of the steps of burning the target firmware corresponding to the module identification in the firmware burning package to the module to be burned in the third embodiment
  • Fig. 6 is a schematic flow chart of the steps of burning the target firmware corresponding to the module identification in the firmware burning package to the module to be burned in the fourth embodiment
  • Fig. 7 is a schematic flow chart of the steps of obtaining the module identification of the module to be burned in one embodiment
  • Fig. 8 is a schematic flow chart of a firmware burning method in another embodiment
  • Fig. 9 is a structural block diagram of a firmware burning device in an embodiment
  • Fig. 10 is an internal structural diagram of a burning device in an embodiment
  • Fig. 11 is an internal structure diagram of a module to be programmed in an embodiment.
  • a single firmware burning package can only be used to upgrade modules of the same model. If multiple models need to be upgraded, multiple firmware burning packages need to be packaged. For the firmware burning party, multiple models need to obtain multiple firmware burning packages corresponding to different models, which increases the difficulty of version control and reduces efficiency. For the burning package provider, packaging multiple firmware burning packages requires a lot of human resources in the R&D department and testing department, which increases the labor cost of the enterprise.
  • the firmware programming method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1 .
  • the burning device 102 is connected with the module to be burned 104 , and the burning device 102 is used for burning the firmware corresponding to the module to be burned 104 into the module to be burned 104 .
  • the burning device 102 may include but not limited to various personal computers, notebook computers, and tablet computers.
  • the module can be a wireless communication module, or a smart device including a wireless communication module (such as a smart car, a smart cabinet, a smart meter, etc.), or a communication device such as a mobile phone, a computer, or a tablet.
  • a firmware burning method is provided, and the method is applied to the burning device 102 in FIG. 1 as an example for illustration.
  • the firmware burning method can be It includes step S202 to step S204.
  • the module identification of the module to be burned carries the model information of the module to be burned. It should be noted that the configuration, functions and features of the modules of different models are different, so the firmware to be burned is also different.
  • the module identifier can be HWID (hardware code), and HWID is closely related to hardware. Using HWID as the module identifier, the burning device can specify the model of the module to be burned. In one embodiment, the HWID is written into the module when the module leaves the factory.
  • the firmware burning package includes a plurality of firmware corresponding to different models.
  • the burning device can determine the firmware corresponding to the model of the module to be burned through the module identification of the module to be burned, and burn the firmware corresponding to the model of the module to be burned into the module to be burned to realize the The functions to be realized by the recording module.
  • a firmware burning package includes multiple firmwares of different models, which can reduce the number of firmware burning packages required by the firmware burning party, and facilitate the unified management of the firmware burning package by the firmware burning party. Improve efficiency, and at the same time, reduce the human resources and labor costs of the programming package provider.
  • the firmware burning method may further include: obtaining a firmware burning package.
  • obtaining the firmware burning package after the step of obtaining the firmware burning package, it includes: storing the firmware burning package in a memory of the firmware of the burning device.
  • the burning device includes a burning service and a memory.
  • the firmware burning package is stored in the memory.
  • the burning service obtains the firmware burning package from the memory, and combines the firmware burning package with the module identification Burn the corresponding target firmware into the module to be burned.
  • the burning service of the burning device may be a driver preset in the burning device for realizing the purpose of burning.
  • the step of burning the target firmware corresponding to the module identification in the firmware burning package into the module to be burned according to the module identification may include: extracting the target firmware corresponding to the module identification from the firmware burning package according to the module identification Target firmware, burn the target firmware into the module to be burned.
  • the firmware burning method may further include: establishing a burning channel, and burning the target firmware corresponding to the module identification in the firmware burning package into the module to be burned through the burning channel.
  • the burning device obtains the module identification of the module to be burned, and the module identification carries the model information of the module to be burned, and according to the module identification, the firmware corresponding to the module identification in the firmware burning package is Burning to the burning module, the firmware burning package includes multiple firmwares corresponding to different models.
  • the firmware burning package can support the firmware of multiple models.
  • the step of burning the target firmware corresponding to the module identifier in the firmware burning package into the module to be burned may include steps S302 to S304.
  • the firmware programming package includes the correspondence between module identifiers and firmware. According to the corresponding relationship between the module ID and the firmware, when the module ID of the module to be burned is obtained, the target firmware corresponding to the module ID of the module to be burned can be matched, that is, the model of the module to be burned can be matched corresponding target firmware.
  • the corresponding relationship between the module identifier and the firmware is preset in the firmware burning package, so that when the burning device obtains the firmware burning package, the burning device can
  • the identification determines the target firmware, and there is no need to pre-set the burning device to set the corresponding relationship between the module identification and the firmware in the burning device, which simplifies the operation.
  • only the firmware burning package needs to be sent It is enough to replace the burning device, and there is no need to set up the new burning device.
  • the step of burning the target firmware corresponding to the module identification in the firmware burning package into the module to be burned may include steps S402 to S406.
  • the firmware file and the analysis file are packaged to form a firmware burning package, that is, the firmware burning package includes the firmware file and the analysis file.
  • the firmware file includes multiple firmwares, and the parsing file is used to store the corresponding relationship between the module identifier and the location identifier of the firmware, and the location identifier is used to identify the location of the firmware in the firmware file.
  • the target location identifier is the location of the target firmware in the firmware file.
  • the burning device can be mapped to the target location identifier from the parsing file through the module identifier, so that the location identifier of the target firmware can be determined. Because the firmware corresponds to the location identifier of the firmware, and the location identifier of the firmware corresponds to the module identifier, and the module identifier can be used to reflect the model of the module, thereby realizing the mapping between the model of the module and the firmware.
  • the burning device can locate the position of the target firmware in the firmware file according to the target location identifier, thereby extracting the target firmware from the firmware file, and burning the target firmware into the module to be burned, so as to realize the required functionality.
  • the step of burning the target firmware corresponding to the module identifier in the firmware burning package into the module to be burned may include steps S502 to S506.
  • an operator refers to a provider that provides network services for a module.
  • the step of obtaining the operator information of the module to be burned includes: obtaining an International Mobile Subscriber Identity (IMSI) or an Integrated Circuit Card Identification Number (ICCID) of the module to be burned.
  • IMSI International Mobile Subscriber Identity
  • ICCID Integrated Circuit Card Identification Number
  • the International Mobile Subscriber Identification Code or IC Card Identification Code can uniquely determine an operator, that is, the only operator can be matched according to the International Mobile Subscriber Identification Code or IC Card Identification Code.
  • the International Mobile Subscriber Identification Code of the module to be burned Code or IC card identification code can determine the operator of the module to be programmed.
  • the firmware burning package includes module identification, operator information, and the corresponding relationship of firmware. According to the corresponding relationship between module identification, operator information and firmware, after obtaining the module identification of the module to be burned and the operator information of the module to be burned, it can be matched with the module identification of the module to be burned and the The target firmware corresponding to the operator information of the module can match the target firmware corresponding to the model of the module to be burned and the operator to which the module belongs.
  • the step obtains the correspondence between the module identification, operator information and firmware from the firmware burning package, and according to the correspondence between the module identification, operator information and firmware, the Burning the target firmware corresponding to the module identification and operator information of the module to be burned in the firmware burning package to the module to be burned includes steps S602 to S606.
  • the firmware file and the analysis file are packaged to form a firmware burning package, that is, the firmware burning package includes the firmware file and the analysis file.
  • the firmware file includes multiple firmwares, and the parsing file is used to store the correspondence between the module identifier, the operator information, and the location identifier of the firmware, and the location identifier of the firmware is used to identify the location of the firmware in the firmware file.
  • firmware versions of the modules of the same model are different from the operators, that is, the modules of the same model may have multiple different firmwares.
  • the burning device can determine the firmware corresponding to the model of the module to be burned and the operator it belongs to according to the module identification and operator information.
  • the parsing file is used to store the correspondence between the module identifier and the location identifier of the first firmware
  • the location identifier of the first firmware may include a plurality of location identifiers of firmware corresponding to operators one by one.
  • the step of extracting the correspondence between the module identification, the operator information, and the location identification of the firmware from the parsing file, and determining the target location identification corresponding to the module identification of the module to be burned and the operator information Including: extracting the corresponding relationship between the module identification and the position identification of the first firmware from the parsing file, and according to the corresponding relationship between the module identification and the position identification of the first firmware, obtaining the position of the first firmware corresponding to the module identification of the module to be burned logo.
  • the location identifier of the target firmware is acquired from the location identifier of the first firmware according to the operator information.
  • the parsing file is used to store the correspondence between the operator information and the location identifier of the second firmware
  • the location identifier of the second firmware may include location identifiers of multiple firmwares corresponding to the module identifier.
  • the step of extracting the correspondence between the module identification, the operator information, and the location identification of the firmware from the parsing file, and determining the target location identification corresponding to the module identification of the module to be burned and the operator information Including: extracting the corresponding relationship between the operator information and the location identifier of the second firmware from the parsing file, and according to the corresponding relationship between the operator information and the location identifier of the second firmware, obtaining the corresponding second The location identifier for the firmware.
  • the location identifier of the target firmware is obtained from the location identifier of the second firmware according to the module identifier of the module to be burned.
  • the burning device can locate the position of the target firmware in the firmware file according to the target location identifier, thereby extracting the target firmware from the firmware file, and burning the target firmware into the module to be burned, so as to realize the required functionality.
  • the step of obtaining the module identifier of the module to be burned may include steps S702 to S704.
  • the burning device establishes a connection channel with the module to be burned, and sends an acquisition instruction to the module to be burned through the connection channel.
  • the module to be programmed sends the module identifier to the module to be programmed in response to the acquiring instruction.
  • a module includes a memory.
  • the module identification is stored in the setting storage area of the module to be burned. Among them, the data stored in the setting storage area will not be cleared after the firmware burning is completed.
  • the set storage area is a storage area divided by the memory in the module to be programmed.
  • the memory is NVM (non-volatile memory). Among them, NVM is a type of memory capable of retaining saved data even when the computer is powered off. In this embodiment, by dividing an area dedicated to storing the module ID in the memory of the module, it is possible to prevent the module ID from being cleared after the programming is completed, and writing the module ID once can complete multiple programming, thereby improving the programming efficiency.
  • a firmware burning method is provided, and the firmware burning method may include steps S802 to S812.
  • the burning device sends an acquisition instruction to the module to be burned, and acquires operator information of the module to be burned.
  • the module to be burned sends the module identification to the burning device in response to the acquiring instruction.
  • the setting storage area of the burning device stores the module identification. Among them, the data stored in the setting storage area will not be cleared after the firmware burning is completed.
  • the module identifier can be HWID, and the HWID is written into the setting storage area when the module leaves the factory.
  • the burning device decompresses the firmware burning package, and obtains the parsing file and the firmware file.
  • the firmware file includes a plurality of firmware corresponding to different models, and the parsing file is used to store the corresponding relationship between the module identifier and the location identifier of the first firmware, and the location identifier of the first firmware may include a plurality of firmware corresponding to the operator Location ID.
  • the burning device extracts the corresponding relationship between the module identifier and the location identifier of the first firmware from the parsing file, and obtains the corresponding relationship between the module identifier and the module identifier of the module to be burned according to the corresponding relationship between the module identifier and the first firmware location identifier.
  • the location identifier for the firmware is
  • the burning device acquires the location identifier of the target firmware from the location identifier of the first firmware according to the operator information of the module to be burned.
  • the burning device obtains the target firmware from the firmware file according to the location identifier of the target firmware, and burns the target firmware into the module to be burned.
  • the burning device before the burning device burns the target firmware into the module to be burned, it may further include: establishing a burning channel.
  • the step that the burning device burns the target firmware into the module to be burned includes: the burning device burns the target firmware into the module to be burned through the burning channel.
  • steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
  • an embodiment of the present application also provides a firmware burning device for implementing the above-mentioned firmware burning method.
  • the solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the firmware burning device provided below can be referred to above for the firmware burning method limited and will not be repeated here.
  • a firmware burning device including: an acquisition module and a burning module, wherein: the acquisition module 902 is used to acquire the module identification of the module to be burned, and the module identification It carries model information of the module to be burned.
  • the burning module 904 is used for burning the firmware corresponding to the module identification in the firmware burning package into the module to be burned.
  • the firmware burning package includes a plurality of firmware corresponding to different models.
  • the burning module can also be used to obtain the correspondence between the module identification and the firmware from the firmware burning package.
  • the burning module can also be used to burn the target firmware corresponding to the module identifier in the firmware burning package into the module to be burned according to the corresponding relationship between the module identifier and the firmware.
  • the burning module can also be used to decompress the firmware burning package, and obtain the parsing file and the firmware file.
  • the burning module can also be used to extract the corresponding relationship between the module identifier and the location identifier of the firmware from the analysis file, and determine the target location identifier corresponding to the module identifier of the module to be burned.
  • the burning module can also be used to extract the target firmware corresponding to the target location identifier from the firmware file, and burn the target firmware into the module to be burned.
  • the burning module can also be used to acquire operator information of the module to be burned.
  • the burning module can also be used to extract the corresponding relationship between the module identification, the operator information, and the location identification of the firmware from the parsing file, and determine the module identification and the module identification of the module to be burned and The target location identifier corresponding to the carrier information.
  • the acquisition module can also be used to send an acquisition instruction to the module to be programmed.
  • the acquisition module can also be used to receive the module identification sent by the module to be programmed according to the acquisition instruction.
  • Each module in the above-mentioned firmware burning device can be fully or partially realized by software, hardware and combinations thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and or a computer.
  • a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and or a computer.
  • an application running on a server and a server can be a component.
  • One or more components can reside within a process and or thread of execution, and a component can be localized on one computer and or distributed between two or more computers.
  • a burning device is provided.
  • the burning device may be a terminal, and its internal structure may be as shown in FIG. 10 .
  • the burning device includes a processor, a memory and a communication interface connected through a system bus. Wherein, the processor of the burning device is used to provide calculation and control capabilities.
  • the memory of the burning device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the programming device is used for wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies.
  • FIG. 10 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the programming equipment applied to the solution of this application.
  • Devices may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a burning device including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
  • a module to be programmed is provided.
  • the module to be programmed may be a terminal, and its internal structure may be as shown in FIG. 11 .
  • the module to be programmed includes a processor, a memory and a communication interface connected through a system bus. Wherein, the processor of the module to be programmed is used to provide calculation and control capabilities.
  • the memory of the module to be programmed includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the module to be programmed is used for wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies.
  • WIFI wireless fidelity
  • NFC Near Field Communication
  • FIG. 11 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the module to be burned to which the solution of this application is applied.
  • the programming module may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
  • a firmware burning system may include the burning device 102 as described in any of the above embodiments, and the module to be burned 104 as described in any of the above embodiments.
  • the module to be burned 104 is connected to the burning device 102 , and the module to be burned 104 is preset with a module identifier, and the module identifier carries model information of the module to be burned 104 .
  • the memory of the recording device includes a setting storage area.
  • the module identification is stored in the setting storage area, and the data stored in the setting storage area will not be cleared after the firmware burning is completed.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.
  • any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage.
  • Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc.
  • the volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
  • RAM Random Access Memory
  • RAM Random Access Memory
  • RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
  • the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
  • the non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto.
  • the processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本申请涉及一种固件烧录方法、装置、烧录设备以及固件烧录系统。方法包括:获取待烧录模块的模块标识(S202),模块标识携带有待烧录模块的机型信息;将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中(S204),固件烧录包包括多个与不同机型对应的固件。

Description

固件烧录方法、装置、烧录设备以及固件烧录系统
相关申请的交叉引用
本申请要求于2021年12月30日提交中国专利局、申请号为2021116616530、发明名称为“固件烧录方法、装置、烧录设备以及固件烧录系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及固件烧录技术领域,特别是涉及一种固件烧录方法、装置、烧录设备以及固件烧录系统。
背景技术
固件(Firmware)是存储在可擦除只读存储器(EROM)或可擦出可编程只读存储器中(EPROM)的程序,通俗的理解就是“固化的软件”。固件担任着一个系统最基础最底层工作的软件。而在硬件设备中,固件就是硬件设备的灵魂,因为一些硬件设备除了固件以外没有其他软件组成,因此固件也就决定着硬件设备的功能及性能。
固件烧录是指将新的固件写入可擦出可编程只读存储器中,代替原有的固件的过程。在需要对多个模块机型进行烧录的情况下,烧录效率低。
发明内容
根据本申请的各种实施例,提供一种能够烧录效率高的固件烧录方法、装置、烧录设备以及固件烧录系统。
第一方面,本申请提供了一种固件烧录方法,应用于烧录设备,所述方法包括:获取待烧录模块的模块标识,所述模块标识携带有所述待烧录模块的机型信息;将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中,所述固件烧录包包括多个与不同机型对应的固件。
在其中一个实施例中,所述固件烧录包还包括所述模块标识与所述固件的对应关系,所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:从所述固件烧录包中 获取所述模块标识与所述固件的对应关系;根据所述模块标识与所述固件的对应关系,将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中。
在其中一个实施例中,所述固件烧录包包括固件文件和解析文件,所述固件文件包括多个固件,所述解析文件用于存储所述模块标识与所述固件的位置标识之间的对应关系,所述位置标识用于标识固件在所述固件文件的位置;所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:解压缩所述固件烧录包,获取所述解析文件和所述固件文件;从所述解析文件中提取所述模块标识与所述固件的位置标识之间的对应关系,并确定与所述待烧录模块的模块标识对应的目标位置标识;从所述固件文件中提取与所述目标位置标识对应的目标固件,并将所述目标固件烧录至所述待烧录模块中。
在其中一个实施例中,所述固件烧录包还包括所述模块标识、运营商信息以及所述固件之间的对应关系,所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:获取所述待烧录模块的运营商信息;从所述固件烧录包中获取所述模块标识、运营商信息以及所述固件之间的对应关系;根据所述模块标识、运营商信息以及所述固件之间的对应关系,将固件烧录包中与所述待烧录模块的模块标识以及运营商信息对应的目标固件烧录至所述待烧录模块中。
在其中一个实施例中,所述模块标识存储于待烧录模块的设定存储区,所述设定存储区存储的数据在固件烧录完成后不会被清除。
在其中一个实施例中,所述获取待烧录模块的模块标识的步骤包括:发送获取指令至所述待烧录模块;接收所述待烧录模块根据所述获取指令发送的模块标识。
第二方面,本申请还提供了一种固件烧录装置,所述装置包括:获取模块,用于获取待烧录模块的模块标识,所述模块标识携带有所述待烧录模块的机型信息;烧录模块,用于将固件烧录包中与所述模块标识对应的固件烧录至所述待烧录模块中,所述固件烧录包包括多个与不同机型对应的固件。
第三方面,本申请还提供了一种烧录设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面任一所述的方法的步骤。
第四方面,本申请还提供了一种固件烧录系统,所述固件烧录系统包括:烧录设备,所述烧录设备用于实现如上述第一方面任一所述的方法的步骤;待烧录模块,与所述烧录设备连接,所述待烧录模块预设有模块标识,所述模块标识携带有所述待烧录模块的机型信息。
第五方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序 被处理器执行时实现如上述第一方面任一所述的方法的步骤。
第六方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上述第一方面任一所述的方法的步骤。
本发明的一个或多个实施例的细节在下面的附图和描述中提出。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更好地描述和说明这里公开的那些发明的实施例和或示例,可以参考一幅或多幅附图。用于描述附图的附加细书或示例不应当被认为是对所公开的发明、目前描述的实施例和或示例以及目前理解的这些发明的最佳模式中的任何一者的范围的限制。
图1为一个实施例中固件烧录方法的应用环境图;
图2为一个实施例中固件烧录方法的流程示意图;
图3为第一实施例中将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中的步骤的流程示意图;
图4为第二实施例中将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中的步骤的流程示意图;
图5为第三实施例中将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中的步骤的流程示意图;
图6为第四实施例中将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中的步骤的流程示意图;
图7为一个实施例中获取待烧录模块的模块标识的步骤的流程示意图;
图8为另一个实施例中固件烧录方法的流程示意图;
图9为一个实施例中固件烧录装置的结构框图;
图10为一个实施例中烧录设备的内部结构图;
图11为一个实施例中待烧录模块的内部结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
目前单个固件烧录包只能用于升级同一种机型的模块,如果需要对多种机型进行升级,则需要打包多个固件烧录包。对于固件烧录方,多种机型需要获取有多个与不同机型对应的固件烧录包,增加了版本管控难度,减低效率。对于烧录包提供方,打包多个固件烧录包,需要耗费大量研发部和测试部的人力资源,增加企业的人力成本。
本申请实施例提供的固件烧录方法,可以应用于如图1所示的应用环境中。其中,烧录设备102与待烧录模块104连接,烧录设备102用于将与待烧录模块104对应的固件烧录到待烧录模块104中。其中,烧录设备102可以包括但不限于是各种个人计算机、笔记本电脑、平板电脑。模块可以是无线通信模组,或是包含无线通信模组的智能设备(如智能汽车、智能柜、智能仪表等),或是手机、电脑、平板等通信设备。
在一个实施例中,如图2所示,提供了一种固件烧录方法,以该方法应用于图1中的烧录设备102为例进行说明,如图2所示,固件烧录方法可以包括步骤S202至步骤S204。
S202,获取待烧录模块的模块标识。
其中,待烧录模块的模块标识携带有待烧录模块的机型信息。应说明的是,机型不同的模块的配置、功能以及特性有所差别,因此所要烧录的固件也不同。在一个实施例中,模块标识可以为HWID(硬件编码),HWID和硬件密切相关,利用HWID作为模块标识,烧录设备可以明确待烧录模块的机型。在一个实施例中,HWID是在模块出厂阶段写入到模块中的。
S204,将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中。
其中,固件烧录包包括多个与不同机型对应的固件。烧录设备通过待烧录模块的模块标识可以确定与待烧录模块的机型对应的固件,将与待烧录模块的机型对应的固件烧录到待烧录模块中,以实现待烧录模块所要实现的功能。应说明的是,一个固件烧录包包括多个不同机型的固件,可以减小固件烧录方所需的固件烧录包的数量,方便固件烧录方对固件烧录包的统一管理,提高效率,同时,可以减少烧录包提供方的人力资源以及人力成本。
在一个实施例中,固件烧录方法还可以包括:获取固件烧录包。在一个实施例中,获取固件烧录包的步骤之后包括:将固件烧录包存储于烧录设备的固件的存储器中。烧录设备包括烧录服务和存储 器,存储器中存储有固件烧录包,在要执行烧录操作的情况下,烧录服务从存储器中获取固件烧录包,将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中。其中,烧录设备的烧录服务可以为预设在烧录设备中用于实现烧录目的的驱动程序。
在一个实施例中,根据模块标识将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中的步骤可以包括:根据模块标识从固件烧录包中提取与模块标识对应的目标固件,将目标固件烧录至待烧录模块中。
在一个实施例中,固件烧录方法还可以包括:建立烧录通道,将固件烧录包中与模块标识对应的目标固件通过烧录通道烧录至待烧录模块中。
上述实施例提供的固件烧录方法,烧录设备获取待烧录模块的模块标识,该模块标识携带有待烧录模块的机型信息,根据模块标识将固件烧录包中与模块标识对应的固件烧录至烧录模块中,固件烧录包包括多个与不同机型对应的固件。固件烧录包能够支持多个机型固件,通过上述固件烧录方法,通过一个固件烧录包即可实现对不同机型的模块进行烧录,从而提高了烧录效率。
在一个实施例中,如图3所示,步骤将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中可以包括步骤S302至步骤S304。
S302,从固件烧录包中获取模块标识与固件的对应关系。
S304,根据模块标识与固件的对应关系,将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中。
应说明的是,固件烧录包包括模块标识与固件的对应关系。根据模块标识与固件的对应关系,在获得待烧录模块的模块标识的情况下可以匹配到与待烧录模块的模块标识对应的目标固件,也即可以匹配到与待烧录模块的机型对应的目标固件。
本实施例通过将模块标识与固件的对应关系预设在固件烧录包中,从而在烧录设备获取到固件烧录包的情况下,烧录设备就可以根据获取的待烧录模块的模块标识确定目标固件,无需预先对烧录设备进行设置,以将模块标识与固件的对应关系设置于烧录设备中,简化操作,在更换烧录设备的情况下,只需要将固件烧录包发送至更换后的烧录设备即可,无需对新的烧录设备进行设置。
在一个实施例中,如图4所示,步骤将固件烧录包中与模块标识对应的目标固件烧录至待烧录模 块中,可以包括步骤S402至步骤S406。
S402,解压缩固件烧录包,获取解析文件和固件文件。
应说明的是,将固件文件和解析文件打包形成固件烧录包,也即固件烧录包包括固件文件和解析文件。固件文件包括多个固件,解析文件用于存储模块标识与固件的位置标识之间的对应关系,位置标识用于标识固件在固件文件的位置。
S404,从解析文件中提取模块标识与固件的位置标识之间的对应关系,并确定与待烧录模块的模块标识对应的目标位置标识。
应说明的是,目标位置标识即为目标固件在固件文件中的位置。烧录设备通过模块标识从解析文件中可以映射到目标位置标识,从而可以确定目标固件的位置标识。由于固件与固件的位置标识对应,而固件的位置标识又与模块标识对应,而模块标识可以用于反映模块的机型,从而实现了模块机型与固件的映射。
S406,从固件文件中提取与目标位置标识对应的目标固件,并将目标固件烧录至待烧录模块中。
应说明的是,烧录设备根据目标位置标识可以定位到目标固件在固件文件的位置,从而在固件文件中提取目标固件,将目标固件烧录至待烧录模块中,以实现待烧录模块所需功能。
在一个实施例中,如图5所示,步骤将固件烧录包中与模块标识对应的目标固件烧录至待烧录模块中可以包括步骤S502至步骤S506。
S502,获取待烧录模块的运营商信息。
可以理解的是,运营商指的是为模块提供网络服务的供应商。在一个实施例中,获取待烧录模块的运营商信息的步骤包括:获取待烧录模块的国际移动用户识别码(IMSI)或集成电路卡识别码(ICCID)。国际移动用户识别码或集成电路卡识别码可以唯一确定一个运营商,也即根据国际移动用户识别码或集成电路卡识别码可以匹配到唯一的运营商,根据待烧录模块的国际移动用户识别码或集成电路卡识别码可以确定待烧录模块的运营商。
S504,从固件烧录包中获取模块标识、运营商信息以及固件之间的对应关系。
S506,根据模块标识、运营商信息以及固件之间的对应关系,将固件烧录包中与待烧录模块的模块标识以及运营商信息对应的目标固件烧录至待烧录模块中。
应说明的是,固件烧录包包括模块标识、运营商信息以及固件的对应关系。根据模块标识、运营 商信息以及固件的对应关系,在获得待烧录模块的模块标识以及待烧录模块的运营商信息的情况下,可以匹配到与待烧录模块的模块标识以及待烧录模块的运营商信息对应的目标固件,也即可以匹配到与待烧录模块的机型以及待烧录模块所属运营商对应的目标固件。
在一个实施例中,如图6所示,步骤从固件烧录包中获取模块标识、运营商信息以及固件之间的对应关系,根据模块标识、运营商信息以及固件之间的对应关系,将固件烧录包中与待烧录模块的模块标识以及运营商信息对应的目标固件烧录至待烧录模块中包括步骤S602至步骤S606。
S602,解压缩固件烧录包,获取解析文件和固件文件。
应说明的,将固件文件和解析文件打包形成固件烧录包,也即固件烧录包包括固件文件和解析文件。固件文件包括多个固件,解析文件用于存储模块标识、运营商信息以及固件的位置标识之间的对应关系,固件的位置标识用于标识固件在固件文件的位置。
S604,从解析文件中提取模块标识、运营商信息、固件的位置标识之间的对应关系,并确定与待烧录模块的模块标识以及运营商信息所对应的目标位置标识。
应说明的是,同一机型的模块所属的运营商不同,其固件版本也会不同,也即同一机型的模块可能对应有多个不同的固件,通过获取待烧录模块的运营商信息,确定待烧录的模块所属的运营商。烧录设备根据模块标识和运营商信息可以确定与待烧录模块的机型以及所属运营商对应的固件。
在一个实施例中,解析文件用于存储模块标识和第一固件的位置标识的对应关系,第一固件的位置标识可以包括与运营商一一对应的多个固件的位置标识。在一个实施例中,从解析文件中提取模块标识、运营商信息、固件的位置标识之间的对应关系,并确定与待烧录模块的模块标识以及运营商信息所对应的目标位置标识的步骤包括:从解析文件中提取模块标识与第一固件的位置标识的对应关系,并根据模块标识与第一固件的位置标识的对应关系,获取与待烧录模块的模块标识对应第一固件的位置标识。根据运营商信息从第一固件的位置标识中获取目标固件的位置标识。
在一个实施例中,解析文件用于存储运营商信息和第二固件的位置标识的对应关系,第二固件的位置标识可以包括与模块标识对应的多个固件的位置标识。在一个实施例中,从解析文件中提取模块标识、运营商信息、固件的位置标识之间的对应关系,并确定与待烧录模块的模块标识以及运营商信息所对应的目标位置标识的步骤包括:从解析文件中提取运营商信息和第二固件的位置标识的对应关系,并根据运营商信息和第二固件的位置标识的对应关系,获取与待烧录模块的运营商信息对应第二 固件的位置标识。根据待烧录模块的模块标识从第二固件的位置标识中获取目标固件的位置标识。
S606,从固件文件中提取与目标位置标识对应的目标固件,并将目标固件烧录至所述待烧录模块中。
应说明的是,烧录设备根据目标位置标识可以定位到目标固件在固件文件的位置,从而在固件文件中提取目标固件,将目标固件烧录至待烧录模块中,以实现待烧录模块所需功能。
在一个实施例中,如图7所示,步骤获取待烧录模块的模块标识可以包括步骤S702至步骤S704。
S702,发送获取指令至待烧录模块。
S704,接收待烧录模块根据获取指令发送的模块标识。
在一个实施例中,烧录设备与待烧录模块建立连接通道,通过连接通道发送获取指令至待烧录模块。待烧录模块响应于获取指令,发送模块标识至待烧录模块。
可以理解的,模块包括存储器。在一个实施例中,模块标识存储于待烧录模块的设定存储区。其中,设定存储区存储的数据在固件烧录完成后不会被清除。在一个实施例中,设定存储区为待烧录模块中存储器划分出来的存储区域。所述存储器为NVM(非易失性存储器)。其中,NVM是一种计算机即使关闭电源也能够保存已保存数据的存储器。本实施例通过在模块的存储器中划分出专门存储模块标识的区域,可以避免在烧录完成后模块标识被清除,一次写入模块标识可以完成多次烧录,提高烧录效率。
在一个实施例中,如图8所示,提供了一种固件烧录方法,该固件烧录方法可以包括步骤S802至S812。
S802,烧录设备发送获取指令至待烧录模块,并获取待烧录模块的运营商信息。
S804,待烧录模块响应于获取指令发送模块标识至烧录设备。
在一个实施例中,烧录设备的设定存储区存储有模块标识。其中,设定存储区存储的数据在固件烧录完成后不会被清除。可选的,模块标识可以为HWID,该HWID在模块出厂阶段写入到设定存储区中。
S806,烧录设备解压缩固件烧录包,获取解析文件和固件文件。
固件文件包括多个与不同机型对应的固件,解析文件用于存储模块标识和第一固件的位置标识的 对应关系,第一固件的位置标识可以包括与运营商一一对应的多个固件的位置标识。
S808,烧录设备从解析文件中提取模块标识与第一固件的位置标识的对应关系,并根据模块标识与第一固件的位置标识的对应关系,获取与待烧录模块的模块标识对应第一固件的位置标识。
S810,烧录设备根据待烧录模块的运营商信息从第一固件的位置标识中获取目标固件的位置标识。
S812,烧录设备根据目标固件的位置标识从固件文件中获取目标固件,并将目标固件烧录至待烧录模块中。
在一个实施例中,烧录设备将目标固件烧录至待烧录模块中的步骤之前还可以包括:建立烧录通道。烧录设备将目标固件烧录至待烧录模块中的步骤包括:烧录设备通过烧录通道将目标固件烧录至待烧录模块中。
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的固件烧录方法的固件烧录装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个固件烧录装置实施例中的具体限定可以参见上文中对于固件烧录方法的限定,在此不再赘述。
在一个实施例中,如图9所示,提供了一种固件烧录装置,包括:获取模块和烧录模块,其中:获取模块902用于获取待烧录模块的模块标识,所述模块标识携带有所述待烧录模块的机型信息。烧录模块904用于将固件烧录包中与所述模块标识对应的固件烧录至所述待烧录模块中。所述固件烧录包包括多个与不同机型对应的固件。
在一个实施例中,烧录模块还可以用于从所述固件烧录包中获取所述模块标识与所述固件的对应 关系。烧录模块还可以用于根据所述模块标识与所述固件的对应关系,将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中。
在一个实施例中,烧录模块还可以用于解压缩所述固件烧录包,获取所述解析文件和所述固件文件。烧录模块还可以用于从所述解析文件中提取所述模块标识与所述固件的位置标识之间的对应关系,并确定与所述待烧录模块的模块标识对应的目标位置标识。烧录模块还可以用于从所述固件文件中提取与所述目标位置标识对应的目标固件,并将所述目标固件烧录至所述待烧录模块中。
在一个实施例中,烧录模块还可以用于获取所述待烧录模块的运营商信息。烧录模块还可以用于从所述解析文件中提取所述模块标识、所述运营商信息、所述固件的位置标识之间的对应关系,并确定与所述待烧录模块的模块标识以及运营商信息所对应的目标位置标识。
在一个实施例中,获取模块还可以用于发送获取指令至所述待烧录模块。获取模块还可以用于接收所述待烧录模块根据所述获取指令发送的模块标识。
上述固件烧录装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
如在本申请中所使用的,术语“组件”、“模块”和“系统”等旨在表示计算机相关的实体,它可以是硬件、硬件和软件的组台、软件、或者执行中的软件。例如,组件可以是但不限于是,在处理器上运行的进程、处理器、对象、可执行码、执行的线程、程序和或计算机。作为说明,运行在服务器上的应用程序和服务器都可以是组件。一个或多个组件可以驻留在进程和或执行的线程中,并且组件可以位于一个计算机内和或分布在两个或更多的计算机之间。
在一个实施例中,提供了一种烧录设备,该烧录设备可以是终端,其内部结构图可以如图10所示。该烧录设备包括通过系统总线连接的处理器、存储器和通信接口。其中,该烧录设备的处理器用于提供计算和控制能力。该烧录设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该烧录设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种固件烧录方法。
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图, 并不构成对本申请方案所应用于其上的烧录设备的限定,具体的烧录设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,还提供了一种烧录设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种待烧录模块,该待烧录模块可以是终端,其内部结构图可以如图11所示。该待烧录模块包括通过系统总线连接的处理器、存储器和通信接口。其中,该待烧录模块的处理器用于提供计算和控制能力。该待烧录模块的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该待烧录模块的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现以下步骤:响应于获取指令发送模块标识至烧录设备。
本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的待烧录模块的限定,具体的待烧录模块可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,如图1所示,提供了一种固件烧录系统。该固件烧录系统可以包括如上述任一实施例所述的烧录设备102,以及如上述任一实施例所述的待烧录模块104。其中,待烧录模块104与烧录设备102连接,待烧录模块104预设有模块标识,模块标识携带有待烧录模块104的机型信息。
在一个实施例中,烧录设备的存储器包括设定存储区域。设定存储区域存储有模块标识,设定存储区存储的数据在固件烧录完成后不会被清除。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序 来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种固件烧录方法,应用于烧录设备,所述方法包括:
    获取待烧录模块的模块标识,所述模块标识携带有所述待烧录模块的机型信息;
    将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中,所述固件烧录包包括多个与不同机型对应的固件。
  2. 根据权利要求1所述的方法,其特征在于,所述固件烧录包还包括所述模块标识与所述固件的对应关系,所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:
    从所述固件烧录包中获取所述模块标识与所述固件的对应关系;
    根据所述模块标识与所述固件的对应关系,将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中。
  3. 根据权利要求1所述的方法,其特征在于,所述固件烧录包包括固件文件和解析文件,所述固件文件包括多个固件,所述解析文件用于存储所述模块标识与所述固件的位置标识之间的对应关系,所述位置标识用于标识固件在所述固件文件的位置;所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:
    解压缩所述固件烧录包,获取所述解析文件和所述固件文件;
    从所述解析文件中提取所述模块标识与所述固件的位置标识之间的对应关系,并确定与所述待烧录模块的模块标识对应的目标位置标识;
    从所述固件文件中提取与所述目标位置标识对应的目标固件,并将所述目标固件烧录至所述待烧录模块中。
  4. 根据权利要求1所述的方法,其特征在于,所述固件烧录包还包括所述模块标识、运营商信息以及所述固件之间的对应关系,所述将固件烧录包中与所述模块标识对应的目标固件烧录至所述待烧录模块中的步骤包括:
    获取所述待烧录模块的运营商信息;
    从所述固件烧录包中获取所述模块标识、运营商信息以及所述固件之间的对应关系;
    根据所述模块标识、运营商信息以及所述固件之间的对应关系,将固件烧录包中与所述待烧录模块的模块标识以及运营商信息对应的目标固件烧录至所述待烧录模块中。
  5. 根据权利要求1所述的方法,其特征在于,所述模块标识存储于待烧录模块的设定存储区,所 述设定存储区存储的数据在固件烧录完成后不会被清除。
  6. 根据权利要求1所述的方法,其特征在于,所述获取待烧录模块的模块标识的步骤包括:
    发送获取指令至所述待烧录模块;
    接收所述待烧录模块根据所述获取指令发送的模块标识。
  7. 一种固件烧录装置,所述装置包括:
    获取模块,用于获取待烧录模块的模块标识,所述模块标识携带有所述待烧录模块的机型信息;
    烧录模块,用于将固件烧录包中与所述模块标识对应的固件烧录至所述待烧录模块中,所述固件烧录包包括多个与不同机型对应的固件。
  8. 一种烧录设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。
  9. 一种固件烧录系统,所述固件烧录系统包括:
    烧录设备;所述烧录设备用于实现权利要求1至6中任一项所述的方法的步骤;
    待烧录模块,与所述烧录设备连接,所述待烧录模块预设有模块标识,所述模块标识携带有所述待烧录模块的机型信息。
  10. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。
PCT/CN2022/099698 2021-12-30 2022-06-20 固件烧录方法、装置、烧录设备以及固件烧录系统 WO2023123898A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111661653.0A CN114416121A (zh) 2021-12-30 2021-12-30 固件烧录方法、装置、烧录设备以及固件烧录系统
CN202111661653.0 2021-12-30

Publications (1)

Publication Number Publication Date
WO2023123898A1 true WO2023123898A1 (zh) 2023-07-06

Family

ID=81271363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099698 WO2023123898A1 (zh) 2021-12-30 2022-06-20 固件烧录方法、装置、烧录设备以及固件烧录系统

Country Status (2)

Country Link
CN (1) CN114416121A (zh)
WO (1) WO2023123898A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909592A (zh) * 2023-09-13 2023-10-20 宁德时代新能源科技股份有限公司 并行烧录系统及方法
CN117573153A (zh) * 2024-01-12 2024-02-20 深圳市迈腾电子有限公司 路由器芯片烧录方法、装置、电子设备和计算机可读介质
CN117762438A (zh) * 2024-01-12 2024-03-26 荣耀终端有限公司 一种无线烧录印制电路板的系统、方法及相关装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416121A (zh) * 2021-12-30 2022-04-29 深圳市广和通无线通信软件有限公司 固件烧录方法、装置、烧录设备以及固件烧录系统
CN115077063A (zh) * 2022-06-21 2022-09-20 北京小米移动软件有限公司 程序获取方法、装置、电子设备和存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317618A (zh) * 2014-10-24 2015-01-28 福州瑞芯微电子有限公司 一种固件分区处理方法和装置
CN110704075A (zh) * 2019-09-19 2020-01-17 深圳市千分一智能技术有限公司 一种多芯片固件烧录方法、系统、装置及存储介质
CN111142947A (zh) * 2019-12-21 2020-05-12 广州小鹏汽车科技有限公司 芯片固件预置方法、装置、预置设备及服务器
CN111506318A (zh) * 2019-01-31 2020-08-07 广州慧睿思通信息科技有限公司 电路板芯片烧录方法、装置、终端及计算机可读存储介质
CN112035130A (zh) * 2020-08-13 2020-12-04 珠海格力电器股份有限公司 基于工控屏的程序烧录方法、装置和计算机设备
CN113641367A (zh) * 2021-08-06 2021-11-12 瑞芯微电子股份有限公司 一种固件批量烧录方法及终端
CN114296782A (zh) * 2021-12-28 2022-04-08 锐迪科创微电子(北京)有限公司 固件烧录方法、装置及介质、终端设备
CN114416121A (zh) * 2021-12-30 2022-04-29 深圳市广和通无线通信软件有限公司 固件烧录方法、装置、烧录设备以及固件烧录系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317618A (zh) * 2014-10-24 2015-01-28 福州瑞芯微电子有限公司 一种固件分区处理方法和装置
CN111506318A (zh) * 2019-01-31 2020-08-07 广州慧睿思通信息科技有限公司 电路板芯片烧录方法、装置、终端及计算机可读存储介质
CN110704075A (zh) * 2019-09-19 2020-01-17 深圳市千分一智能技术有限公司 一种多芯片固件烧录方法、系统、装置及存储介质
CN111142947A (zh) * 2019-12-21 2020-05-12 广州小鹏汽车科技有限公司 芯片固件预置方法、装置、预置设备及服务器
CN112035130A (zh) * 2020-08-13 2020-12-04 珠海格力电器股份有限公司 基于工控屏的程序烧录方法、装置和计算机设备
CN113641367A (zh) * 2021-08-06 2021-11-12 瑞芯微电子股份有限公司 一种固件批量烧录方法及终端
CN114296782A (zh) * 2021-12-28 2022-04-08 锐迪科创微电子(北京)有限公司 固件烧录方法、装置及介质、终端设备
CN114416121A (zh) * 2021-12-30 2022-04-29 深圳市广和通无线通信软件有限公司 固件烧录方法、装置、烧录设备以及固件烧录系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909592A (zh) * 2023-09-13 2023-10-20 宁德时代新能源科技股份有限公司 并行烧录系统及方法
CN116909592B (zh) * 2023-09-13 2024-03-22 宁德时代新能源科技股份有限公司 并行烧录系统及方法
CN117573153A (zh) * 2024-01-12 2024-02-20 深圳市迈腾电子有限公司 路由器芯片烧录方法、装置、电子设备和计算机可读介质
CN117762438A (zh) * 2024-01-12 2024-03-26 荣耀终端有限公司 一种无线烧录印制电路板的系统、方法及相关装置
CN117573153B (zh) * 2024-01-12 2024-04-30 深圳市迈腾电子有限公司 路由器芯片烧录方法、装置、电子设备和计算机可读介质

Also Published As

Publication number Publication date
CN114416121A (zh) 2022-04-29

Similar Documents

Publication Publication Date Title
WO2023123898A1 (zh) 固件烧录方法、装置、烧录设备以及固件烧录系统
US10528742B2 (en) Method and apparatus for repairing kernel vulnerability
US11531535B2 (en) Firmware upgrade method and apparatus, and terminal
US10503490B2 (en) Mobile application processing
CN110489421B (zh) 数据存储方法、装置、计算机可读存储介质和计算机设备
CN112929401B (zh) 一种注册方法及装置
CN104866389A (zh) 基于移动操作系统的数据备份及恢复方法、装置及系统
CN110333876A (zh) 一种数据清除方法及控制设备
CN110928935A (zh) 数据的访问命令处理方法、装置和系统
CN114240358A (zh) 实现自定义业务流程的方法、装置、设备及介质
CN115098426B (zh) Pcie设备管理方法、接口管理模块、pcie系统、设备和介质
CN115004734A (zh) 存储在sim简档中的即时连接配置
WO2019201248A1 (zh) 轻量级机器到机器系统中重新引导的方法和装置
US20210081217A1 (en) Resource permission processing method and apparatus, storage medium, and chip
CN111427860A (zh) 分布式存储系统及其数据处理方法
US10152490B2 (en) Sequential replication with limited number of objects
CN111325574A (zh) 一种用于提供呈现信息的方法与设备
CN116208676A (zh) 数据回源方法、装置、计算机设备、存储介质和程序产品
US20180054462A1 (en) Method and system for configuring simple kernel access control policy for android-based mobile terminal
CN114185804A (zh) 一种接口测试方法、装置及终端设备
CN109618327B (zh) 一种软体适配的方法和装置、电子设备、可读存储介质
CN113641449B (zh) 镜像下载控制方法及装置、设备和存储介质
WO2023143061A1 (zh) 一种数据访问方法及其数据访问系统
CN114915573A (zh) 测试方法、装置、设备、存储介质和程序产品
CN117041221A (zh) 服务管理方法、装置、计算机设备、存储介质和程序产品

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

Country of ref document: EP

Kind code of ref document: A1