CN116643978A - Terminal software version error correction method and device, electronic equipment and storage medium - Google Patents

Terminal software version error correction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116643978A
CN116643978A CN202310561090.0A CN202310561090A CN116643978A CN 116643978 A CN116643978 A CN 116643978A CN 202310561090 A CN202310561090 A CN 202310561090A CN 116643978 A CN116643978 A CN 116643978A
Authority
CN
China
Prior art keywords
software
version number
radio frequency
initial
error correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310561090.0A
Other languages
Chinese (zh)
Inventor
唐菲
刘海
林晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN202310561090.0A priority Critical patent/CN116643978A/en
Publication of CN116643978A publication Critical patent/CN116643978A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a terminal software version error correction method and device, electronic equipment and a storage medium, and belongs to the technical field of equipment debugging. The method comprises the following steps: acquiring a software initial version number of terminal radio frequency software and a script version number of a software compiling script when software compiling is started; checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result; when the compatibility checking result is characterized as incompatible, acquiring a software history version number of the terminal radio frequency software in a preset database; the software history version number is the version number of the terminal radio frequency software successfully compiled and operated according to the software compiling script; and carrying out matching error correction on the software initial version number according to the software history version number to obtain a software error correction result. The application aims to shorten the time consumption of matching check of the radio frequency transceiver and equipment hardware and improve the efficiency.

Description

Terminal software version error correction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of device debugging technologies, and in particular, to a method and apparatus for error correction of a terminal software version, an electronic device, and a storage medium.
Background
In the process of debugging and testing the terminal equipment, the condition that the radio frequency transceiver is not matched with equipment hardware may occur, so that the radio frequency access configuration is abnormal, and the radio frequency software is in operation fault. In the related technology, the related radio frequency software is compiled and run, and the log is manually grabbed to analyze the log, so that whether the radio frequency transceiver is matched with the hardware of the equipment is checked, and if the radio frequency transceiver is not matched with the hardware of the equipment, the corresponding configuration is manually changed. The method needs to carry out a complete software compiling process, and needs to manually grab analysis logs and carry out software configuration change, so that the time consumption is long, and the efficiency is low.
Disclosure of Invention
The embodiment of the application mainly aims to provide a terminal software version error correction method and device, electronic equipment and storage medium, and aims to shorten the time consumption of matching check of a radio frequency transceiver and equipment hardware and improve efficiency.
To achieve the above object, a first aspect of an embodiment of the present application provides a terminal software version error correction method, including:
acquiring a software initial version number of terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
when the compatibility checking result is characterized as incompatible, acquiring a software history version number of the terminal radio frequency software in a preset database; the software history version number is the version number of the terminal radio frequency software successfully compiled and operated according to the software compiling script;
and carrying out matching error correction on the software initial version number according to the software history version number to obtain a software error correction result.
In some embodiments, the software initial version number includes a radio frequency initial identification number and a hardware initial identification number, the software history version number includes a radio frequency history identification number and a hardware history identification number, the radio frequency initial identification number and the radio frequency history identification number are both used to characterize attribute information of a radio frequency transceiver of the terminal device, and the hardware initial identification number and the hardware history identification number are both used to characterize attribute information of wireless communication hardware in the terminal device that communicates with the radio frequency transceiver.
In some embodiments, the step of performing matching error correction on the software initial version number according to the software history version number to obtain a software error correction result includes:
matching the radio frequency initial identification number and the radio frequency historical identification number to obtain a first matching result;
when the first matching result is characterized as successful matching, matching the hardware initial identification number and the hardware history identification number to obtain a second matching result;
when the second matching result is characterized as matching failure, replacing the hardware initial identification number in the software initial version number with the hardware history identification number to obtain a software error correction version number;
and compiling the terminal radio frequency software according to the software error correction version number and the software compiling script, and outputting the software error correction result representing successful error correction.
In some embodiments, after the step of matching the radio frequency initial identifier with the radio frequency historical identifier to obtain a first matching result, the method further includes:
when the first matching result is characterized as matching failure, storing the initial version number of the software into a version blacklist;
and stopping compiling and outputting the software error correction result representing that the error cannot be corrected.
In some embodiments, after the step of matching the hardware initial identification number and the hardware history identification number to obtain a second matching result, the method further includes:
when the second matching result is characterized as successful matching, compiling the terminal radio frequency software according to the software initial version number and the software compiling script;
outputting the software error correction result which represents that error correction is not needed.
In some embodiments, the step of checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number, and obtaining a compatibility checking result includes:
analyzing the software initial version number to obtain the radio frequency initial identification number;
and carrying out compatibility matching on the script version number and the radio frequency initial identification number according to a preset compatibility mapping relation to obtain a compatibility checking result.
In some embodiments, after the step of checking the compatibility of the terminal radio frequency software with the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result, the method further includes:
when the compatibility checking result is characterized as being compatible with each other, compiling the terminal radio frequency software according to the software initial version number and the software compiling script;
and storing the software initial version number into the preset database.
To achieve the above object, a second aspect of the present application provides a terminal software version error correction device, including:
the first data acquisition module is used for acquiring a software initial version number of the terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
the compatibility checking module is used for checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
the second data acquisition module is used for acquiring a software history version number of the terminal radio frequency software in a preset database when the compatibility check result is characterized as incompatible; the software history version number is the version number of the terminal radio frequency software successfully compiled and operated according to the software compiling script;
and the matching error correction module is used for carrying out matching error correction on the software initial version number according to the software history version number to obtain a software error correction result.
To achieve the above object, a third aspect of the present application provides an electronic device, including:
at least one memory;
at least one processor;
at least one program;
the program is stored in a memory and the processor executes the at least one program to implement the method of the application as described in the first aspect above.
To achieve the above object, a fourth aspect of the present application proposes a storage medium that is a computer-readable storage medium storing computer-executable instructions for causing a computer to execute:
the method as described in the first aspect above.
According to the terminal software version error correction method and device, the electronic equipment and the storage medium, when software compiling is started, compatibility checking and matching error correction processing are carried out on radio frequency software, whether a radio frequency transceiver is matched with equipment hardware or not can be automatically checked, non-conforming configuration is automatically changed, time consumption is short, and efficiency is high.
Drawings
Fig. 1 is a flowchart of a terminal software version error correction method provided in an embodiment of the present application.
Fig. 2 is a flowchart of one embodiment of step S104 shown in fig. 1.
Fig. 3 is a flowchart of a terminal software version error correction method according to another embodiment of the present application.
Fig. 4 is a flowchart of a terminal software version error correction method according to another embodiment of the present application.
Fig. 5 is a flowchart of one embodiment of step S102 shown in fig. 1.
Fig. 6 is a flowchart of a terminal software version error correction method according to another embodiment of the present application.
Fig. 7 is a flowchart of a terminal software version error correction method according to another embodiment of the present application.
Fig. 8 is a block diagram of a terminal software version error correction device according to an embodiment of the present application.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The terminal software version error correction method of the embodiment of the application can be applied to wireless communication terminal equipment (such as a POS machine). In the process of debugging and testing the terminal equipment, the condition that the radio frequency transceiver is not matched with equipment hardware may occur, so that the radio frequency access configuration is abnormal, and the radio frequency software is in operation fault. In the related technology, the related radio frequency software is compiled and run, and the log is manually grabbed to analyze the log, so that whether the radio frequency transceiver is matched with the hardware of the equipment is checked, and if the radio frequency transceiver is not matched with the hardware of the equipment, the corresponding configuration is manually changed. The method needs to carry out a complete software compiling process, and needs to manually grab analysis logs and carry out software configuration change, so that the time consumption is long, and the efficiency is low.
Based on the above, the application provides a terminal software version error correction method and device, electronic equipment and storage medium, aiming at shortening the time consumption of matching check of a radio frequency transceiver and equipment hardware and improving efficiency.
Referring to fig. 1, the error correction method for a terminal software version according to the embodiment of the application includes, but is not limited to, steps S101 to S104:
step S101, acquiring a software initial version number of terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
step S102, checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
step S103, when the compatibility checking result is characterized as incompatible, acquiring a software history version number of the terminal radio frequency software in a preset database; the software history version number is the version number of terminal radio frequency software successfully compiled and operated according to the software compiling script;
and step S104, performing matching error correction on the initial version number of the software according to the historical version number of the software to obtain a software error correction result.
In the steps S101 to S104 shown in the embodiment of the present application, when software compiling is started, compatibility checking is performed on the radio frequency software through the software version number and the script version number, and matching error correction processing is further performed on the incompatible software version number through the software history version number in the preset database, so that the technical effects of automatically checking whether the radio frequency transceiver is matched with the hardware of the device and automatically changing the incompatible configuration are achieved, the time consumption is shorter, and the efficiency is higher.
It should be noted that, the software initial version number refers to a software version number of the terminal radio frequency software which has not been compiled before and has not undergone any error correction processing.
In step S101 of some embodiments, the terminal radio frequency software refers to a software program that communicates with the device hardware to assist in implementing the radio frequency transceiver function. The software compiling script is a script program for compiling the terminal radio frequency software.
In step S102 of some embodiments, the script version number and the software version number have a mutual correspondence, typically, one script version number corresponds to software version numbers of multiple specifications, and if one script version number and one software version number satisfy the correspondence, compatibility is provided between the two.
In step S103 of some embodiments, the preset database includes software related data of successful historical compiling, and the preset database may be stored in the cloud server or may be stored in a local memory of the terminal device. Therefore, the operation of acquiring the software history version number is specifically: the software history version number is obtained from the cloud server or from a local memory of the terminal device. It will be appreciated that the number of software history version numbers obtained may be one or more.
In step S104 of some embodiments, the software initial version number incompatible with the current script version number is subjected to matching error correction by the software history version number of the terminal radio frequency software which is successfully compiled and run.
In some embodiments, the software initial version number includes a radio frequency initial identification number and a hardware initial identification number, the software history version number includes a radio frequency history identification number and a hardware history identification number, the radio frequency initial identification number and the radio frequency history identification number are each used to characterize attribute information of a radio frequency transceiver of the terminal device, and the hardware initial identification number and the hardware history identification number are each used to characterize attribute information of wireless communication hardware in the terminal device that communicates with the radio frequency transceiver. The rf initial identification number indicates attribute information (e.g., ID of the rf transceiver) of the target rf transceiver to which the current terminal rf software is matched, and the rf history identification number indicates attribute information of the rf transceiver to which the terminal rf software was successfully compiled and operated before. The hardware initial identifier indicates attribute information (such as an ID of wireless communication hardware) of target hardware matched with the current terminal radio frequency software, and the hardware history identifier indicates attribute information of the terminal radio frequency software matched hardware successfully compiled and operated before.
In one embodiment, when the terminal software version error correction method of the application is applied to a POS machine, the radio frequency initial identification number and the radio frequency historical identification number can be ID numbers of WTRs (Wafer TRansceiver, wafer transceivers), and the Hardware initial identification number and the Hardware historical identification number can be HWID (Hardware ID, hardware identity) numbers of the POS machine. The initial version number of the software is "111-2965-105-aa", wherein "111" is the item serial number of the terminal radio frequency software, "2965" is the WTR number of the current POS terminal, "105" is the HWID number of the current POS terminal, "aa" is the suffix, and other information such as version time, modifier, keywords, running times and the like can be contained. It should be noted that the character length of the suffix is not particularly limited, and here, the "aa" two characters are only exemplified.
In some embodiments, referring to fig. 2, step S104 includes, but is not limited to, steps S201 to S204:
step S201, matching the radio frequency initial identification number and the radio frequency historical identification number to obtain a first matching result;
step S202, when the first matching result is characterized as successful matching, matching the hardware initial identification number and the hardware history identification number to obtain a second matching result;
step S203, when the second matching result is characterized as matching failure, replacing the hardware initial identification number in the software initial version number with the hardware history identification number to obtain a software error correction version number;
and S204, compiling the terminal radio frequency software according to the software error correction version number and the software compiling script, and outputting a software error correction result representing successful error correction.
In step S201 to step S204 shown in the embodiment of the present application, when the matching between the radio frequency initial identifier and the radio frequency historical identifier is successful and the matching between the hardware initial identifier and the hardware historical identifier is failed, the software initial version number is automatically corrected by the hardware historical identifier to obtain a software error correction version number, so that the configuration of the radio frequency channel after the software is compiled according to the software error correction version number is correct.
In step S201 of some embodiments, the radio frequency initial identification number and the radio frequency history identification number are matched, and whether the target radio frequency transceiver matched with the software initial version number is a radio frequency transceiver which can be normally invoked after history compiling verification is judged according to whether the matching is successful.
In step S202 of some embodiments, the matching of the radio frequency initial identifier and the radio frequency history identifier is successful, which indicates that the target radio frequency transceiver with the software initial version number matching is a radio frequency transceiver that can be normally invoked through history compiling verification, and the terminal radio frequency software can be normally compiled according to the software initial version number, but it cannot be guaranteed that the configuration of the radio frequency channel after the software compiling is correct. Therefore, the hardware initial identification number and the hardware history identification number are matched to judge whether the radio frequency transceiver is matched with the hardware of the equipment or not, and further judge whether the configuration of the radio frequency channel after the software is compiled is correct or not. It will be appreciated that if there are multiple software history version numbers, the hardware history identification number used herein and the successfully matched rf history identification number in step S201 belong to the same software history version number.
In step S203 of some embodiments, if the hardware initial identification number and the hardware history identification number fail to match, it is indicated that the radio frequency transceiver and the device hardware do not match. It should be noted that, in the embodiment of the present application, under the condition of most equipment debugging and testing, the equipment hardware is not changed (mainly the radio frequency transceiver is changed and debugged), and the identification number of the equipment hardware is also unchanged. Therefore, when the hardware initial identification number and the hardware history identification number fail to match, there is a problem of setting by default for the hardware initial identification number. Error correction is performed on the software initial version number by replacing the hardware initial identification number with the hardware history identification number, so that the configuration of the radio frequency channel after software compiling is ensured to be correct.
In one embodiment, when the number of software history version numbers obtained from the preset database is plural, the hardware history identification number that can be used to replace the hardware initial identification number is also plural. At this time, the hardware history identification number in the software history version number at the latest time can be selected to replace the hardware initial identification number according to the version time information contained in the tail of each software history version number, so as to complete error correction of the software initial version number.
In one example, the hardware initial identification number may be further selected by filtering according to the running times information contained in the tail of each software history version number, and the hardware history identification number in the software history version number with the largest running times is selected to replace the hardware initial identification number, so as to complete error correction of the software initial version number.
In other embodiments, the historical version numbers of the plurality of software can be filtered according to information such as modifier, keywords and the like in the suffix, so as to correct the initial version number of the software. The conditions for specific screening may be set according to actual needs, and are not particularly limited herein.
In step S204 of some embodiments, after error correction is performed on the software initial version number, the terminal radio frequency software is compiled according to the running compiling script of the software error correction version number. And outputting a software error correction result representing successful error correction, and recording a software history version number used in error correction in an error correction log so as to facilitate subsequent reference.
In some embodiments, referring to fig. 3, after step S201, the terminal software version error correction method of the present application further includes, but is not limited to, steps S301 to S302:
step S301, when the first matching result is characterized as matching failure, storing the initial version number of the software into a version blacklist;
step S302, compiling is stopped, and a software error correction result representing that error correction cannot be performed is output.
In step S301 and step S302 shown in the embodiment of the present application, matching between the radio frequency initial identifier and the radio frequency history identifier fails, which means that the target radio frequency transceiver matched with the software initial version number is not a radio frequency transceiver that can be normally invoked through history compiling verification, and the terminal radio frequency software cannot be normally compiled according to the software initial version number, so that the software initial version number is an invalid version number, and the invalid version number is stored in the blacklist to avoid subsequent repeated verification on the same invalid version number. And stopping compiling and outputting a software error correction result representing incapability of correcting errors so as to prompt a tester that the current software initial version number is an invalid version number, and manually checking and modifying the software initial version number. The invalid version number can be timely detected under the condition that the software is not actually compiled, and compiling resources are saved.
In some embodiments, referring to fig. 4, after step S202, the terminal software version error correction method of the present application further includes, but is not limited to, steps S401 to S402:
step S401, compiling terminal radio frequency software according to the initial version number of the software and the compiling script of the software when the second matching result is characterized as successful matching;
step S402, outputting a software error correction result characterizing that no error correction is needed.
In the step S401 and the step S402 shown in the embodiment of the application, the radio frequency initial identification number and the radio frequency history identification number are successfully matched, which means that the target radio frequency transceiver matched with the software initial version number is a radio frequency transceiver which can be normally called through history compiling verification, and the terminal radio frequency software can be normally compiled according to the software initial version number; meanwhile, the hardware initial identification number and the hardware history identification number are successfully matched, which means that the radio frequency transceiver is matched with the hardware of the equipment, so that the configuration of the radio frequency channel after the software is compiled can be judged to be correct. At this time, the terminal radio frequency software can be compiled directly according to the running compiling script of the software initial version number.
In some embodiments, referring to fig. 5, step S102 includes, but is not limited to, steps S501 and S502:
step S501, analyzing the initial version number of the software to obtain a radio frequency initial identification number;
and step S502, carrying out compatibility matching on the script version number and the radio frequency initial identification number according to a preset compatibility mapping relation to obtain a compatibility checking result.
In step S501 and step S502 shown in the embodiment of the present application, the compatible mapping relationship is a matching relationship between a script version number preset according to historical data successfully compiled by software and correctly configured by a radio frequency channel and identification numbers of one or more radio frequency transceivers. And carrying out compatibility matching according to the radio frequency initial identification number and the script version number, and further judging the compatibility of the terminal radio frequency software and the software compiling script.
By way of example, the error correction method for the terminal software version is applied to a POS machine, the script version number of a software compiling script is 1.1, the WTR number compatible with the script version number is 2965 or 2975, and the initial software version number is 111-2965-105-aa, so that the terminal radio frequency software and the software compiling script can be judged to be compatible with each other.
In some embodiments, referring to fig. 6, after step S102, the terminal software version error correction method of the present application further includes, but is not limited to, steps S601 to S602:
step S601, compiling terminal radio frequency software according to the initial version number of the software and the compiling script of the software when the compatibility checking result is characterized as being compatible with each other;
step S602, the initial version number of the software is stored in a preset database.
In step S601 to step S602 shown in the embodiment of the present application, when it is determined that the terminal radio frequency software and the software compiling script are compatible with each other, the terminal radio frequency software is compiled according to the software initial version number and the software compiling script, and the current software initial version number is stored in a preset database, and can be used as a software history version number of the next software initial version number.
In other embodiments, referring to fig. 7, the terminal software version error correction method of the present application further includes, but is not limited to, steps S701 to S702:
step S701, after compiling terminal radio frequency software is completed, acquiring radio frequency buried point information and hardware buried point information in the running process of the terminal radio frequency software; the radio frequency buried point information is information acquired through radio frequency identification buried points preset in the radio frequency channel, and the hardware buried point information is information acquired through hardware identification buried points preset in the radio frequency channel;
in step S702, the configuration of the rf path is detected by the rf buried point information and the hardware buried point information.
The step S701 and the step S702 shown in the embodiment of the present application further detect whether the radio frequency channel is configured correctly by setting a buried point check in the radio frequency channel on the basis of compatibility check and version number matching error correction, thereby further ensuring that the radio frequency channel between the radio frequency transceiver and the hardware of the device is normal.
Referring to fig. 8, the application further provides a terminal software version error correction device, which comprises:
the first data acquisition module is used for acquiring a software initial version number of the terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
the compatibility checking module is used for checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
the second data acquisition module is used for acquiring a software history version number of the terminal radio frequency software in the preset database when the compatibility check result is characterized as being incompatible; the software history version number is the version number of terminal radio frequency software successfully compiled and operated according to the software compiling script;
and the matching error correction module is used for carrying out matching error correction on the initial version number of the software according to the historical version number of the software to obtain a software error correction result.
The embodiment of the application also provides electronic equipment, which comprises:
at least one memory;
at least one processor;
at least one program;
the program is stored in the memory, and the processor executes the at least one program to implement the terminal software version error correction method of the present application. The electronic equipment can be any intelligent terminal including a mobile phone, a tablet personal computer, a personal digital assistant (Personal Digital Assistant, PDA for short), a vehicle-mounted computer and the like.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an electronic device according to another embodiment, the electronic device includes:
the processor may be implemented by a general purpose CPU (Central Processing Unit ), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solution provided by the embodiments of the present application;
the Memory may be implemented in the form of a ROM (Read Only Memory), a static storage device, a dynamic storage device, or a RAM (Random Access Memory ). The memory may store an operating system and other application programs, and when the technical scheme provided in the embodiments of the present specification is implemented by software or firmware, relevant program codes are stored in the memory, and the processor invokes the terminal software version error correction method for executing the embodiments of the present application;
the input/output interface is used for realizing information input and output;
the input/communication interface is used for realizing communication interaction between the device and other devices, and can realize communication in a wired mode (such as USB, network cable and the like) or in a wireless mode (such as mobile network, WIFI, bluetooth and the like);
a bus that transfers information between the various components of the device (e.g., processor, memory, input/output interfaces, and input/communication interfaces);
wherein the processor, the memory, the input/output interface and the input/communication interface are communicatively coupled to each other within the device via a bus.
The embodiment of the application also provides a storage medium which is a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions for causing a computer to execute the terminal software version error correction method.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and as those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are applicable to similar technical problems.
Those of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing a program.
The embodiments of the present application have been described in detail with reference to the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present application. Furthermore, embodiments of the application and features of the embodiments may be combined with each other without conflict.

Claims (10)

1. A method for error correction of a terminal software version, the method comprising:
acquiring a software initial version number of terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
when the compatibility checking result is characterized as incompatible, acquiring a software history version number of the terminal radio frequency software in a preset database; the software history version number is the version number of the terminal radio frequency software successfully compiled and operated according to the software compiling script;
and carrying out matching error correction on the software initial version number according to the software history version number to obtain a software error correction result.
2. The method of claim 1, wherein the software initial version number comprises a radio frequency initial identification number and a hardware initial identification number, wherein the software history version number comprises a radio frequency history identification number and a hardware history identification number, wherein the radio frequency initial identification number and the radio frequency history identification number are each used to characterize attribute information of a radio frequency transceiver of a terminal device, and wherein the hardware initial identification number and the hardware history identification number are each used to characterize attribute information of wireless communication hardware in the terminal device that communicates with the radio frequency transceiver.
3. The method of claim 2, wherein the step of performing matching error correction on the software initial version number according to the software history version number to obtain a software error correction result comprises:
matching the radio frequency initial identification number and the radio frequency historical identification number to obtain a first matching result;
when the first matching result is characterized as successful matching, matching the hardware initial identification number and the hardware history identification number to obtain a second matching result;
when the second matching result is characterized as matching failure, replacing the hardware initial identification number in the software initial version number with the hardware history identification number to obtain a software error correction version number;
and compiling the terminal radio frequency software according to the software error correction version number and the software compiling script, and outputting the software error correction result representing successful error correction.
4. The method of claim 3, wherein after said step of matching said radio frequency initial identification number with said radio frequency historical identification number to obtain a first matching result, said method further comprises:
when the first matching result is characterized as matching failure, storing the initial version number of the software into a version blacklist;
and stopping compiling and outputting the software error correction result representing that the error cannot be corrected.
5. The method of claim 4, wherein after the step of matching the hardware initial identification number and the hardware history identification number to obtain a second matching result, the method further comprises:
when the second matching result is characterized as successful matching, compiling the terminal radio frequency software according to the software initial version number and the software compiling script;
outputting the software error correction result which represents that error correction is not needed.
6. The method according to claim 2, wherein the step of checking compatibility of the terminal radio frequency software with the software compiling script according to the software initial version number and the script version number, and obtaining a compatibility check result includes:
analyzing the software initial version number to obtain the radio frequency initial identification number;
and carrying out compatibility matching on the script version number and the radio frequency initial identification number according to a preset compatibility mapping relation to obtain a compatibility checking result.
7. The method according to any one of claims 1 to 6, wherein after the step of checking compatibility of the terminal radio frequency software with the software compiling script according to the software initial version number and the script version number, the method further comprises:
when the compatibility checking result is characterized as being compatible with each other, compiling the terminal radio frequency software according to the software initial version number and the software compiling script;
and storing the software initial version number into the preset database.
8. A terminal software version error correction apparatus, comprising:
the first data acquisition module is used for acquiring a software initial version number of the terminal radio frequency software and a script version number of a software compiling script when software compiling is started;
the compatibility checking module is used for checking the compatibility of the terminal radio frequency software and the software compiling script according to the software initial version number and the script version number to obtain a compatibility checking result;
the second data acquisition module is used for acquiring a software history version number of the terminal radio frequency software in a preset database when the compatibility check result is characterized as incompatible; the software history version number is the version number of the terminal radio frequency software successfully compiled and operated according to the software compiling script;
and the matching error correction module is used for carrying out matching error correction on the software initial version number according to the software history version number to obtain a software error correction result.
9. An electronic device, comprising:
at least one memory;
at least one processor;
at least one program;
the program is stored in the memory, and the processor executes the at least one program to implement:
the method of any one of claims 1 to 7.
10. A storage medium that is a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions for causing a computer to perform:
the method of any one of claims 1 to 7.
CN202310561090.0A 2023-05-18 2023-05-18 Terminal software version error correction method and device, electronic equipment and storage medium Pending CN116643978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310561090.0A CN116643978A (en) 2023-05-18 2023-05-18 Terminal software version error correction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310561090.0A CN116643978A (en) 2023-05-18 2023-05-18 Terminal software version error correction method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116643978A true CN116643978A (en) 2023-08-25

Family

ID=87639171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310561090.0A Pending CN116643978A (en) 2023-05-18 2023-05-18 Terminal software version error correction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116643978A (en)

Similar Documents

Publication Publication Date Title
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
CN109814524B (en) Vehicle diagnosis method, device and system
CN109634258B (en) Bus message checking method, device and system for hardware-in-loop test
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN106874196B (en) Automatic test exception handling method and automatic test system
CN110569058A (en) System upgrading method, device, terminal and computer readable storage medium
CN111078476B (en) Network card drive firmware stability test method, system, terminal and storage medium
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN115357513B (en) Program ambiguity test method, device, equipment and storage medium
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN116643978A (en) Terminal software version error correction method and device, electronic equipment and storage medium
CN114625106B (en) Method, device, electronic equipment and storage medium for vehicle diagnosis
CN106528248B (en) Downloading method and system of mobile terminal based on software integrity
CN116521405A (en) sd card state detection method, device, equipment and storage medium
CN112306038B (en) Detection method, detection device and diagnosis equipment
US20150331772A1 (en) Methods for updating diagnostic tools on a hardware device and devices thereof
CN112699648B (en) Data processing method and device
CN114036008A (en) Equipment information detection method and device, computer equipment and storage medium
CN109560964B (en) Equipment compliance checking method and device
KR101626581B1 (en) Test method for error applition of portable communication terminal
CN109446008B (en) Fault reason detection method, fault reason detection device and terminal equipment
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN106648558B (en) Control method and device for TPL (tire pressure level) Dataflow
CN110928713A (en) Database service fault repairing method, related device 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