CN106066802B - Method and device for loading MBN file - Google Patents

Method and device for loading MBN file Download PDF

Info

Publication number
CN106066802B
CN106066802B CN201610353003.2A CN201610353003A CN106066802B CN 106066802 B CN106066802 B CN 106066802B CN 201610353003 A CN201610353003 A CN 201610353003A CN 106066802 B CN106066802 B CN 106066802B
Authority
CN
China
Prior art keywords
terminal
mbn
parameter value
parameter
single board
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.)
Active
Application number
CN201610353003.2A
Other languages
Chinese (zh)
Other versions
CN106066802A (en
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610353003.2A priority Critical patent/CN106066802B/en
Publication of CN106066802A publication Critical patent/CN106066802A/en
Application granted granted Critical
Publication of CN106066802B publication Critical patent/CN106066802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention relates to the field of communication, in particular to a method and a device for loading an MBN file, which are used for realizing that terminals with various single board specifications can share one modem, thereby reducing the development cost. In the embodiment of the invention, a single board specification code of a terminal is obtained; determining an MBN parameter value corresponding to the single board specification code according to a preset corresponding relation between the single board specification code and the MBN parameter value; generating an MBN file corresponding to the terminal according to the determined MBN parameter value; the MBN file is loaded to the modem. Because the preset corresponding relationship between the single board specification code and the MBN parameter value comprises a plurality of single board specification codes, the same set of modem and the same set of preset corresponding relationship between the single board specification code and the MBN parameter value can be used for terminals with different specifications, and the MBN file corresponding to the terminal is generated after the single board specification code of the terminal is determined.

Description

Method and device for loading MBN file
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for loading an MBN file.
Background
With the continuous development of mobile communication technology, basic mobile communication chip platforms are continuously upgraded and updated, on one hand, in order to keep the technology advanced and not be restricted by a single chip manufacturer, the terminal manufacturer often needs to select a plurality of chip platforms and develop terminals with different specifications of MBN parameter values.
The MBN parameter value of what specification is to be configured for a chip of a terminal is usually implemented by loading a modem software configuration (MBN) file corresponding to the terminal through a modem (modem). The specific process is as follows: a manufacturer determines an MBN file required by a terminal in advance according to the specification of the terminal, and then compiles a modem image file corresponding to the terminal, wherein the modem image file comprises the compiled MBN file, and the MBN file comprises terminal specification parameters. And then burning the modem image file into the terminal by the manufacturer, and loading the pre-compiled specified MBN file into the MBN working area. And the terminal executes the boot program to run the modem file and directly loads the MBN file in the working area.
It can be seen that, in the above solution, a modem file corresponding to a terminal needs to be compiled for the terminal in advance, where the modem file includes a previously compiled MBN that needs to be placed in a work area. That is, before starting to run the modem file, it must be specified in advance which MBN file needs to be put into the workspace in the modem file, and the MBN file needs to be embedded in the modem file as a whole. If a manufacturer needs to develop N terminals, and at this time, when N MBN files need to be corresponded, the manufacturer needs to develop N modem files, that is, different types of terminals cannot share one modem file, which greatly increases the development cost.
Disclosure of Invention
The embodiment of the invention provides a method and a device for loading an MBN file, which are used for realizing that terminals with various single board specifications can share one modem, thereby reducing the development cost.
The embodiment of the invention provides a method for loading an MBN file, which comprises the following steps:
acquiring a single board specification code of a terminal; determining MBN parameter values corresponding to the single board specification codes according to the preset corresponding relation between the plurality of single board specification codes and the MBN parameter values; the corresponding relation between the preset single board specification codes and MBN parameter values is stored in a storage area of the terminal; generating an MBN file corresponding to the terminal according to the determined MBN parameter value; the MBN file is loaded to the modem.
The embodiment of the invention provides a device for loading an MBN file, which comprises:
the acquisition module is used for acquiring the single board specification code of the terminal;
the determining module is used for determining the MBN parameter value corresponding to the single board specification code according to the corresponding relation between the preset multiple single board specification codes and the MBN parameter value; the corresponding relation between the preset single board specification codes and MBN parameter values is stored in a storage area of the terminal;
the generating module is used for generating an MBN file corresponding to the terminal according to the determined MBN parameter value;
and the processing module is used for loading the MBN file to the modem.
In the embodiment of the invention, a single board specification code of a terminal is obtained; determining an MBN parameter value corresponding to the single board specification code according to a preset corresponding relation between the single board specification code and the MBN parameter value; generating an MBN file corresponding to the terminal according to the determined MBN parameter value; the MBN file is loaded to the modem. Because of the corresponding relationship between the preset single board specification code and the MBN parameter value, when the modem is operated, the MBN file can be temporarily generated according to the single board specification code of the terminal and the configured MBN parameter value, and because the corresponding relationship between the preset single board specification code and the MBN parameter value comprises a plurality of single board specification codes, the corresponding relationship between the same set of modem and the same set of preset single board specification code and the MBN parameter value can be used for different terminals, and then the MBN file corresponding to the terminal can be temporarily generated after the single board specification code of the terminal is determined. The problem that a plurality of modems comprising the pre-written MBN files need to be pre-written aiming at different terminals in the prior art is solved, and the development cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
FIG. 1 is a diagram illustrating a system architecture suitable for use with an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for loading an MBN file according to an embodiment of the present invention;
fig. 2a is a schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 2b is a schematic structural diagram illustrating an internal operating state of the terminal shown in FIG. 2 a;
FIG. 2c is a schematic view of the internal operating state of the terminal shown in FIG. 2 b;
fig. 2d is a schematic flowchart of a method for loading an MBN file according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for loading an MBN file according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 exemplarily shows a system architecture diagram applicable to an embodiment of the present invention, as shown in fig. 1, the system architecture applicable to the embodiment of the present invention includes a plurality of different types of terminals, for example, a manufacturer includes a production line 1105, different types of terminals, namely, a terminal 1101, a terminal 1102, and a terminal 1103, are produced on the production line 1105, and the plurality of types of terminals satisfy the following conditions: the MBN files corresponding to different types of terminals are different. For example, the MBN parameter value that the terminal 1101 needs to configure is an MBN parameter value of a Circuit Switched Fallback (CSFB, for short) of the china mobile 3-mode single card; for example, the MBN parameter value that the terminal 1102 needs to configure is the MBN parameter value of the china mobile 5-mode dual-card CSFB; for example, the MBN parameter value that the terminal 1103 needs to configure is an MBN parameter value of Voice over Long term evolution (VoLTE) of chinese mobile 5-mode double-card Voice over Long term evolution.
In the embodiment of the invention, each terminal stores one modem, and the same modem is stored in a plurality of different types of terminals. For example, in fig. 1, one modem1104 is pre-stored in each of terminal 1101, terminal 1102, and terminal 1103. Optionally, the correspondence between the board specification code and the MBN parameter value may be a part of the modem1104, or the correspondence between the board specification code and the MBN parameter value and the modem1104 may be set as two parts, which are stored in the storage area of the terminal respectively.
In the embodiment of the present invention, the correspondence between the plurality of board specification codes and the MBN parameter values may be a correspondence table between the plurality of board specification codes and the MBN parameter values. Or the corresponding relation between the plurality of single board specification codes and the MBN parameter values can be stored as the corresponding relation between the plurality of single board specification codes and a storage address table, the MBN parameter value corresponding to the single board specification code is stored in each storage address, the storage address corresponding to the single board specification code can be found according to one single board specification code, and then the MBN parameter value is obtained from the storage area corresponding to the storage address. The corresponding relationship between the single board specification code and the MBN parameter value in the embodiment of the invention has various implementation forms, and the embodiment of the invention is not limited. Optionally, the preset correspondence between the veneer specification code and the MBN parameter value in the embodiment of the present invention may be added, deleted, modified, and the like. For example, a preset board specification code 1 corresponds to MBN1, and then the preset board specification code 1 may be modified to correspond to MBN 2. Thus, it can be seen that the MBN parameter value in the terminal corresponding to the original single-board specification code 1 is set to the MBN parameter value specified by MBN 2.
The following contents in the embodiment of the present invention take a terminal as an example, and describe in detail how to generate an MBN file corresponding to the terminal for the terminal. The generation process of the MBN files corresponding to other terminals is similar to that of the MBN files, and is not described in detail.
The terminal in the embodiment of the invention is directed to equipment (device) providing voice and/or data connectivity for a user, and comprises a wireless terminal or a wired terminal. The wireless terminal may be a handheld device having wireless connection capabilities, or other processing device connected to a wireless modem, a mobile terminal communicating with one or more core networks via a radio access network. For example, wireless terminals may be mobile telephones (or "cellular" telephones) and computers with mobile terminals. As another example, a wireless terminal may be a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device. As another example, a wireless terminal may be a mobile station (mobile station), an access point (access point), or a part of a User Equipment (UE).
Fig. 2 schematically illustrates a flowchart of a method for loading an MBN file according to an embodiment of the present invention.
Based on the system architecture shown in fig. 1 and the above content, as shown in fig. 2, a method for loading an MBN file implemented by a terminal side provided in an embodiment of the present invention includes:
step 201, a terminal acquires a single board specification code of the terminal;
step 202, the terminal determines MBN parameter values corresponding to the single board specification codes according to the corresponding relationship between the preset multiple single board specification codes and the MBN parameter values; the corresponding relation between the preset single board specification codes and MBN parameter values is stored in a storage area of the terminal;
step 203, the terminal generates an MBN file corresponding to the terminal according to the determined MBN parameter value;
and step 204, the terminal loads the MBN file to the modem.
Fig. 2a illustrates a schematic structural diagram of a terminal according to an embodiment of the present invention, fig. 2b illustrates a schematic structural diagram of an internal operating state of the terminal shown in fig. 2a, and fig. 2c illustrates a schematic structural diagram of an internal operating state of the terminal shown in fig. 2 b. As shown in fig. 2a, the terminal comprises a working area 2101 and a storage area 2102. Optionally, the compiled modem2103 of the embodiment of the present invention is placed in the storage area 2102 of the terminal in advance, and optionally, the correspondence 2104 between the plurality of board specification codes and the MBN parameter values may be stored in the storage area 2102 of the terminal in advance. In another optional implementation manner, the correspondence between the multiple board specification codes and the MBN parameter values is included in the modem, and after the modem is mirrored, the correspondence between the multiple board specification codes and the MBN parameter values is placed in a storage area of the terminal.
In an alternative embodiment, the modem may include a default MBN file, and the contents of the default MBN file may be empty. Optionally, after the terminal stores the modem2103 and the correspondence 2104 between the board specification codes and the MBN parameter values, the terminal starts and runs the modem, and first mirrors the modem, and at this time, the default MBN file that can be placed in the terminal working area 2101 is placed in the terminal working area 2101, as shown in fig. 2b, the default MBN file 2205 is placed in the terminal working area 2101. That is to say, the default MBN file may be a trigger file, when the modem process calls the MBN file, the step 201 to the step 203 are triggered and executed, and then the generated MBN file is placed in the working area of the terminal, as shown in fig. 2c, at this time, the MBN file 2206 corresponding to the generated terminal is placed in the working area 2101 of the terminal, so as to replace the default MBN file 2205 originally placed in the working area 2101 shown in fig. 2b, and at this time, the modem may run the MBN file that has been placed in the working area, whose content is not empty, and is temporarily configured according to the board specification of the terminal, thereby achieving the purpose that the terminal may automatically adapt an MBN file according to the board specification of the terminal, and further run the MBN file.
Therefore, in the embodiment of the present invention, multiple types of different terminals can all be suitable for the same modem, and the corresponding relationship between the same set of multiple veneer specification codes and the MBN parameter value can be configured for the multiple types of different terminals. That is, the embodiment of the present invention does not specify an MBN file for the terminal in the compilation stage, but integrates the existing MBN parameter values for configuring multiple different MBN files into the modem image. The automatic adaptation generates an MBN file to be loaded by the modem when the modem starts.
Optionally, the obtaining of the board specification code of the terminal includes:
when the MBN file corresponding to the terminal needs to be generated is determined, acquiring a single-board specification code of the terminal;
the method comprises the following steps of determining that an MBN file corresponding to a terminal needs to be generated under any one of the following conditions:
upon determining to run the modem for the first time; and when determining that the indication information for indicating the generation of the MBN file corresponding to the terminal is received.
Specifically, the terminal may run the modem multiple times when it is powered on multiple times, but the modem will execute the step 201 only when it is determined that an MBN file needs to be generated temporarily. Optionally, the above step 201 may be performed the first time the modem is run. Or, when determining that the indication information for indicating to generate the MBN file corresponding to the terminal is received, for example, due to various possible reasons, such as a change in a correspondence between a board specification code and an MBN parameter value, or due to a reason such as sales volume, the MBN parameter of the terminal needs to be changed, the indication information for indicating to generate the MBN file corresponding to the terminal may be sent to the terminal, and at this time, the terminal may perform step 201 again when starting the modem. Generally speaking, after the terminal executes the steps 201 to 204, when the modem is started next time, the terminal only needs to directly run the MBN file corresponding to the terminal generated last time without executing the steps 201 to 203.
Optionally, before obtaining the board specification code of the terminal, the method further includes:
identifying the parameter values of circuit components on the single board of the terminal through the identification circuit; and determining the veneer specification code of the terminal corresponding to the circuit component parameter value according to the preset corresponding relation between the circuit component parameter value and the veneer specification code.
Specifically, an optional implementation manner is to add an identification circuit, such as a low-cost circuit like an identification resistor, on a single board of the terminal. And reading the identified circuit component parameter values on the identification circuit at the kernel starting stage of the terminal, and mapping the circuit component parameter values into corresponding single-board specification codes under the action of the processor.
Optionally, a single board identification module is added to the core of the terminal, and the single board identification module can be used for reading the identified circuit component parameter value on the identification circuit, and maintaining and inquiring the corresponding relationship between the circuit component parameter value and the single board specification code. The maintaining of the corresponding relationship between the circuit component parameter value and the single board specification code may be specifically adding, deleting or modifying the corresponding relationship between the circuit component parameter value and the single board specification code. Optionally, the board identification module provides a get interface for the modem, so that the modem obtains the board specification code.
Optionally, after the identification circuit identifies the parameter value of the circuit component on the board of the terminal, the method further includes: and when the preset corresponding relation between the circuit component parameter value and the veneer specification code does not comprise the circuit component parameter value, setting the preset default veneer specification code as the veneer specification code of the terminal. Optionally, the default board specification code may be a general version, so that a situation that the generation of the MBN file fails due to insufficient contents of the correspondence between the preset circuit component parameter values and the board specification codes can be avoided. Optionally, the parameter value of the circuit component may be reported, so that a later maintenance worker adds the board specification code corresponding to the parameter value of the circuit component in the preset corresponding relationship between the parameter value of the circuit component and the board specification code.
Optionally, the single board specification code includes a code of a terminal operator and a code of a terminal operating mode. Therefore, the operator and the working mode corresponding to the terminal can be more accurately identified, and the MBN parameters corresponding to the operator and the working mode are more reasonably grouped. Optionally, the encoding of the working mode of the terminal includes any one or more of encoding of a working modulus of the terminal, encoding of the number of SIM cards that the terminal can support, encoding of a network system of the terminal, and encoding of reserved bits of the terminal. Therefore, the single board specification of the terminal can be determined more comprehensively from various angles, and the MBN parameter can be determined more accurately.
Table 1 illustrates an example of a single board specification code provided in an embodiment of the present invention
For example, referring to table 1, if the single board specification code is 0001000300, the single board specification code identifies that the terminal operator is china mobile, the number of SIM cards that the terminal can support is coded as dual cards, the network format of the terminal is CSFB, the code of the terminal working modulus is UMTS 5 modulus, and the terminal reserved bit is 00. Optionally, the terminal reserved bit is set to be used in later expanding the single-board specification code, for example, a new parameter item is added to the code of the terminal working mode.
Optionally, the MBN parameter values include a first level parameter value and a second level parameter value; determining an MBN parameter value corresponding to the single board specification code according to a preset corresponding relation between the single board specification code and the MBN parameter value, wherein the MBN parameter value comprises the following steps:
determining a first-level parameter value corresponding to the code of the terminal operator according to the corresponding relation between the preset code of the terminal operator and the first-level parameter value; determining a second-level parameter value corresponding to the code of the terminal working mode according to the corresponding relation between the code of the preset terminal working mode and the second-level parameter value; and determining an MBN parameter value corresponding to the single board specification code according to the first-level parameter value and the second-level parameter value.
An alternative embodiment is that the first level parameter values comprise a portion of MBN parameter values that are shareable, and the second level parameter values comprise a portion of MBN parameter values that are not shareable. For example, there are two terminals, both of which are china mobile, but the codes of the numbers of the SIM cards that can be supported by the terminals of the two terminals are different, at this time, the first-level parameter value may be some same parameter items that are used by all types of terminals supported by china mobile, the second-level parameter value may include a plurality of parameter items, each parameter item corresponds to the number of the SIM cards that can be supported by one terminal, at this time, the terminal determines the first-level parameter value corresponding to the code of china mobile, and determines the second-level parameter value corresponding to the number of the SIM cards that can be supported by the terminal, and the first-level parameter value and the second-level parameter value are combined to obtain the MBN parameter value corresponding to the single-board specification code. Therefore, through the implementation mode, some common parameters under the same operator can be merged and stored, that is, the number of the parameters needing to be stored is reduced, and the memory occupancy rate is reduced.
The embodiment of the present invention provides another optional implementation manner, where a set of parameter items corresponding to second-level parameter values is a subset of a set of parameter items corresponding to first-level parameter values;
determining an MBN parameter value corresponding to the veneer specification code according to the first-level parameter value and the second-level parameter value, wherein the MBN parameter value comprises the following steps: determining parameter items which are the same as the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values; determining parameter items which are different from the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values; and taking the corresponding parameter value of the same parameter item in the second-stage parameter value and the parameter value of the different parameter item in the first parameter value as MBN parameter values.
For example, the MBN parameter value includes five parameter items a, b, c, d, and e in total, the default values of the five parameter items a, b, c, d, and e are 1, 2, 3, 4, and 5, respectively, and the values of the five parameter items a, b, c, d, and e of the terminal 1 are 1, 12, 3, 4, and 5, respectively; the values of five parameter items a, b, c, d and e of the terminal 2 are 1, 2, 13, 4 and 5 respectively; the values of the five parameter items a, b, c, d and e of the terminal 3 are 1, 12, 13, 4 and 15 respectively. At this time, the first-level parameter value stores five parameter items of a, b, c, d and e, and the default values of the five stored parameter items of a, b, c, d and e are 1, 2, 3, 4 and 5 respectively. The second level parameter values store the following:
a parameter value 12 corresponding to a parameter item b corresponding to the terminal 1;
a parameter value 13 corresponding to the parameter item c corresponding to the terminal 2;
a parameter value 12 corresponding to the parameter item b, a parameter value 13 corresponding to the parameter item c, and a parameter value 15 corresponding to the parameter item e of the terminal 3.
The terminal 1 determines the second-level parameter corresponding to the terminal, that is, the parameter value 12 corresponding to the parameter item b, and replaces the parameter value 2 corresponding to the parameter item b in the first-level parameter values with the parameter value 12, at this time, the values of the five parameter items determined by the terminal 1 are 1, 12, 3, 4 and 5, respectively.
The terminal 2 determines the second-level parameter corresponding to the terminal, that is, the parameter value 13 corresponding to the parameter item c, and replaces the parameter value 3 corresponding to the parameter item c in the first-level parameter values with the parameter value 13, at this time, the values of the five parameter items determined by the terminal 2 are 1, 2, 13, 4 and 5, respectively.
The terminal 3 determines its corresponding second-level parameters, that is, a parameter value 12 corresponding to the parameter item b, a parameter value 13 corresponding to the parameter item c, and a parameter value 15 corresponding to the parameter item e, replaces a parameter value 2 corresponding to the parameter item b in the first-level parameter values with the parameter value 12, replaces a parameter value 3 corresponding to the parameter item c in the first-level parameter values with the parameter value 13, and replaces a parameter value 15 corresponding to the parameter item e in the first-level parameter values with the parameter value 15, and at this time, the values of the five parameter items determined by the terminal 3 are 1, 12, 13, 4, and 15, respectively.
As can be seen from the above examples, the method provided by the embodiment of the present invention can further reduce the number of parameters to be stored, and reduce the memory occupancy rate.
In a specific implementation, the first-level parameter value optionally includes a single operator general parameter item, such as an NV item common to each operator, an EFS file, and the like. Such generic parameter items are referred to as default values in the above examples and may be configured in the first level parameter values, which may be an MBN xml file. The second level parameter values may include different parameter items with different specifications, such as key NV items, EFSs, policy files, etc. that may identify different specifications for various operators. The second level parameter value may also be an MBN xml file.
Table 2 illustrates an example of a second level parameter value provided by an embodiment of the present invention
Table 2 shows an example that the first-level parameter values are all parameter values of the chinese mobile, for example, the terminal is a 3-mode single-card CSFB of the chinese mobile, and at this time, the parameter value corresponding to the parameter item corresponding to the 3-mode single-card CSFB in the second-level parameter values needs to be used to replace the parameter value corresponding to the same parameter item in the first-level parameter values. For example, assuming that the value corresponding to the network system NV item in the first-level parameter value of the terminal is 1, at this time, if the terminal is a 3-mode single-card CSFB, the value of the network system NV item in the MBN parameter value determined by the terminal is 3 in table 2.
Optionally, before the terminal acquires the first-level parameter value and the second-level parameter value corresponding to the terminal, or before the terminal acquires the first-level parameter value and the second-level parameter value corresponding to the terminal and generates the MBN file, the terminal performs validity check on the first-level parameter value and the second-level parameter value, for example, checks whether the right to access the first-level parameter value and the second-level parameter value exists, whether the formats of the first-level parameter value and the second-level parameter value are legal, and the like.
Optionally, the first-level parameter value is an MBN file, and the second-level parameter value is also an MBN file.
Optionally, in this embodiment of the present invention, after obtaining the board specification code of the terminal, the method further includes: and when the single board specification code does not exist in the corresponding relation between the preset single board specification code and the MBN parameter value, setting the preset MBN file as the MBN file corresponding to the terminal. Optionally, the preset MBN file may be an MBN file that enables any terminal to perform some basic operations, so that a situation that the terminal cannot operate due to failure of modem operation caused by absence of storage of the MBN file corresponding to the board specification code can be avoided.
To further describe the above method flow, fig. 2d schematically illustrates a flow chart of a method for loading an MBN file according to an embodiment of the present invention, and as shown in fig. 2d, the method includes:
step 2401, identifying a circuit component parameter value on a single board of a terminal, and determining a single board specification code of the terminal corresponding to the circuit component parameter value; alternatively, the steps may be performed by an MBN auto-adaptation module added within the modem. Optionally, the MBN auto-adaptation module may further maintain and query a correspondence between a plurality of board specification codes and MBN parameter values, query a first-level parameter value and a second-level parameter value according to the board specification codes, and provide an interface for the MBN parsing module, and so on. The corresponding relation between the plurality of single board specification codes and the MBN parameter values and the corresponding relation between the circuit component parameter values and the single board specification codes in the embodiment of the invention can exist in any realization form such as a data table, a database, a code or a file;
step 2402, the terminal inquires the corresponding relation between the parameter value of the circuit component and the single board specification code, and when the single board specification code of the terminal does not exist in the corresponding relation between the parameter value of the circuit component and the single board specification code, step 2403 is executed; when it is determined that the veneer specification code of the terminal exists in the corresponding relationship between the circuit component parameter value and the veneer specification code, step 2404 is executed;
step 2403, setting a preset default single board specification code as a single board specification code of the terminal;
step 2404, querying a board specification code of the terminal, determining whether the preset corresponding relationship between the plurality of board specification codes and the MBN parameter value includes the board specification code, if not, performing step 2405, and if so, performing step 2406;
step 2405, setting a preset MBN file as an MBN file corresponding to the terminal;
step 2406, determining a first-level parameter value and a second-level parameter value corresponding to the single-board specification code, and generating an MBN file corresponding to the terminal according to the first-level parameter value and the second-level parameter value corresponding to the single-board specification code;
step 2407, loading the generated MBN file corresponding to the terminal to the modem, that is, placing the generated MBN file corresponding to the terminal in a working area of the terminal. Alternatively, the above steps 2404 to 2407 can be performed by an MBN parsing module in the modem.
From the above, it can be seen that: in the embodiment of the invention, a single board specification code of a terminal is obtained; determining an MBN parameter value corresponding to the single board specification code according to a preset corresponding relation between the single board specification code and the MBN parameter value; generating an MBN file corresponding to the terminal according to the determined MBN parameter value; the MBN file is loaded to the modem. Because of the corresponding relationship between the preset single board specification code and the MBN parameter value, when the modem is operated, the MBN file can be temporarily generated according to the single board specification code of the terminal and the configured MBN parameter value, and because the corresponding relationship between the preset single board specification code and the MBN parameter value comprises a plurality of single board specification codes, the corresponding relationship between the same set of modem and the same set of preset single board specification code and the MBN parameter value can be used for different terminals, and then the MBN file corresponding to the terminal can be temporarily generated after the single board specification code of the terminal is determined. The problem that a plurality of modems comprising the pre-written MBN files need to be pre-written aiming at different terminals in the prior art is solved, and the development cost is reduced.
Fig. 3 exemplarily shows a schematic structural diagram of an apparatus for loading an MBN file according to an embodiment of the present invention.
Based on the same conception, an apparatus for loading an MBN file provided in an embodiment of the present invention is configured to execute the foregoing method, where the apparatus 300 for loading an MBN file includes an obtaining module 301, a determining module 302, a generating module 303, and a processing module 304, and optionally further includes an identifying module 305:
an obtaining module 301, configured to obtain a board specification code of a terminal;
a determining module 302, configured to determine, according to a correspondence between preset multiple board specification codes and MBN parameter values, an MBN parameter value corresponding to a board specification code; the corresponding relation between the preset single board specification codes and MBN parameter values is stored in a storage area of the terminal;
a generating module 303, configured to generate an MBN file corresponding to the terminal according to the determined MBN parameter value;
and the processing module 304 is used for loading the MBN file to the modem.
Optionally, the single board specification code includes a code of a terminal operator and a code of a terminal working mode; the MBN parameter values comprise first-stage parameter values and second-stage parameter values;
the determining module 302 is specifically configured to:
determining a first-level parameter value corresponding to the code of the terminal operator according to the corresponding relation between the preset code of the terminal operator and the first-level parameter value;
determining a second-level parameter value corresponding to the code of the terminal working mode according to the corresponding relation between the code of the preset terminal working mode and the second-level parameter value;
and determining an MBN parameter value corresponding to the single board specification code according to the first-level parameter value and the second-level parameter value.
Optionally, the set of parameter items corresponding to the second-level parameter values is a subset of the set of parameter items corresponding to the first-level parameter values;
the determining module 302 is specifically configured to:
determining parameter items which are the same as the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
determining parameter items which are different from the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
and taking the corresponding parameter value of the same parameter item in the second-stage parameter value and the parameter value of the different parameter item in the first parameter value as MBN parameter values.
Optionally, an identification module 305 is further included for:
identifying the parameter values of circuit components on a single board of the terminal;
and determining the veneer specification code of the terminal corresponding to the circuit component parameter value according to the preset corresponding relation between the circuit component parameter value and the veneer specification code.
Optionally, the identifying module 305 is specifically configured to:
when the corresponding relation between the preset circuit component parameter value and the veneer specification code does not comprise the circuit component parameter value, setting the preset default veneer specification code as the veneer specification code of the terminal;
a generating module 303, configured to:
and when the determining module determines that the single board specification code does not exist in the corresponding relation between the preset single board specification code and the MBN parameter value, setting the preset MBN file as the MBN file corresponding to the terminal.
Optionally, the obtaining module 301 is specifically configured to:
when the MBN file corresponding to the terminal needs to be generated is determined, acquiring a single-board specification code of the terminal;
the method comprises the following steps of determining that an MBN file corresponding to a terminal needs to be generated under any one of the following conditions:
upon determining to run the modem for the first time;
and when determining that the indication information for indicating the generation of the MBN file corresponding to the terminal is received.
As can be seen from the above, in the embodiment of the present invention, a board specification code of a terminal is obtained; determining an MBN parameter value corresponding to the single board specification code according to a preset corresponding relation between the single board specification code and the MBN parameter value; generating an MBN file corresponding to the terminal according to the determined MBN parameter value; the MBN file is loaded to the modem. Because of the corresponding relationship between the preset single board specification code and the MBN parameter value, when the modem is operated, the MBN file can be temporarily generated according to the single board specification code of the terminal and the configured MBN parameter value, and because the corresponding relationship between the preset single board specification code and the MBN parameter value comprises a plurality of single board specification codes, the corresponding relationship between the same set of modem and the same set of preset single board specification code and the MBN parameter value can be used for different terminals, and then the MBN file corresponding to the terminal can be temporarily generated after the single board specification code of the terminal is determined. The problem that a plurality of modems comprising the pre-written MBN files need to be pre-written aiming at different terminals in the prior art is solved, and the development cost is reduced.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for loading a modem software configuration MBN file, comprising:
acquiring a single board specification code of a terminal;
determining MBN parameter values corresponding to the single board specification codes according to the preset corresponding relation between the plurality of single board specification codes and the MBN parameter values; the preset corresponding relation between the plurality of single board specification codes and the MBN parameter value is stored in a storage area of the terminal;
generating an MBN file corresponding to the terminal according to the determined MBN parameter value;
loading the MBN file to a modem;
the single board specification code comprises a code of a terminal operator and a code of a terminal working mode; the MBN parameter values comprise first-stage parameter values and second-stage parameter values;
determining the MBN parameter value corresponding to the single board specification code according to the corresponding relation between the preset single board specification code and the MBN parameter value, wherein the MBN parameter value corresponding to the single board specification code comprises the following steps:
determining a first-level parameter value corresponding to a code of a terminal operator according to a corresponding relation between the code of the terminal operator and the first-level parameter value;
determining a second-level parameter value corresponding to the code of the terminal working mode according to the corresponding relation between the code of the preset terminal working mode and the second-level parameter value;
determining the MBN parameter value corresponding to the single board specification code according to the first-level parameter value and the second-level parameter value;
the set of parameter items corresponding to the second-level parameter values is a subset of the set of parameter items corresponding to the first-level parameter values;
the determining the MBN parameter value corresponding to the single board specification code according to the first-level parameter value and the second-level parameter value includes:
determining parameter items which are the same as the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
determining parameter items which are different from the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
and taking the corresponding parameter value of the same parameter item in the second-stage parameter values and the parameter value of the different parameter item in the first-stage parameter values as the MBN parameter values.
2. The method of claim 1, wherein before obtaining the board specification code of the terminal, the method further comprises:
identifying the parameter values of circuit components on the single board of the terminal through the identification circuit;
and determining the veneer specification code of the terminal corresponding to the circuit component parameter value according to the preset corresponding relation between the circuit component parameter value and the veneer specification code.
3. The method of claim 2, wherein after identifying the circuit component parameter values on the board of the terminal by the identification circuit, further comprising:
when the corresponding relation between the preset circuit component parameter value and the veneer specification code does not comprise the circuit component parameter value, setting the preset default veneer specification code as the veneer specification code of the terminal;
after the obtaining of the board specification code of the terminal, the method further includes:
and when the single board specification code does not exist in the corresponding relation between the preset single board specification code and the MBN parameter value, setting the preset MBN file as the MBN file corresponding to the terminal.
4. The method of claim 3, wherein the obtaining of the board specification code of the terminal comprises:
acquiring a single board specification code of the terminal when the MBN file corresponding to the terminal needs to be generated;
determining that an MBN file corresponding to the terminal needs to be generated under any one of the following conditions:
upon determining to run the modem for the first time;
and when determining that the indication information for indicating the generation of the MBN file corresponding to the terminal is received.
5. An apparatus for loading a modem software configuration (MBN) file, comprising:
the acquisition module is used for acquiring the single board specification code of the terminal;
the determining module is used for determining MBN parameter values corresponding to the single board specification codes according to the corresponding relation between the preset multiple single board specification codes and the MBN parameter values; the preset corresponding relation between the plurality of single board specification codes and the MBN parameter value is stored in a storage area of the terminal;
the generating module is used for generating an MBN file corresponding to the terminal according to the determined MBN parameter value;
the processing module is used for loading the MBN file to a modem;
the single board specification code comprises a code of a terminal operator and a code of a terminal working mode; the MBN parameter values comprise first-stage parameter values and second-stage parameter values;
the determining module is specifically configured to:
determining a first-level parameter value corresponding to a code of a terminal operator according to a corresponding relation between the code of the terminal operator and the first-level parameter value;
determining a second-level parameter value corresponding to the code of the terminal working mode according to the corresponding relation between the code of the preset terminal working mode and the second-level parameter value;
determining the MBN parameter value corresponding to the single board specification code according to the first-level parameter value and the second-level parameter value;
the set of parameter items corresponding to the second-level parameter values is a subset of the set of parameter items corresponding to the first-level parameter values;
the determining module is specifically configured to:
determining parameter items which are the same as the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
determining parameter items which are different from the parameter items corresponding to the second-level parameter values in the parameter items corresponding to the first-level parameter values;
and taking the corresponding parameter value of the same parameter item in the second-stage parameter values and the parameter value of the different parameter item in the first-stage parameter values as the MBN parameter values.
6. The apparatus of claim 5, further comprising an identification module to:
identifying the parameter values of circuit components on a single board of the terminal;
and determining the veneer specification code of the terminal corresponding to the circuit component parameter value according to the preset corresponding relation between the circuit component parameter value and the veneer specification code.
7. The apparatus of claim 6, wherein the identification module is specifically configured to:
when the corresponding relation between the preset circuit component parameter value and the veneer specification code does not comprise the circuit component parameter value, setting the preset default veneer specification code as the veneer specification code of the terminal;
the generation module is configured to:
and when the determining module determines that the preset single board specification code does not exist in the corresponding relation between the single board specification code and the MBN parameter value, setting a preset MBN file as the MBN file corresponding to the terminal.
8. The apparatus of claim 7, wherein the obtaining module is specifically configured to:
acquiring a single board specification code of the terminal when the MBN file corresponding to the terminal needs to be generated;
determining that an MBN file corresponding to the terminal needs to be generated under any one of the following conditions:
upon determining to run the modem for the first time;
and when determining that the indication information for indicating the generation of the MBN file corresponding to the terminal is received.
CN201610353003.2A 2016-05-24 2016-05-24 Method and device for loading MBN file Active CN106066802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610353003.2A CN106066802B (en) 2016-05-24 2016-05-24 Method and device for loading MBN file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610353003.2A CN106066802B (en) 2016-05-24 2016-05-24 Method and device for loading MBN file

Publications (2)

Publication Number Publication Date
CN106066802A CN106066802A (en) 2016-11-02
CN106066802B true CN106066802B (en) 2019-12-20

Family

ID=57420754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610353003.2A Active CN106066802B (en) 2016-05-24 2016-05-24 Method and device for loading MBN file

Country Status (1)

Country Link
CN (1) CN106066802B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899774B (en) * 2017-01-17 2021-05-25 宇龙计算机通信科技(深圳)有限公司 Dynamic adaptation method and dynamic adaptation device for terminal modem software
CN106937320B (en) * 2017-03-31 2020-11-10 浙江国信房地产营销策划有限公司 Automatic operator parameter configuration method and terminal
CN107318099B (en) * 2017-05-02 2020-02-04 深圳市万普拉斯科技有限公司 Modem configuration file processing method and device and mobile terminal
CN107135516B (en) * 2017-06-29 2020-10-09 商机盒子(北京)科技有限公司 Parameter test processing method, mobile terminal and computer readable storage medium
CN107948965A (en) * 2017-11-28 2018-04-20 宇龙计算机通信科技(深圳)有限公司 A kind of method and apparatus of generation MBN files
CN112672387B (en) * 2020-12-21 2021-08-31 广西东信易联科技有限公司 Method and system for automatically switching network modes according to user data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055603A (en) * 2009-11-03 2011-05-11 中兴通讯股份有限公司 Method and system for configuring voice over internet phone (VOIP) veneer
CN104780557A (en) * 2014-01-09 2015-07-15 中兴通讯股份有限公司 Configuration method and device
CN105101162A (en) * 2015-07-13 2015-11-25 广东欧珀移动通信有限公司 Method and device for automatically loading MBN (ModemConfiguration Binary File)
CN105101479A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Adaptive configuration method and device for network frequency band of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002247665A (en) * 2001-02-15 2002-08-30 Hitachi Telecom Technol Ltd Communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055603A (en) * 2009-11-03 2011-05-11 中兴通讯股份有限公司 Method and system for configuring voice over internet phone (VOIP) veneer
CN104780557A (en) * 2014-01-09 2015-07-15 中兴通讯股份有限公司 Configuration method and device
CN105101479A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Adaptive configuration method and device for network frequency band of mobile terminal
CN105101162A (en) * 2015-07-13 2015-11-25 广东欧珀移动通信有限公司 Method and device for automatically loading MBN (ModemConfiguration Binary File)

Also Published As

Publication number Publication date
CN106066802A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
CN106066802B (en) Method and device for loading MBN file
US20070294685A1 (en) Program upgrade system and method for ota-capable portable device
CN106201586B (en) System upgrading method, terminal and system based on OTA
CN110377321A (en) Method, apparatus, terminal and the storage medium of application program updating
TW201306507A (en) Method of configuring Bluetooth SIM access profile of communication device
CN106648793B (en) Configuration file loading method and device
CN104021018A (en) Terminal, upgrade patch generation method and upgrade patch recognition method
CN107797823B (en) Business rule management method and device, storage medium and computer equipment
CN108460271B (en) Terminal identification method and device
CN103530121A (en) Method of compatibility of multiple hardware platforms by RRU single software version
CN107341106B (en) Application compatibility detection method, development terminal and storage medium
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
CN107750059B (en) Frequency band searching method and related equipment
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
EP3145230A1 (en) Method and device for controlling subscriber identity module card of mobile terminal
CN109726104B (en) Test packet generation method of mobile terminal, test terminal and storage medium
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN110837500B (en) Data screening method and device based on socal embedded window and computer equipment
CN107172610B (en) GSM network self-adaption method and device and electronic equipment
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN112035146B (en) Firmware updating method, security apparatus, and computer-readable storage medium
CN103984541A (en) Method and system for generating application procedure based on terminal source codes
CN110647753B (en) Method, device and equipment for acquiring kernel file and storage medium
CN115225654A (en) Communication method and device based on configurable communication protocol
CN112416383A (en) Hot updating method and device for golang program and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant