CN112000346A - File upgrading method and device, computer equipment and storage medium - Google Patents

File upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112000346A
CN112000346A CN202010711591.9A CN202010711591A CN112000346A CN 112000346 A CN112000346 A CN 112000346A CN 202010711591 A CN202010711591 A CN 202010711591A CN 112000346 A CN112000346 A CN 112000346A
Authority
CN
China
Prior art keywords
target
module
file
upgrading
communication module
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.)
Granted
Application number
CN202010711591.9A
Other languages
Chinese (zh)
Other versions
CN112000346B (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.)
Xian Fibocom Wireless Software Inc
Original Assignee
Xian Fibocom Wireless Software Inc
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 Xian Fibocom Wireless Software Inc filed Critical Xian Fibocom Wireless Software Inc
Priority to CN202010711591.9A priority Critical patent/CN112000346B/en
Publication of CN112000346A publication Critical patent/CN112000346A/en
Application granted granted Critical
Publication of CN112000346B publication Critical patent/CN112000346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The application relates to a file upgrading method, a file upgrading device, computer equipment and a storage medium. The method comprises the following steps: acquiring a module upgrading instruction corresponding to a target communication module, wherein the target communication module comprises a target user identification card; acquiring a target identification inquiry code of a target operator corresponding to a target user identification card from a target communication module according to a module upgrading instruction; acquiring a preset relation comparison table corresponding to the target communication module, wherein the preset relation comparison table comprises operator identifications corresponding to the identification query codes respectively, and inquiring the preset relation comparison table according to the target identification query codes to obtain target operator identifications corresponding to the target operators; acquiring a candidate module upgrading file set corresponding to the target communication module, determining a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identification, and upgrading the target communication module by using the target module upgrading file. By adopting the method, the file upgrading efficiency can be improved.

Description

