Firmware switching method and device, equipment, medium and product

By using a blacklist to record the number of IMSI switching times in Multi-IMSI technology and prohibiting burning when a threshold is reached, the problem of repeated burning of wireless communication modules is solved, achieving the effects of reducing power consumption and extending module life.

CN121531342APending Publication Date: 2026-02-13FIBOCOM TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511726226.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-21
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In existing technologies, Multi-IMSI technology causes firmware to be repeatedly switched and burned when the wireless communication module cannot register with the network, increasing power consumption and shortening the module's lifespan.

Method used

By using a blacklist to record the number of times the International Mobile Subscriber Identity (IMSI) code is switched, firmware switching and flashing operations are prohibited when a preset threshold is reached, thereby reducing unnecessary flashing attempts.

Benefits of technology

This effectively avoids the need for repeated firmware flashing when the wireless communication module cannot be registered, thereby reducing power consumption and extending the module's lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121531342A_ABST
    Figure CN121531342A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware switching method and device, equipment, a medium and a product. The firmware switching method comprises the steps that whether the recording frequency of a current international mobile subscriber identity in a blacklist reaches a preset number threshold value or not is judged; if the recording frequency reaches a preset quantity threshold value, forbidding firmware switching burning operation corresponding to the current international mobile subscriber identity; if the recording times do not reach the preset number threshold value, executing firmware switching burning operation corresponding to the current international mobile subscriber identity, and adding the recording times corresponding to the current international mobile subscriber identity in the blacklist; and under the condition that the registration dialing of the current international mobile subscriber identity fails, switching the current international mobile subscriber identity, and triggering a step of judging whether the recording frequency of the current international mobile subscriber identity in the blacklist reaches a preset quantity threshold value or not. Therefore, repeated firmware burning when the wireless communication module cannot be registered can be avoided, the power consumption of the wireless communication module is reduced, and the service life of the wireless communication module is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a firmware switching method, device, equipment, medium and product. BACKGROUND

[0002] Multi-IMSI (i.e. Multi-International Mobile Subscriber Identity) technology refers to that one SIM (i.e. Subscriber Identity Module) card can have multiple IMSIs (i.e. International Mobile Subscriber Identity), each of which represents a different operator. In this way, the device can switch between different networks to obtain the best signal and more stable network connection. When the IMSI supported by the SIM card cannot register the network, the prior art will switch to other supported operator IMSIs to try to register the network. However, when all supported IMSIs cannot register the network, the switching of IMSI will be triggered in a loop, which will trigger the repeated switching and programming of the FW (i.e. Firmware) of the wireless communication module, increase the power consumption of the wireless communication module, and shorten the service life of the Flash of the wireless communication module.

[0003] Therefore, how to avoid the repeated programming of the firmware of the wireless communication module when it cannot register, reduce the power consumption of the wireless communication module, and increase the service life of the wireless communication module is a technical problem to be solved at present. SUMMARY

[0004] Therefore, how to avoid the repeated programming of the firmware of the wireless communication module when it cannot register, reduce the power consumption of the wireless communication module, and increase the service life of the wireless communication module is a technical problem to be solved at present.

[0005] In a first aspect, the present application provides a firmware switching method, comprising:

[0006] determining whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold;

[0007] if the record number reaches the preset number threshold, prohibiting the firmware switching programming operation corresponding to the current international mobile subscriber identity;

[0008] if the record number does not reach the preset number threshold, performing the firmware switching programming operation corresponding to the current international mobile subscriber identity, and increasing the record number of the current international mobile subscriber identity in the blacklist;

[0009] In the case that the current international mobile subscriber identity (IMSI) fails to register a dialing, the current IMSI is switched, and the step of judging whether the number of records of the current IMSI in the blacklist reaches a preset threshold is triggered.

[0010] Optionally, the method further comprises:

[0011] In the case that the current international mobile subscriber identity (IMSI) succeeds to register a dialing, information in the blacklist is cleared.

[0012] Optionally, the method further comprises:

[0013] In response to an insertion operation of a SIM card, a current integrated circuit card identifier (ICCID) and a current IMSI of the SIM card are read;

[0014] If the current ICCID is consistent with a recorded ICCID, the step of judging whether the number of records of the current IMSI in the blacklist reaches a preset threshold is triggered.

[0015] Optionally, the method further comprises:

[0016] If the current ICCID is inconsistent with the recorded ICCID, information in the blacklist is cleared, and the step of judging whether the number of records of the current IMSI in the blacklist reaches a preset threshold is triggered.

[0017] Optionally, the method further comprises:

[0018] When a machine restart is detected, in the case that the blacklist is stored in a volatile memory, the step of judging whether the number of records of the current IMSI in the blacklist reaches a preset threshold is triggered.

[0019] Optionally, the method further comprises:

[0020] When a machine restart is detected, in the case that the blacklist is stored in a non-volatile memory, information in the blacklist is cleared, and the step of judging whether the number of records of the current IMSI in the blacklist reaches a preset threshold is triggered.

[0021] In a second aspect, the application provides a firmware switching device, comprising:

[0022] A record number judging module is configured to judge whether the number of records of a current international mobile subscriber identity (IMSI) in a blacklist reaches a preset threshold.

[0023] The burning operation control module is configured to, if the record number reaches the preset number threshold, prohibit the firmware switching burning operation corresponding to the current international mobile subscriber identity; and if the record number does not reach the preset number threshold, execute the firmware switching burning operation corresponding to the current international mobile subscriber identity, and increase the record number corresponding to the current international mobile subscriber identity in the blacklist.

[0024] The registration dialing failure processing module is configured to, in the case of a registration dialing failure of the current international mobile subscriber identity, switch the current international mobile subscriber identity, and trigger the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold.

[0025] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein:

[0026] The memory is configured to save a computer program.

[0027] The processor is configured to execute the computer program to implement the foregoing firmware switching method.

[0028] In a fourth aspect, the present application provides a computer readable storage medium configured to save a computer program, wherein the computer program is executed by a processor to implement the foregoing firmware switching method.

[0029] In a fifth aspect, the present application provides a computer program product comprising a computer program / instruction, which is executed by a processor to implement the foregoing firmware switching method.

[0030] According to the above scheme, the present application provides a firmware switching method, comprising: judging whether a record number of a current international mobile subscriber identity in a blacklist reaches a preset number threshold; if the record number reaches the preset number threshold, prohibiting the firmware switching burning operation corresponding to the current international mobile subscriber identity; if the record number does not reach the preset number threshold, executing the firmware switching burning operation corresponding to the current international mobile subscriber identity, and increasing the record number corresponding to the current international mobile subscriber identity in the blacklist; in the case of a registration dialing failure of the current international mobile subscriber identity, switching the current international mobile subscriber identity, and triggering the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold.

[0031] It can be seen that the application has the beneficial effects that the application records the switching times of the international mobile subscriber identity through the blacklist mode, and when the recorded times reach the preset threshold and the dialing still fails, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is prohibited, so that the wireless communication module can be prevented from repeatedly burning the firmware when it fails to register, the power consumption of the wireless communication module is reduced, and the service life of the wireless communication module is increased.

[0032] Correspondingly, the firmware switching device, the equipment, the readable storage medium and the product provided by the application also have the above technical effects. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the provided drawings.

[0034] Figure 1 A firmware switching method flow chart is provided for the embodiments of the present application;

[0035] Figure 2 A firmware switching flow chart is provided for the embodiments of the present application;

[0036] Figure 3 A firmware switching device structure schematic diagram is provided for the embodiments of the present application;

[0037] Figure 4 An electronic equipment structure diagram is provided for the embodiments of the present application. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0039] Multi-IMSI technology refers to a SIM card that can have multiple IMSIs at the same time, each representing a different operator. In this way, the device can switch between different networks to get the best signal and more stable network connection. For devices running globally, this capability is crucial as it ensures that the device is always connected to the operator network with the strongest signal, thereby improving the efficiency and reliability of the device. The advantage of Multi-IMSI technology is that it automatically switches to the most suitable operator network without the need for manual operation or replacement of the SIM card. This allows the device to maintain continuous connectivity, seamlessly communicating with the best operator even in different regions or network environments. When the IMSI supported by the SIM card cannot register the network, the existing technology attempts to switch to other supported operator IMSIs to attempt registration. However, when all supported IMSIs cannot register the network, the switching of IMSIs is triggered in a loop, which triggers repeated burning of the module FW, increases the power consumption of the module, and shortens the life of the module Flash.

[0040] In the prior art, the switching of IMSIs in a loop causes the module to repeatedly burn FW, resulting in a sharp increase in module power consumption, increased power consumption, and shortened module life. To address this, the present application provides a firmware switching scheme that, when the module cannot register due to weak network signal, registration rejection, network failure, or other reasons, records the IMSI information that cannot register and monitors the network registration state in real time, solving the problem of repeated burning of the module FW caused by repeated switching of IMSIs, reducing unnecessary module FW burning frequency, reducing module power consumption, and prolonging module life.

[0041] Referring to Figure 1 The embodiment of the present application discloses a firmware switching method, which comprises:

[0042] Step S11: Determine whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold.

[0043] In the embodiment of the present application, the blacklist is used to save the recorded record numbers corresponding to each international mobile subscriber identity, wherein the preset number threshold can be set according to requirements, for example, 3 times. The blacklist can be saved in a volatile memory or a non-volatile memory.

[0044] In an optional implementation, in response to the insertion operation of the SIM card, the current integrated circuit card identifier and the current international mobile subscriber identity of the SIM card are read, and if the current integrated circuit card identifier is consistent with the recorded integrated circuit card identifier, the step of determining whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold is triggered.

[0045] It can be understood that the SIM card is a SIM card supporting multiple integrated circuit card identifiers. In the case of using the SIM card, the integrated circuit card identifier is read when the SIM card is inserted, the current integrated circuit card identifier and the current international mobile subscriber identity of the SIM card are read, and if the current integrated circuit card identifier is consistent with the recorded integrated circuit card identifier, it is indicated that the user has not replaced the SIM card, and the same card as the last used SIM card, triggering the step of judging whether the number of records of the current international mobile subscriber identity in the blacklist reaches a preset number threshold.

[0046] If the current integrated circuit card identifier is inconsistent with the recorded integrated circuit card identifier, the information in the blacklist is cleared, and the step of judging whether the number of records of the current international mobile subscriber identity in the blacklist reaches a preset number threshold is triggered.

[0047] The information in the blacklist, i.e., the number of records of the international mobile subscriber identity in the blacklist, can be understood as clearing the number of records of all international mobile subscriber identities in the blacklist.

[0048] It should be noted that if the current integrated circuit card identifier is inconsistent with the recorded integrated circuit card identifier, it is indicated that the user has replaced the SIM card, and the same card as the last used SIM card, and the information in the blacklist is cleared, triggering the step of judging whether the number of records of the current international mobile subscriber identity in the blacklist reaches a preset number threshold.

[0049] Step S12: If the number of records reaches the preset number threshold, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is prohibited.

[0050] It can be understood that if the number of records reaches the preset number threshold, it is indicated that the international mobile subscriber identity has failed to register dialing successfully for the number of times, and the firmware switching and burning operation corresponding to the current international mobile subscriber identity is prohibited. The firmware corresponding to each international mobile subscriber identity exists, and after switching the international mobile subscriber identity, the firmware corresponding to the international mobile subscriber identity is switched and burned.

[0051] Step S13: If the number of records does not reach the preset number threshold, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is performed, and the number of records corresponding to the current international mobile subscriber identity in the blacklist is increased.

[0052] It can be understood that if the record number does not reach the preset number threshold, the firmware switching and burning operation corresponding to the international mobile subscriber identity is allowed to continue to be attempted, and the record number corresponding to the current international mobile subscriber identity in the blacklist can be increased by 1. The initial value of the record number of any current international mobile subscriber identity can be considered as 0, and when any current international mobile subscriber identity is recorded for the first time, the record number can be recorded as 1.

[0053] Step S14: In the case that the current international mobile subscriber identity registration dialing fails, the current international mobile subscriber identity is switched, and the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold is triggered.

[0054] That is, in the case that the current international mobile subscriber identity registration dialing fails, the current international mobile subscriber identity is switched, and whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold is judged. In this way, the international mobile subscriber identity is switched in a loop, and the corresponding firmware is attempted to be switched and burned, and registration dialing is attempted. When the record number of all international mobile subscriber identities corresponding to the SIM reaches the preset number threshold, the firmware switching and burning operation is not performed on all international mobile subscriber identities, until the machine is restarted or the registration dialing is successful, the information recorded in the blacklist is cleared, and the module firmware burning is performed. It should be noted that if the mobile phone is moved from a place where all international mobile subscriber identities cannot be successfully registered and dialed due to weak signal to a place where the signal is strong, the current international mobile subscriber identity based on the current firmware can be successfully registered and dialed. If the current international mobile subscriber identity is successfully registered and dialed, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is performed to burn the matched firmware.

[0055] Further, in the case that the current international mobile subscriber identity registration dialing succeeds, the information in the blacklist is cleared. That is, the record number of all international mobile subscriber identities in the blacklist is cleared.

[0056] Further, when it is detected that the machine is restarted, in the case that the blacklist is saved in the volatile memory, the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold is triggered.

[0057] It can be understood that if the blacklist is saved in the volatile memory, the information in the blacklist will be lost due to power failure, and there is no need to actively clear the information in the blacklist.

[0058] Further, when detecting machine restart, if the blacklist is stored in the non-volatile memory, the information in the blacklist is cleared, and the step of judging whether the record number of the current IMSI in the blacklist reaches the preset number threshold is triggered.

[0059] It can be understood that if the blacklist is stored in the volatile memory, the information in the blacklist will not be lost due to power failure, and the information in the blacklist needs to be actively cleared. In this way, by restarting the machine, the blacklist can be cleared to make the firmware burning operation effective again, and the firmware burning operation cannot be performed all the time.

[0060] That is, in the embodiment, the current IC card ID and the current IMSI of the SIM card can be read in response to the insertion operation of the SIM card. If the current IC card ID is consistent with the recorded IC card ID, it is judged whether the record number of the current IMSI in the blacklist reaches the preset number threshold. If the record number reaches the preset number threshold, the firmware switching burning operation corresponding to the current IMSI is prohibited. If the record number does not reach the preset number threshold, the firmware switching burning operation corresponding to the current IMSI is performed, and the record number corresponding to the current IMSI in the blacklist is increased. In the case that the registration dialing of the current IMSI fails, the current IMSI is switched, and the step of judging whether the record number of the current IMSI in the blacklist reaches the preset number threshold is triggered. In the case that the registration dialing of the current IMSI succeeds, the information in the blacklist is cleared. If the current IC card ID is inconsistent with the recorded IC card ID, the information in the blacklist is cleared, it is judged whether the record number of the current IMSI in the blacklist reaches the preset number threshold. If the record number reaches the preset number threshold, the firmware switching burning operation corresponding to the current IMSI is prohibited. If the record number does not reach the preset number threshold, the firmware switching burning operation corresponding to the current IMSI is performed, and the record number corresponding to the current IMSI in the blacklist is increased. In the case that the registration dialing of the current IMSI fails, the current IMSI is switched, and the step of judging whether the record number of the current IMSI in the blacklist reaches the preset number threshold is triggered. In the case that the registration dialing of the current IMSI succeeds, the information in the blacklist is cleared.

[0061] When detecting machine restart, if the blacklist is stored in the volatile memory, it is judged whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold; if the record number does not reach the preset number threshold, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is executed, and the record number corresponding to the current international mobile subscriber identity in the blacklist is increased; if the current international mobile subscriber identity registration dialing fails, the current international mobile subscriber identity is switched, and the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold is triggered; if the current international mobile subscriber identity registration dialing succeeds, the information in the blacklist is cleared. When detecting machine restart, if the blacklist is stored in the non-volatile memory, the information in the blacklist is cleared, it is judged whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold; if the record number does not reach the preset number threshold, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is executed, and the record number corresponding to the current international mobile subscriber identity in the blacklist is increased; if the current international mobile subscriber identity registration dialing fails, the current international mobile subscriber identity is switched, and the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches the preset number threshold is triggered; if the current international mobile subscriber identity registration dialing succeeds, the information in the blacklist is cleared.

[0062] It can be seen that, by the blacklist, the switching number of the international mobile subscriber identity is recorded, if the record number reaches the preset threshold and dialing still fails, the firmware switching and burning operation corresponding to the current international mobile subscriber identity is prohibited, thus, the wireless communication module can be prevented from repeatedly burning the firmware when registration fails, the power consumption of the wireless communication module is reduced, and the service life of the wireless communication module is increased.

[0063] Further, referring to Figure 2As shown, the embodiment of the present application discloses a firmware switching flowchart. When a user inserts a Multi-IMSI SIM card, the ICCID (Integrated Circuit Card Identifier) and IMSI information of the SIM card are read. First, it is judged whether the currently read ICCID is consistent with the last recorded ICCID. If it is consistent, it means that it is the same card. Then it is judged whether the current IMSI in the blacklist has been recorded for 3 times. If it has been recorded for 3 times, the FW switching of the IMSI is prohibited, and the blacklist information is cleared only after the machine is restarted or the dialing is successfully registered, and the FW is burned. If it is judged that the current IMSI in the blacklist has not been recorded for 3 times, the module FW is directly burned, and the recording number of the current IMSI in the blacklist is increased by 1. Then it is judged whether the dialing is successfully registered. If the dialing is successfully registered, the recorded IMSI information in the blacklist is cleared. If the dialing cannot be successfully registered, other IMSIs are switched until all the IMSIs are switched for 3 times. After the module FW of each IMSI is burned for 3 times, if the dialing still cannot be successfully registered, the FW of the module is prohibited, and the recorded IMSI information in the blacklist is cleared only after the machine is restarted or the dialing is successfully registered, and the module FW is burned. When a user inserts a Multi-IMSI SIM card, the ICCID and IMSI information of the SIM card are read. First, it is judged whether the currently read ICCID is consistent with the last recorded ICCID. If it is inconsistent, it means that a new card is inserted. First, the IMSI information in the blacklist is cleared. Then it is judged whether the current IMSI in the blacklist has been recorded for 3 times. If it has been recorded for 3 times, the module FW is prohibited. If it has not been recorded for 3 times or has not been recorded, the module FW is burned, and the IMSI in the blacklist is recorded by 1. Until the recording is full for 3 times, if the dialing still cannot be registered, the module FW is prohibited. If the machine is restarted or the dialing is successfully registered in the process, the recorded IMSI information in the blacklist is cleared, and the module FW is burned.

[0064] That is, when a Multi-IMSI supported card is inserted, if all IMSIs cannot register the network after switching 3 times and burning 3 times of module FW, the module FW burning of the IMSI recorded 3 times in the blacklist is prohibited, so as to avoid the problem of repeated burning of module FW when the module cannot register and switches IMSI. In this way, when a Multi-IMSI supported card is inserted, if all IMSIs cannot register the network after switching 3 times and burning 3 times of module FW, the module FW burning of the IMSI recorded 3 times in the blacklist is prohibited, so as to avoid the problem of repeated burning of module FW when the module cannot register and switches IMSI, reduce the unnecessary module FW burning times, reduce the module power consumption in this scenario, and at the same time, reduce the read-write times of the module Flash to some extent, and increase the service life of the module.

[0065] Referring to Figure 3 As shown in the figure, the embodiment of the application discloses a firmware switching device, which comprises:

[0066] The record number judgment module 11 is configured to judge whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold.

[0067] The burning operation control module 12 is configured to prohibit the firmware switching burning operation corresponding to the current international mobile subscriber identity if the record number reaches the preset number threshold, and perform the firmware switching burning operation corresponding to the current international mobile subscriber identity and increase the record number of the current international mobile subscriber identity in the blacklist if the record number does not reach the preset number threshold.

[0068] The registration dialing failure processing module 13 is configured to switch the current international mobile subscriber identity and trigger the step of judging whether the record number of the current international mobile subscriber identity in the blacklist reaches a preset number threshold in the case of registration dialing failure of the current international mobile subscriber identity.

[0069] Further, the device can further comprise a registration dialing success processing module 13 configured to clear the information in the blacklist in the case of registration dialing success of the current international mobile subscriber identity.

[0070] The device further comprises a SIM card insertion operation response module configured to:

[0071] In response to the insertion operation of the SIM card, the current integrated circuit card identifier and the current international mobile subscriber identity of the SIM card are read.

[0072] If the current integrated circuit card identification code is consistent with the recorded integrated circuit card identification code, triggering the step of judging whether the record number of the current international mobile subscriber identification code in the blacklist reaches a preset number threshold.

[0073] If the current integrated circuit card identification code is inconsistent with the recorded integrated circuit card identification code, clearing the information in the blacklist, and triggering the step of judging whether the record number of the current international mobile subscriber identification code in the blacklist reaches a preset number threshold.

[0074] Further, the apparatus further comprises a machine restart processing module, configured to:

[0075] When detecting machine restart, in the case that the blacklist is saved in the volatile memory, triggering the step of judging whether the record number of the current international mobile subscriber identification code in the blacklist reaches a preset number threshold.

[0076] When detecting machine restart, in the case that the blacklist is saved in the non-volatile memory, clearing the information in the blacklist, and triggering the step of judging whether the record number of the current international mobile subscriber identification code in the blacklist reaches a preset number threshold.

[0077] It can be seen that, by the way of the blacklist, the number of switching of the international mobile subscriber identification code is recorded, and when the record number reaches a preset threshold, the firmware switching and burning operation corresponding to the current international mobile subscriber identification code is prohibited to be executed in the case that dialing fails, so that the wireless communication module can be prevented from repeatedly burning firmware when it cannot be registered, the power consumption of the wireless communication module is reduced, and the service life of the wireless communication module is increased.

[0078] Referring to Figure 4 The embodiment of the present application discloses an electronic device 20, comprising a processor 21 and a memory 22; wherein the memory 22 is configured to save a computer program; the processor 21 is configured to execute the computer program, and the firmware switching method disclosed in the foregoing embodiments.

[0079] The specific process of the foregoing firmware switching method can refer to the corresponding content disclosed in the foregoing embodiments, and will not be described here in detail.

[0080] In addition, the memory 22 as a carrier for storing resources can be a read-only memory, a random access memory, a magnetic disk or an optical disk, and the storage mode can be temporary storage or permanent storage.

[0081] In addition, the electronic device 20 further includes a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; the power supply 23 is configured to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which will not be limited here.

[0082] Further, the embodiment of the present application further discloses a computer readable storage medium for storing a computer program, wherein the computer program is executed by a processor to realize the firmware switching method disclosed in the foregoing embodiment.

[0083] For the specific process of the foregoing firmware switching method, refer to the corresponding content disclosed in the foregoing embodiment, which will not be repeated here.

[0084] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the related part can be referred to the method part.

[0085] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0086] The above provides a detailed description of the firmware switching method, device, equipment, medium and product of the present application. The specific examples are applied to the principle and implementation mode of the present application. The above embodiment is only used to help understand the method and core idea of the present application; at the same time, for the general technical personnel in the art, according to the idea of the present application, the specific implementation mode and application range will be changed; the above description should not be understood as the limitation of the present application.

Claims

1. A firmware switching method, characterized in that, include: Determine whether the number of records of the current International Mobile Subscriber Identity (IMSI) in the blacklist has reached a preset threshold. If the number of records reaches the preset threshold, the firmware switching and burning operation corresponding to the current International Mobile Subscriber Identity is prohibited. If the number of records does not reach the preset threshold, then the firmware switching and flashing operation corresponding to the current International Mobile Subscriber Identity (IMSI) is performed, and the number of records corresponding to the current IMSI is added to the blacklist. If the current International Mobile Subscriber Identity (IMSI) registration dialing fails, switch to the current IMSI and trigger the step of determining whether the number of records of the current IMSI in the blacklist has reached a preset threshold.

2. The firmware switching method according to claim 1, characterized in that, Also includes: If the current International Mobile Subscriber Identity (IMSI) registration and dialing are successful, the information in the blacklist will be cleared.

3. The firmware switching method according to claim 1, characterized in that, Also includes: In response to the insertion of a SIM card, the current integrated circuit card identification code and the current international mobile subscriber identification code of the SIM card are read; If the current IC card identification code matches the recorded IC card identification code, the step of determining whether the number of records of the current International Mobile Subscriber Identity Code in the blacklist has reached a preset threshold is triggered.

4. The firmware switching method according to claim 3, characterized in that, Also includes: If the current IC card identification code does not match the recorded IC card identification code, the information in the blacklist is cleared, triggering the step of determining whether the number of records of the current International Mobile Subscriber Identity Code in the blacklist has reached a preset threshold.

5. The firmware switching method according to claim 1, characterized in that, Also includes: When a machine restart is detected, and the blacklist is stored in volatile memory, the step of determining whether the number of records of the current International Mobile Subscriber Identity in the blacklist has reached a preset threshold is triggered.

6. The firmware switching method according to claim 1, characterized in that, Also includes: When a machine restart is detected, if the blacklist is stored in non-volatile memory, the information in the blacklist is cleared, triggering the step of determining whether the number of records of the current International Mobile Subscriber Identity in the blacklist has reached a preset threshold.

7. A firmware switching device, characterized in that, include: The record count judgment module is used to determine whether the record count of the current International Mobile Subscriber Identity Serial Number in the blacklist has reached a preset threshold. The burning operation control module is used to prohibit firmware switching burning operation corresponding to the current International Mobile Subscriber Identity (IMSI) if the number of records reaches the preset threshold; and to perform firmware switching burning operation corresponding to the current IMSI if the number of records does not reach the preset threshold, and to add the number of records corresponding to the current IMSI to the blacklist. The registration dialing failure handling module is used to switch the current International Mobile Subscriber Identity (IMSI) when the current IMSI registration dialing fails, and to trigger the step of determining whether the number of records of the current IMSI in the blacklist has reached a preset threshold.

8. An electronic device, characterized in that, Includes memory and processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program to implement the firmware switching method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Used to store a computer program, wherein the computer program, when executed by a processor, implements the firmware switching method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the firmware switching method as described in any one of claims 1 to 6.