CN114296754A - Chip platform upgrading method and related device - Google Patents

Chip platform upgrading method and related device Download PDF

Info

Publication number
CN114296754A
CN114296754A CN202111447658.3A CN202111447658A CN114296754A CN 114296754 A CN114296754 A CN 114296754A CN 202111447658 A CN202111447658 A CN 202111447658A CN 114296754 A CN114296754 A CN 114296754A
Authority
CN
China
Prior art keywords
chip platform
function
thread
upgrading
chip
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
CN202111447658.3A
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202111447658.3A priority Critical patent/CN114296754A/en
Publication of CN114296754A publication Critical patent/CN114296754A/en
Priority to PCT/CN2022/098113 priority patent/WO2023098015A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a chip platform upgrading method and a related device, which are applied to electronic equipment, wherein the electronic equipment is provided with a chip platform upgrading program, the chip platform upgrading program is used for connecting at least one chip platform, the chip platform upgrading program comprises a first process, and a first thread and a second thread are created through the first process; determining a first interface function corresponding to a first chip platform according to a corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function, wherein the first interface function is used for upgrading the firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform; testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information; the efficiency of upgrading and testing the chip platform can be improved.

Description

Chip platform upgrading method and related device
Technical Field
The present application relates to the field of electrical technologies, and in particular, to a method and an apparatus for upgrading a chip platform.
Background
With the development of the times, the applications of various chip platforms in life are increasingly wide. For various chip platforms, software upgrading is often required to meet the requirements of practical application.
Currently, upgrades on chip platform software include upgrades of firmware and customization of customized functionality. The upgrading of the firmware can be realized by adopting an upgrading program provided by a chip platform manufacturer, and the customization of the customized functions needs to develop corresponding customized functions aiming at different types of chip platforms.
However, since a plurality of upgrading programs need to be customized and developed for upgrading and testing different types of chip platforms, the work redundancy of developers is complicated, and the upgrading and testing efficiency of the chip platforms is low.
Disclosure of Invention
The embodiment of the application discloses a chip platform upgrading method and a related device, which can improve the efficiency of upgrading and testing the chip platform.
In a first aspect, an embodiment of the present application discloses a chip platform upgrade method, which is applied to an electronic device, where the electronic device is provided with a chip platform upgrade program, the chip platform upgrade program is used to connect at least one chip platform, the chip platform upgrade program includes a first process, and the method includes:
creating a first thread and a second thread through the first process;
determining a first interface function corresponding to a first chip platform according to a corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function, wherein the first interface function is used for upgrading the firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform;
and testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
In a possible implementation manner of the first aspect, the chip platform upgrade program further includes a second process, and the method further includes:
and displaying the test information on an interface of the chip platform upgrading program through the second process.
In a possible implementation manner of the first aspect, the first interface function includes at least one of a first all-erase function, a first partial formatting function, and a first upgrade function.
In a possible implementation manner of the first aspect, the testing the first chip platform to obtain the test information includes:
executing a customized function through the second thread, wherein a code segment of the customized function is embedded in the firmware;
and testing the execution result of the customized function through the second thread to obtain the test information.
In a possible implementation manner of the first aspect, the customized function includes a number writing function, and the method further includes:
acquiring first number segment information of the first chip platform through the first process;
the executing the customized function by the second thread includes:
executing the number writing function through the second thread, wherein the number writing function is used for writing the first number segment information into a number segment storage space of the first chip platform;
the testing the execution result of the customized function through the second thread to obtain the test information includes:
and acquiring second number segment information in the number segment storage space through the second thread, and comparing the first number segment information with the second number segment information to acquire number writing test information, wherein the test information comprises the number writing test information.
In a possible implementation manner of the first aspect, the obtaining, by the first process, first segment information of the first chip platform includes:
acquiring two-dimensional code analysis information of the first chip platform through the first process, wherein the two-dimensional code analysis information comprises the first number segment information of the first chip platform;
or, the first process is connected to a data management system, and receives the first number segment information of the first chip platform sent by the data management system.
In a possible implementation manner of the first aspect, the method further includes:
creating a slot function through the second process;
and sending the test information to the slot function through the second thread.
In a second aspect, an embodiment of the present application discloses a chip platform upgrading apparatus, which is applied to an electronic device, where the electronic device has a chip platform upgrading program installed thereon, the chip platform upgrading program is used to connect at least one chip platform, the chip platform upgrading program includes a first process, and the apparatus includes:
a creating unit configured to create a first thread and a second thread by the first process;
a determining unit, configured to determine, by the first thread, a first interface function corresponding to the first chip platform according to a correspondence between the chip platform and the interface function;
a calling unit, configured to call the first interface function through the first thread, where the first interface function is used for upgrading firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform;
and the test unit is used for testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
In a possible implementation manner of the second aspect, the apparatus further includes:
and the display unit is used for displaying the test information on the interface of the chip platform upgrading program through the second process.
In a possible implementation manner of the second aspect, the test unit is specifically configured to execute a customized function through the second thread, and a code segment of the customized function is embedded in the firmware;
the test unit is specifically configured to test an execution result of the customized function through the second thread to obtain the test information.
In a possible implementation manner of the second aspect, the apparatus further includes:
an obtaining unit, configured to obtain first number segment information of the first chip platform through the first process;
the test unit is specifically configured to execute the number writing function through the second thread, where the number writing function is configured to write the first number segment information into a number segment storage space of the first chip platform;
the test unit is specifically configured to obtain second number segment information in the number segment storage space through the second thread, and compare the first number segment information with the second number segment information to obtain number writing test information, where the test information includes the number writing test information.
In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to obtain, through the first process, two-dimensional code analysis information of the first chip platform, where the two-dimensional code analysis information includes the first number segment information of the first chip platform;
or, the first process is connected to a data management system, and receives the first number segment information of the first chip platform sent by the data management system.
In a possible implementation manner of the second aspect, the creating unit is specifically configured to create a slot function through the second process;
the above-mentioned device still includes:
a sending unit, configured to send the test information to the slot function through the second thread.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a memory for storing a program; a processor configured to execute the program stored in the memory, and when the program is executed, the processor is configured to perform the method according to any one of the optional embodiments of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method according to any one of the optional embodiments of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes: instructions or computer programs; the above instructions or the above computer program, when executed, cause a method as in any one of the alternative embodiments of the first aspect to be implemented.
The chip platform upgrading method in the embodiment of the application is applied to electronic equipment, the electronic equipment is provided with a chip platform upgrading program, the chip platform upgrading program is used for connecting at least one chip platform, the chip platform upgrading program comprises a first process, and the method comprises the following steps: creating a first thread and a second thread through the first process; determining a first interface function corresponding to a first chip platform according to a corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function, wherein the first interface function is used for upgrading the firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform; and testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information. The chip platform upgrading program can be connected with at least one chip platform, corresponding processes and threads are created for each chip platform for upgrading and testing the chip platform under the condition that more than one chip platform is connected, the upgrading program does not need to be customized and developed for each chip platform, the upgrading program of one chip platform can be used for upgrading a plurality of chip platforms, and the upgrading and testing efficiency of the chip platforms can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings used in the embodiments or the background art of the present application will be briefly described below.
Fig. 1 is a flowchart of a method for upgrading a chip platform according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another chip platform upgrading method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a chip platform upgrading apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described with reference to the accompanying drawings.
The terms "first" and "second," and the like in the description, claims, and drawings of the present application are used solely to distinguish between different objects and not to describe a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. Such as a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. 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.
In order to more clearly describe the scheme of the present invention, some knowledge related to the method, the apparatus, the device, and the storage medium for upgrading the chip platform provided in the embodiments of the present application will be described first.
Chip platform: the chip platform is a module which is provided by a chip manufacturer and internally comprises a chip, the original chip manufacturer also provides a burning tool corresponding to the chip platform, and the burning tool can execute the downloading or upgrading function of the packaged module for the chip platform. Each chip manufacturer can also leave an interface for secondary development for the chip platform, so as to realize some functions of customization for the chip platform.
Firmware: the firmware refers to a device driver stored in the device, and the operating system can realize the running action of a specific machine according to the standard device driver through the firmware. The firmware performs the most basic and underlying work of a system. In a hardware device, firmware determines the functionality and performance of the hardware device. With the advent of the information age, it is difficult for manufacturers to fully meet their requirements, and firmware needs to be upgraded to improve performance or to solve the compatibility problem of software and hardware.
Signal and slot: signal and slot is a high-level interface that is applied to communication between objects. A signal is an event transmitted in a specific case, and a slot is a function for responding to a signal, and like a general function, can be defined anywhere in a class, has any parameter, and can be directly called. The slot function differs from the general function by: the slot function may be associated with a signal, and the associated slot function may be automatically executed when the signal is transmitted. The signal and slot can carry any number and type of parameters, and many signals can be connected to a single slot or a single signal can be connected to many slots.
And (3) process and thread: a process is a running activity of a program in a computer on some data set, is a basic unit for resource allocation and scheduling of a computer system, and is the basis of an operating system structure. In contemporary thread-oriented computer architectures, processes are containers for threads. A program is a description of instructions, data, and their organization, and a process is an entity of a program. The thread is the smallest unit of operation scheduling that the operating system can perform, is included in the process, and is the actual operation unit in the process. A thread refers to a single sequential control flow in a process, multiple threads can be concurrently executed in a process, and each thread executes different tasks in parallel.
With the development of the times, the applications of various chip platforms in life are increasingly wide. For various chip platforms, software upgrading is often required to meet the requirements of practical application.
Currently, upgrades on chip platform software include upgrades of firmware and customization of customized functionality. The firmware can be upgraded by adopting an upgrading program provided by a chip platform provider, and the customization of the customized functions needs to develop corresponding customized functions aiming at different types of chip platforms.
However, since a plurality of upgrading programs need to be customized and developed for upgrading and testing different types of chip platforms, the work redundancy of developers is complicated, and the upgrading and testing efficiency of the chip platforms is low.
To overcome the defects of the foregoing method, an embodiment of the present application provides a method for upgrading a chip platform, which is applied to an electronic device, where the electronic device is installed with a chip platform upgrading program, the chip platform upgrading program is used to connect at least one chip platform, the chip platform upgrading program includes a first process, and as shown in fig. 1, the method includes the following steps:
101. a first thread and a second thread are created by a first process.
Since the first thread and the second thread are created by the first process, all resources of the first process are shared, the resources include field information, functions, and the like obtained by the first process, a memory accessible to the first process, and the first thread and the second thread are also accessible. The first thread is used for upgrading the firmware of the first chip platform, and the second thread is used for testing the first chip platform under the condition that the firmware of the first chip platform is successfully upgraded to obtain a test progress and a test result.
102. And determining a first interface function corresponding to the first chip platform according to the corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function.
The first chip platform is any one of the at least one chip platform, and each chip platform in the at least one chip platform has a corresponding interface function; the interface function corresponding to the first chip platform is obtained through the first thread, and the first interface function is called to upgrade the firmware on the first chip platform. The first interface function comprises a function for formatting and upgrading the first chip platform, the formatting function is used for clearing the existing data of the first chip platform, and the upgrading function is used for writing the software file to be burned into the first chip platform.
In some embodiments of the present application, the first interface function includes at least one of a first all-erase function, a first partial formatting function, and a first upgrade function.
The first full-erase function and the first partial formatting function are used for different upgrading conditions, and the first thread executes the first full-erase function under the condition that data on the first chip platform needs to be erased and firmware on the first chip platform needs to be downloaded again; when the firmware on the first chip platform is updated, the first thread executes the first part of the formatting function to clear the existing data on the storage area corresponding to the updated firmware.
103. And testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
In the process of upgrading the firmware, the first thread writes a code segment and a file needing burning in the firmware, wherein the code segment is used for executing certain customized functions. And in case of successful firmware upgrade, the code segment is written into the firmware of the first chip platform. And the second thread executes the customized function corresponding to the code segment in the test process, tests the execution result of the customized function corresponding to the code segment to obtain the test information, and through the test information, a user can determine whether the first chip platform is successfully upgraded and the progress condition of the first chip platform in the upgrade process.
In some implementations of the present application, step 103 includes:
executing a customized function through the second thread, wherein a code segment of the customized function is embedded in the firmware;
and testing the execution result of the customized function through the second thread to obtain the test information.
After the first thread calls the first interface function, the code segment of the customized function is written into a corresponding storage area in the firmware of the first chip platform. The customized function is used to implement a customized function, for example, the customized function may be a number writing function, a key writing function, an encryption function, or an address writing function, where the number writing function is used to write number segment information such as a product serial number or an international mobile identity in a storage space of the first chip platform, the address writing function may be used to write other address information such as a bluetooth address or a wireless network address of the first chip platform, the key writing function is used to write a key into the first chip platform, and may be used to encrypt data of the first chip platform, and the encryption function is used to encrypt part of data of the first chip platform by using a preset encryption algorithm. Through carrying out the customization function and testing the result after carrying out, can add some extra functions on the basis of the firmware upgrade that satisfies the chip platform, satisfy the new demand in the in-service use, improve the expansibility of above-mentioned chip platform.
In some implementations of the present application, the customized function includes a number writing function, and the method further includes:
acquiring first number segment information of the first chip platform through the first process;
the executing the customized function by the second thread includes:
executing the number writing function through the second thread, wherein the number writing function is used for writing the first number segment information into a number segment storage space of the first chip platform;
the testing the execution result of the customized function through the second thread to obtain the test information includes:
and acquiring second number segment information in the number segment storage space through the second thread, and comparing the first number segment information with the second number segment information to acquire number writing test information, wherein the test information comprises the number writing test information.
Illustratively, the customized function may be a number writing function. The second thread executes the number writing function to write the first number segment information into the number segment storage space corresponding to the first chip platform, and the second thread obtains the number writing test information by obtaining the second number segment information in the number segment storage space and comparing the second number segment information with the first number segment information, wherein the test information comprises the number writing test information obtained by the second thread test. According to the embodiment of the application, the customized function is executed and the result after execution is tested, so that some additional functions can be added on the basis of firmware upgrading of the chip platform, new requirements in actual application are met, and the expansibility of the chip platform is improved.
In some embodiments of the application, the obtaining the first segment information of the first chip platform through the first process includes:
acquiring two-dimensional code analysis information of the first chip platform through the first process, wherein the two-dimensional code analysis information comprises the first number segment information of the first chip platform;
or, the first process is connected to a data management system, and receives the first number segment information of the first chip platform sent by the data management system.
The first process obtains the first number segment information, which is not limited in this embodiment of the present application. For example, the two-dimensional code of the first chip platform may be scanned through the first process, and the first number segment information may be extracted from the two-dimensional code; the data management system may be further connected, and the data management system sends the first number segment information corresponding to the first chip platform to the first process. The first number segment information can be obtained through the two methods, various chip platform upgrading and testing scenes can be adapted, and the efficiency of upgrading and testing the chip platform is improved.
In some implementations of the present application, the method further comprises:
creating a slot function through the second process;
and sending the test information to the slot function through the second thread.
The slot function is a function for responding to a signal, the second thread transmits test information to the slot function in the form of a signal, and the slot function associated with the test information is automatically executed when the test information is transmitted. After receiving the test information, the second process may display the test information on an interface of the chip platform upgrade program. The embodiment of the application sends and receives test information through a mechanism of the signal and the slot function, a mode that the second thread directly communicates with the second process is not adopted, under the condition that the second threads corresponding to a plurality of chip platforms communicate with the second process, the chip platform upgrading program possibly causes untimely data processing due to too many threads, the problem can be solved through the mechanism of the signal and the slot function, the running stability and timeliness of the chip upgrading program are improved, and blocking is avoided.
In some implementations of the present application, the method further comprises:
and displaying the test information on an interface of the chip platform upgrading program through the second process.
The test information comprises a test result and a test progress of the first chip platform in each step of the upgrading test, the test information is displayed on an interface of the chip platform upgrading program to clearly show process information in the chip platform upgrading process, a user can control the upgrading process according to the test information, for example, the upgrading process is suspended, or the upgrading process of the chip platform can be stopped in time under the condition that the test information shows that the upgrading is wrong, and the upgrading efficiency of the chip platform can be improved.
In the embodiment of the application, the chip platform upgrading program can be connected with at least one chip platform, and when more than one chip platform is connected, corresponding processes and threads are created for each chip platform for upgrading and testing the chip platform, the upgrading program is not required to be developed for each chip platform in a customized manner, one chip platform upgrading program can be used for upgrading a plurality of chip platforms, and the upgrading and testing efficiency of the chip platforms can be improved.
Referring to fig. 2, the method is applied to an electronic device, the electronic device is provided with a chip platform upgrade program, the chip platform upgrade program is used for connecting at least one chip platform, the chip platform upgrade program includes a first process, and the method includes the following steps:
201. a first thread and a second thread are created by a first process.
Step 201 is the same as the process executed in step 101, and is not described herein again.
202. A slot function is created by the second process.
The second process creates a slot function for receiving the signal, tests at the second process, obtains test information, and sends the test information to the slot function in the form of the signal.
203. And determining a first interface function corresponding to the first chip platform according to the corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function.
Step 203 is the same as the process executed in step 102, and is not described herein again.
204. And acquiring the first number segment information of the first chip platform through the first process.
In practical application, number segment information needs to be written into the storage area of the first chip platform, where the first number segment information may be number segment information such as a product serial number, an international mobile identity, and the like, and this is not limited in this embodiment of the present application. Optionally, the first process may obtain other information such as the first number segment information by scanning the two-dimensional code corresponding to the first chip platform; the first process may also receive other field information, such as the first number field information, sent by the data management system by connecting to the data management system in production.
205. The number writing function is executed by the second thread.
Illustratively, the customized function includes a number writing function, and a code segment of the customized function is embedded in the firmware, and the code segment of the customized function is already written in the firmware during the upgrading process of the firmware. The number writing function is used for writing the first number segment information into the corresponding number segment storage area.
206. And acquiring second number segment information through the second thread, and comparing the first number segment information with the second number segment information to acquire number writing test information.
The second number segment information is the number segment information read from the number segment storage area by the second thread, and whether the first number segment information and the second number segment information are equal or not is compared, so that whether the written number segment information is the first number segment information acquired by the first process or not can be confirmed.
207. And sending test information to the slot function through the second thread.
The second process sends a signal to the slot function, where the signal includes the test information, and after the second process receives the signal, the slot function is automatically executed, for example, the slot function displays the test information on an interface of a chip platform upgrade program, and the slot function may also upload the test information to the data management system, so that the data management system uniformly manages data generated during testing.
208. And displaying the test information on an interface of the chip platform upgrading program through the second process.
The second process displays the test information on the interface of the chip platform upgrading program according to different chip platforms, and the upgrading and test progress and results of the chip platforms can be visually observed.
According to the method and the device, the first thread and the second thread are created through the first process to upgrade and test the chip platform, the first number section information is obtained by two different methods, and the upgrade and the test of the chip platform are suitable for different conditions; for the test information of the customized function, a signal and slot mechanism is adopted to interact with the front-end interface, so that interaction between a plurality of threads and the front-end interface process is avoided, and the running stability of the upgrading program of the chip platform and the efficiency of upgrading test can be improved.
The process of upgrading the chip platform is described below with reference to the structure of the chip platform upgrading apparatus, and fig. 3 is a schematic structural diagram of the chip platform upgrading apparatus provided in the embodiment of the present application. As shown in fig. 3, the device for upgrading a chip platform is applied to an electronic device, where the electronic device is installed with a chip platform upgrading program, the chip platform upgrading program is used to connect to at least one chip platform, the chip platform upgrading program includes a first process, and the device includes:
a creating unit 302, configured to create a first thread and a second thread through the first process;
a determining unit 303, configured to determine, by the first thread according to a correspondence between the chip platform and the interface function, a first interface function corresponding to the first chip platform;
a calling unit 304, configured to call the first interface function through the first thread, where the first interface function is used for upgrading firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform;
the testing unit 305 is configured to test the first chip platform through the second thread under the condition that the firmware is successfully upgraded, so as to obtain testing information.
In a possible embodiment, the above apparatus further comprises:
a display unit 307, configured to display the test information on an interface of the chip platform upgrade program through the second process.
In one possible embodiment, the test unit 305 is specifically configured to execute a customized function through the second thread, and a code segment of the customized function is embedded in the firmware;
the test unit 305 is specifically configured to test an execution result of the customized function through the second thread to obtain the test information.
In a possible embodiment, the above apparatus further comprises:
an obtaining unit 301, configured to obtain first number segment information of the first chip platform through the first process;
the test unit 305 is specifically configured to execute the write function through the second thread, where the write function is configured to write the first segment information into a segment storage space of the first chip platform;
the test unit 305 is specifically configured to obtain second segment information in the segment storage space through the second thread, and compare the first segment information with the second segment information to obtain write test information, where the test information includes the write test information.
In a possible implementation manner, the obtaining unit 301 is specifically configured to obtain, through the first process, two-dimensional code analysis information of the first chip platform, where the two-dimensional code analysis information includes the first number segment information of the first chip platform;
or, the first process is connected to a data management system, and receives the first number segment information of the first chip platform sent by the data management system.
In a possible implementation manner, the creating unit 302 is specifically configured to create a slot function through the second process;
the above-mentioned device still includes:
a sending unit 306, configured to send the test information to the slot function through the second thread.
It should be understood that the above division of each unit in the partitioning apparatus is only a division of logical functions, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. For example, each of the above units may be a processing element separately set up, or may be implemented by being integrated in a chip of the terminal, or may be stored in a storage element of the controller in the form of program code, and a processing element of the processor calls and executes the functions of each of the above units. In addition, the units can be integrated together or can be independently realized. The processing element may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the method or the units above may be implemented by hardware integrated logic circuits in a processor element or instructions in software. The processing element may be a general-purpose processor, such as a Central Processing Unit (CPU), or may be one or more integrated circuits configured to implement the above method, such as: one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), one or more field-programmable gate arrays (FPGAs), etc.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device 400 includes a processor 401, a memory 402, and a communication interface 403; the processor 401, the memory 402, and the communication interface 403 are connected to each other by a bus.
The memory 402 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a compact disc read-only memory (CDROM), and the memory 402 is used for related instructions and data. The communication interface 403 is used for receiving and transmitting data, and may realize the functions of the acquisition unit 301, the transmission unit 306, and the display unit 307.
The processor 401 may be one or more Central Processing Units (CPUs), and in the case that the processor 401 is one CPU, the CPU may be a single-core CPU or a multi-core CPU. In particular, the processor 401 may implement the functions of the creating unit 302, the determining unit 303, the calling unit 304, and the testing unit 305.
The processor 401 in the electronic device 400 is configured to read the program code stored in the memory 402 and execute the chip platform upgrade method in the foregoing embodiment.
In an embodiment of the present application, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements: creating a first thread and a second thread through a first process; determining a first interface function corresponding to a first chip platform according to the corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function; and testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described in terms of flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (10)

1. A chip platform upgrading method is applied to electronic equipment, a chip platform upgrading program is installed on the electronic equipment and used for being connected with at least one chip platform, the chip platform upgrading program comprises a first process, and the method comprises the following steps:
creating a first thread and a second thread by the first process;
determining a first interface function corresponding to a first chip platform according to a corresponding relation between the chip platform and the interface function through the first thread, and calling the first interface function, wherein the first interface function is used for upgrading the firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform;
and testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
2. The method of claim 1, wherein the chip platform upgrade program further comprises a second process, the method further comprising:
and displaying the test information on an interface of the chip platform upgrading program through the second process.
3. The method of any of claims 1 or 2, wherein the first interface function comprises at least one of a first erase-all function, a first partial formatting function, and a first upgrade function.
4. The method according to any of claims 1 to 3, wherein said testing said first chip platform to obtain test information comprises:
executing a customization function by the second thread, a code segment of the customization function being built into the firmware;
and testing the execution result of the customized function through the second thread to obtain the test information.
5. The method of claim 4, wherein the customization function comprises a number writing function, the method further comprising:
acquiring first number segment information of the first chip platform through the first process;
the executing, by the second thread, a customized function comprises:
executing the number writing function through the second thread, wherein the number writing function is used for writing the first number segment information into a number segment storage space of the first chip platform;
the step of testing the execution result of the customized function through the second thread to obtain the test information includes:
and acquiring second number segment information in the number segment storage space through the second thread, and comparing the first number segment information with the second number segment information to acquire number writing test information, wherein the test information comprises the number writing test information.
6. The method according to claim 5, wherein said obtaining the first segment information of the first chip platform through the first process comprises:
acquiring two-dimensional code analysis information of the first chip platform through the first process, wherein the two-dimensional code analysis information comprises the first number segment information of the first chip platform;
or, the first process is connected with a data management system, and the first number segment information of the first chip platform sent by the data management system is received.
7. The method of any one of claims 1 to 6, further comprising:
creating a slot function by the second process;
and sending the test information to the slot function through the second thread.
8. The utility model provides a chip platform upgrading device which characterized in that is applied to electronic equipment, electronic equipment installs chip platform upgrading procedure, chip platform upgrading procedure is used for connecting at least one chip platform, chip platform upgrading procedure includes first process, the device includes:
a creating unit configured to create a first thread and a second thread by the first process;
a determining unit, configured to determine, by the first thread, a first interface function corresponding to the first chip platform according to a correspondence between the chip platform and the interface function;
a calling unit, configured to call the first interface function through the first thread, where the first interface function is used for upgrading firmware of the first chip platform, and the first chip platform is any one of the at least one chip platform;
and the test unit is used for testing the first chip platform through the second thread under the condition that the firmware is upgraded successfully to obtain test information.
9. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being configured to perform the method of any of claims 1 to 7 when the program is executed.
10. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
CN202111447658.3A 2021-11-30 2021-11-30 Chip platform upgrading method and related device Pending CN114296754A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111447658.3A CN114296754A (en) 2021-11-30 2021-11-30 Chip platform upgrading method and related device
PCT/CN2022/098113 WO2023098015A1 (en) 2021-11-30 2022-06-10 Chip platform upgrade method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111447658.3A CN114296754A (en) 2021-11-30 2021-11-30 Chip platform upgrading method and related device

Publications (1)

Publication Number Publication Date
CN114296754A true CN114296754A (en) 2022-04-08

Family

ID=80966053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111447658.3A Pending CN114296754A (en) 2021-11-30 2021-11-30 Chip platform upgrading method and related device

Country Status (2)

Country Link
CN (1) CN114296754A (en)
WO (1) WO2023098015A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098015A1 (en) * 2021-11-30 2023-06-08 深圳市广和通无线股份有限公司 Chip platform upgrade method and related device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823703A (en) * 2014-03-18 2014-05-28 福州瑞芯微电子有限公司 Method and device in compatibility with different equipment with same firmware
CN107194242A (en) * 2017-03-30 2017-09-22 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
CN109857437A (en) * 2019-01-22 2019-06-07 安克创新科技股份有限公司 A kind of upgrade method and system of bluetooth equipment
CN110389779A (en) * 2019-07-15 2019-10-29 合肥移瑞通信技术有限公司 The upgrade method and upgrade-system of communication module
KR20200060863A (en) * 2018-11-23 2020-06-02 주식회사제이엘텍코퍼레이션 Firmware management system and method in embedded system
CN111327454A (en) * 2020-01-20 2020-06-23 深圳市广和通无线股份有限公司 File upgrading method and device, computer equipment and storage medium
CN111651183A (en) * 2020-08-05 2020-09-11 深圳杰睿联科技有限公司 Communication module upgrading method, device, system and storage medium based on soft card
CN112100015A (en) * 2020-11-19 2020-12-18 北京智芯微电子科技有限公司 Chip testing device and chip testing method
US20200401392A1 (en) * 2019-06-21 2020-12-24 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus, device and storage medium for upgrading application
CN112363736A (en) * 2020-11-11 2021-02-12 京东方科技集团股份有限公司 Method, device and storage medium for burning product serial number
CN113596077A (en) * 2021-06-10 2021-11-02 深圳市广和通无线股份有限公司 Program downloading method, device, computer equipment and storage medium
CN113709270A (en) * 2021-08-20 2021-11-26 广州易而达科技股份有限公司 Bluetooth module production system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477848B2 (en) * 2013-03-15 2016-10-25 Insyde Software Corp. System and method for managing and diagnosing a computing device equipped with unified extensible firmware interface (UEFI)-compliant firmware
CN114003257A (en) * 2021-10-29 2022-02-01 联想(北京)信息技术有限公司 Upgrading method and device
CN114296754A (en) * 2021-11-30 2022-04-08 深圳市广和通无线股份有限公司 Chip platform upgrading method and related device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823703A (en) * 2014-03-18 2014-05-28 福州瑞芯微电子有限公司 Method and device in compatibility with different equipment with same firmware
CN107194242A (en) * 2017-03-30 2017-09-22 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
US20190278583A1 (en) * 2017-03-30 2019-09-12 Pax Computer Technology (Shenzhen) Co., Ltd Method for updating firmware, terminal and computer readable non-volatile storage medium
KR20200060863A (en) * 2018-11-23 2020-06-02 주식회사제이엘텍코퍼레이션 Firmware management system and method in embedded system
CN109857437A (en) * 2019-01-22 2019-06-07 安克创新科技股份有限公司 A kind of upgrade method and system of bluetooth equipment
US20200401392A1 (en) * 2019-06-21 2020-12-24 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus, device and storage medium for upgrading application
CN110389779A (en) * 2019-07-15 2019-10-29 合肥移瑞通信技术有限公司 The upgrade method and upgrade-system of communication module
CN111327454A (en) * 2020-01-20 2020-06-23 深圳市广和通无线股份有限公司 File upgrading method and device, computer equipment and storage medium
CN111651183A (en) * 2020-08-05 2020-09-11 深圳杰睿联科技有限公司 Communication module upgrading method, device, system and storage medium based on soft card
CN112363736A (en) * 2020-11-11 2021-02-12 京东方科技集团股份有限公司 Method, device and storage medium for burning product serial number
CN112100015A (en) * 2020-11-19 2020-12-18 北京智芯微电子科技有限公司 Chip testing device and chip testing method
CN113596077A (en) * 2021-06-10 2021-11-02 深圳市广和通无线股份有限公司 Program downloading method, device, computer equipment and storage medium
CN113709270A (en) * 2021-08-20 2021-11-26 广州易而达科技股份有限公司 Bluetooth module production system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
羽墨志: "【LTE CAT1】ML302 OpenCPU | 应用开发入门", Retrieved from the Internet <URL:https://blog.csdn.net/u011852211/article/details/115432217> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098015A1 (en) * 2021-11-30 2023-06-08 深圳市广和通无线股份有限公司 Chip platform upgrade method and related device

Also Published As

Publication number Publication date
WO2023098015A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
CN106598835B (en) Application testing method, device and system
CN108399132B (en) Scheduling test method, device and storage medium
CN111651366B (en) SDK test method, device, equipment and storage medium
EP3355187A1 (en) Loading method and device for terminal application (app)
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN109791497B (en) Method, device and terminal for executing hot patch
CN106066803B (en) application program operation control method and device
CN108170494B (en) Application program starting method and starting system for intelligent terminal
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN108197004B (en) IOS application method time consumption and view loading time consumption monitoring method and system
CN104572387A (en) Method and device for debugging terminal in engineering mode
CN111813646A (en) Method and device for injecting application probe in docker container environment
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
WO2019237239A1 (en) Data test method and apparatus, device/terminal/server and computer readable storage medium
CN107220085B (en) Method for automatically upgrading RAID card firmware
KR20200067474A (en) Fault injection test method and system for vehicle software based on autosar
CN114296754A (en) Chip platform upgrading method and related device
CN115113890A (en) Automatic deployment method, system, equipment and medium of terminal software
CN113133041B (en) Method and device for testing vehicle-to-vehicle communication function in dynamic interval train control vehicle
CN113821439A (en) Method, device, storage medium and terminal for registering function to probe point
CN111045789B (en) Virtual machine starting method and device, electronic equipment and storage medium
CN110928787B (en) Automatic test script recording and playback method, device, equipment and storage medium
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN112527312A (en) Test method and test device for embedded system

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