CN111078312A - MBN loading method and electronic equipment - Google Patents

MBN loading method and electronic equipment Download PDF

Info

Publication number
CN111078312A
CN111078312A CN201911220299.0A CN201911220299A CN111078312A CN 111078312 A CN111078312 A CN 111078312A CN 201911220299 A CN201911220299 A CN 201911220299A CN 111078312 A CN111078312 A CN 111078312A
Authority
CN
China
Prior art keywords
mbn
electronic device
preset
loaded
electronic equipment
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911220299.0A
Other languages
Chinese (zh)
Inventor
岑国亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911220299.0A priority Critical patent/CN111078312A/en
Publication of CN111078312A publication Critical patent/CN111078312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

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

Abstract

The embodiment of the invention provides a method for loading an MBN and electronic equipment, and aims to improve the stability of the MBN of the electronic equipment. The method is applied to the electronic equipment and comprises the following steps: reading the MBN and the preset MBN of the loaded electronic equipment; and if the first MBN does not accord with the preset MBN, reloading the MBN of the electronic equipment. The method is particularly applied to a scene of reloading the MBN when the information of the MBN of the electronic equipment is lost.

Description

MBN loading method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for loading MBN and electronic equipment.
Background
In the process of operating an electronic device such as a mobile phone and a tablet computer, a Modem Configuration Binary File (MBN) of an operator may be loaded, for example, the MBN is loaded in a Modem File System (Modem EFS) of the electronic device. The MBN is integrated with parameters of a Voice over Long-Term Evolution (VoLTE) network and parameters of a wireless network Voice over Wi-Fi (volwifi) network of a corresponding operator.
The electronic device can only successfully activate the parameters of the VoLTE network or the parameters of the volwifi network of the operator under the condition that the MBN of the electronic device is stable and no information loss occurs, and then network services such as conversation and internet surfing are executed through the VoLTE network or the volwifi network. Thus, in order to ensure that the parameters of the VoLTE network or the VoWiFi network of the operator are activated normally, the electronic device MBN needs to be stable without information loss.
Therefore, how to improve the stability of the MBN of the electronic device becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method for loading an MBN and electronic equipment, and aims to improve the stability of the MBN of the electronic equipment.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for loading an MBN, where the method is applied to an electronic device, and the method includes: reading the MBN and the preset MBN of the loaded electronic equipment; and if the first MBN does not accord with the preset MBN, reloading the MBN of the electronic equipment.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a reading module and a loading module; the reading module is used for reading the loaded modem configuration binary file MBN and the preset MBN of the electronic equipment; and the loading module is used for reloading the MBN of the electronic equipment if the first MBN does not accord with the preset MBN under the condition that the reading module obtains the first MBN loaded by the MBN of the electronic equipment.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the method for loading MBNs according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for loading MBNs according to the first aspect.
In the embodiment of the invention, the loaded MBN and the preset MBN of the electronic equipment can be read, and under the condition that the loaded MBN of the electronic equipment is read as the first MBN, whether the information of the MBN of the electronic equipment is lost or not, namely whether the MBN of the electronic equipment is stable or not, is automatically detected by comparing whether the first MBN accords with the preset MBN or not. Subsequently, when the comparison result shows that the first MBN does not conform to the preset MBN, the MBN of the electronic device may be automatically reloaded to reload the MBN that conforms to the preset MBN. That is, the electronic device can provide an automatic determination and recovery mechanism for the MBN without the user having to determine by himself from experience that the MBN of the electronic device is lost and manually trigger the electronic device to renew the system file to reload the MBN. In this manner, the electronic device may be enabled to quickly reload the MBN, such as quickly reloading a stable MBN. Therefore, the MBN of the electronic equipment is prevented from being kept as the MBN with poor stability for a long time, and the stability of the MBN of the electronic equipment is improved to a certain extent.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for loading MBNs according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a method for loading MBN according to an embodiment of the present invention;
FIG. 4 is a third schematic flowchart of a method for loading MBNs according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a possible electronic device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first and second MBNs, etc. are used to distinguish between different MBNs, rather than to describe a particular order of MBNs.
The method for loading the MBN provided by the embodiment of the invention can be applied to a scene that the MBN is reloaded after the MBN loading of the electronic equipment fails. Specifically, the loaded MBN and the preset MBN of the electronic device may be read, and when the loaded MBN of the electronic device is read as the first MBN, whether the information of the MBN of the electronic device is lost or not, that is, whether the MBN of the electronic device is stable or not, is automatically detected by comparing whether the first MBN is compliant with the preset MBN. Subsequently, when the comparison result shows that the first MBN does not conform to the preset MBN, the MBN of the electronic device may be automatically reloaded to reload the MBN that conforms to the preset MBN. That is, the electronic device can provide an automatic determination and recovery mechanism for the MBN without the user having to determine by himself from experience that the MBN of the electronic device is lost and manually trigger the electronic device to renew the system file to reload the MBN. In this manner, the electronic device may be enabled to quickly reload the MBN, such as quickly reloading a stable MBN. Therefore, the MBN of the electronic equipment is prevented from being kept as the MBN with poor stability for a long time, and the stability of the MBN of the electronic equipment is improved to a certain extent. The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
It should be noted that, in the method for loading an MBN provided in the embodiment of the present invention, the execution main body may be an electronic device, or a Central Processing Unit (CPU) of the electronic device, or a control module in the electronic device for executing the method for loading an MBN. In the embodiment of the present invention, an example of a method for an electronic device to execute MBN loading is taken to illustrate the method for loading MBN provided in the embodiment of the present invention.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the method for loading the MBN provided by the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application. For example, applications such as a system setup application, a system chat application, and a system camera application. And the third-party setting application, the third-party camera application, the third-party chatting application and other application programs.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for loading the MBN provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for loading the MBN may run based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the method for loading the MBN provided by the embodiment of the present invention by running the software program in the android operating system.
The method for loading MBNs provided by the embodiment of the present invention is described in detail below with reference to the flowchart of the method for loading MBNs shown in fig. 2. Wherein, although the logical order of the method for loading MBNs provided by embodiments of the present invention is shown in a method flow diagram, in some cases, the steps shown or described may be performed in an order different than here. For example, the method of loading MBNs shown in fig. 2 may include S201 and S202:
s201, the electronic device reads the MBN and the preset MBN of the loaded electronic device.
It can be understood that, before the user uses the electronic device to perform network services of the operator, such as performing network services of calling and surfing the internet through the VoLTE network or the VoWiFi network, the electronic device needs to load the MBN, that is, the MBN is loaded into the modemfs.
Optionally, the MBN already loaded by the electronic device may be an MBN loaded by the electronic device when the system file, such as the modemfs, is updated. Or, the electronic device reloads the obtained MBN through the MBN recovery mechanism provided by the embodiment of the present invention.
The MBN of the electronic equipment comprises information of an operator. Generally, one MBN includes information of one operator.
It should be noted that, in the embodiment of the present invention, the preset MBN may be stored in the electronic device in advance. The preset MBN may be an MBN list including one or more MBNs, that is, information of one or more operators may be included.
Optionally, a file in txt format (i.e. a text lattice format) containing the preset MBN may be set in the electronic device. For example, a txt format file in an electronic device may be an "Except _ MBN. txt" file, i.e., a txt format file with a file name of "Except _ MBN".
The electronic device can read the preset MBN by reading the 'exception _ MBN.txt' file.
Optionally, the foregoing S201 may be implemented by S201 a:
s201a, the electronic device reads the MBN and the preset MBN of the loaded electronic device under the condition of upgrading the system file or starting and restarting.
The system file is a file loaded with the MBN of the electronic device, that is, the system file may be a modemifs.
It can be understood that, when the electronic device is powered on and restarted, the Modem (Modem) of the electronic device may be restarted, and in particular, the Modem EFS may be reloaded.
Specifically, the electronic device can read the MBN loaded into the Modem EFS, so as to read the MBN of the loaded electronic device.
It is understood that the electronic device may perform network services provided by the operator after upgrading the system file or initiating a reboot of the electronic device.
It should be noted that, because the electronic device reads the MBN and the preset MBN of the loaded electronic device under the condition of upgrading the system file or starting the reboot, instead of continuously reading the MBN and the preset MBN of the loaded electronic device, resource waste caused by the electronic device continuously reading the MBN of the loaded electronic device can be avoided.
S202, if the MBN of the electronic device is loaded as the first MBN, if the first MBN does not accord with the preset MBN, the electronic device reloads the MBN of the electronic device.
It can be understood that, in the embodiment of the present invention, the MBN that the electronic device reads to the electronic device that has been loaded is the first MBN.
It should be noted that, during the process of upgrading the system file or running, the electronic device may lose the information of the MBN already loaded into the Modem EFS, for example, lose part of the information of the MBN including the parameters of the VoLTE network or the parameters of the VoWiFi network.
Specifically, the electronic device may compare all information in the first MBN with all information of each MBN in the preset MBNs to determine whether the first MBN matches the preset MBN. In this way, the electronic device can automatically detect whether the information of the loaded MBN is lost, that is, automatically detect whether the loaded MBN is stable.
The first MBN does not conform to the preset MBNs, which means that the information of the first MBN is different from (e.g., completely or partially different from) information in any one of the preset MBNs, and this indicates that the MBNs of the electronic device are unstable during the system file upgrade and the boot restart, and the information in the MBNs of the electronic device is lost.
On the contrary, the fact that the first MBN conforms to the preset MBN means that the information of the first MBN is identical to the information of one MBN in the preset MBN, which indicates that the MBN of the electronic device is stable in the process of system file upgrade and startup and restart, and the information in the MBN of the electronic device is not lost.
Alternatively, the electronic device may read a Subscriber Identity Module (SIM) card installed therein, and obtain the type of the SIM card. And, according to the type of the SIM card, reloading the MBN corresponding to the type of the SIM card, i.e. the MBN corresponding to the operator indicated by the type of the SIM card.
Alternatively, the electronic device may reload the MBN in the Modem EFS by upgrading the Modem EFS.
Alternatively, the electronic device may reload only the information of the MBN in the Modem EFS without loading other information than the information of the MBN in the Modem EFS. That is, the electronic device only upgrades the MBN information again in the Modem EFS.
It should be emphasized that, when the electronic device determines that the first MBN does not conform to the preset MBN, that is, information of the first MBN is lost, the electronic device may reload the MBN of the electronic device, so as to implement a recovery mechanism of the MBN of the electronic device.
It should be noted that the method for loading an MBN provided in the embodiment of the present invention may read an MBN of an already loaded electronic device and a preset MBN, and automatically detect whether information of the MBN of the electronic device is lost, that is, whether the MBN of the electronic device is stable, by comparing whether the first MBN matches the preset MBN, when the MBN of the electronic device is read as the first MBN. Subsequently, when the comparison result shows that the first MBN does not conform to the preset MBN, the MBN of the electronic device may be automatically reloaded to reload the MBN that conforms to the preset MBN. That is, the electronic device can provide an automatic determination and recovery mechanism for the MBN without the user having to determine by himself from experience that the MBN of the electronic device is lost and manually trigger the electronic device to renew the system file to reload the MBN. In this manner, the electronic device may be enabled to quickly reload the MBN, such as quickly reloading a stable MBN. Therefore, the MBN of the electronic equipment is prevented from being kept as the MBN with poor stability for a long time, and the stability of the MBN of the electronic equipment is improved to a certain extent.
Optionally, in this embodiment of the present invention, the "reloading the MBN of the electronic device" in S202 may be implemented by S202 a:
s202a, under the condition that the MBN of the electronic device is reloaded to the ith second MBN, if the ith second MBN does not accord with the preset MBN, the electronic device reloads the MBN of the electronic device for the (i + 1) th time until i is equal to M or the MBN of the electronic device accords with the preset MBN, and the process is finished.
Where i ∈ {1, … …, M } (i.e., M is a positive integer), M is the maximum value of the number of MBNs to reload the electronic device. For example, M equals 3.
It is understood that, in the case that the ith second MBN reloaded by the electronic device conforms to the preset MBN, the electronic device may stop executing the flow of reloading the MBN of the electronic device.
Specifically, the information for limiting the number M may be preset in the electronic device.
It should be noted that, in the embodiment of the present invention, when the MBN of the electronic device does not conform to the preset MBN, that is, information of the MBN of the electronic device is lost, the number of times that the electronic device automatically reloads the MBN of the electronic device may be limited, so as to avoid unnecessary waste of resources of the electronic device caused by the electronic device automatically reloading the MBN that does not conform to the preset MBN for an excessive number of times.
Optionally, the step S202a may be implemented by the step S202 b:
s202b, under the condition that the MBN of the electronic equipment is loaded as the ith second MBN and does not reach the timing duration of the target timer, if the ith second MBN does not accord with the preset MBN, the electronic equipment reloads the MBN of the electronic equipment for the (i + 1) th time until i is equal to M or the MBN of the electronic equipment accords with the preset MBN, and the end is finished.
Wherein the timing duration of the target timer is a maximum duration (e.g., 10 minutes) of the process of reloading the MBN of the electronic device. Specifically, the target timer may be started when the electronic device reloads the MBN of the electronic device for the 1 st time.
It is understood that, in the case where the timed length of the target timer is reached, even if the electronic device is not loaded to the MBN compliant with the MBN, the electronic device will stop executing the flow of reloading the MBN of the electronic device.
Specifically, the information of the target timer may be preset in the electronic device.
It should be noted that, in the embodiment of the present invention, when the MBN of the electronic device does not conform to the preset MBN, that is, the information of the MBN of the electronic device is lost, the duration of the process of automatically reloading the MBN of the electronic device by the electronic device may be limited, so as to avoid unnecessary waste of resources of the electronic device due to too long time of automatically reloading the electronic device to the MBN that does not conform to the preset MBN.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 3, S202 may be implemented by S301:
s301, under the condition that the MBN of the electronic equipment is loaded as the first MBN, if the first MBN does not accord with the preset MBN, the electronic equipment obtains a second MBN from the server and reloads the MBN of the electronic equipment as the second MBN.
It can be understood that, according to the type of the SIM card of the electronic device, the electronic device may obtain, from a server (e.g., a cloud server), a second MBN corresponding to the type of the SIM card, and then reload the MBN of the electronic device as the second MBN corresponding to the type of the SIM card, that is, the MBN corresponding to the operator indicated by the type of the SIM card.
Optionally, the electronic device may send a request message to the server, where the request message may carry information of the electronic device, such as information of a type of a SIM card of the electronic device. Subsequently, the server may obtain a second MBN corresponding to the type of the SIM card according to the received information of the type of the SIM card, and further send a response message carrying the second MBN to the electronic device. Thus, after receiving the response message, the electronic device obtains the second MBN from the server.
It will be appreciated that the server may update the MBNs of the various operators it maintains to the latest version of the MBN. Whereas the latest version of MBN usually has the latest information of the operator.
It should be noted that, in the embodiment of the present invention, in a case that the MBN of the electronic device does not conform to the preset MBN, that is, information of the MBN of the electronic device is lost, the electronic device may obtain a second MBN from the server, and the MBN stored in the server is usually the latest version of MBN, that is, the MBN with the latest information of the operator. In this way, the MBN of the electronic device is reloaded as the second MBN acquired from the server, which is beneficial for the electronic device to successfully execute network services of an operator according to the information of the MBN of the electronic device, such as network services of performing call and internet access through a VoLTE network or a volwifi network of the operator.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 4, S202 may be implemented by S401:
s401, under the condition that the MBN of the electronic equipment is loaded as the first MBN, if the first MBN does not accord with the preset MBN, the electronic equipment reloads the MBN of the electronic equipment and generates a target log.
Wherein the target log (e.g., log) is used to record the MBN of the reloaded electronic device.
It can be understood that the target log is used for recording the MBN of the reloaded electronic device, and also can be used for recording whether the MBN conforms to the preset MBN, that is, information about whether information in the MBN is lost.
In the embodiment of the invention, a user can check the target log generated by the electronic equipment to intuitively know whether the information in the MBN of the electronic equipment is lost or not, namely whether the MBN of the electronic equipment is stable or not. That is, the user can know the operation condition of the electronic device in real time, such as whether the electronic device can normally execute the network service of the operator.
Further, optionally, after S401, the method for loading an MBN according to the embodiment of the present invention may further include S402:
s402, under the condition that the MBN of the electronic equipment is reloaded to be the third MBN, if the third MBN does not accord with the preset MBN, the electronic equipment stores a target log; and if the third MBN accords with the preset MBN, deleting the target log by the electronic equipment.
It is understood that the third MBN does not conform to the preset MBN, indicating that the information loss of the electronic device reloaded MBN causes the electronic device reloaded MBN to be unstable. At this time, the target log stored by the electronic device can support the user to subsequently know the information loss condition of the third MBN reloaded by the electronic device according to the target log, and is beneficial for the user to analyze the problems such as the reason that the MBN of the electronic device is unstable according to the target log. In addition, the third MBN corresponds to the preset MBN, which indicates that the information of the MBN reloaded by the electronic device is not lost, i.e., the MBN of the electronic device is stable. At this time, the target log deleted by the electronic device can avoid the target log from unnecessarily occupying the memory resource of the electronic device.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 50 shown in fig. 5 includes: a reading module 51 and a loading module 52; a reading module 51, configured to read a modem configuration binary file MBN and a preset MBN of a loaded electronic device; the loading module 52 is configured to, when the reading module 51 obtains the first MBN loaded as the MBN of the electronic device, reload the MBN of the electronic device if the first MBN does not conform to the preset MBN.
Optionally, the loading module 52 is specifically configured to, under the condition that the MBN of the electronic device is reloaded as the ith second MBN, if the ith second MBN does not conform to the preset MBN, reload the MBN of the electronic device for the (i + 1) th time until i is equal to M or the MBN of the electronic device conforms to the preset MBN; where i ∈ {1, … …, M }, where M is the maximum number of times the MBN of the electronic device is reloaded.
Optionally, the loading module 52 is specifically configured to, under the condition that the MBN of the electronic device is loaded as the ith second MBN and does not reach the timing duration of the target timer, reload the MBN of the electronic device for the (i + 1) th time if the ith second MBN does not meet the preset MBN; wherein the timing duration of the target timer is the maximum duration of the process of reloading the MBN of the electronic device.
Optionally, the loading module 52 is specifically configured to, when the MBN of the electronic device is loaded as the first MBN, obtain a third MBN from the server if the first MBN does not conform to the preset MBN, and reload the MBN of the electronic device as the third MBN.
Optionally, the loading module 52 is specifically configured to, when the MBN of the electronic device is loaded as the first MBN, reload the MBN of the electronic device if the first MBN does not conform to the preset MBN, and generate the target log; under the condition that the MBN of the electronic equipment is reloaded to be the third MBN, if the third MBN does not accord with the preset MBN, the target log is stored; if the third MBN accords with the preset MBN, deleting the target log; wherein the target log is used to record the MBN of the reloaded electronic device.
Optionally, the reading module 51 is specifically configured to read the MBN and the preset MBN of the loaded electronic device under the condition of upgrading a system file or starting up and restarting; wherein, the system file is a file loaded with the MBN of the electronic device.
The electronic device 50 provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and for avoiding repetition, details are not described here again.
The electronic device provided by the embodiment of the invention can read the loaded MBN and the preset MBN of the electronic device, and automatically detect whether the information of the MBN of the electronic device is lost or not, namely whether the MBN of the electronic device is stable or not by comparing whether the first MBN is consistent with the preset MBN or not under the condition that the loaded MBN of the electronic device is read as the first MBN. Subsequently, when the comparison result shows that the first MBN does not conform to the preset MBN, the MBN of the electronic device may be automatically reloaded to reload the MBN that conforms to the preset MBN. That is, the electronic device can provide an automatic determination and recovery mechanism for the MBN without the user having to determine by himself from experience that the MBN of the electronic device is lost and manually trigger the electronic device to renew the system file to reload the MBN. In this manner, the electronic device may be enabled to quickly reload the MBN, such as quickly reloading a stable MBN. Therefore, the MBN of the electronic equipment is prevented from being kept as the MBN with poor stability for a long time, and the stability of the MBN of the electronic equipment is improved to a certain extent.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 110 is configured to read the MBN and a preset MBN of the loaded electronic device; and under the condition that the MBN of the electronic equipment is loaded as the first MBN, if the first MBN does not accord with the preset MBN, reloading the MBN of the electronic equipment.
The electronic device provided by the embodiment of the invention can read the loaded MBN and the preset MBN of the electronic device, and automatically detect whether the information of the MBN of the electronic device is lost or not, namely whether the MBN of the electronic device is stable or not by comparing whether the first MBN is consistent with the preset MBN or not under the condition that the loaded MBN of the electronic device is read as the first MBN. Subsequently, when the comparison result shows that the first MBN does not conform to the preset MBN, the MBN of the electronic device may be automatically reloaded to reload the MBN that conforms to the preset MBN. That is, the electronic device can provide an automatic determination and recovery mechanism for the MBN without the user having to determine by himself from experience that the MBN of the electronic device is lost and manually trigger the electronic device to renew the system file to reload the MBN. In this manner, the electronic device may be enabled to quickly reload the MBN, such as quickly reloading a stable MBN. Therefore, the MBN of the electronic equipment is prevented from being kept as the MBN with poor stability for a long time, and the stability of the MBN of the electronic equipment is improved to a certain extent.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 6, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the foregoing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for loading MBN, which is applied to an electronic device, is characterized in that the method comprises the following steps:
reading a loaded modem configuration binary file MBN and a preset MBN of the electronic equipment;
and if the MBN of the electronic equipment is loaded as the first MBN, reloading the MBN of the electronic equipment if the first MBN does not accord with the preset MBN.
2. The method of claim 1, wherein the reloading the MBN of the electronic device comprises:
when the MBN of the electronic equipment is reloaded to be the ith second MBN, if the ith second MBN does not accord with the preset MBN, the MBN of the electronic equipment is reloaded for the (i + 1) th time until i is equal to M or the MBN of the electronic equipment accords with the preset MBN;
where i ∈ {1, … …, M }, M being the maximum value of the number of times the MBN of the electronic device was reloaded.
3. The method according to claim 2, wherein in the case that the MBN loading of the electronic device is the ith first MBN, if the ith second MBN does not conform to the preset MBN, the i-th reloading the MBN of the electronic device comprises:
under the condition that the MBN of the electronic equipment is loaded as the ith second MBN and the timing duration of the target timer is not reached, if the ith second MBN does not accord with the preset MBN, the MBN of the electronic equipment is reloaded for the (i + 1) th time;
wherein the timing duration of the target timer is the maximum duration of the process of reloading the MBN of the electronic device.
4. The method according to claim 1, wherein in the case that the MBN loading of the electronic device is the first MBN, if the first MBN does not conform to the preset MBN, then reloading the MBN of the electronic device comprises:
and under the condition that the MBN of the electronic equipment is loaded as the first MBN, if the first MBN does not accord with the preset MBN, acquiring a third MBN from the server, and reloading the MBN of the electronic equipment as the third MBN.
5. The method according to claim 1, wherein in the case that the MBN loading of the electronic device is the first MBN, if the first MBN does not conform to the preset MBN, then reloading the MBN of the electronic device comprises:
if the MBN of the electronic equipment is loaded as the first MBN, if the first MBN does not accord with the preset MBN, reloading the MBN of the electronic equipment and generating a target log;
under the condition that the MBN of the electronic equipment is reloaded to be a third MBN, if the third MBN does not accord with the preset MBN, the target log is stored; if the third MBN accords with the preset MBN, deleting the target log;
wherein the target log is used to record the MBN of the reloaded electronic device.
6. The method according to any of claims 1 to 5, wherein the reading of the loaded modem configuration binary file MBN and the preset MBN of the electronic device comprises:
under the condition of upgrading a system file or starting up and restarting, reading the loaded MBN of the electronic equipment and the preset MBN;
wherein the system file is a file loaded with the MBN of the electronic device.
7. An electronic device, characterized in that the electronic device comprises: a reading module and a loading module;
the reading module is used for reading the loaded modem configuration binary file MBN and the preset MBN of the electronic equipment;
the loading module is configured to reload the MBN of the electronic device if the first MBN does not conform to the preset MBN under the condition that the reading module obtains the first MBN to which the MBN of the electronic device is loaded.
8. The electronic device of claim 7,
the loading module is specifically configured to, when the MBN of the electronic device is reloaded as an ith second MBN, if the ith second MBN does not conform to the preset MBN, reload the MBN of the electronic device for an i +1 th time until i is equal to M or the MBN of the electronic device conforms to the preset MBN;
where i ∈ {1, … …, M }, M being the maximum value of the number of times the MBN of the electronic device was reloaded.
9. The electronic device according to claim 8, wherein the loading module is specifically configured to, when the MBN of the electronic device is loaded as the ith second MBN and the timing duration of the target timer is not reached, reload the MBN of the electronic device for the (i + 1) th time if the ith second MBN does not conform to the preset MBN;
wherein the timing duration of the target timer is the maximum duration of the process of reloading the MBN of the electronic device.
10. The electronic device of claim 7, wherein the loading module is specifically configured to, if the MBN of the electronic device is loaded as the first MBN, obtain a third MBN from a server if the first MBN does not conform to the preset MBN, and reload the MBN of the electronic device as the third MBN.
11. The electronic device according to claim 7, wherein the loading module is specifically configured to, if the MBN loading of the electronic device is the first MBN, reload the MBN of the electronic device and generate a target log if the first MBN does not conform to the preset MBN;
under the condition that the MBN of the electronic equipment is reloaded to be a third MBN, if the third MBN does not accord with the preset MBN, the target log is stored; if the third MBN accords with the preset MBN, deleting the target log;
wherein the target log is used to record the MBN of the reloaded electronic device.
12. The electronic device according to any one of claims 7 to 11, wherein the reading module is specifically configured to read the MBN and the preset MBN of the electronic device that have been loaded in the case of upgrading a system file or in the case of a power-on restart;
wherein the system file is a file loaded with the MBN of the electronic device.
CN201911220299.0A 2019-12-03 2019-12-03 MBN loading method and electronic equipment Pending CN111078312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911220299.0A CN111078312A (en) 2019-12-03 2019-12-03 MBN loading method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911220299.0A CN111078312A (en) 2019-12-03 2019-12-03 MBN loading method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111078312A true CN111078312A (en) 2020-04-28

Family

ID=70312576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911220299.0A Pending CN111078312A (en) 2019-12-03 2019-12-03 MBN loading method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111078312A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463192A (en) * 2020-11-30 2021-03-09 福州汇思博信息技术有限公司 High-pass platform private image upgrading method and terminal
CN112463193A (en) * 2020-11-30 2021-03-09 福州汇思博信息技术有限公司 MBN (Business Block network) upgrading method and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864474A (en) * 2017-11-23 2018-03-30 维沃移动通信有限公司 A kind of MBN update methods and mobile terminal
US20190141656A1 (en) * 2016-05-04 2019-05-09 Oneplus Technology (Shenzhen) Co., Ltd. Method for registering on voice-over-lte network, device and terminal, and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190141656A1 (en) * 2016-05-04 2019-05-09 Oneplus Technology (Shenzhen) Co., Ltd. Method for registering on voice-over-lte network, device and terminal, and computer storage medium
CN107864474A (en) * 2017-11-23 2018-03-30 维沃移动通信有限公司 A kind of MBN update methods and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463192A (en) * 2020-11-30 2021-03-09 福州汇思博信息技术有限公司 High-pass platform private image upgrading method and terminal
CN112463193A (en) * 2020-11-30 2021-03-09 福州汇思博信息技术有限公司 MBN (Business Block network) upgrading method and terminal

Similar Documents

Publication Publication Date Title
CN107276789B (en) Log uploading method and device and computer readable storage medium
CN110058836B (en) Audio signal output method and terminal equipment
CN107590057B (en) Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium
WO2018077041A1 (en) Method and apparatus for running application
CN109284144B (en) Fast application processing method and mobile terminal
CN107704363B (en) Screen freezing monitoring method, mobile terminal and computer readable storage medium
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN110308834B (en) Setting method of application icon display mode and terminal
US20220329741A1 (en) Camera start method and electronic device
CN108090345B (en) Linux system external command execution method and device
CN110780940A (en) Application program loading method, electronic device and storage medium
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN107908491B (en) Card screen detection and solution method, mobile terminal and computer readable storage medium
CN107908492B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN111124753A (en) Application program control method, electronic equipment and server
CN107766222B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN111078312A (en) MBN loading method and electronic equipment
CN110825474A (en) Interface display method and device and electronic equipment
CN107832191B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN107872367B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN110929238B (en) Information processing method and device
CN109857305B (en) Input response method and mobile terminal
CN109614042B (en) Method for storing log information and terminal equipment
CN113039517B (en) Audio resource calling method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination