Device parameter logical backup and format download method, device, equipment and medium

By performing logical backup and formatting download in the device test mode, the problem of inefficient backup and import of equipment parameters in the existing technology is solved, efficient backup and restore of parameters is realized, and the operation process is simplified and production efficiency is improved.

CN116521450BActive Publication Date: 2025-03-04无锡宇宁科技集团股份有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310545472.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2025-03-04
Estimated Expiration
2043-05-15

AI Technical Summary

Technical Problem

The prior art is inefficient in equipment parameter backup and import, resulting in easy loss of machine parameters, complex operation, affecting production efficiency and quality control.

Method used

When the target device enters test mode, it calls the database interface to read the database file, and performs logical backups based on the database interface and files, reads and writes the frequency band related parameters. When the device exits the test mode, perform a format download and restore the backup parameters to the device after the download is completed.

Benefits of technology

It realizes efficient logical backup and formatting download of device parameters, reduces the possibility of parameter loss, simplifies operational processes, improves production efficiency, and improves data integrity control of device parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116521450B_ABST
    Figure CN116521450B_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer technology. The present application provides a method, device, equipment and medium for logical backup and formatted download of equipment parameters. The method reduces the possibility of machine parameter loss by logically backing up the parameters in the target equipment before formatted downloading, and logically restoring the corresponding parameters after formatted downloading, while simplifying the entire operation process. The download of system software and backup of system parameters in the target equipment are implemented in the same PC software, so that the download software of the target equipment and the backup and import of radio frequency parameters in the mobile phone can be completed at one time, simplifying the factory process and improving production efficiency for software upgrades across major versions, and solving the current technical problem of low efficiency in equipment parameter backup and import.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and computer-readable storage medium for logical backup and formatted downloading of device parameters. Background Art

[0002] When upgrading the software of the machine, the existing MTK download tool will compare the software partition address in the machine with the partition address of the software to be upgraded. If the partition address used to store parameters is changed, each partition storing parameters will be physically backed up. After all partitions are backed up locally according to the partition address, formatting and downloading will be performed. After the download is completed, the parameter files stored locally will be restored to the machine according to the partition address. If the partition address storing parameters has not changed, the backup operation will not be performed and the formatting of the relevant partitions will be skipped, so as to ensure that the machine parameters will not be lost.

[0003] When handling faulty machines with lost parameters after sales, the UpdateParameter Tool in the modem_meta tool of mtk is used to perform a logical backup of the parameters in the machines of the same batch, save the parameters locally, and then rewrite the backup parameters to the faulty machine, thereby repairing the faulty machine that has lost parameters after using the download tool to upgrade the software.

[0004] The current download tool uses physical backup as the parameter backup solution when upgrading the firmware. However, when using the physical backup solution, some machines will inevitably lose parameters. In addition, it is necessary to ensure that the software partition address in the machine is highly consistent with the partition address of the upgraded software. When there is a difference in the software partition address, the probability of parameter loss will be greatly increased.

[0005] For machines that have lost parameters, the only way is to export the parameters from the same batch of machines and then import them back to the faulty machine. This operation is tedious and time-consuming, and requires engineers with relevant knowledge to operate correctly, which seriously affects production efficiency and quality control. Summary of the invention

[0006] The main purpose of the present invention is to provide a method, device, equipment and computer-readable storage medium for logical backup and formatted download of device parameters, aiming to solve the technical problem of low efficiency in backup and import of device parameters.

[0007] To achieve the above object, the present invention provides a device parameter logical backup and formatted download method, the device parameter logical backup and formatted download method comprising:

[0008] When the target device enters the test mode, based on the first interface of the database, reading the database file of the target software in the target device;

[0009] Based on the second interface in the database and the database file, read and write the frequency band related parameters corresponding to each frequency band in the target device to obtain a backup file to implement parameter backup of the target device;

[0010] When the target device exits the test mode, formatting and downloading the target software to the target device based on a preload port of the target device;

[0011] When the formatted download of the target software is completed and the target device enters the test mode, reading the database file based on the first interface of the database;

[0012] Based on the data path file, the backup file is read, and the frequency band related parameters corresponding to each frequency band are written into the target device to complete the parameter restoration of the target device.

[0013] Further, the target device enters a test mode, including:

[0014] Based on the download instruction, the third interface of the database is called to initialize the target device to enter the test mode.

[0015] Further, based on the second interface in the database and the database file, reading and writing the frequency band related parameters corresponding to each frequency band in the target device to obtain the backup file includes:

[0016] Based on the second interface, reading frequency band related parameters corresponding to each frequency band in the database file;

[0017] Based on the character string type saving format, the frequency band related parameters corresponding to each frequency band are written into the initialization file for saving, so as to obtain the backup file.

[0018] Furthermore, the second interface is a data interface corresponding to at least one of the frequency band related parameters.

[0019] Furthermore, the character string type saving format is used to write the frequency band related parameters corresponding to each frequency band into the initialization file for saving, and the backup file is obtained, including:

[0020] Based on the character string type corresponding to the frequency band related parameters, the frequency band related parameters corresponding to each frequency band are written into the initialization file, and are saved according to the node, key, and value distinction to obtain the backup file.

[0021] Further, the formatting and downloading of the target software to the target device based on the preload port of the target device includes:

[0022] Based on the preload port, executing a formatted download instruction;

[0023] Based on the format download instruction, erasing the historical storage data in the memory of the target device;

[0024] After the historical storage data in the memory is erased, the data of the target software is downloaded and saved in the memory to complete the operation of downloading the target software to the target device.

[0025] Further, after reading the backup file based on the data path file and writing the frequency band related parameters corresponding to each frequency band into the target device to complete the parameter restoration of the target device, it also includes:

[0026] When parameter restoration of the target device fails, failure reminder information is generated to remind the user to check the firmware of the target device.

[0027] In addition, to achieve the above purpose, the present invention also provides a device parameter logic backup and formatting download device, the device parameter logic backup and formatting download device comprising:

[0028] A database file reading module, used for reading a database file of a target software in the target device based on a first interface of the database when the target device enters a test mode;

[0029] A parameter backup module, used to read and write frequency band related parameters corresponding to each frequency band in the target device based on the second interface in the database and the database file, and obtain a backup file to implement parameter backup of the target device;

[0030] A software formatting download module, used for formatting and downloading the target software to the target device based on the preload port of the target device when the target device exits the test mode;

[0031] A local data reading module, configured to read the database file based on the first interface of the database when the formatted download of the target software is completed and the target device enters the test mode;

[0032] The data restoration module is used to read the backup file based on the data path file, and write the frequency band related parameters corresponding to each frequency band into the target device to complete the parameter restoration of the target device.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer device, which includes a processor, a memory, and a device parameter logic backup and formatting download program stored in the memory and executable by the processor, wherein when the device parameter logic backup and formatting download program is executed by the processor, the steps of the device parameter logic backup and formatting download method as described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a device parameter logic backup and formatting download program is stored, wherein when the device parameter logic backup and formatting download program is executed by a processor, the steps of the device parameter logic backup and formatting download method as described above are implemented.

[0035] The present invention provides a device parameter logical backup and formatted download method, which, when the target device is in a test mode, reads the database file by calling the first interface of the database, and saves the frequency band related parameters of the target device locally according to the second interface of the database and the database file to prevent data loss. Then, when the target device exits the test mode, the target software is formatted and downloaded, and after the formatted download is completed, the device parameters stored locally are completely restored to the target device, so that the data integrity of the target device can be guaranteed and data loss can be avoided. By logically backing up the parameters in the target device before formatting and downloading, and logically restoring the corresponding parameters after formatting and downloading, the possibility of machine parameter loss is reduced, and the entire operation process is simplified. The download of the system software and the backup of the system parameters in the target device are implemented in the same PC software, so that the download software of the target device and the backup and import of the radio frequency parameters in the mobile phone can be completed at one time, simplifying the factory process for software upgrades across major versions to improve production efficiency, and solving the current technical problem of low efficiency of device parameter backup and import. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of the hardware structure of a computer device involved in an embodiment of the present invention;

[0037] Figure 2 It is a flow chart of the first embodiment of the method for logical backup and formatted downloading of device parameters of the present invention;

[0038] Figure 3 It is a flow chart of the second embodiment of the method for logical backup and formatted downloading of device parameters of the present invention;

[0039] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for logical backup and formatted downloading of device parameters of the present invention;

[0040] Figure 5 A schematic diagram of the data storage result of the Ini file provided in an embodiment of the present invention;

[0041] Figure 6 A schematic diagram of a process flow of a preloader port startup process provided by an embodiment of the present invention;

[0042] Figure 7 A schematic diagram of a preloader port download process according to an embodiment of the present invention;

[0043] Figure 8 It is a flow chart of the first embodiment of the method for logical backup and formatted downloading of device parameters of the present invention;

[0044] Fig. 9 It is a functional module diagram of the first embodiment of the device parameter logic backup and format downloading apparatus of the present invention.

[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0047] The device parameter logic backup and formatted download method involved in the embodiment of the present invention is mainly applied to computer equipment, which can be a PC, a portable computer, a mobile terminal or other equipment with display and processing functions.

[0048] Reference Figure 1 , Figure 1 Schematic diagram of the hardware structure of the computer device involved in the embodiment of the present invention. In the embodiment of the present invention, the computer device may include a processor 1001 (such as a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface); the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0049] Those skilled in the art will understand that Figure 1The hardware structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, and a device parameter logic backup and formatting download program.

[0051] exist Figure 1 In the embodiment, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the device parameter logic backup and formatting download program stored in the memory 1005, and execute the device parameter logic backup and formatting download method provided in the embodiment of the present invention.

[0052] The embodiment of the present invention provides a method for logical backup and formatted downloading of device parameters.

[0053] Reference Figure 2 , Figure 2 It is a flowchart of the first embodiment of the device parameter logic backup and formatted download method of the present invention.

[0054] In this embodiment, the device parameter logical backup and formatted download method includes the following steps:

[0055] Step S10, when the target device enters the test mode, based on the first interface of the database, reading the database file of the target software in the target device;

[0056] In this embodiment, when the parameters of the target device need to be backed up, the target device is connected via a computer or other computer device, and when the target device enters a test (meta) mode, the database file in the target device is read by calling a database interface.

[0057] In one embodiment, the target device may be an electronic product such as a mobile phone or a tablet computer.

[0058] In one embodiment, the target device enters the test mode, comprising: based on the download instruction, calling the third interface of the database, so that the target device is initialized to enter the test mode.

[0059] In one embodiment, the third interface includes:

[0060] META_RESULT METACONNAPI MetaConn_Connect(const char*,void*para,METACONN_RESULT*output_para).

[0061] In one embodiment, after the download tool clicks download, the tool enters a state of waiting for device insertion, and waits for the device to be initialized and enter meta mode by calling the first interface in the mtk interface library MetaApp.dll.

[0062] In one embodiment, the MTK platform is a widely used chip platform, mainly used in mobile devices such as smart phones and tablet computers.

[0063] In one embodiment, the first interface may include:

[0064] META_RESULT METACONNAPI MetaConn_GetTargetNvDatabaseFile(int handle,wchar_t*file_name,bool*isGetFile).

[0065] In one embodiment, the meta mode is a test mode used by the MTK platform for calibration and coding. Unlike direct boot, it requires many services to be enabled (such as timers, queues, memory management, and events, etc.), and the NV area cannot be directly read or written. The meta mode contains many interfaces that can be called by the PC software to read and edit the NV area where the parameters are stored.

[0066] Step S20, based on the second interface in the database and the database file, read and write the frequency band related parameters corresponding to each frequency band in the target device to obtain a backup file, so as to realize parameter backup of the target device;

[0067] In one embodiment, after successfully entering the mode, the second interface in the mtk interface library MetaApp.dll is called to obtain the database file of the software (hereinafter referred to as the db file) from the mainboard. The database file can be obtained not only by entering meta, but also in the software released by R&D, or directly exported from the mobile phone when the phone is turned on.

[0068] It can be understood that the database file is a necessary file for reading and writing parameters, and there is also a corresponding interface for obtaining the database in meta mode, so here we directly call the interface to obtain the database file after entering meta mode. After successfully obtaining the db file in the device and saving it locally, you can start reading and writing parameters.

[0069] Furthermore, if Figure 3 As shown, the step S20 specifically includes:

[0070] Step S21, based on the second interface, reading frequency band related parameters corresponding to each frequency band in the database file;

[0071] Step S22: based on the character string type saving format, write the frequency band related parameters corresponding to each frequency band into the initialization file for saving, and obtain the backup file.

[0072] In one embodiment, the second interface is a data interface corresponding to at least one of the frequency band related parameters.

[0073] In one embodiment, when the device enters the meta mode and successfully obtains the db file, the parameters corresponding to each frequency band are obtained by calling each frequency band related parameter interface in the mtk interface library MetaCore.dll.

[0074] In one embodiment, the frequency band related parameters are classified into general items, including GSM items, TDSCDMA items, WCDMA items, LTE items, C2K items, and NR items.

[0075] Among them, General Item represents the general / general category, including IMEI, Barcode, GPS Co-Clock, MultiRat Tadc, MMRF AFC, FR1 Self-Calibration, FR2Self-Calibration, and Error GeneralCal data.

[0076] Among them, GSM (Global System for Mobile Communications) is a digital mobile communication standard developed by the European Telecommunications Standards Organization ETSI. Its air interface adopts time division multiple access technology. GSM includes AFC, DCXO LPM, RX Path Loss, W Coefficient, GMSK Level, Ramp, EPSK Level, Ramp, Gain RF, Interslot, GMSK, Open loop TXPC, EPSK, Open loop TXPC, TemperatureADC, Self Cal, TX Rollback, and Error Gsm Cal data.

[0077] Among them, TDSCDMA (Time Division-Synchronous Code Division Multiple Access) includes AFC, RX Tath Loss, TPC, Temperature ADC, Self Cal, and ErrorTdscdma Cal data.

[0078] Among them, WCDMA (Wideband Code Division Multiple Access) includes AFC, RX Path Loss, RX Diversity Path Loss, TPC, PA Drift Compensation, PRACH TxTemperature Compensation, Temperature ADC, Self Cal, DPD, Mipi TPA Profile, and ErrorWcdma Cal data.

[0079] Among them, LTE (Long Term Evolution) includes AFC, RX Path Loss, POC, TPC, ET, DPD, DPD PA Profile, CIM3, Temperature ADC, Self Cal, Mipi PA, Max PA Input, and Error LTE Cal data.

[0080] Among them, C2K (Code Division Multiple Access 2000) includes AFC, RXPath Loss, Rx Diversity Path Loss, TPC, DPD Profile, Temperature ADC, Self Cal, MEID, MIPI, and Error C2K Cal data.

[0081] Among them, NR (New Radio) includes RX Path Loss, APT Profile, DPD, FR2 DPD, ET, SRS, Max PA Input, and Error General Cal data.

[0082] In one embodiment, the second interface may include:

[0083] META_RESULT__stdcall META_ERf_GetAfcSetting_r(const int meta_handle,const unsigned int ms_timeout,ERfFreqAdjustTable*resp);

[0084] META_RESULT__stdcall META_ERf_GetRxTxSetting_r(const int meta_handle,const ERfTestCmdGetRxTxSettingReqParam_T*req,const unsigned int ms_timeout,ERfTestCmdRxTxSetting*resp).

[0085] In one embodiment, all parameters can be read out by traversing each content in NVRAM (Non-Volatile Random Access Memory) and calling the library interface.

[0086] Furthermore, if Figure 4 As shown, the step S22 specifically further includes:

[0087] Step S23, based on the character string type corresponding to the frequency band related parameters, write the frequency band related parameters corresponding to each frequency band into the initialization file, and save them according to the node, key, and value distinction to obtain the backup file.

[0088] In one embodiment, if Figure 5 As shown in the figure, the parameters read from the device are saved and written into the ini file using the string type, and are stored separately by node, key, and value. At the same time, the ini file is named with the unique chip id of the baseband chip, so as to distinguish the corresponding parameters of different device motherboards.

[0089] In one embodiment, nodes, keys, and values ​​are fixed formats of the ini file. At the same time, such storage can clearly distinguish different parameters of different frequency bands, which is conducive to subsequent matching and rewriting.

[0090] In one embodiment, the chip ID of the baseband chip can be obtained by calling the interface in the mtk library file MetaCore.dll:

[0091] META_RESULT__stdcall META_MISC_GetRID_r(const int meta_handle,constunsigned int ms_timeout,unsigned char*u1Rid,const unsigned int ui_RidLen).

[0092] Step S30, when the target device exits the test mode, formatting and downloading the target software to the target device based on the preload port of the target device;

[0093] In this embodiment, after all parameters are backed up and saved locally, the connection is disconnected by calling the interface in the mtk library file MetaApp.dll to exit the test mode.

[0094] In one embodiment, the interface for exiting the test mode includes:

[0095] META_RESULT METACONNAPI MetaConn_Disconnect(int handle,void*para).

[0096] In one embodiment, if Figure 6 As shown, the step S30 specifically includes:

[0097] Step S31, executing a format download instruction based on the preload port;

[0098] Step S32, based on the format download instruction, erasing the historical storage data in the memory of the target device;

[0099] Step S33, after the historical storage data in the memory is erased, the data of the target software is downloaded and saved in the memory to complete the operation of downloading the target software to the target device.

[0100] In one embodiment, the device remains connected to the computer. After exiting the meta mode and shutting down, the computer will automatically read the preloader port of the device. After the download tool reads the port, the software can be formatted and downloaded. The formatting download process is to first erase the flash in the device and then download the software to the device.

[0101] In one embodiment, it is first necessary to clarify that system image files such as preloader, lk, kernel, and android are stored in nand flash, and each mtk chip has a boot rom. Figure 7As shown, at power-on time, the boot rom starts to start, and the boot rom loads the preloader into the internal SRAM. First of all, it should be clear that the system image files such as preloader, lk, kernel, and android are stored in the nand flash. Then each mtk chip has a boot rom. At power-on time, the boot rom starts to start, and the boot rom loads the preloader into the internal SRAM.

[0102] It can be understood that the preloader has a download function in addition to the boot function. First of all, it should be made clear that the MTK chip has a boot ROM. If there is no ROM, the program cannot be downloaded to the nandflash, and then the flash is empty without any data.

[0103] In one embodiment, after the system is powered on, it will detect whether it is in boot mode or download mode. If it is in download mode, it will initialize a USB serial port, load the preloader into the internal SRAM, jump to the preloader to execute, and after initializing the flash and external RAM, download the preloader, lk, kernel, and android to nand flash in sequence. Figure 8 shown.

[0104] Step S40, when the format download of the target software is completed and the target device enters the test mode, reading the database file based on the first interface of the database;

[0105] Step S50, based on the data path file, read the backup file, write the frequency band related parameters corresponding to each frequency band into the target device, so as to complete the parameter restoration of the target device.

[0106] In one embodiment, after the software download is completed, the device remains connected to the computer, and the computer automatically recognizes the port when power is off. At the same time, the device enters meta mode and obtains the db file by calling the interface in the mtk library file MetaApp.dll, just like the backup operation.

[0107] In one embodiment, after the device enters the meta mode and successfully obtains the db file, the ini file named by the corresponding baseband chip chip id saved locally is read, and the corresponding data and parameters in the ini file are restored to the device by calling each frequency band related parameter interface in the mtk library file MetaCore.dll. By traversing each content in each NVRAM and calling the library interface, all parameters can be rewritten.

[0108] The called interface is as follows:

[0109] META_RESULT__stdcall META_ERf_SetAfcSetting_r(const int meta_handle,const ERfFreqAdjustTable*req,const unsigned int ms_timeout);

[0110] META_RESULT__stdcall META_ERf_SetRxTxSetting(const bool update_to_nvram,const ERfTestCmdRxTxSetting*req,const unsigned int ms_timeout,ERfTestResultSetRxTxSettingCnfParam_T*resp).

[0111] Furthermore, when the parameter restoration of the target device fails, failure reminder information is generated to remind the user to check the firmware of the target device.

[0112] In one embodiment, since the software is formatted and flashed into the mobile phone, and each mobile phone firmware will be confirmed by R&D to see if there are any problems before release, the possibility of being unable to restore parameters after flashing is extremely low. If the restoration of parameters fails, the R&D personnel who output the software need to check the firmware they release.

[0113] In one embodiment, after traversing all parameters and writing the parameters to the device, the interface in the mtk library file MetaApp.dll can be called to disconnect and exit the meta mode, and the entire backup, formatting, upgrading, downloading, and restoring process is completed.

[0114] Understandably, in the prior art, when backing up device data and downloading software, it is necessary to switch tools before downloading, first use the modem_meta tool of mtk to connect the device, then select the UpdateParameter Tool in the meta tool, read the parameters in the device and save them locally, and then use the flashtool tool of mtk to download, and after the download is completed, it is necessary to switch back to the modem_meta tool, and use the UpdateParameter Tool tool to restore the backup parameter file saved locally back to the device. Switching back and forth between the two tools is very cumbersome.

[0115] In this embodiment, the device parameter logical backup and formatted download method can realize one-stop completion of logical backup parameters, formatted download, and logical restore backup operations, that is, the entire operation can be completed using only one tool, so that the operation process of backup and formatted download is simplified, and no engineers with relevant knowledge reserves are required to operate.

[0116] For example, during the project debugging stage, it is often necessary to format the phone to download the software, but the parameters in the phone need to be retained. At this time, you can use this tool to complete the operation in one stop, and achieve the desired effect simply and conveniently.

[0117] Or, when the baseband version number cannot be recognized after the mobile phone upgrades the software (that is, the software reads the db file abnormally), the parameters still exist, but because the baseband version cannot be recognized, the system reads the parameters in the NVRAM abnormally, resulting in problems with the device's functions related to parameters such as making calls and surfing the Internet. In this case, you can use this tool to complete the backup parameters and format and download operations in one stop to fix the device problem.

[0118] Alternatively, when using it during factory equipment upgrades, although the download time will be extended, the possibility of parameter loss will be greatly reduced, and a large amount of manpower will be avoided to repair equipment that loses parameters during the download process.

[0119] The embodiment of the present application provides a device parameter logical backup and formatted download method, which, when the target device is in the test mode, reads the database file by calling the first interface of the database, and saves the frequency band related parameters of the target device locally according to the second interface of the database and the database file to prevent data loss. Then, when the target device exits the test mode, the target software is formatted and downloaded, and after the formatted download is completed, the device parameters saved locally are completely restored to the target device, which can ensure the data integrity of the target device and avoid data loss. By logically backing up the parameters in the target device before formatting and downloading, and logically restoring the corresponding parameters after formatting and downloading, the possibility of machine parameter loss is reduced, and the entire operation process is simplified. The download of the system software and the backup of the system parameters in the target device are implemented in the same PC software, so that the download software of the target device and the backup and import of the RF parameters in the mobile phone can be completed at one time, simplifying the factory process for software upgrades across major versions to improve production efficiency, and solving the current technical problem of low efficiency in device parameter backup and import.

[0120] In addition, an embodiment of the present invention also provides a device parameter logic backup and format downloading apparatus.

[0121] Reference Fig. 9 , Fig. 9 It is a functional module diagram of the first embodiment of the device parameter logic backup and format downloading apparatus of the present invention.

[0122] In this embodiment, the device parameter logic backup and format downloading device includes:

[0123] A database file reading module 10 is used to read the database file of the target software in the target device based on the first interface of the database when the target device enters the test mode;

[0124] A parameter backup module 20, configured to read and write frequency band related parameters corresponding to each frequency band in the target device based on the second interface in the database and the database file, and obtain a backup file to implement parameter backup of the target device;

[0125] A software formatting download module 30, configured to format and download the target software to the target device based on a preload port of the target device when the target device exits the test mode;

[0126] A local data reading module 40, configured to read the database file based on the first interface of the database when the formatted download of the target software is completed and the target device enters the test mode;

[0127] The data restoration module 50 is used to read the backup file based on the data path file, and write the frequency band related parameters corresponding to each frequency band into the target device to complete the parameter restoration of the target device.

[0128] Furthermore, the database file reading module 10 includes:

[0129] The test mode execution unit is used to call the third interface of the database based on the download instruction, so that the target device is initialized to enter the test mode.

[0130] Furthermore, the parameter backup module 20 includes:

[0131] A frequency band related parameter reading unit, used for reading the frequency band related parameters corresponding to each frequency band in the database file based on the second interface;

[0132] The backup file obtaining unit is used to write the frequency band related parameters corresponding to each frequency band into the initialization file for storage based on the character string type saving format, so as to obtain the backup file.

[0133] Furthermore, the second interface is a data interface corresponding to at least one of the frequency band related parameters.

[0134] Furthermore, the backup file obtaining unit includes:

[0135] The frequency band related parameter storage subunit writes the frequency band related parameters corresponding to each frequency band into the initialization file based on the character string type corresponding to the frequency band related parameters, and saves them according to the node, key and value distinction to obtain the backup file.

[0136] Furthermore, the software formatting download module 30 includes:

[0137] An instruction execution unit, used for executing a format download instruction based on the preload port;

[0138] A data erasing unit, configured to erase historical storage data in the target device memory based on the format download instruction;

[0139] The data downloading unit is used to download and save the data of the target software into the memory after the historical storage data in the memory is erased, so as to complete the operation of downloading the target software to the target device.

[0140] Furthermore, the device parameter logic backup and format downloading apparatus further includes:

[0141] The parameter restoration failure reminder module is used to generate failure reminder information when the parameter restoration of the target device fails, so as to remind the user to check the firmware of the target device.

[0142] Among them, each module in the above-mentioned device parameter logical backup and formatted downloading apparatus corresponds to each step in the above-mentioned device parameter logical backup and formatted downloading method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0143] In addition, an embodiment of the present invention also provides a computer-readable storage medium.

[0144] The computer-readable storage medium of the present invention stores a device parameter logic backup and formatting download program, wherein when the device parameter logic backup and formatting download program is executed by a processor, the steps of the device parameter logic backup and formatting download method as described above are implemented.

[0145] Among them, the method implemented when the device parameter logic backup and formatting download program is executed can refer to the various embodiments of the device parameter logic backup and formatting download method of the present invention, and will not be repeated here.

[0146] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0147] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0148] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0150] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for logical backup and formatted downloading of device parameters, characterized in that: The device parameter logical backup and formatted download method comprises the following steps: Based on the download instruction, calling a third interface of the database so that the target device is initialized to enter a test mode; Based on the first interface of the database, reading the database file of the target software in the target device; Based on the second interface, when the device enters the meta mode and successfully obtains the db file, the parameters corresponding to each frequency band are obtained by calling each frequency band related parameter interface in the mtk interface library MetaCore.dll; wherein the second interface is a data interface corresponding to at least one of the frequency band related parameters; the frequency band related parameters are classified into General Item, GSM Item, TDSCDMA Item, WCDMA Item, LTE Item, C2K Item, NR Item; the second interface includes: META_RESULT__stdcall META_ERf_GetAfcSetting_r( const int meta_handle, const unsigned int ms_timeout, ERfFreqAdjustTable* resp ); META_RESULT__stdcall META_ERf_GetRxTxSetting_r( const int meta_handle,const ERfTestCmdGetRxTxSettingReqParam_T* req, const unsigned int ms_timeout,ERfTestCmdRxTxSetting* resp ); Based on the string type corresponding to the frequency band related parameters, the frequency band related parameters corresponding to each frequency band are written into the initialization file, and are saved according to the node, key, and value distinction to obtain a backup file; at the same time, the ini file is named with the unique chip id of the baseband chip, so as to distinguish the corresponding parameters of different device motherboards; the chip id of the baseband chip can be obtained by calling the interface in the mtk library file MetaCore.dll; When the target device exits the test mode, formatting and downloading the target software to the target device based on a preload port of the target device; When the formatted download of the target software is completed and the target device enters the test mode, reading the database file based on the first interface of the database; Based on the database file, the backup file is read, and the frequency band related parameters corresponding to each frequency band are written into the target device to complete the parameter restoration of the target device.

2. The device parameter logic backup and format download method according to claim 1, characterized in that: The step of formatting and downloading the target software to the target device based on the preload port of the target device comprises: Based on the preload port, executing a formatted download instruction; Based on the format download instruction, erasing the historical storage data in the memory of the target device; After the historical storage data in the memory is erased, the data of the target software is downloaded and saved in the memory to complete the operation of downloading the target software to the target device.

3. The device parameter logical backup and format download method according to any one of claims 1-2, characterized in that: After reading the backup file based on the database file and writing the frequency band related parameters corresponding to each frequency band into the target device to complete the parameter restoration of the target device, the method further includes: When the parameter restoration of the target device fails, a failure reminder message is generated to remind the user to check the firmware of the target device.

4. A device for logical backup and format download of equipment parameters, characterized in that: The device parameter logic backup and format downloading device comprises: A database file reading module is used to call the third interface of the database based on the download instruction so that the target device is initialized to enter the test mode; based on the first interface of the database, read the database file of the target software in the target device; A parameter backup module is used for, based on a second interface, when the device enters meta mode and successfully obtains a db file, to obtain parameters corresponding to each frequency band by calling each frequency band related parameter interface in the mtk interface library MetaCore.dll; wherein the second interface is a data interface corresponding to at least one of the frequency band related parameters; the frequency band related parameters are classified into General Item, GSM Item, TDSCDMA Item, WCDMA Item, LTE Item, C2K Item, and NR Item; the second interface includes: META_RESULT__stdcall META_ERf_GetAfcSetting_r( const int meta_handle, const unsigned int ms_timeout, ERfFreqAdjustTable* resp ); META_RESULT__stdcall META_ERf_GetRxTxSetting_r( const int meta_handle, const ERfTestCmdGetRxTxSettingReqParam_T* req, const unsigned int ms_timeout,ERfTestCmdRxTxSetting* resp); based on the string type corresponding to the frequency band related parameters, the frequency band related parameters corresponding to each frequency band are written into the initialization file, and are saved according to the node, key, and value distinction to obtain a backup file; at the same time, the ini file is named with the unique chip id of the baseband chip, so as to distinguish the corresponding parameters of different device motherboards; the chip id of the baseband chip can be obtained by calling the interface in the mtk library file MetaCore.dll; A software formatting download module, used for formatting and downloading the target software to the target device based on the preload port of the target device when the target device exits the test mode; A local data reading module, configured to read the database file based on the first interface of the database when the formatted download of the target software is completed and the target device enters the test mode; The data restoration module is used to read the backup file based on the database file, and write the frequency band related parameters corresponding to each frequency band into the target device to complete the parameter restoration of the target device.

5. A computer device, characterized in that: The computer device includes a processor, a memory, and a device parameter logic backup and formatting download program stored in the memory and executable by the processor, wherein when the device parameter logic backup and formatting download program is executed by the processor, the steps of the device parameter logic backup and formatting download method as described in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a device parameter logic backup and formatting download program, wherein when the device parameter logic backup and formatting download program is executed by the processor, the steps of the device parameter logic backup and formatting download method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Terminal equipment upgrading method and device, upper computer and storage medium

    CN112685076A