File upgrading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a file upgrade method and apparatus, a computer device, and a storage medium.
Background
With the development of communication technology, different files can be burned into the communication module, so that the communication module can realize corresponding functions. When the file in the communication module cannot meet the requirement of the user, in order to implement a better communication mode or implement a specific communication mode, the user often needs to update the function of the communication module, that is, the file in the communication module needs to be upgraded.
At present, when files in a communication module need to be upgraded, workers usually upgrade the files manually, and the upgrading process consumes much time, so that the file upgrading efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a file upgrading method, device, computer device, and storage medium capable of improving file upgrading efficiency in order to solve the technical problem of low file upgrading efficiency.
A method of file upgrade, the method comprising: acquiring a module upgrading instruction corresponding to a target communication module, wherein the target communication module comprises a target user identification card; acquiring a target identification inquiry code of a target operator corresponding to the target user identification card from the target communication module according to the module upgrading instruction; acquiring a preset relation comparison table corresponding to the target communication module, wherein the preset relation comparison table comprises operator identifications corresponding to the identification inquiry codes respectively, and inquiring from the preset relation comparison table according to the target identification inquiry codes to obtain target operator identifications corresponding to the target operators; and acquiring a candidate module upgrading file set corresponding to the target communication module, determining a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identification, and upgrading the target communication module by using the target module upgrading file.
In some embodiments, the obtaining, according to the module upgrade instruction, a target identifier query code of a target operator corresponding to the target subscriber identity card from the target communication module includes: sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction; and receiving the identification query code returned by the target communication module as a target identification query code of a target operator corresponding to the target user identification card, wherein the target identification query code is acquired according to the identification query code acquisition instruction.
In some embodiments, the determining, from the set of candidate module upgrade files, a target module upgrade file corresponding to the target communication module using the target operator identifier includes: determining a module upgrading file corresponding to the target operator identification and an upgrading file version of the module upgrading file corresponding to the target operator identification from the candidate module upgrading file set; acquiring a current file version corresponding to a current module file of the target communication module; and when the version of the upgrading file is inconsistent with the version of the current file, taking the module upgrading file corresponding to the target operator identification as the target module upgrading file corresponding to the target communication module.
In some embodiments, the obtaining of the module upgrade instruction corresponding to the target communication module includes: detecting a hot plug event corresponding to a target user identification card in the target communication module; and when the hot plug event is detected, triggering the module upgrading instruction corresponding to the target communication module.
In some embodiments, the candidate module upgrade file set and the preset relationship comparison table are obtained from a file upgrade tool, and the step of obtaining the file upgrade tool includes: sending an upgrading tool version query request to a file server according to a preset time interval; receiving upgrade tool version information returned by the file server, wherein the upgrade tool version information is version information of a file upgrade tool corresponding to the target communication module, and the upgrade tool version information inquires a request according to the upgrade tool version; and acquiring the version information of the current tool corresponding to the target communication module, and sending an upgrading tool acquiring request corresponding to the target communication module to a file server when the version information of the current tool is inconsistent with the version information of the upgrading tool, wherein the version information of the current tool is the version information of the current file upgrading tool corresponding to the target communication module.
In some embodiments, the obtaining of the module upgrade instruction corresponding to the target communication module includes: determining a preset set storage address corresponding to the module upgrading file set; and inquiring according to the preset set storage address, and triggering a module upgrading instruction corresponding to the target communication module when a candidate module upgrading file set is inquired.
A file upgrade apparatus, the apparatus comprising: the module upgrading instruction acquisition module is used for acquiring a module upgrading instruction corresponding to a target communication module, and the target communication module comprises a target user identification card; a target identification query code acquisition module, configured to acquire, from the target communication module, a target identification query code of a target operator corresponding to the target subscriber identity card according to the module upgrade instruction; a target operator identifier obtaining module, configured to obtain a preset relationship comparison table corresponding to the target communication module, where the preset relationship comparison table includes operator identifiers corresponding to the identifier query codes, and obtain a target operator identifier corresponding to the target operator by querying from the preset relationship comparison table according to the target identifier query code; the upgrading module acquires a candidate module upgrading file set corresponding to the target communication module, determines a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identifier, and upgrades the target communication module by using the target module upgrading file.
In some embodiments, the target identification query code obtaining module comprises: the identification query code acquisition instruction sending unit is used for sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction; and the identification query code receiving unit is used for receiving the identification query code returned by the target communication module, and the identification query code is used as a target identification query code of a target operator corresponding to the target user identification card, and the target identification query code is obtained according to the identification query code obtaining instruction.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the file upgrade method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the file upgrade method described above.
The file upgrading method, the device, the computer equipment and the storage medium acquire a module upgrading instruction corresponding to a target communication module, the target communication module comprises a target user identification card, a target identification inquiry code of a target operator corresponding to the target user identification card is acquired from the target communication module according to the module upgrading instruction, a preset relation comparison table corresponding to the target communication module is acquired, the preset relation comparison table comprises operator identifications respectively corresponding to the identification inquiry codes, a target operator identification corresponding to the target operator is acquired by inquiring from the preset relation comparison table according to the target identification inquiry code, a candidate module upgrading file set corresponding to the target communication module is acquired, a target module upgrading file corresponding to the target communication module is determined from the candidate module upgrading file set by utilizing the target operator identification, and the target communication module is upgraded by utilizing the target module upgrading file, the method and the device realize automatic acquisition of the module upgrading file, automatically upgrade the target communication module according to the module upgrading file, and improve the upgrading efficiency of the file in the communication module.
Drawings
FIG. 1 is a diagram of an application environment for a file upgrade method in some embodiments;
FIG. 2 is a schematic flow chart diagram of a file upgrade method in some embodiments;
FIG. 3 is a flowchart illustrating steps for obtaining a target module file in some embodiments;
FIG. 4 is a flowchart illustrating steps for sending an upgrade tool acquisition request in some embodiments;
FIG. 5 is a block diagram of a file upgrade apparatus in some embodiments;
FIG. 6 is a diagram of the internal structure of a computer device in some embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application.
The file upgrading method provided by the application can be applied to the application environment shown in fig. 1. The application environment comprises a terminal 102 and a file server 104, wherein a target communication module is installed in the terminal 102, the target communication module comprises a target user identification card, and the terminal 102 and the file server 104 communicate through a network.
Specifically, the terminal 102 may obtain a module upgrade instruction corresponding to the target communication module, where the target communication module includes a target subscriber identity card, and the terminal 102 obtains a target identifier query code of a target operator corresponding to the target subscriber identity card from the target communication module according to the module upgrade instruction, and obtains a candidate module upgrade file set and a preset relationship comparison table corresponding to the target communication module. The candidate module upgrade file set and the preset relationship comparison table may be obtained by the terminal 102 from a file upgrade tool acquired by the file server 104, and the preset relationship comparison table includes operator identifiers corresponding to the identifier query codes respectively. The terminal 102 may obtain a target operator identifier corresponding to the target subscriber identity card by querying from the preset relationship comparison table according to the target identifier query code, determine a target module upgrade file corresponding to the target communication module from the candidate module upgrade file set by using the target operator identifier, and upgrade the target communication module by using the target module upgrade file.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the file server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers. The target communication module may be various communication modules, such as a network card and a baseband processor (Modem). The subscriber Identity card refers to a sim (subscriber Identity module) card. The operating system in the terminal 102 may be a Linux operating system, which may be, for example, an Ubuntu Linux desktop system. The file server 104 may be a remote server, such as a web remote server, to which the terminal 102 corresponds. Terminal 102 may also be referred to as HOST.
In some embodiments, as shown in fig. 2, a file upgrading method is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 1, and includes the following steps:
s202, a module upgrading instruction corresponding to the target communication module is obtained, and the target communication module comprises a target user identification card.
The module upgrading instruction can be triggered when the target communication module meets an upgrading triggering condition, wherein the upgrading triggering condition can comprise at least one of Firmware abnormity in the target communication module, target communication module working abnormity, hot plug of the target communication module or upgrading file version updating, and the Firmware abnormity can be a Firmware version problem Is a subscriber identity card of any operator.
In some embodiments, the terminal may detect an upgrade trigger condition of the target communication module, and generate a module upgrade instruction when the upgrade trigger condition is detected.
And S204, acquiring a target identification inquiry code of a target operator corresponding to the target user identification card from the target communication module according to the module upgrading instruction.
Specifically, the identifier query code refers to a query code for querying an identifier of an operator, and different identifier query codes correspond to different identifiers of the operator. The operator identifications corresponding to different operators are different. The carrier identification is used to uniquely identify the carrier. The subscriber identity card may store therein an identification inquiry code of the operator. The identification query Code may include at least one of a Mobile Country Code (MCC) or a Mobile Network Code (MNC). Where MCC consists of 3 digits that uniquely identify the country to which the mobile subscriber belongs. The MNC is composed of two digits and is used to identify the mobile network to which the mobile subscriber belongs, for example, the MNC of china mobile is 00, and the MNC of china unicom is 01. The operator of the mobile operator is identified as china mobile. The target identification inquiry code is an identification inquiry code for inquiring the identification of a target operator, and the target operator refers to the operator to which the target user identification card belongs.
In some embodiments, the terminal may read the target identifier query code of the target operator from the target subscriber identity card according to the module upgrade instruction, so that the operator of the target subscriber identity card may be determined according to the target identifier query code.
And S206, acquiring a preset relation comparison table corresponding to the target communication module, wherein the preset relation comparison table comprises operator identifications corresponding to the identification inquiry codes respectively, and inquiring the preset relation comparison table according to the target identification inquiry codes to obtain the target operator identification corresponding to the target operator.
Specifically, the preset relationship comparison table may include operator identifiers corresponding to the identifier query codes of the operators respectively. The preset relationship comparison table may be obtained in advance, or may be obtained when the module upgrade instruction is obtained. The target operator identification is the identification of the operator to which the target user identification card belongs.
In some embodiments, the predetermined relational table may be obtained from a file upgrade tool. The file upgrading tool refers to a tool for upgrading a file in the target communication module, and the file upgrading tool may be generated by a manufacturer of the target communication module based on a preset remote upgrading framework. The preset remote upgrade framework may be, for example, an lvfs (Linux vector Firmware service) remote Firmware upgrade framework of the Ubuntu Linux desktop system. The file upgrade tool may be a file having a preset file format, which may be, for example, a deb file, and may be named, for example, fwswtchtool. The slave file upgrading tool may include a file upgrading package for upgrading the communication module, and the file upgrading package may include a preset relationship comparison table. When a file (firmware) in the target communication module needs to be upgraded, a manufacturer of the target communication module may generate a file upgrade tool and store the generated file upgrade tool in the file server.
In some embodiments, the terminal may detect an update condition of a file upgrade tool in the file server, and when it is detected that the file upgrade tool has an update, the updated file upgrade tool may be downloaded and installed, and when the target communication module is upgraded, a corresponding preset relationship comparison table is obtained from the updated file upgrade tool, and a target operator identifier corresponding to the target operator is obtained by querying from the preset relationship comparison table according to the target identifier query code.
S208, acquiring a candidate module upgrading file set corresponding to the target communication module, determining a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identification, and upgrading the target communication module by using the target module upgrading file.
Specifically, a plurality of candidate module upgrade files may be included in the set of candidate module upgrade files. Different candidate module upgrade files may correspond to different operators. The candidate module upgrade file set may be obtained in advance, or may be obtained when the module upgrade instruction is obtained. The candidate module upgrade file set may be obtained from a file upgrade tool, and the file upgrade package may further include the candidate module upgrade file set. Upgrading the target communication module refers to upgrading a file in the target communication module.
In some embodiments, the terminal may obtain a candidate module upgrade file set corresponding to the target communication module, select a candidate module upgrade file having an operator identifier that is consistent with the target operator identifier from the candidate module upgrade file set, use the candidate module upgrade file as a target module upgrade file corresponding to the target communication module, and write the target module upgrade file into a corresponding storage area in the target communication module, so as to upgrade the target communication module. For example, the terminal may obtain a preset firmware storage area in the target communication module, and cover a firmware file stored in the preset firmware storage area with the target module upgrade file, so as to update the firmware in the target communication module, so that the target communication module is upgraded.
In some embodiments, there may be a plurality of candidate module upgrade files corresponding to the target operator identifier, the module upgrade instruction carries target function description information, the candidate module upgrade files correspond to the function description information, and the terminal may obtain, according to the target function description information, a candidate module upgrade file whose function description information is consistent with the target function description information from each candidate module upgrade file of the target operator identifier, and use the candidate module upgrade file as the target module upgrade file.
In some embodiments, after the target communication module is upgraded by using the target module upgrade file, the terminal may detect whether a hot plug event exists in the subscriber identity module in the target communication module, and when the hot plug event exists, trigger the module upgrade instruction corresponding to the target communication module again, and upgrade the target communication module again.
In some embodiments, there may be a plurality of target module upgrade files, the file upgrade tool may further include a file upgrade policy, and the file upgrade policy may include an upgrade arrangement sequence corresponding to each target module upgrade file, for example, there are 2 target module upgrade files, which are file a and file b, respectively, and the file upgrade policy may specify that upgrade is performed according to file a first and then upgrade is performed according to file b. Of course, other upgrading strategies may also be included in the file upgrading strategy, and no limitation is made here.
In some embodiments, a manufacturer of the communication module may place a fwwswitch.deb tool containing new modem firmware on the web remote server, when the fwwswitch.deb tool in the web remote server has an update, the fwwswitch.deb tool is downloaded to the local, the fwwswitch.deb installation is performed in the background, the application (the application corresponding to the fwswtchtol.deb) may automatically read the version number of the firmware in the modem, the version number of the firmware in the modem is compared with the version number of the firmware in the fwswtchtol.deb, and the firmware in the modem is upgraded when the comparison is inconsistent. Specifically, a modem vendor can make a fwswuttchtool. deb package containing modem firmware using an ubuntu dpkg tool, which is placed on a web server. A background daemon process fwupd (firmware updatedaemon) on the Host side can actively inquire the version number of fwswortool.deb, if the version number of a local toolkit is inconsistent with the version number of an fwswortool.deb package of a remote server, the background downloads and installs the fwswortool.deb package, an application program fwswortool in the installed fwswortool.deb obtains the version number of a module, the version number of firmware in the modem is compared with the version number of the firmware in the fwswortool.deb, and whether the firmware in the modem is upgraded or not is judged according to the comparison result. The fwswtchtool is an application program which can be controlled by a modem manufacturer, and the manufacturer can realize a firmware upgrading program according to a self mode.
In the file upgrading method, a module upgrading instruction corresponding to a target communication module is obtained, the target communication module comprises a target user identification card, a target identification inquiry code of a target operator corresponding to the target user identification card is obtained from the target communication module according to the module upgrading instruction, a preset relation comparison table corresponding to the target communication module is obtained, the preset relation comparison table comprises operator identifications corresponding to the identification inquiry codes respectively, a target operator identification corresponding to the target operator is obtained by inquiring from the preset relation comparison table according to the target identification inquiry code, a candidate module upgrading file set corresponding to the target communication module is obtained, a target module upgrading file corresponding to the target communication module is determined from the candidate module upgrading file set by using the target operator identification, and the target communication module is upgraded by using the target module upgrading file, the method and the device realize automatic acquisition of the module upgrading file, automatically upgrade the target communication module according to the module upgrading file, and improve the upgrading efficiency of the file in the communication module.
When firmware of a module (modem) in a traditional Ubuntu Linux desktop system is upgraded, a worker is required to manually upgrade the firmware, and when a customer has delivered a large amount of module products, once the firmware has a problem and needs to be upgraded, a large amount of time is consumed. By adopting the file upgrading method provided by the application, the firmware in the module can be automatically upgraded, so that the labor and time are saved, and the firmware upgrading efficiency is improved.
In some embodiments, the step S204 of obtaining, from the target communication module, the target identifier query code of the target operator corresponding to the target subscriber identity card according to the module upgrade instruction includes: sending an identification inquiry code acquisition instruction to a target communication module according to the module upgrading instruction; and receiving the identification query code returned by the target communication module as a target identification query code of a target operator corresponding to the target user identification card, wherein the target identification query code is obtained according to the identification query code obtaining instruction.
Specifically, the identification inquiry code acquisition instruction is used for acquiring an identification inquiry code. The file upgrading tool acquired by the terminal from the file server can generate an identification query code acquisition instruction according to the module upgrading instruction and transmit the identification query code acquisition instruction to the target communication module. The target communication module can obtain an instruction according to the identification query code, read the identification query code from the target user identification card, and transmit the read identification query code to a file upgrading tool in the terminal. The file upgrade tool may use the read identification query code as a target identification query code.
In the above embodiment, according to the module upgrading instruction, the identification query code acquisition instruction is sent to the target communication module, and the identification query code returned by the target communication module is received and serves as the target identification query code of the target operator corresponding to the target subscriber identity module, so that the target identification query code is automatically acquired, and the acquisition efficiency of the identification query code is improved.
In some embodiments, as shown in fig. 3, the step S210 of determining, from the candidate module upgrade file set by using the target operator identifier, a target module upgrade file corresponding to the target communication module includes:
s302, determining a module upgrading file corresponding to the target operator identification and an upgrading file version of the module upgrading file corresponding to the target operator identification from the candidate module upgrading file set.
S304, acquiring the current file version corresponding to the current module file of the target communication module.
S306, when the version of the upgrade file is inconsistent with the current file version, the module upgrade file corresponding to the target operator identification is used as the target module upgrade file corresponding to the target communication module.
Specifically, the module upgrade file corresponding to the target operator identifier refers to a module upgrade file in which the operator identifier is consistent with the target operator identifier. The upgrade file version refers to a version of the module upgrade file corresponding to the target operator identifier. The current module file refers to a module file stored and used at the current time in the target communication module, and the current file version refers to the version of the current module file. Different module files may correspond to different versions.
In some embodiments, the terminal obtains a file upgrading tool from a file server, determines a module upgrading file corresponding to a target operator identifier from a candidate module upgrading file set of the file upgrading tool, compares an upgrading file version corresponding to the module upgrading file with a current file version corresponding to a current module file, determines that the module upgrading file and the current module file are files of the same version when the comparison is consistent, that is, the module upgrading file is the same as the current module file, and does not need to upgrade the module file in the target communication module. When the comparison is inconsistent, the module upgrading file is determined to be different from the current module file, that is, the module upgrading file can be determined to be the upgrading version corresponding to the current module file, and the target communication module can be upgraded by using the module upgrading file.
In the above embodiment, when the version of the upgrade file is inconsistent with the current file version, the module upgrade file corresponding to the target operator identifier is used as the target module upgrade file corresponding to the target communication module, and the module upgrade file can be upgraded only when the module upgrade file is determined to be the upgrade version of the current module file, so that the upgrade using the file same as the current module file is avoided, that is, the invalid upgrade is avoided, and the upgrade success rate is improved.
In some embodiments, the step S202 of obtaining the module upgrade instruction corresponding to the target communication module includes: detecting a hot plug event corresponding to a target user identification card in a target communication module; and when a hot plug event is detected, triggering a module upgrading instruction corresponding to the target communication module.
Specifically, the hot plug event refers to a process from the time the subscriber identity card is taken out of the communication module to the time the subscriber identity card is put into the communication module, and the carrier corresponding to the subscriber identity card taken out of the communication module may be different from the carrier corresponding to the subscriber identity card put into the communication module. The hot plug event includes replacing a subscriber identity card in the target communication module. The terminal may detect a hot plug event corresponding to the target subscriber identity card, and may generate a module upgrade instruction for upgrading a module file in the target communication module when the hot plug event is detected.
In some embodiments, when the terminal detects that the target subscriber identity module in the target communication module is replaced with the subscriber identity module of the operator B from the subscriber identity module of the operator a, the terminal may generate a module upgrade instruction, obtain a file upgrade tool from the file server, and upgrade the target communication module using the module upgrade file corresponding to the operator B in the file upgrade tool, so that the terminal may access the network using the replaced subscriber identity module of the operator B.
In the above embodiment, when a hot plug event is detected, a module upgrade instruction corresponding to the target communication module is triggered, so that when the subscriber identity module card is replaced, firmware in the communication module is updated (upgraded), the communication module and the replaced subscriber identity module card realize a function of accessing to a network, and the terminal can access to the network through the communication module after the subscriber identity module card is replaced.
In some embodiments, the candidate module upgrade file set and the preset relationship comparison table are obtained from a file upgrade tool, as shown in fig. 4, the step of obtaining the file upgrade tool includes:
s402, sending an upgrade tool version query request to the file server according to a preset time interval.
Specifically, the preset time interval may be set as needed, for example, 24 hours. The upgrade tool version query request is for querying version information, such as a version number, of a specific file upgrade tool including at least one of a file upgrade tool of a latest version or a file upgrade tool of a preset function. The preset function may be set as desired, such as a 5G function.
S404, receiving upgrade tool version information returned by the file server, wherein the upgrade tool version information is version information of a file upgrade tool corresponding to the target communication module, and the upgrade tool version information inquires a request according to the upgrade tool version.
Specifically, the upgrade tool version information may be version information corresponding to a latest version of the file upgrade tool in the file server. The terminal can send an upgrade tool version query request to the file server according to a preset time interval, and the file server can acquire version information of a file upgrade tool of a latest version according to the upgrade tool version query request and return the version information of the file upgrade tool of the latest version to the terminal.
S406, acquiring the current tool version information corresponding to the target communication module, and sending an upgrade tool acquisition request corresponding to the target communication module to the file server when the current tool version information is inconsistent with the upgrade tool version information, wherein the current tool version information is the version information of the current file upgrade tool corresponding to the target communication module.
Specifically, the current tool version information refers to version information of a current file upgrade tool corresponding to a current module file in the target communication module. When the version information of the current tool is inconsistent with the version information of the upgrading tool, determining that the file upgrading tool corresponding to the version information of the upgrading tool is the upgrading version of the file upgrading tool corresponding to the version information of the current tool, and upgrading the target communication module by using the file upgrading tool corresponding to the version information of the upgrading tool. The upgrade tool acquisition request is used to acquire a file upgrade tool corresponding to the upgrade tool version information, for example, to acquire a file upgrade tool of the latest version.
In some embodiments, the terminal may send an upgrade tool version query request to the file server at a preset time interval, the file server may obtain version information of a latest version of the file upgrade tool according to the upgrade tool version query request, and return the version information of the latest version of the file upgrade tool to the terminal, the terminal may compare the version information of the latest version of the file upgrade tool with the version information of the current tool, and when the comparison is inconsistent, determine that the latest version of the file upgrade tool is an upgrade version of the current file upgrade tool, at this time, the terminal may send an upgrade tool acquisition request to the file server, and the file server may return a file upgrade tool (a file upgrade tool of the latest version) corresponding to the upgrade tool version information according to the upgrade tool acquisition request.
In the above embodiment, when the version information of the current tool is inconsistent with the version information of the upgrading tool, the upgrading tool acquisition request corresponding to the target communication module is sent to the file server, so that the file upgrading tool corresponding to the version information of the current tool is ensured to be the upgrading version of the current file upgrading tool, invalid upgrading is avoided, and the upgrading success rate is improved.
In some embodiments, the step S202 of obtaining the module upgrade instruction corresponding to the target communication module includes: determining a preset set storage address corresponding to the module upgrading file set; and inquiring according to the preset set storage address, and triggering a module upgrading instruction corresponding to the target communication module when the candidate module upgrading file set is inquired.
Specifically, the memory address may be at least one of a physical address or a logical address, and the logical address may be a memory directory. The preset set storage address refers to an address of a storage space of the storage module upgrade file set. The preset set storage address may be preset as needed.
In some embodiments, the terminal may install the file upgrading tool after acquiring the file upgrading tool, and when the terminal installs the file upgrading tool, the terminal may store the candidate module upgrading file set to the storage space corresponding to the preset set storage address. The terminal can inquire the storage space corresponding to the preset set storage address, and when the candidate module upgrading file set is inquired, a module upgrading instruction is generated. When the terminal finishes upgrading the module files in the target communication module according to the file upgrading tool, the candidate module upgrading file set in the preset set storage address can be deleted, and repeated upgrading is prevented.
In the above embodiment, the preset set storage address corresponding to the module upgrade file set is determined, the query is performed according to the preset set storage address, and when the candidate module upgrade file set is queried, the module upgrade instruction corresponding to the target communication module is triggered, so that the target communication module can be timely updated when the candidate module upgrade file set exists, and the timeliness of the upgrade is improved.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In some embodiments, as shown in fig. 5, there is provided a file upgrade apparatus, including: a module upgrading instruction obtaining module 502, a target identifier query code obtaining module 504, a target operator identifier obtaining module 506 and an upgrading module 508, wherein:
a module upgrade instruction obtaining module 502, configured to obtain a module upgrade instruction corresponding to a target communication module, where the target communication module includes a target subscriber identity module.
And a target identifier query code obtaining module 504, configured to obtain, from the target communication module, a target identifier query code of a target operator corresponding to the target subscriber identity card according to the module upgrading instruction.
A target operator identifier obtaining module 506, configured to obtain a preset relationship comparison table corresponding to the target communication module, where the preset relationship comparison table includes operator identifiers corresponding to the identifier query codes, and obtain a target operator identifier corresponding to the target operator by querying from the preset relationship comparison table according to the target identifier query code;
the upgrade module 508 obtains a candidate module upgrade file set corresponding to the target communication module, determines a target module upgrade file corresponding to the target communication module from the candidate module upgrade file set by using the target operator identifier, and upgrades the target communication module by using the target module upgrade file.
In some embodiments, the target identification query code acquisition module 504 includes:
and the identification query code acquisition instruction sending unit is used for sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction.
And the identification query code receiving unit is used for receiving the identification query code returned by the target communication module as a target identification query code of a target operator corresponding to the target user identification card, and the target identification query code is obtained according to the identification query code obtaining instruction.
In some embodiments, the target identification query code acquisition module 504 includes:
and the identification query code acquisition instruction sending unit is used for sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction.
And the identification query code receiving unit is used for receiving the identification query code returned by the target communication module as a target identification query code of a target operator corresponding to the target user identification card, and the target identification query code is obtained according to the identification query code obtaining instruction.
In some embodiments, upgrade module 508 includes:
and the upgrade file version determining unit is used for determining the module upgrade file corresponding to the target operator identifier and the upgrade file version of the module upgrade file corresponding to the target operator identifier from the candidate module upgrade file set.
And the current file version acquiring unit is used for acquiring the current file version corresponding to the current module file of the target communication module.
And the target module upgrading file obtaining unit is used for taking the module upgrading file corresponding to the target operator identification as the target module upgrading file corresponding to the target communication module when the upgrading file version is inconsistent with the current file version.
In some embodiments, module upgrade instruction acquisition module 502 includes:
and the hot plug event detection unit is used for detecting a hot plug event corresponding to the target user identification card in the target communication module.
And the first module upgrading instruction triggering unit is used for triggering a module upgrading instruction corresponding to the target communication module when a hot plug event is detected.
In some embodiments, the file upgrading apparatus further includes a file upgrading tool obtaining module, where the file upgrading tool obtaining module includes:
the upgrading tool version query request sending unit is used for sending an upgrading tool version query request to the file server according to a preset time interval;
receiving upgrade tool version information returned by the file server, wherein the upgrade tool version information is version information of a file upgrade tool corresponding to the target communication module, and the upgrade tool version information inquires a request according to the upgrade tool version;
and acquiring the version information of the current tool corresponding to the target communication module, and sending an upgrading tool acquiring request corresponding to the target communication module to the file server when the version information of the current tool is inconsistent with the version information of the upgrading tool, wherein the version information of the current tool is the version information of the upgrading tool of the current file corresponding to the target communication module.
In some embodiments, module upgrade instruction acquisition module 502 includes:
and the preset set storage address determining unit is used for determining the preset set storage address corresponding to the module upgrading file set.
And the second module upgrading instruction triggering unit is used for inquiring according to the preset set storage address, and triggering the module upgrading instruction corresponding to the target communication module when the candidate module upgrading file set is inquired.
For the specific definition of the file upgrading device, reference may be made to the above definition of the file upgrading method, which is not described herein again. The modules in the file upgrading device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a file upgrade method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory in which a computer program is stored and a processor which, when executing the computer program, implements the steps of the file upgrade method described above.
In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the file upgrade method described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for file upgrade, the method comprising:
acquiring a module upgrading instruction corresponding to a target communication module, wherein the target communication module comprises a target user identification card;
acquiring a target identification inquiry code of a target operator corresponding to the target user identification card from the target communication module according to the module upgrading instruction;
acquiring a preset relation comparison table corresponding to the target communication module, wherein the preset relation comparison table comprises operator identifications corresponding to the identification inquiry codes respectively, and inquiring from the preset relation comparison table according to the target identification inquiry codes to obtain target operator identifications corresponding to the target operators;
and acquiring a candidate module upgrading file set corresponding to the target communication module, determining a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identification, and upgrading the target communication module by using the target module upgrading file.
2. The method of claim 1, wherein the obtaining, according to the module upgrade instruction, the target identifier query code of the target operator corresponding to the target subscriber identity card from the target communication module comprises:
sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction;
and receiving the identification query code returned by the target communication module as a target identification query code of a target operator corresponding to the target user identification card, wherein the target identification query code is acquired according to the identification query code acquisition instruction.
3. The method of claim 1, wherein determining a target module upgrade file corresponding to the target communication module from the set of candidate module upgrade files using the target operator identity comprises:
determining a module upgrading file corresponding to the target operator identification and an upgrading file version of the module upgrading file corresponding to the target operator identification from the candidate module upgrading file set;
acquiring a current file version corresponding to a current module file of the target communication module;
and when the version of the upgrading file is inconsistent with the version of the current file, taking the module upgrading file corresponding to the target operator identification as the target module upgrading file corresponding to the target communication module.
4. The method according to claim 1, wherein the obtaining of the module upgrade instruction corresponding to the target communication module comprises:
detecting a hot plug event corresponding to a target user identification card in the target communication module;
and when the hot plug event is detected, triggering the module upgrading instruction corresponding to the target communication module.
5. The method of claim 1, wherein the candidate module upgrade file set and the predetermined relational lookup table are obtained from a file upgrade tool, and the step of obtaining the file upgrade tool comprises:
sending an upgrading tool version query request to a file server according to a preset time interval;
receiving upgrade tool version information returned by the file server, wherein the upgrade tool version information is version information of a file upgrade tool corresponding to the target communication module, and the upgrade tool version information inquires a request according to the upgrade tool version;
and acquiring the version information of the current tool corresponding to the target communication module, and sending an upgrading tool acquiring request corresponding to the target communication module to a file server when the version information of the current tool is inconsistent with the version information of the upgrading tool, wherein the version information of the current tool is the version information of the current file upgrading tool corresponding to the target communication module.
6. The method of claim 5, wherein the obtaining of the module upgrade instruction corresponding to the target communication module comprises:
determining a preset set storage address corresponding to the module upgrading file set;
and inquiring according to the preset set storage address, and triggering a module upgrading instruction corresponding to the target communication module when a candidate module upgrading file set is inquired.
7. A file upgrade apparatus, characterized in that the apparatus comprises:
the module upgrading instruction acquisition module is used for acquiring a module upgrading instruction corresponding to a target communication module, and the target communication module comprises a target user identification card;
a target identification query code acquisition module, configured to acquire, from the target communication module, a target identification query code of a target operator corresponding to the target subscriber identity card according to the module upgrade instruction;
a target operator identifier obtaining module, configured to obtain a preset relationship comparison table corresponding to the target communication module, where the preset relationship comparison table includes operator identifiers corresponding to the identifier query codes, and obtain a target operator identifier corresponding to the target operator by querying from the preset relationship comparison table according to the target identifier query code;
the upgrading module acquires a candidate module upgrading file set corresponding to the target communication module, determines a target module upgrading file corresponding to the target communication module from the candidate module upgrading file set by using the target operator identifier, and upgrades the target communication module by using the target module upgrading file.
8. The apparatus of claim 7, wherein the target identity lookup code obtaining module comprises:
the identification query code acquisition instruction sending unit is used for sending an identification query code acquisition instruction to the target communication module according to the module upgrading instruction;
and the identification query code receiving unit is used for receiving the identification query code returned by the target communication module, and the identification query code is used as a target identification query code of a target operator corresponding to the target user identification card, and the target identification query code is obtained according to the identification query code obtaining instruction.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010711591.9A 2020-07-22 2020-07-22 File upgrading method, device, computer equipment and storage medium Active CN112000346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010711591.9A CN112000346B (en) 2020-07-22 2020-07-22 File upgrading method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010711591.9A CN112000346B (en) 2020-07-22 2020-07-22 File upgrading method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112000346A true CN112000346A (en) 2020-11-27
CN112000346B CN112000346B (en) 2023-12-29

Family

ID=73467116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010711591.9A Active CN112000346B (en) 2020-07-22 2020-07-22 File upgrading method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000346B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817610A (en) * 2021-01-27 2021-05-18 Oppo广东移动通信有限公司 Cota package installation method and related device
CN113176888A (en) * 2021-04-27 2021-07-27 Oppo广东移动通信有限公司 Upgrading method and upgrading device for electronic equipment, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006003177A2 (en) * 2004-06-30 2006-01-12 Siemens Aktiengesellschaft Method and apparatus for downloading a plurality of images
CN101849421A (en) * 2007-09-26 2010-09-29 高通股份有限公司 Apparatus and methods for network identification of open market wireless devices
CN104156247A (en) * 2014-08-14 2014-11-19 广州金山网络科技有限公司 Application upgrading method and device
CN104270507A (en) * 2014-09-17 2015-01-07 广东欧珀移动通信有限公司 Storage space cleaning method, device and intelligent terminal
CN106648793A (en) * 2016-12-29 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Loading method and device for configuration files
US20180352421A1 (en) * 2017-06-02 2018-12-06 Mediatek Inc. Mobile Device Configuration Method And Apparatus
CN109086091A (en) * 2017-06-13 2018-12-25 中国移动通信有限公司研究院 A kind of interface loading method, device and the equipment of software development kit
CN111065086A (en) * 2020-01-16 2020-04-24 Tcl移动通信科技(宁波)有限公司 SIM (subscriber identity module) identification method and device, storage medium and mobile terminal
CN111158717A (en) * 2019-12-24 2020-05-15 深圳怡化电脑股份有限公司 Firmware upgrading method, device and medium for device
CN111277991A (en) * 2020-01-17 2020-06-12 惠州Tcl移动通信有限公司 Operator name display method and device, mobile terminal and storage medium
CN111328068A (en) * 2020-01-19 2020-06-23 深圳市广和通无线股份有限公司 Card writing method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006003177A2 (en) * 2004-06-30 2006-01-12 Siemens Aktiengesellschaft Method and apparatus for downloading a plurality of images
CN101849421A (en) * 2007-09-26 2010-09-29 高通股份有限公司 Apparatus and methods for network identification of open market wireless devices
CN104156247A (en) * 2014-08-14 2014-11-19 广州金山网络科技有限公司 Application upgrading method and device
CN104270507A (en) * 2014-09-17 2015-01-07 广东欧珀移动通信有限公司 Storage space cleaning method, device and intelligent terminal
CN106648793A (en) * 2016-12-29 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Loading method and device for configuration files
US20180352421A1 (en) * 2017-06-02 2018-12-06 Mediatek Inc. Mobile Device Configuration Method And Apparatus
CN109086091A (en) * 2017-06-13 2018-12-25 中国移动通信有限公司研究院 A kind of interface loading method, device and the equipment of software development kit
CN111158717A (en) * 2019-12-24 2020-05-15 深圳怡化电脑股份有限公司 Firmware upgrading method, device and medium for device
CN111065086A (en) * 2020-01-16 2020-04-24 Tcl移动通信科技(宁波)有限公司 SIM (subscriber identity module) identification method and device, storage medium and mobile terminal
CN111277991A (en) * 2020-01-17 2020-06-12 惠州Tcl移动通信有限公司 Operator name display method and device, mobile terminal and storage medium
CN111328068A (en) * 2020-01-19 2020-06-23 深圳市广和通无线股份有限公司 Card writing method and device, computer equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
I JØRSTAD ET AL.: "Using GSM SIM Authentication in VPNs", 《DEPARTMENT OF TELEMATICS》 *
I JØRSTAD ET AL.: "Using GSM SIM Authentication in VPNs", 《DEPARTMENT OF TELEMATICS》, 31 December 2007 (2007-12-31) *
何宾;朱红林;: "基于GPRS的DSP程序远程升级的研究与实现", 计算机工程与设计, no. 15 *
吴长江 等: "基于嵌入式SIM卡的配网自动化终端", 《湖南电力》 *
吴长江 等: "基于嵌入式SIM卡的配网自动化终端", 《湖南电力》, vol. 39, no. 03, 30 June 2019 (2019-06-30) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817610A (en) * 2021-01-27 2021-05-18 Oppo广东移动通信有限公司 Cota package installation method and related device
CN113176888A (en) * 2021-04-27 2021-07-27 Oppo广东移动通信有限公司 Upgrading method and upgrading device for electronic equipment, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112000346B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN110908683B (en) Software system upgrading method and device of hardware module, storage medium and terminal
CN112492589B (en) Method and device for accessing equipment identifier
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN105335187A (en) Application processing method and apparatus
CN112000346B (en) File upgrading method, device, computer equipment and storage medium
EP2631795A1 (en) Terminal and method for assigning permission to application
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN111095199B (en) Application loading method and terminal equipment
CN112423281B (en) Wireless module upgrading method, device, computer equipment and storage medium
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
CN111510909A (en) Communication module configuration processing method and device, computer equipment and storage medium
CN106843947B (en) Method and device for processing code defects
CN108966159B (en) Short message withdrawing method, system, computer equipment and storage medium
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
CN105493098A (en) Terminal device for terminal protection, terminal protecting method for same, and terminal managing server device
CN114585002A (en) Communication processing method, communication processing device, terminal equipment and computer readable storage medium
US20160378553A1 (en) Resource Management Method and Device for Terminal System
CN112187508B (en) Internet of things gateway equipment management method, device, equipment and readable storage medium
CN110489138B (en) Application updating method, device and storage medium
CN104008096A (en) Browser-based application operation method and apparatus
CN111328068B (en) Card writing method and device, computer equipment and storage medium
US20030162559A1 (en) Mobile communications terminal, information transmitting system and information receiving method
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN114327548A (en) Software upgrading method and related device
CN113609881A (en) Method, device and equipment for determining analog card to be activated and storage medium

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
GR01 Patent grant
GR01 Patent grant