CN110618826A - Method and device for updating application program and terminal equipment - Google Patents

Method and device for updating application program and terminal equipment Download PDF

Info

Publication number
CN110618826A
CN110618826A CN201910760172.1A CN201910760172A CN110618826A CN 110618826 A CN110618826 A CN 110618826A CN 201910760172 A CN201910760172 A CN 201910760172A CN 110618826 A CN110618826 A CN 110618826A
Authority
CN
China
Prior art keywords
configuration file
application program
updating
application
currently configured
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
CN201910760172.1A
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 Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201910760172.1A priority Critical patent/CN110618826A/en
Publication of CN110618826A publication Critical patent/CN110618826A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The application is applicable to the technical field of communication, and provides an application updating method, an application updating device and terminal equipment, wherein the application updating method comprises the steps of obtaining identification information of diagnosis equipment bound with an application, obtaining a currently configured function of the diagnosis equipment through a server according to the obtained identification information, comparing the currently configured function of the diagnosis equipment with the currently configured function of the application, and updating a first configuration file of the application according to a comparison result. The method and the device can simplify the updating of the application program, and are beneficial to improving the updating efficiency.

Description

Method and device for updating application program and terminal equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for updating an application program, and a terminal device.
Background
In order to provide better user experience, software needs to be upgraded regularly or irregularly in the development and maintenance process of the software, so as to achieve the purpose of repairing bugs of the existing software or adding new functions.
In the prior art, a direct coverage mode is usually adopted when software is upgraded, however, the mode usually needs a user to download and install the software by himself, and the upgrading speed is slow.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, the embodiments of the present application provide an application updating method, an application updating device, and a terminal device, which can simplify the updating of an application and are beneficial to improving the updating efficiency.
A first aspect of an embodiment of the present application provides a method for updating an application, including:
acquiring identification information of a diagnostic device bound with the application program;
acquiring a currently configured function of the diagnostic equipment through a server according to the acquired identification information;
comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program;
and updating the first configuration file of the application program according to the comparison result.
In one embodiment, updating the first configuration file of the application program according to the comparison result includes:
determining all configuration items to be updated and corresponding target values in the first configuration file according to the comparison result;
and respectively updating the values of all the configuration items to be updated from the current values to the target values.
In one embodiment, determining all the configuration items to be updated and the corresponding target values in the first configuration file according to the comparison result includes:
if the wireless transmission function currently configured by the diagnostic equipment is in a disabled state in the application program, determining that the configuration item to be updated in the first configuration file is a switch corresponding to the wireless transmission function, and the target value corresponding to the configuration item is 1.
In one embodiment, the obtaining, by the server, the currently configured function of the diagnostic device according to the obtained identification information includes:
acquiring data acquired by the diagnostic equipment through a server according to the acquired identification information;
and determining the currently configured function of the diagnostic equipment according to the acquired data.
In one embodiment, updating the first configuration file of the application program according to the comparison result includes:
acquiring current time information through a server;
calculating a difference value between the obtained current time information and preset time information;
and if the calculated difference is smaller than the threshold value, updating the first configuration file of the application program according to the comparison result.
In one embodiment, updating the first configuration file of the application according to the comparison result further includes:
acquiring the position information of the terminal where the application program is located;
and if the position of the terminal where the application program is located is in a preset target area, updating the first configuration file of the application program according to a comparison result.
In one embodiment, before comparing the currently configured function of the diagnostic device with the currently configured function of the application program, the method further includes:
acquiring a first configuration file of the locally stored application program;
and determining the current configured function of the application program according to the acquired first configuration file.
In one embodiment, the method further comprises:
acquiring a second configuration file of the application program through a server;
comparing the version number of the first configuration file with the version number of the second configuration file;
and if the version number of the second configuration file is higher than that of the first configuration file, updating the first configuration file into the second configuration file.
A second aspect of the present application provides an apparatus for application update, comprising:
the first acquisition module is used for acquiring the identification information of the diagnostic equipment bound with the application program;
the second acquisition module is used for acquiring the currently configured functions of the diagnostic equipment through a server according to the acquired identification information;
the comparison module is used for comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program;
and the first updating module is used for updating the first configuration file of the application program according to the comparison result.
In one embodiment, the first update module is specifically configured to:
determining all configuration items to be updated and corresponding target values in the first configuration file according to the comparison result;
and respectively updating the values of all the configuration items to be updated from the current values to the target values.
In one embodiment, the first update module is specifically configured to:
if the wireless transmission function currently configured by the diagnostic equipment is in a disabled state in the application program, determining that the configuration item to be updated in the first configuration file is a switch corresponding to the wireless transmission function, and the target value corresponding to the configuration item is 1.
In one embodiment, the second obtaining module is specifically configured to:
acquiring data acquired by the diagnostic equipment through a server according to the acquired identification information;
and determining the currently configured function of the diagnostic equipment according to the acquired data.
In one embodiment, the first update module is specifically configured to:
acquiring current time information through a server;
calculating a difference value between the obtained current time information and preset time information;
and if the calculated difference is smaller than the threshold value, updating the first configuration file of the application program according to the comparison result.
In one embodiment, the first update module is specifically configured to:
acquiring the position information of the terminal where the application program is located;
and if the position of the terminal where the application program is located is in a preset target area, updating the first configuration file of the application program according to a comparison result.
In one embodiment, the apparatus further comprises:
the determining module is used for acquiring a first configuration file of the locally stored application program and determining the current configuration function of the application program according to the acquired first configuration file.
In one embodiment, the apparatus further comprises:
and the second updating module is used for acquiring a second configuration file of the application program through a server, comparing the version number of the first configuration file with the version number of the second configuration file, and updating the first configuration file into the second configuration file if the version number of the second configuration file is higher than the version number of the first configuration file.
A third aspect of embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method mentioned in the first aspect when executing the computer program.
Compared with the prior art, the embodiment of the application has the advantages that: in this embodiment, first, identification information of a diagnostic device bound to the application program is obtained, then, according to the obtained identification information, a function currently configured by the diagnostic device is obtained through a server, then, the function currently configured by the diagnostic device is compared with the function currently configured by the application program, and finally, a first configuration file of the application program is updated according to a comparison result. Compared with the prior art, the updating of the application program can be simplified through the embodiment of the application, the updating efficiency is improved, and the application program has strong usability and practicability; by determining all the configuration items to be updated in the first configuration file and the corresponding target values, the updating of the first configuration file is favorably and rapidly completed in a targeted manner, so that the efficiency of updating the application program is improved; whether the first configuration file is updated or not is judged according to the difference value between the current time information and the preset time information, so that the purpose of updating at regular time is facilitated, and the requirements of users are met; whether the first configuration file is updated or not is determined according to the position information of the terminal equipment, so that the application program on the terminal equipment in some specified areas can be updated only, and the aim of fixed-point updating is fulfilled.
It is to be understood that, the beneficial effects of the second to third aspects may be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
FIG. 1-a is a schematic view of a system provided herein;
FIG. 1-b is a flowchart illustrating a method for updating an application according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for updating an application according to a second embodiment of the present application;
fig. 3 is a flowchart illustrating a method for updating an application according to a third embodiment of the present application;
fig. 4 is a flowchart illustrating a method for updating an application according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for updating an application according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
It should be noted that, the descriptions of "first" and "second" in this embodiment are used to distinguish different regions, modules, and the like, and do not represent a sequential order, and the descriptions of "first" and "second" are not limited to be of different types.
The method for updating the application program is applied to terminal equipment, wherein the terminal equipment comprises but is not limited to PAD (PAD application access point), the application program for diagnosing the vehicle fault is pre-installed on the terminal equipment, and the application program can generate a configuration file in an off-line mode after being installed and used for the first time and store the configuration file in a local place; the terminal equipment establishes communication connection with the diagnosis equipment and the server respectively according to the mode shown in figure 1-a; the diagnostic equipment can be independent of the terminal equipment and can also be integrated on the terminal equipment, and is used for acquiring data related to the vehicle to be tested and sending the acquired data to the server for storage; the server may be a cloud server, and the server is configured to communicate with the terminal device and the diagnostic device, for example, the server may forward data sent by the diagnostic device to the terminal device.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Example one
Fig. 1-b is a flowchart illustrating a method for updating an application according to an embodiment of the present application, where the method may include the following steps:
s101: and acquiring the identification information of the diagnostic equipment bound with the application program.
In one embodiment, the binding relationship of the application program and the diagnostic device is one-to-one.
In one embodiment, the identification information may be a serial number of the diagnostic device.
Since there is some binding relationship between the diagnostic device and the application program, in one embodiment, the terminal device may directly find the serial number of the diagnostic device from the local.
S102: and acquiring the current configured function of the diagnostic equipment through a server according to the acquired identification information.
In one embodiment, the currently configured function of the diagnostic device is all of the currently configured functions of the diagnostic device.
In one embodiment, the server has stored thereon identification information of the diagnostic device.
Since the server will often update the stored data, the latest functions currently configured by the diagnostic device can be obtained by the server.
S103: and comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program.
In one embodiment, the results of the comparison may be flagged.
In one embodiment, before comparing the currently configured function of the diagnostic device with the currently configured function of the application program, the method further includes:
a1: and acquiring a first configuration file of the locally stored application program.
In one embodiment, the first configuration file is an original configuration file of the application program, such as a configuration file generated offline after the application program is installed for the first time.
In one embodiment, the format of the first configuration file is a text format.
In one embodiment, the first configuration file contains a version number of the file.
In one embodiment, the first configuration file is a switch file for controlling the state, such as on or off, of each function module in the application program.
A2: and determining the current configured function of the application program according to the acquired first configuration file.
S104: and updating the first configuration file of the application program according to the comparison result.
Wherein the updating comprises modifying the values of the relevant parameters in the first configuration file.
Since the cloud generally stores the latest configuration file uploaded by the developer, in an embodiment, the application program may also be updated according to the latest configuration file stored in the cloud, specifically:
b1: and acquiring a second configuration file of the application program through a server.
The second configuration file is different from the first configuration file in that the first configuration file is stored on the local terminal device, and the second configuration file is stored on the server.
B2: and comparing the version number of the first configuration file with the version number of the second configuration file.
B3: and if the version number of the second configuration file is higher than that of the first configuration file, updating the first configuration file into the second configuration file.
The version number of the second configuration file being higher than the version number of the first configuration file means that the version number of the second configuration file is higher than the version number of the first configuration file, and if the version number of the second configuration file is V1.1 and the version number of the first configuration file is V1.0, the version number of the second configuration file is higher than the version number of the first configuration file.
In one embodiment, when the version numbers of the second configuration file and the first configuration file are the same, a further comparison may be made to determine whether the two are the same file, such as the time at which the two versions are generated, the content of the text, and/or the size of the text.
Of course, in an embodiment, an update file may also be generated according to the first configuration file and the second configuration file, and then the update of the application program is completed based on the update file.
In one embodiment, the method further comprises:
controlling the application to restart to load the updated configuration file, wherein the restart is relative to a state in which the application is currently started.
It should be understood that, by controlling the application program to be restarted, the application program can be enabled to load the updated configuration file, which is beneficial for the application program to complete the whole updating process.
In one embodiment, the application program may be controlled to restart immediately, or may be controlled to restart after external conditions are appropriate, as the case may be.
Taking a specific application scenario as an example to explain and explain the steps S101 to S104, during the running of the installed vehicle diagnosis app, the PAD of the terminal device may first obtain the serial number of the diagnosis device bound to the PAD from the local, query the currently configured function of the diagnosis device from the preset server according to the serial number, then compare the queried function with the currently configured function of the PAD, and modify the configuration parameter corresponding to the function switch D in the first configuration file generated during the running of the app if the currently configured function of the diagnosis device is A, B, C and D and the currently configured function of the app is A, B and C.
As can be seen from the above, according to the embodiment of the application, the first configuration file of the application is automatically updated according to the difference between the currently configured function of the diagnostic device and the currently configured function of the application, so that the updating of the application can be simplified, and the updating efficiency can be improved; the steps of downloading and installing by the user can be omitted, so that the experience of the user is improved, and the method has high usability and practicability.
Example two
Fig. 2 is a schematic flowchart of a method for updating an application program according to an embodiment two of the present application, which is a further detailed and descriptive illustration of steps S102 and S104 in the embodiment one, and the method may include the following steps:
s201: and acquiring the identification information of the diagnostic equipment bound with the application program.
The step S201 is the same as the step S101 in the first embodiment, and the specific implementation process of the step S201 can be referred to the description of the step S101, which is not repeated herein.
S202: and acquiring data acquired by the diagnostic equipment through a server according to the acquired identification information, and determining the current configuration function of the diagnostic equipment according to the acquired data.
In one embodiment, the terminal device may determine the currently configured function of the diagnostic device by analyzing the type of the acquired data.
S203: and comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program.
The step S203 is the same as the step S103 in the first embodiment, and the specific implementation process may refer to the description of the step S103, which is not repeated herein.
S204: and according to the comparison result, determining all the configuration items to be updated and corresponding target values in the first configuration file, and respectively updating the values of all the configuration items to be updated from the current values to the target values.
In one implementation, the target value may be 0 or 1.
In one embodiment, determining all the configuration items to be updated and the corresponding target values in the first configuration file according to the comparison result includes:
if the wireless transmission function currently configured by the diagnostic equipment is in a disabled state in the application program, determining that the configuration item to be updated in the first configuration file is a switch corresponding to the wireless transmission function, and the target value corresponding to the configuration item is 1.
The disabled state refers to a state in which the function is disabled, that is, the disabled state is unavailable.
As can be seen from the above, in the second embodiment of the present application, compared with the first embodiment, the function of the current configuration of the diagnostic device can be determined according to the data stored in the server, which is beneficial to obtaining the latest function of the current configuration of the diagnostic device, so as to provide an accurate reference for updating the first configuration file in the application program; in addition, all the configuration items to be updated in the first configuration file and the corresponding target values are determined, so that the first configuration file can be updated rapidly and specifically, the efficiency of updating the application program is improved, and the method has high usability and practicability.
EXAMPLE III
Fig. 3 is a schematic flowchart of a method for updating an application program according to a third embodiment of the present application, which is a further refinement and description of step S104 in the first embodiment, and the method may include the following steps:
s301: and acquiring the identification information of the diagnostic equipment bound with the application program.
S302: and acquiring the current configured function of the diagnostic equipment through a server according to the acquired identification information.
S303: and comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program.
The above steps S301 to S303 are the same as the steps S101 to S103 in the first embodiment, and the specific implementation process thereof can refer to the description of the steps S101 to S103, which is not repeated herein.
S304: the method comprises the steps that current time information is obtained through a server, the difference value between the obtained current time information and preset time information is calculated, and if the calculated difference value is smaller than a preset value, a first configuration file of an application program is updated according to a comparison result.
In one embodiment, the preset time information may be set according to a period of time in which the user is frequently charged.
In one embodiment, the preset time information may be a time for the user to rest, such as at night.
The above steps S301-S304 are explained and illustrated by taking a specific application scenario as an example, because the terminal device PAD firstly obtains the serial number of the diagnostic device bound with the terminal device PAD from the local place in the process of running the installed vehicle diagnostic app, and inquires the current configured function of the diagnostic device from the preset server according to the serial number, then, comparing the queried function with the current configured function of the app, if the current configured function of the diagnostic device is A, B, C and D, and the current configured function of the app is A, B and C, then the current time information is obtained by the server and is compared with the preset time information, if the current time is 23 o ' clock 59 o ' clock 31 m 12 m 31 m 2019 and the preset time information is 0 o ' clock 1 m 2020, the configuration parameters corresponding to the function switch D in the first configuration file generated during the running process of the app may be modified at the current moment.
As can be seen from the above, in the third embodiment of the present application, compared with the first embodiment, whether to update the first configuration file can be determined according to the difference between the current time information and the preset time information, which is beneficial to achieving the purpose of updating at regular time, so as to be closer to the requirements of users; in addition, the current time information is obtained from the server, so that the accuracy of the obtained time information can be ensured, the judgment accuracy is improved, the application program is updated at the time needed by the user really, and the method has high usability and practicability.
Example four
Fig. 4 is a schematic flowchart of a method for updating an application program according to a fourth embodiment of the present application, which is another refinement and description of step S104 in the first embodiment, and the method may include the following steps:
s401: and acquiring the identification information of the diagnostic equipment bound with the application program.
S402: and acquiring the current configured function of the diagnostic equipment through a server according to the acquired identification information.
S403: and comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program.
The above steps S401 to S403 are the same as the steps S101 to S103 in the first embodiment, and the specific implementation process thereof can refer to the description of the steps S101 to S103, which is not repeated herein.
S404: and obtaining the position information of the terminal where the application program is located, and updating the first configuration file of the application program according to a comparison result if the terminal where the application program is located is in a preset target area.
In one embodiment, the terminal where the application program is located is the terminal device.
In one embodiment, the location information may be obtained by a positioning module of the terminal itself.
In one embodiment, the preset target area may be an area with free traffic or better signal quality.
Taking a specific application scenario as an example to explain and explain the steps S401 to S404, during the running of the installed vehicle diagnosis app, the terminal device PAD may first obtain the serial number of the diagnosis device bound to the terminal device PAD from the local, and query the currently configured function of the diagnosis device from the preset server according to the serial number, and then compare the queried function with the currently configured function of the terminal device PAD, if the currently configured function of the diagnosis device is A, B, C and D, and the currently configured function of the app is A, B and C, obtain the location information of the PAD, and if the location information of the PAD is the location of the vehicle repair plant S, and the preset target area is an area where one kilometer is located near the vehicle repair plant S, modify the configuration parameter corresponding to the function switch D in the first configuration file generated during the running of the app.
Therefore, compared with the first embodiment, the fourth embodiment of the application provides a specific implementation manner for determining whether to update the first configuration file according to the location information of the terminal device, and the application program on the terminal device in some specified areas can be updated only, so that the purpose of fixed-point updating is facilitated, and the application program has high usability and practicability.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an apparatus for updating an application according to a fifth embodiment of the present invention, and for convenience of description, only parts related to the fifth embodiment of the present invention are shown.
The application program updating device can be a software unit, a hardware unit or a combination unit of software and hardware which are built in the terminal equipment, and can also be integrated into the terminal equipment as an independent pendant.
The device for updating the application program comprises:
a first obtaining module 51, configured to obtain identification information of a diagnostic device bound to the application;
a second obtaining module 52, configured to obtain, through the server, a currently configured function of the diagnostic device according to the obtained identification information;
a comparison module 53, configured to compare a currently configured function of the diagnostic device with a currently configured function of the application program;
the first updating module 54 is configured to update the first configuration file of the application program according to the comparison result.
In an embodiment, the first updating module 54 is specifically configured to:
determining all configuration items to be updated and corresponding target values in the first configuration file according to the comparison result;
and respectively updating the values of all the configuration items to be updated from the current values to the target values.
In an embodiment, the first updating module 54 is specifically configured to:
if the wireless transmission function currently configured by the diagnostic equipment is in a disabled state in the application program, determining that the configuration item to be updated in the first configuration file is a switch corresponding to the wireless transmission function, and the target value corresponding to the configuration item is 1.
In an embodiment, the second obtaining module 52 is specifically configured to:
acquiring data acquired by the diagnostic equipment through a server according to the acquired identification information;
and determining the currently configured function of the diagnostic equipment according to the acquired data.
In an embodiment, the first updating module 54 is specifically configured to:
acquiring current time information through a server;
calculating a difference value between the obtained current time information and preset time information;
and if the calculated difference is smaller than the threshold value, updating the first configuration file of the application program according to the comparison result.
In an embodiment, the first updating module 54 is specifically configured to:
acquiring the position information of the terminal where the application program is located;
and if the position of the terminal where the application program is located is in a preset target area, updating the first configuration file of the application program according to a comparison result.
In one embodiment, the apparatus further comprises:
the determining module is used for acquiring a first configuration file of the locally stored application program and determining the current configuration function of the application program according to the acquired first configuration file.
In one embodiment, the apparatus further comprises:
and the second updating module is used for acquiring a second configuration file of the application program through a server, comparing the version number of the first configuration file with the version number of the second configuration file, and updating the first configuration file into the second configuration file if the version number of the second configuration file is higher than the version number of the first configuration file.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps of the first embodiment of the method, such as the steps S101 to S104 shown in fig. 1. Alternatively, the steps in the second embodiment of the method described above, for example, steps S201 to S204 shown in fig. 2, are implemented. Alternatively, the steps in the third embodiment of the method described above, for example, steps S301 to S304 shown in fig. 3, are implemented. Alternatively, the steps in the fourth embodiment of the method described above, for example, steps S401 to S404 shown in fig. 4, are implemented. The processor 60, when executing the computer program 62, implements the functions of the various modules/units in the above-described apparatus embodiments, such as the functions of the modules 51 to 54 shown in fig. 5.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the terminal device 6. For example, the computer program 62 may be divided into a first obtaining module, a second obtaining module, a comparing module and a first updating module, and each module has the following specific functions:
the first acquisition module is used for acquiring the identification information of the diagnostic equipment bound with the application program;
the second acquisition module is used for acquiring the currently configured functions of the diagnostic equipment through a server according to the acquired identification information;
the comparison module is used for comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program;
and the first updating module is used for updating the first configuration file of the application program according to the comparison result.
The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing the computer program and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for application program update, comprising:
acquiring identification information of a diagnostic device bound with the application program;
acquiring a currently configured function of the diagnostic equipment through a server according to the acquired identification information;
comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program;
and updating the first configuration file of the application program according to the comparison result.
2. The method of claim 1, wherein updating the first configuration file of the application according to the comparison comprises:
determining all configuration items to be updated and corresponding target values in the first configuration file according to the comparison result;
and respectively updating the values of all the configuration items to be updated from the current values to the target values.
3. The method of claim 2, wherein determining all the configuration items to be updated and the corresponding target values in the first configuration file according to the comparison result comprises:
if the wireless transmission function currently configured by the diagnostic equipment is in a disabled state in the application program, determining that the configuration item to be updated in the first configuration file is a switch corresponding to the wireless transmission function, and the target value corresponding to the configuration item is 1.
4. The method according to claim 1, wherein the obtaining, by a server, the currently configured function of the diagnostic device according to the obtained identification information comprises:
acquiring data acquired by the diagnostic equipment through a server according to the acquired identification information;
and determining the currently configured function of the diagnostic equipment according to the acquired data.
5. The method of claim 1, wherein updating the first configuration file of the application according to the comparison comprises:
acquiring current time information through a server;
calculating a difference value between the obtained current time information and preset time information;
and if the calculated difference is smaller than the threshold value, updating the first configuration file of the application program according to the comparison result.
6. The method of claim 1, wherein updating the first configuration file of the application according to the comparison further comprises:
acquiring the position information of the terminal where the application program is located;
and if the position of the terminal where the application program is located is in a preset target area, updating the first configuration file of the application program according to a comparison result.
7. The method of claim 1, prior to comparing the currently configured functionality of the diagnostic device to the currently configured functionality of the application, further comprising:
acquiring a first configuration file of the locally stored application program;
and determining the current configured function of the application program according to the acquired first configuration file.
8. The method according to any one of claims 1 to 7, further comprising:
acquiring a second configuration file of the application program through a server;
comparing the version number of the first configuration file with the version number of the second configuration file;
and if the version number of the second configuration file is higher than that of the first configuration file, updating the first configuration file into the second configuration file.
9. An apparatus for application update, comprising:
the first acquisition module is used for acquiring the identification information of the diagnostic equipment bound with the application program;
the second acquisition module is used for acquiring the currently configured functions of the diagnostic equipment through a server according to the acquired identification information;
the comparison module is used for comparing the currently configured function of the diagnostic equipment with the currently configured function of the application program;
and the first updating module is used for updating the first configuration file of the application program according to the comparison result.
10. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 8 when executing the computer program.
CN201910760172.1A 2019-08-16 2019-08-16 Method and device for updating application program and terminal equipment Pending CN110618826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910760172.1A CN110618826A (en) 2019-08-16 2019-08-16 Method and device for updating application program and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910760172.1A CN110618826A (en) 2019-08-16 2019-08-16 Method and device for updating application program and terminal equipment

Publications (1)

Publication Number Publication Date
CN110618826A true CN110618826A (en) 2019-12-27

Family

ID=68921195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910760172.1A Pending CN110618826A (en) 2019-08-16 2019-08-16 Method and device for updating application program and terminal equipment

Country Status (1)

Country Link
CN (1) CN110618826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151440A1 (en) * 2022-02-14 2023-08-17 支付宝(杭州)信息技术有限公司 Program update processing

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777771A (en) * 2014-01-09 2015-07-15 福特全球技术公司 Vehicle and system for updating configuration of module to support different function
CN104965721A (en) * 2014-07-10 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for updating an application
CN105893075A (en) * 2015-12-28 2016-08-24 乐视网信息技术(北京)股份有限公司 Update method and device of application
CN106850839A (en) * 2017-03-06 2017-06-13 深圳市中兴物联科技有限公司 Remote upgrade method and device
WO2017107685A1 (en) * 2015-12-25 2017-06-29 北京奇虎科技有限公司 Application program update system and method
KR20170094765A (en) * 2016-02-11 2017-08-21 현대자동차주식회사 Method and apparatus for updating software of electronic devices in a vehicle
CN108303268A (en) * 2018-01-31 2018-07-20 深圳市道通科技股份有限公司 Configuration method, device and the automotive diagnostic installation of vehicle diagnosis function
CN109358873A (en) * 2018-09-25 2019-02-19 平安普惠企业管理有限公司 A kind of application program update method, storage medium and terminal device
CN109800040A (en) * 2018-12-21 2019-05-24 深圳市元征科技股份有限公司 A kind of diagnostic program interface display method, device and vehicle diagnostic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777771A (en) * 2014-01-09 2015-07-15 福特全球技术公司 Vehicle and system for updating configuration of module to support different function
CN104965721A (en) * 2014-07-10 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for updating an application
WO2017107685A1 (en) * 2015-12-25 2017-06-29 北京奇虎科技有限公司 Application program update system and method
CN105893075A (en) * 2015-12-28 2016-08-24 乐视网信息技术(北京)股份有限公司 Update method and device of application
KR20170094765A (en) * 2016-02-11 2017-08-21 현대자동차주식회사 Method and apparatus for updating software of electronic devices in a vehicle
CN106850839A (en) * 2017-03-06 2017-06-13 深圳市中兴物联科技有限公司 Remote upgrade method and device
CN108303268A (en) * 2018-01-31 2018-07-20 深圳市道通科技股份有限公司 Configuration method, device and the automotive diagnostic installation of vehicle diagnosis function
CN109358873A (en) * 2018-09-25 2019-02-19 平安普惠企业管理有限公司 A kind of application program update method, storage medium and terminal device
CN109800040A (en) * 2018-12-21 2019-05-24 深圳市元征科技股份有限公司 A kind of diagnostic program interface display method, device and vehicle diagnostic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151440A1 (en) * 2022-02-14 2023-08-17 支付宝(杭州)信息技术有限公司 Program update processing

Similar Documents

Publication Publication Date Title
CN109814524B (en) Vehicle diagnosis method, device and system
CN109491671B (en) Diagnostic software downloading method and device, terminal equipment and storage medium
CN107066305B (en) Method and device for updating server firmware of server and server
CN110673576B (en) Automatic test method and device, vehicle and storage medium
CN104978206A (en) Method, device and system for updating vehicle body control module of vehicle
CN110244958B (en) Method and device for updating calibration data of a vehicle
CN113094087A (en) Software configuration method, electronic device and storage medium
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN112134961A (en) Client use control method, client and computer storage medium
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
CN110618826A (en) Method and device for updating application program and terminal equipment
US20180039558A1 (en) Fleet-Wide Monitoring System for Vehicles
KR102109125B1 (en) Method for managing state of ECU in vehicle based on automotive open system architecture
CN113050960A (en) OTA (over the air) upgrading method and device, vehicle-mounted terminal and storage medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN114915554B (en) Remote upgrading method, device, computer equipment and storage medium
CN116009922A (en) Vehicle, software flashing method and device for vehicle and storage medium
CN106951276B (en) Multi-controller software upgrading and address conflict detection method and device
US20220283799A1 (en) Center, update management method, and non-transitory storage medium
CN115469899A (en) Firmware upgrading method, device, equipment, medium and vehicle-mounted system
KR102064519B1 (en) Method for updating software of electronic control unit of vehicle, apparatus and system thereof
US20220222054A1 (en) Center, update management method, and non-transitory storage medium
CN116795399A (en) Management method, device, equipment and storage medium of vehicle-mounted equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227