CN110908683B - Software system upgrading method and device of hardware module, storage medium and terminal - Google Patents

Software system upgrading method and device of hardware module, storage medium and terminal Download PDF

Info

Publication number
CN110908683B
CN110908683B CN201911004904.0A CN201911004904A CN110908683B CN 110908683 B CN110908683 B CN 110908683B CN 201911004904 A CN201911004904 A CN 201911004904A CN 110908683 B CN110908683 B CN 110908683B
Authority
CN
China
Prior art keywords
software system
hardware module
identification code
upgrade
server
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.)
Active
Application number
CN201911004904.0A
Other languages
Chinese (zh)
Other versions
CN110908683A (en
Inventor
李永峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software 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 Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN201911004904.0A priority Critical patent/CN110908683B/en
Publication of CN110908683A publication Critical patent/CN110908683A/en
Application granted granted Critical
Publication of CN110908683B publication Critical patent/CN110908683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a software system upgrading method and device of a hardware module, a computer readable storage medium and a computer terminal, wherein the method comprises the following steps: receiving upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code; judging whether the identification code is matched with the identification code of the target hardware module in the terminal; if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module; if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system. The identification code carried in the prompt information sent by the server is matched with the identification code of the target hardware module in the terminal, and a new version software system is obtained from the server by utilizing a wireless network, so that the accurate online upgrading of the target hardware module is realized.

Description

Software system upgrading method and device of hardware module, storage medium and terminal
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and apparatus for upgrading a module, a computer readable storage medium, and a computer terminal.
Background
With the development of wireless communication technology, a hardware module in a terminal is more and more precise, and wireless communication in a manner such as 5G (the 5th generation mobile communication, fifth-generation mobile communication technology) or LTE (Long Term Evolution ) can be realized through the hardware module. Different hardware modules typically require corresponding software systems to implement the various functions, and since new functions or services need to be supported, the software systems of the hardware modules need to be upgraded. However, in the conventional upgrade scheme, a professional is generally required to manually upgrade the hardware modules in the terminal one by one, so that upgrade efficiency is low.
Disclosure of Invention
Based on this, it is necessary to provide a software system upgrading method, device, computer readable storage medium and computer terminal for hardware modules, which aims at the technical problem that in the conventional upgrading scheme, professional personnel are usually required to manually upgrade the hardware modules in the terminal one by one, so that the upgrading efficiency is low.
A software system upgrade method of a hardware module, comprising:
receiving upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code;
Judging whether the identification code is matched with the identification code of a target hardware module in the terminal;
if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module;
if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
A software system upgrade apparatus for a hardware module, the apparatus comprising:
the information receiving module is used for receiving the upgrade prompt information sent by the server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code;
the judging module is used for judging whether the identification code is matched with the identification code of the target hardware module in the terminal or not;
the detection module is used for detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module if the version number of the software system is matched with the version number of the software system;
and the upgrading module is used for downloading a new version software system corresponding to the software system version number from the server if the software system is in the new version, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of a software system upgrade method of a hardware module.
A computer terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of a software system upgrade method of a hardware module.
The method, the device, the computer readable storage medium and the computer terminal for upgrading the software system of the hardware module are realized by acquiring the identification code of the hardware module of the terminal; judging whether the identification code is matched with the identification information of the hardware module in the database; if so, establishing communication connection with the hardware module; the communication connection with the module is established through the identification code, so that the accurate control module is realized; acquiring a new version software system corresponding to the hardware module, and pushing the new version software system to the terminal when the version number of the new version software system is higher than the current version number of the software system installed in the hardware module so as to instruct the terminal to upgrade the software system installed in the hardware module according to the new version software system; and the software system of the hardware module is upgraded on line by utilizing the cloud, so that the module upgrading efficiency is improved.
A software system upgrade method of a hardware module, comprising:
sending an upgrading request carrying an identification code to a server through a message queue telemetry transmission protocol; the identification code is the identity identification information of the hardware module and is used for indicating the server to detect whether a preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
when receiving a new version of software system of the server responding to the upgrade request;
and upgrading the software system installed on the hardware module according to the new version software system.
A software system upgrade apparatus for a hardware module, the apparatus comprising:
the request module is used for sending an upgrading request carrying an identification code to the server through a message queue telemetry transmission protocol; the identification code is the identity identification information of the hardware module and is used for indicating the server to detect whether a preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
the receiving module is used for receiving a new version software system of the server responding to the upgrading request;
and the installation module is used for upgrading the software system installed on the hardware module according to the new version software system.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of a software system upgrade method of a hardware module.
A computer terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of a software system upgrade method of a hardware module.
The software system upgrading method, the device, the computer readable storage medium and the computer terminal of the hardware module send an upgrading request carrying an identification code to a server through a message queue telemetry transmission protocol; the identification code is the identification information of the hardware module, and when the server searches the preset configuration table that the identification code is configured, the server searches the corresponding new version software system; when the terminal receives a new version software system of the server responding to the upgrade request; and upgrading the software system installed on the hardware module according to the new version software system. The cloud online accurate upgrading of the software system of the hardware module is realized through the identification code, an upgrading server is not required to be installed by a user, and the module upgrading efficiency is improved.
Drawings
FIG. 1 is an application environment diagram of a software system upgrade method of a hardware module in one embodiment;
FIG. 2 is a flow chart of a method for upgrading a software system of a hardware module in one embodiment;
FIG. 3 is a flow chart of a method for upgrading a software system of a hardware module in one embodiment;
FIG. 4 is a flow diagram of a software system upgrade method of a hardware module in one embodiment;
FIG. 5 is a flow diagram of a software system upgrade method of a hardware module in one embodiment;
FIG. 6 is a flowchart of a software system upgrade method of a hardware module according to another embodiment;
FIG. 7 is a flowchart of a software system upgrade method of a hardware module according to another embodiment;
FIG. 8 is a flow chart of a method for upgrading a software system of a hardware module according to another embodiment;
FIG. 9 is a flowchart of a software system upgrade method of a hardware module according to another embodiment;
FIG. 10 is a block diagram of a software system upgrade apparatus of a hardware module in one embodiment;
FIG. 11 is a block diagram of a software system upgrade apparatus of a hardware module in another embodiment;
fig. 12 is a block diagram of a computer terminal in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is an application environment diagram of a software system upgrade method of a hardware module in one embodiment. Referring to fig. 1, the software system upgrade method of a hardware module is applied to a software system upgrade system of a hardware module. The software system upgrade system of the hardware module includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The terminal 110 receives the upgrade prompt message sent by the server 120; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code; judging whether the identification code is matched with the identification code of the target hardware module in the terminal; if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module; if yes, the new version software system corresponding to the software system version number is downloaded from the server 120, and the new version software system is utilized to upgrade the software system corresponding to the target hardware module.
As shown in FIG. 2, in one embodiment, a software system upgrade method for a hardware module is provided. The present embodiment is mainly exemplified by the application of the method to the server 120 in fig. 1. Referring to fig. 2, the software system upgrade method of the hardware module specifically includes the following steps:
s202, receiving upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of the hardware module corresponding to the module identification code.
In one embodiment, the hardware module receives the upgrade prompt message sent by the server through the wireless network, the upgrade prompt message carries the module identification code of the hardware module, and the module identification code is a serial number for verifying the legal identity of the hardware module, and is composed of ten numbers of 0-9 or 26 English letters singly or in a mixed mode. Each hardware module corresponds to a group of mutually different identification codes, wherein the identification codes are formed by one or a plurality of groups of sequential (such as adding an increment) codes or a plurality of groups of non-sequential codes.
In one embodiment, the identification code carries manufacturer information, customer information and product information, wherein the manufacturer information comprises a manufacturer code number; customer information includes customer codes (such as customer names), special customer or ordinary customer identifications, etc.; the product information includes product category information, date of manufacture and date of delivery, production lot, line number, etc.
Each identification code is recorded by a manufacturer of the corresponding hardware module from production to delivery, and the identification code of each hardware module, manufacturer information carried by the identification code, customer information and product information are prestored in a server database.
For example: the identification code comprises an SN code and an IMEI code, wherein the SN code is 2KJ1ASP, and the IMEI code is 355073030525545. The SN code 2KJ1ASP carries the manufacturer code 2KJ, the general customer code 1, the product class information code ASP, and the IMEI code 355073030525545 represent the production lot and the pipeline number of the hardware module.
In one embodiment, the upgrade prompt information carries a software system version number of the hardware module corresponding to the identification code of the target module, where the software system version number may be english or composed, or may be a combination of english and a number, and is generally located after the name of the software system. The software system version number comprises a main version number and a sub version number, and when the software system is subjected to local correction optimization or a new function of a department is added, the main version number is unchanged, and the sub version number is added with 1; when the software system is subjected to great modification or local modification optimization accumulation is more, and the overall software system is changed globally, the main version number is added with 1, and the sub version number is classified as 0. Wherein the initial version number of the software system may be 1.0 or 1.00.
For example: XXX.1.0 represents a software system version of 1.0, with a major version number of 1 and a minor version number of 0, for a software system name XXX; XXX.1.1 represents that the software system version of the software system with the name XXX is 1.1, wherein the main version number is 1, the sub version number is 1, and the XXX software system with the version number of 1.0 is subjected to local correction optimization or added with new functions of departments; XXX.2.0 represents that the software system version of the software system name XXX is 2.0, wherein the main version number is 2, the sub version number is 0, and the XXX software system with the version number of 1.0 is subjected to great modification or local modification, optimization and accumulation, so that the overall change of the software system is caused.
S204, judging whether the identification code is matched with the identification code of the target hardware module in the terminal.
In one embodiment, the terminal reads a module identification code carried by the upgrade prompt information, wherein the identification code comprises a module identification for distinguishing the target hardware module, an identification in a preset identification interval is selected from the module identifications, and when the identification in the preset identification interval is identical to the character number of the identification code of the target hardware module and the characters of each bit are identical, namely the identification in the preset identification interval is identical to the identification code of the target hardware module, namely the identification in the preset identification interval is a complete module identification, the module identification code carried by the upgrade prompt information is matched with the identification code of the target hardware module.
For example: the identification code of the hardware module comprises a module identification code SN code and an IMEI code, wherein the SN code of the hardware module is 2KJ1ASP, and the IMEI code is 355073030525545. When the hardware module reads that the module identification code carried by the upgrade prompt information is SN code 2KJ1ASP and IMEI code 355073030525545, the module identification code carried by the upgrade prompt information is identical to the character number and the number of digits of the identification code of the target hardware module and the characters of each digit are identical, namely the identification in the preset identification interval is a complete module identification, and at the moment, the module identification code carried by the upgrade prompt information is matched with the identification code of the target hardware module.
In one embodiment, the terminal reads a module identification code carried by the upgrade prompt message, wherein the identification code comprises a module identification for distinguishing the target hardware module, and an identification in a preset identification interval is selected from the module identifications. When the number of character bits of the mark in the preset mark interval is smaller than the number of character bits of the identification code of the target hardware module, and the mark in the preset mark interval is identical to a certain section of continuous characters in the identification code of the target hardware module, namely, the mark in the preset mark interval is a part of mark of the module mark, the module identification code carried by the upgrade prompt information is matched with the identification code of the target hardware module.
For example, the identification code of the hardware module includes a module identification code SN and an IMEI code, when the module identification code carried by the upgrade prompt information is SN 2KJ1ASP, the number of character bits of the module identification code carried by the upgrade prompt information is smaller than the number of character bits of the identification code of the target hardware module, but the module identification code carried by the upgrade prompt information is the same as the SN code in the identification code of the target hardware module, i.e. the identification code of the target hardware module is an identification in a preset identification interval in the module identification, and at this time, the module identification code carried by the upgrade prompt information is matched with the identification code of the target hardware module.
And S206, if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module.
In one embodiment, the major version number of the software system is compared with the major version number of the software system corresponding to the target hardware module, and when the major version number of the software system is greater than the major version number of the software system corresponding to the target hardware module, the software system version number is greater than the version number of the software system corresponding to the target hardware module. When the main version number of the software system is the same as the main version number of the software system corresponding to the target hardware module, the sub-version number of the software system is compared with the sub-version number of the software system corresponding to the target hardware module, and when the sub-version number of the software system is larger than the sub-version number of the software system corresponding to the target hardware module, the software system version number is higher than the version number of the software system corresponding to the target hardware module.
For example, XXX.2.0 represents a software system version of 2.0 for software system name XXX, with a major version number of 2; XXX.1.0 represents a software system version of 1.0 with a software system name XXX, wherein the major version number is 1 and XXX.2.0 represents a software system with a version number higher than that of XXX.1.0. XXX.2.2 represents a software system version of 2.0, with a major version number of 2 and a minor version number of 2, for a software system name XXX; XXX.2.1 represents a software system version of 2.0, wherein the main version number is 2, the sub version number is 1, and XXX.2.2 represents a software system with a version number higher than XXX.2.1, which represents a software system version number.
And S208, if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
In one embodiment, when the version number of the new version software system is higher than the version number of the software system corresponding to the target hardware module, the terminal sends a request for downloading the new version software system corresponding to the version number of the software system to the server. After obtaining the response agreed by the server, accessing the server database, and obtaining a software installation package of the new version software system in the database, wherein the software installation package is a set of files capable of being decompressed by itself, and comprises all files installed by the new version software system.
In one embodiment, after obtaining a software installation package of a new version of a software system in a database, the terminal prepares a software system upgrading environment, including detecting whether an installation space of the software installation package, an information backup environment, an environment parameter configuration, a communication configuration, a terminal electric quantity and the like meet the requirements of the software system upgrading environment. If the requirement of the upgrading environment meets the requirement, downloading a new version software system installation package from a server, and downloading the software installation package to a corresponding installation position of the hardware module through a wireless communication network. And decompressing and releasing all files in the software installation package into the hardware module, and performing the work of modifying a registry, modifying system settings, initializing data of a database, creating a shortcut and the like to finish the upgrading of the software system corresponding to the target hardware module.
According to the software system upgrading method of the hardware module, the hardware module receives the upgrading prompt information which is sent by the server and carries the module identification code and the software system version number of the hardware module corresponding to the module identification code, when the identification code is matched with the identification code of the target hardware module in the terminal, whether the software system version number is higher than the version number of the software system corresponding to the target hardware module is detected, if yes, the corresponding new version software system is downloaded from the server, and the software system corresponding to the target hardware module is upgraded. The identification code carried in the prompt information sent by the server is matched with the identification code of the target hardware module in the terminal, and a new version software system is obtained from the server by utilizing a wireless network, so that the accurate online upgrading of the target hardware module is realized.
As shown in fig. 3, in one embodiment, S204 includes the following specifically:
s302, receiving an input configuration instruction.
In one embodiment, a target hardware module in the terminal receives a configuration instruction, where the configuration instruction carries an upgrade requirement about a software system corresponding to the target hardware module, including a new version pushing frequency requirement, whether to allow the upgrade, and the like.
For example, according to a configuration instruction generated by a user requirement, pushing a software system corresponding to a target hardware module every half month whether a new version of the software system exists; the software system corresponding to the target hardware module is not allowed to be upgraded; the prompting is only carried out when the software system main version number corresponding to the target hardware module is updated.
S304, according to the configuration instruction, a subscription message for upgrading the software system of the target hardware module is generated.
In one embodiment, the subscription message carries the target hardware module identification code and software system upgrade configuration information for the corresponding hardware module. If the configuration instruction pushes the new version frequency requirement, generating software system upgrading configuration information corresponding to the new version frequency requirement pushing instruction; if the configuration instruction is whether to allow upgrading, generating software system upgrading configuration information corresponding to whether to detect software system version updating and push subscription information. For example, the configuration instruction is whether the software system corresponding to the target hardware module has a new version software system pushed once every half month, if so, a subscription message carrying the identification code of the target hardware module and the "found new version software system" or the "not found new version software system" is generated, wherein the sending frequency of the subscription message is once a half month. And when the configuration instruction does not allow software upgrading, generating a subscription message which does not detect whether the software system corresponding to the target hardware module has a new version of the software system or not and does not generate prompt information. The configuration instruction is to generate a subscription message for pushing prompt information when the main version number of the software system is updated only when the main version number of the software system corresponding to the target hardware module is updated for prompt.
S306, sending the subscription message to a server; the sent subscription information is used for indicating the server to update the upgrade configuration information so as to send upgrade prompt information to the terminal according to the upgrade configuration information.
In one embodiment, a target hardware module in a terminal sends a subscription message carrying a target hardware module identification code and software system upgrade configuration information of a corresponding hardware module to a server, instructs the server to extract the target hardware module identification code carried by the subscription message, searches a server database for target hardware module information corresponding to the prestored identification code, instructs the server to update the software system upgrade configuration information of the corresponding hardware module to the corresponding target hardware module information, and instructs the server to send upgrade prompt information to the target hardware module in the terminal according to the upgrade configuration information.
For example, the subscription message is whether the new version software system exists in the software system corresponding to the target hardware module pushed once every half month for the a software system corresponding to the hardware module with the identification code of 2KJ1ASP, if so, the subscription message carrying the identification code of the target hardware module and the "found new version software system" or the "not found new version software system" is generated, and the frequency of sending the subscription message to the target hardware module in the terminal by the server is indicated to be once a half month.
In the above embodiment, the configuration instruction generates the subscription message for upgrading the software system of the target hardware module, instructs the server to update the upgrade configuration information, and sends the upgrade prompt information to the terminal according to the upgrade configuration information. The upgrade configuration information is preset to indicate the server to send upgrade prompt information to the terminal, so that customized pushing of the upgrade prompt information of the software system is realized, and the prompt information is prevented from being too frequent or missing the upgrade of the software system.
As shown in fig. 4, in one embodiment, S204 specifically further includes the following:
s402, when a target hardware module in the terminal is started for the first time, the identification code of the target hardware module is obtained.
In one embodiment, when a target hardware module in the terminal is started for the first time, the terminal obtains the right of accessing the target hardware module through the module manager, and searches the identity information of the target hardware module to obtain the identification code of the hardware module. Wherein the module manager pre-stores the identification code of the target hardware module.
S404, the acquired identification code is sent to a server to store the identification code in the server, wherein the identification code comprises a module identifier for distinguishing a target hardware module, or an identifier in a preset identifier interval is selected from the module identifiers.
In one embodiment, a remote communication module in the terminal sends a communication connection request to a remote communication module in the server, and after receiving a signal carrying a response communication connection request sent by the remote communication module in the server, the remote communication module in the terminal is connected with the remote communication module in the server through a wireless network, and the terminal sends the acquired identification code to the server through the wireless network to instruct the server to store the identification code in a database.
In one embodiment, the identifier in the preset identifier interval is selected from the module identifiers, and when the identifier in the preset identifier interval is the same as the number of the characters of the identification code of the target hardware module and the characters of each bit are the same, i.e. the identifier in the preset identifier interval is the same as the identification code of the target hardware module, i.e. the identifier in the preset identifier interval is the complete module identifier. When the number of character bits of the mark in the preset mark interval is smaller than the number of character bits of the identification code of the target hardware module, and the mark in the preset mark interval is identical to a certain section of continuous characters in the identification code of the target hardware module, namely, the mark in the preset mark interval is part of the mark of the module mark
In the above embodiment, the obtained identification code of the hardware module is sent to the server to instruct the server to store the identification code, so that the upgrade prompt information sent by the server can carry the identification code when the software system corresponding to the target hardware module is upgraded each time, thereby being convenient for matching with the identification code of the target hardware module in the terminal and realizing accurate control of the upgrade of the hardware module.
As shown in fig. 5, in one embodiment, S208 specifically further includes the following:
s502, obtaining upgrade result information of upgrading a software system installed on a target hardware module; the upgrade result information includes a version number of the new version software system and information of success or failure of the upgrade.
In one embodiment, after the terminal upgrades the software system corresponding to the target hardware module by using the new version software system, upgrade result information is obtained, and when the upgrade is successful, the upgrade result information includes a version number of the new version software system and upgrade success information, for example, "xxx.1.0 has been upgraded to xxx.2.0". When the upgrade fails, the upgrade result information includes the version number of the new version software system, the upgrade failure information, the failure reason and recommended measures, such as "upgrade xxx.2.0 due to insufficient storage space, please clean the terminal storage space and then upgrade again".
S504, displaying the upgrade result information in a prompt box form.
S506, the upgrade result information is sent to the server.
In one embodiment, the terminal sends upgrade result information to the server, and if the upgrade result information is that the upgrade is successful, the server is instructed to update the software system version number corresponding to the identification code of the target hardware module stored in the database to the new version software system version number.
In one embodiment, the terminal sends upgrade result information to the server, and if the upgrade result information is upgrade failure, the server is instructed to upgrade the software system corresponding to the target hardware module again later according to the instruction.
According to the software system upgrading method of the hardware module, the terminal sends the upgrading result information to the server, and the server is instructed to update the software system version number corresponding to the identification code of the target hardware module stored in the database to the new version software system version number, so that information backup is realized, and information inquiry of the later-stage hardware module is convenient and accurate.
As shown in fig. 6, in one embodiment, a method for upgrading a software system of a hardware module is provided, which is applied to the terminal 110 shown in fig. 1 for illustration, and specifically includes:
S602, sending an upgrade request carrying an identification code to a server through a message queue telemetry transmission protocol; the identification code is the identification information of the hardware module and is used for indicating the server to detect whether the preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
in one embodiment, when a problem occurs in the hardware module function of the terminal, the terminal sends an identification code upgrading request carrying the target hardware module to the server through a message queue telemetry transmission protocol. Wherein the identification code of the target hardware module is pre-stored in the module manager of the terminal. The upgrade request carries the target module identification code and the software system version number of the hardware module,
in one embodiment, the terminal instructs the server to detect whether the preset configuration table is configured with an identification code according to the upgrade request, where the identification code of the target hardware module is sent to the server in advance through the wireless network, and instructs the server to store the identification code in the database. The terminal generates a subscription message for upgrading the software system of the target hardware module in advance according to the configuration instruction, and sends the subscription message to the server to instruct the server to update the software system upgrading configuration information of the hardware module corresponding to the identification code to generate a preset configuration table, and detects whether the software system of the target hardware module corresponding to the identification code of the target module carried by the upgrading request meets the upgrading condition according to the preset configuration table.
For example, by detecting the preset configuration table, if it is detected that the software system of the target hardware module corresponding to the target module identification code carried by the upgrade request is configured to allow upgrade, the instruction server searches for the corresponding new version software system according to the identification code. And detecting that the software system of the target hardware module corresponding to the target module identification code carried by the upgrading request is configured to not allow upgrading through detecting the preset configuration table, and generating prompt information which cannot be upgraded.
S604, when a new version software system of a server responding to an upgrade request is received; and upgrading the software system installed on the hardware module according to the new version software system.
In one embodiment, the terminal instructs the server to search for a software system with a version number higher than the version number of the software system corresponding to the target hardware module, and the searched software system is a new version system. And when receiving response information of the corresponding new version software system which is found by the server according to the identification code, sending a request for downloading the new version software system corresponding to the software system version number to the server. After obtaining the response agreed by the server, accessing the server database, and obtaining a software installation package of the new version software system in the database, wherein the software installation package is a set of files capable of being decompressed by itself, and comprises all files installed by the new version software system.
In one embodiment, after obtaining a software installation package of a new version of a software system in a database, the terminal prepares a software system upgrading environment, including detecting whether an installation space of the software installation package, an information backup environment, an environment parameter configuration, a communication configuration, a terminal electric quantity and the like meet the requirements of the software system upgrading environment. If the requirement of the upgrading environment meets the requirement, downloading a new version software system installation package from a server, and downloading the software installation package to a corresponding installation position of the hardware module through a wireless communication network. And decompressing and releasing all files in the software installation package into the hardware module, and performing the work of modifying a registry, modifying system settings, initializing data of a database, creating a shortcut and the like to finish the upgrading of the software system corresponding to the target hardware module.
In one embodiment, a terminal obtains upgrade result information for upgrading a software system installed in a target hardware module; the upgrade result information includes a version number of the new version software system and information of success or failure of the upgrade. And the terminal sends upgrade result information to the server, and if the upgrade result information is that the upgrade is successful, the server is instructed to update the software system version number corresponding to the identification code of the target hardware module stored in the database into a new version software system version number. If the upgrade result information is that the upgrade fails, the instruction server performs the step of upgrading the software system corresponding to the target hardware module again later according to the instruction.
According to the software system upgrading method of the hardware module, the terminal sends an upgrading request carrying the identification code to the server; the server is instructed to detect whether the preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code; and when receiving a new version software system of the server responding to the upgrading request, upgrading the software system installed on the hardware module according to the new version software system. The terminal actively transmits an upgrade request to the server, and instructs the server to upgrade the software system of the hardware module corresponding to the identification code according to the identification code of the hardware module, so that the hardware module can be upgraded timely and accurately.
As an example, regarding the technical problem of low upgrade efficiency caused by requiring a professional to manually upgrade the hardware modules in the terminal one by one, the embodiment of the present invention proposes a software system upgrade method of the hardware modules, as shown in fig. 7, which mainly includes the following steps:
the hardware module receives the upgrade prompt information
The hardware module in the terminal equipment receives the upgrade prompt information sent by the server through the message queue telemetry transmission protocol. The server is built according to the needs of the manufacturer who manufactures the hardware module or the user who uses the hardware module, for example, the corresponding server can be built in each country according to the geographical area, as shown in fig. 8, if the server is provided by the manufacturer who produces the corresponding hardware module, the manufacturer is responsible for building the information of the user and the used hardware module in the server database according to the needs of the user, and is responsible for statistically recording and maintaining the identification code of the hardware module. If the server is built by the user, the user stores the information of the used hardware module into the server database by himself, and the server interacts with the hardware module through a wireless network sent by the communication base station.
The upgrade prompt information carries a target module identification code and a software system version number of the hardware module, the identification code is a serial number which can uniquely identify the legal identity of the hardware module, and the identification code carries information such as manufacturer information, customer information, product information and the like. Each identification code is statistically recorded and maintained by the manufacturer of the corresponding hardware module from production to delivery. The identification code of each hardware module, manufacturer information, customer information and product information carried by the identification code are prestored in a server database, and software system version numbers corresponding to the hardware modules can be counted through the server, and the information of the hardware modules is updated regularly.
And secondly, detecting whether the module identification number carried by the upgrade prompt information is matched with the identification code of the target hardware module.
The terminal reads the module identification code carried by the upgrade prompt information, and the module identification code can be the identification code of the complete character digit, or the identification code of the character digit accurate to a certain interval. The unique hardware module can be determined through the identification code of the complete character bit number, and the module identification code in the corresponding interval range is determined through the identification code of the character bit number accurate to a certain interval.
For example, the hardware module has an identification code of 7-bit characters, such as 2KJ1ASP, the first three characters are the manufacturer code of 2KJ, the fourth character is the customer code of 1, and the last three characters are the product category information codes ASP. The terminal reads that the module identification code carried by the upgrade prompt information is 2KJ1ASP, the identification code is a 7-bit character string, the 2KJ1ASP is the identification code of the complete character bit, the hardware module determined by the identification code of the complete character bit is unique, and the hardware module identification code is found to be 2KJ1ASP. The module identification number 2KJ1ASP carried by the upgrade prompt information is matched with the identification code 2KJ1ASP of the target hardware module.
The terminal reads that the module identification code carried by the upgrade prompt information is 2KJ, the identification code is 3 bits, the manufacturer code number corresponds to the identification code, the 2KJ is the identification code with the character bit number accurate to a certain interval, all hardware modules produced by manufacturers with the manufacturer code number of 2KJ are determined, and the module identification number 2KJ carried by the upgrade prompt information is matched with the identification code 2KJ1ASP of the target hardware module.
If so, detecting whether the version number of the software system carried by the upgrade prompt information is higher than the version number of the software system corresponding to the target hardware module
The terminal compares the main version number of the software system carried by the upgrade prompt information with the main version number of the software system corresponding to the target hardware module, and when the main version number of the software system is larger than the main version number of the software system corresponding to the target hardware module, the version number of the software system is higher than the version number of the software system corresponding to the target hardware module. When the main version number of the software system is the same as the main version number of the software system corresponding to the target hardware module, the sub-version number of the software system is compared with the sub-version number of the software system corresponding to the target hardware module, and when the sub-version number of the software system is larger than the sub-version number of the software system corresponding to the target hardware module, the software system version number is higher than the version number of the software system corresponding to the target hardware module.
For example, XXX.2.0 represents a software system version of 2.0 for software system name XXX, with a major version number of 2; XXX.1.0 represents a software system version of 1.0 with a software system name XXX, wherein the major version number is 1 and XXX.2.0 represents a software system with a version number higher than that of XXX.1.0. XXX.2.2 represents a software system version of 2.0, with a major version number of 2 and a minor version number of 2, for a software system name XXX; XXX.2.1 represents a software system version of 2.0, wherein the main version number is 2, the sub version number is 1, and XXX.2.2 represents a software system with a version number higher than XXX.2.1, which represents a software system version number.
And (IV) if yes, requesting to establish communication connection with the server, downloading a new version software system with a new version corresponding to the version number of the software system, and finishing upgrading
When the version number of the new version software system is higher than the version number of the software system corresponding to the target hardware module, the terminal sends a request for downloading the new version software system corresponding to the version number of the software system to the server by using a space downloading Technology (OTA), accesses the server database after obtaining a response agreed by the server, and obtains a software installation package of the new version software system in the database, wherein the software installation package is a set of files capable of being decompressed by itself, and comprises all files installed by the new version software system. After the terminal obtains the software installation package of the new version software system in the database, preparing a software system upgrading environment, including detecting whether the installation space of the software installation package, the information backup environment, the environment parameter configuration, the communication configuration, the terminal electric quantity and the like meet the requirements of the software system upgrading environment. If the requirement of the upgrading environment meets the requirement, downloading a new version software system installation package from a server, and downloading the software installation package to a corresponding installation position of the hardware module through a wireless communication network. And decompressing and releasing all files in the software installation package into the hardware module, and performing the work of modifying a registry, modifying system settings, initializing data of a database, creating a shortcut and the like to finish the upgrading of the software system corresponding to the target hardware module.
And fifthly, sending upgrade result information to the server.
And the terminal sends upgrade result information to the server, and if the upgrade result information is that the upgrade is successful, the server is instructed to update the software system version number corresponding to the identification code of the target hardware module stored in the database into a new version software system version number. And the terminal sends upgrade result information to the server, and if the upgrade result information is upgrade failure, the terminal instructs the server to upgrade the software system corresponding to the target hardware module again later according to the instruction.
In the above example, by matching the identification code carried in the prompt message sent by the server with the identification code of the target hardware module in the terminal and obtaining the new version software system from the server by using the space downloading technology, the accurate online upgrade of the software system of the target hardware module is realized, and the problem that the user cannot upgrade the software system of the hardware module without a specific upgrade server is solved.
As an example, regarding the technical problem of low upgrade efficiency caused by requiring a professional to manually upgrade the hardware modules in the terminal one by one, the embodiment of the present invention proposes a software system upgrade method of the hardware modules, as shown in fig. 9, which mainly includes the following steps:
The hardware module sends an upgrade request to the server,
when the hardware module function of the terminal is in question, the terminal sends an identification code upgrading request carrying the target hardware module to the server through an MQTT (Message Queuing Telemetry Transport, message queue telemetry transport) protocol. Wherein the identification code of the target hardware module is pre-stored in the module manager of the terminal. The upgrade request carries the identification code of the target module and the corresponding software system version number.
And (II) the terminal instructs the server to detect whether the preset configuration table is configured with the identification code, if so, the server is instructed to search the corresponding new version software system according to the identification code
The terminal instructs the server to detect whether the preset configuration table is configured with the identification code according to the upgrading request, wherein the identification code of the target hardware module is sent to the server in advance through the wireless network, and instructs the server to store the identification code in the database in advance. The terminal generates a subscription message for upgrading the software system of the target hardware module in advance according to the configuration instruction, and sends the subscription message to the server to instruct the server to update the software system upgrading configuration information of the hardware module corresponding to the identification code to generate a preset configuration table, and detects whether the software system of the target hardware module corresponding to the identification code of the target module carried by the upgrading request meets the upgrading condition according to the preset configuration table.
For example, by detecting the preset configuration table, if it is detected that the software system of the target hardware module corresponding to the target module identification code carried by the upgrade request is configured to allow upgrade, the instruction server searches for the corresponding new version software system according to the identification code. And detecting that the software system of the target hardware module corresponding to the target module identification code carried by the upgrading request is configured to not allow upgrading through detecting the preset configuration table, and generating prompt information which cannot be upgraded.
(III) when receiving a new version of the software system of the server responding to the upgrade request; upgrading the software system installed on the hardware module according to the new version software system, and feeding back upgrading information to the server
The terminal instructs the server to search the software system with the version number higher than that of the software system corresponding to the target hardware module, and the searched software system is a new version system. And when receiving response information of the corresponding new version software system which is found by the server according to the identification code, sending a request for downloading the new version software system corresponding to the software system version number to the server. After obtaining the response agreed by the server, accessing the server database, and obtaining a software installation package of the new version software system in the database, wherein the software installation package is a set of files capable of being decompressed by itself, and comprises all files installed by the new version software system.
After the terminal obtains the software installation package of the new version software system in the database, preparing a software system upgrading environment, including detecting whether the installation space of the software installation package, the information backup environment, the environment parameter configuration, the communication configuration, the terminal electric quantity and the like meet the requirements of the software system upgrading environment. If the requirement of the upgrading environment meets the requirement, downloading a new version software system installation package from a server, and downloading the software installation package to a corresponding installation position of the hardware module through a wireless communication network. And decompressing and releasing all files in the software installation package into the hardware module, and performing the work of modifying a registry, modifying system settings, initializing data of a database, creating a shortcut and the like to finish the upgrading of the software system corresponding to the target hardware module.
The terminal acquires upgrade result information for upgrading a software system installed on a target hardware module; the upgrade result information includes a version number of the new version software system and information of success or failure of the upgrade. And the terminal sends upgrade result information to the server, and if the upgrade result information is that the upgrade is successful, the server is instructed to update the software system version number corresponding to the identification code of the target hardware module stored in the database into a new version software system version number. If the upgrade result information is that the upgrade fails, the instruction server performs the step of upgrading the software system corresponding to the target hardware module again later according to the instruction.
In the above example, the server is actively requested by the terminal to send a new version software system of the hardware module corresponding to the identification code, and the software system is updated online by using a space downloading technology, so that the software system of the target hardware module is updated online accurately, and the updating efficiency of the hardware module is improved.
Fig. 2-9 are flow diagrams of a software system upgrade method of a hardware module in one embodiment. It should be understood that, although the steps in the flowcharts of fig. 2-9 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-9 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
A software system upgrade device of a hardware module specifically includes: a receiving information module 1002, a judging module 1004, a detecting module 1006, and an upgrading module 1008, wherein:
a receiving information module 1002, configured to receive upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code;
a judging module 1004, configured to judge whether the identification code is matched with the identification code of the target hardware module in the terminal;
the detection module 1006 is configured to detect whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module if the version number of the software system is matched;
and the upgrade module 1008 is configured to download a new version of the software system corresponding to the software system version number from the server if yes, and upgrade the software system corresponding to the target hardware module by using the new version of the software system.
According to the software system upgrading method of the hardware module, the hardware module receives the upgrading prompt information which is sent by the server and carries the module identification code and the software system version number of the hardware module corresponding to the module identification code, when the identification code is matched with the identification code of the target hardware module in the terminal, whether the software system version number is higher than the version number of the software system corresponding to the target hardware module is detected, if yes, the corresponding new version software system is downloaded from the server, and the software system corresponding to the target hardware module is upgraded. The identification code carried in the prompt information sent by the server is matched with the identification code of the target hardware module in the terminal, and a new version software system is obtained from the server by utilizing a wireless network, so that the accurate online upgrading of the target hardware module is realized.
A software system upgrade device of a hardware module specifically includes: a request module 1102, a receive module 1104, an install module 1106, wherein:
a request module 1102, configured to send an upgrade request carrying an identification code to a server through a message queue telemetry transport protocol; the identification code is the identification information of the hardware module and is used for indicating the server to detect whether the preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
a receiving module 1104, configured to, when receiving a new version of the software system from the server in response to the upgrade request;
and the installation module 1106 is used for upgrading the software system installed on the hardware module according to the new version of the software system.
FIG. 12 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be specifically the terminal 110 of fig. 1. As shown in fig. 7, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement a vehicle assessment method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform a vehicle assessment method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 12 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the software system upgrade apparatus of a hardware module provided by the present application may be implemented in the form of a computer program, which may be run on a computer terminal as shown in fig. 12. The memory of the computer terminal may store therein various program modules of the software system upgrade apparatus constituting the hardware module, such as a reception information module 1002, a judgment module 1004, a detection module 1006, and an upgrade module 1008 shown in fig. 10. The computer program constituted by the respective program modules causes the processor to execute the steps in the software system upgrade method of the hardware module of the respective embodiments of the present application described in the present specification.
For example, the computer terminal shown in fig. 12 may execute step S202 through the reception information module 1002, execute step S204 through the judgment module 1004, execute step S204 through the detection module 1006, and execute step S208 through the upgrade module 1008 in the software system upgrade apparatus of the hardware module shown in fig. 10.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: receiving upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code; judging whether the identification code is matched with the identification code of the target hardware module in the terminal; if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module; if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: receiving an input configuration instruction; generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction; sending the subscription message to a server; the sent subscription information is used for indicating the server to update the upgrade configuration information so as to send upgrade prompt information to the terminal according to the upgrade configuration information.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: when a target hardware module in a terminal is started for the first time, acquiring an identification code of the target hardware module; transmitting the acquired identification code to a server to store the identification code in the server; the identification code comprises a module identification for distinguishing the target hardware module, or an identification in a preset identification interval is selected from the module identifications.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: obtaining upgrade result information for upgrading a software system installed on a target hardware module; the upgrade result information comprises the version number of the new version software system and the upgrade success or failure information; displaying the upgrade result information in the form of a prompt box; and sending the upgrade result information to the server.
In one embodiment, the software system upgrade apparatus of a hardware module provided by the present application may be implemented in the form of a computer program, which may be run on a computer terminal as shown in fig. 12. The memory of the computer terminal may store therein various program modules of the software system upgrade apparatus constituting the hardware module, such as the request module 1102, the receive module 1104, and the install module 1106 shown in fig. 11. The computer program constituted by the respective program modules causes the processor to execute the steps in the software system upgrade method of the hardware module of the respective embodiments of the present application described in the present specification.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: sending an upgrading request carrying an identification code to a server through a message queue telemetry transmission protocol; the identification code is the identification information of the hardware module and is used for indicating the server to detect whether the preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code; when a new version software system of a server responding to an upgrade request is received; and upgrading the software system installed on the hardware module according to the new version software system.
In one embodiment, a computer terminal is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform: obtaining upgrade result information for upgrading a software system installed on a target hardware module; the upgrade result information comprises the version number of the new version software system and the upgrade success or failure information; displaying the upgrade result information in the form of a prompt box; and sending the upgrade result information to the server.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform: receiving upgrade prompt information sent by a server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code; judging whether the identification code is matched with the identification code of the target hardware module in the terminal; if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module; if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform: receiving an input configuration instruction; generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction; sending the subscription message to a server; the sent subscription information is used for indicating the server to update the upgrade configuration information so as to send upgrade prompt information to the terminal according to the upgrade configuration information.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform: when a target hardware module in a terminal is started for the first time, acquiring an identification code of the target hardware module; transmitting the acquired identification code to a server to store the identification code in the server; the identification code comprises a module identification for distinguishing the target hardware module, or an identification in a preset identification interval is selected from the module identifications.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform: obtaining upgrade result information for upgrading a software system installed on a target hardware module; the upgrade result information comprises the version number of the new version software system and the upgrade success or failure information; displaying the upgrade result information in the form of a prompt box; and sending the upgrade result information to the server.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to further perform: sending an upgrading request carrying an identification code to a server through a message queue telemetry transmission protocol; the identification code is the identification information of the hardware module and is used for indicating the server to detect whether the preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code; when a new version software system of a server responding to an upgrade request is received; and upgrading the software system installed on the hardware module according to the new version software system.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to further perform: obtaining upgrade result information for upgrading a software system installed on a target hardware module; the upgrade result information comprises the version number of the new version software system and the upgrade success or failure information; displaying the upgrade result information in the form of a prompt box; and sending the upgrade result information to the server.
Those skilled in the art will appreciate that the processes implementing all or part of the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a non-volatile computer readable storage medium, and the program may include the processes of the embodiments of the methods as above when executed. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A software system upgrade method of a hardware module, comprising:
receiving an input configuration instruction; the configuration instruction carries the upgrading requirement of the software system corresponding to the target hardware module, including the requirement of pushing a new version frequency and whether upgrading is allowed or not;
generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction;
Sending the subscription message to a server; the sent subscription information is used for indicating the server to update the upgrade configuration information so as to send upgrade prompt information to the terminal according to the upgrade configuration information;
receiving upgrade prompt information sent by the server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code; the module identification code is a serial number for verifying the legal identity of the hardware module;
judging whether the identification code is matched with the identification code of a target hardware module in the terminal;
if so, detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module;
if yes, downloading a new version software system corresponding to the software system version number from the server, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system.
2. The method of claim 1, wherein the identification code includes a module identification for distinguishing a target hardware module; the judging whether the identification code is matched with the identification code of the target hardware module in the terminal comprises the following steps:
Selecting a mark in a preset mark interval from the module marks;
and when the number of character bits of the identifier in the preset identifier interval is smaller than the number of character bits of the identifier of the target hardware module, and the identifier in the preset identifier interval is identical to part of identifiers in the identifier of the target hardware module, determining that the identifier is matched with the identifier of the target hardware module in the terminal.
3. The method of claim 1, wherein prior to receiving the upgrade prompt sent by the server, the method further comprises:
when a target hardware module in the terminal is started for the first time, acquiring an identification code of the target hardware module;
transmitting the acquired identification code to the server to store the identification code in the server;
the identification code comprises a module identification for distinguishing the target hardware module, or an identification in a preset identification interval is selected from the module identifications.
4. A method according to any one of claims 1 to 3, characterized in that the method comprises:
obtaining upgrade result information for upgrading a software system installed on the target hardware module; the upgrade result information comprises a version number of the new version software system and information of success or failure of upgrade;
Displaying the upgrade result information in a prompt box form;
and sending the upgrade result information to the server.
5. A software system upgrade method of a hardware module, comprising:
generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction;
sending the subscription message to a server; the sent subscription message is used for indicating the server to update the software system upgrading configuration information of the hardware module corresponding to the identification code to generate a preset configuration table;
sending an upgrading request carrying an identification code to the server through a message queue telemetry transmission protocol; the identification code is the identity identification information of the hardware module and is used for indicating the server to detect whether a preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
when receiving a new version of software system of the server responding to the upgrade request;
and upgrading the software system installed on the hardware module according to the new version software system.
6. The method of claim 5, wherein after the software system installed in the hardware module is upgraded according to the new version of the software system, the method further comprises:
Obtaining upgrade result information for upgrading a software system installed on the target hardware module; the upgrade result information comprises a version number of the version software system and information of success or failure of upgrade;
displaying the upgrade result information in a prompt box form;
and sending the upgrade result information to the server.
7. A software system upgrade apparatus for a hardware module, the apparatus comprising:
the information receiving module is used for receiving the upgrade prompt information sent by the server; the upgrade prompt information carries a module identification code and a software system version number of a hardware module corresponding to the module identification code;
the judging module is used for judging whether the identification code is matched with the identification code of the target hardware module in the terminal or not;
the detection module is used for detecting whether the version number of the software system is higher than the version number of the software system corresponding to the target hardware module if the version number of the software system is matched with the version number of the software system;
the upgrading module is used for downloading a new version software system corresponding to the software system version number from the server if yes, and upgrading the software system corresponding to the target hardware module by utilizing the new version software system;
The device is also for: receiving an input configuration instruction; the configuration instruction carries the upgrading requirement of the software system corresponding to the target hardware module, including the requirement of pushing a new version frequency and whether upgrading is allowed or not; generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction; sending the subscription message to a server; the sent subscription information is used for indicating the server to update the upgrade configuration information so as to send the upgrade prompt information to the terminal according to the upgrade configuration information.
8. A software system upgrade apparatus for a hardware module, the apparatus comprising:
the request module is used for sending an upgrading request carrying an identification code to the server through a message queue telemetry transmission protocol; the identification code is the identity identification information of the hardware module and is used for indicating the server to detect whether a preset configuration table is configured with the identification code or not, if yes, the corresponding new version software system is searched according to the identification code;
the receiving module is used for receiving a new version software system of the server responding to the upgrading request;
the installation module is used for upgrading the software system installed on the hardware module according to the new version software system;
The device is also for: generating a subscription message for upgrading the software system of the target hardware module according to the configuration instruction; sending the subscription message to a server; the sent subscription message is used for indicating the server to update the software system upgrading configuration information of the hardware module corresponding to the identification code to generate a preset configuration table.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
10. A computer terminal comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 6.
CN201911004904.0A 2019-10-22 2019-10-22 Software system upgrading method and device of hardware module, storage medium and terminal Active CN110908683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911004904.0A CN110908683B (en) 2019-10-22 2019-10-22 Software system upgrading method and device of hardware module, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911004904.0A CN110908683B (en) 2019-10-22 2019-10-22 Software system upgrading method and device of hardware module, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110908683A CN110908683A (en) 2020-03-24
CN110908683B true CN110908683B (en) 2023-11-03

Family

ID=69814790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911004904.0A Active CN110908683B (en) 2019-10-22 2019-10-22 Software system upgrading method and device of hardware module, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110908683B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880823B (en) * 2020-07-17 2024-01-30 合肥移瑞通信技术有限公司 Method, system and medium for upgrading communication module by system and computer equipment
CN113973108B (en) * 2020-07-24 2023-08-01 成都鼎桥通信技术有限公司 Dual-system terminal online upgrading method, device and equipment
CN112052031B (en) * 2020-08-26 2023-03-14 烽火通信科技股份有限公司 Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card
CN112291323B (en) * 2020-10-22 2023-05-05 上海电科智能系统股份有限公司 Singlechip firmware upgrading communication method based on MQTT communication protocol
CN112162764A (en) * 2020-10-30 2021-01-01 海信视像科技股份有限公司 Display device, server and camera software upgrading method
CN112492337B (en) * 2020-11-26 2023-05-23 北京达佳互联信息技术有限公司 Communication method, communication device, server and storage medium
CN112540783B (en) * 2020-12-18 2024-05-24 航天信息软件技术有限公司 Client upgrading method and device, storage medium and electronic equipment
CN112783530A (en) * 2021-01-26 2021-05-11 广东盈科电子有限公司 Software upgrading method and control device for intelligent shoe cabinet control device
CN112835616A (en) * 2021-02-26 2021-05-25 百度在线网络技术(北京)有限公司 Version upgrading method and device, electronic equipment and storage medium
CN112925545A (en) * 2021-03-01 2021-06-08 青岛海信移动通信技术股份有限公司 Mobile terminal and application updating method thereof
CN113094064A (en) * 2021-03-03 2021-07-09 深圳市晨北科技有限公司 Gateway software module upgrading method, device, equipment and storage medium
CN113259161B (en) * 2021-05-11 2024-03-19 商汤国际私人有限公司 Application management method and device, electronic equipment and storage medium
CN116560698B (en) * 2023-07-06 2024-03-08 浙江春风动力股份有限公司 Online automatic brushing method for flexible intelligent production line of motorcycle

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
WO2013185570A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Software update method, software update system and computer storage medium
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗系统有限公司 Data processing method, server and client
CN106657233A (en) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 Method and system for upgrading display firmware
CN107291457A (en) * 2017-06-08 2017-10-24 重庆长安汽车股份有限公司 The long-range renewal computing system and method for entire car controller software
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN107608687A (en) * 2016-07-11 2018-01-19 中兴通讯股份有限公司 A kind of difference upgrade method, mobile terminal, server and system
CN207067971U (en) * 2017-04-17 2018-03-02 宝沃汽车(中国)有限公司 A kind of vehicle electrically controlling unit software upgrade equipment and vehicle
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10216510B2 (en) * 2016-06-04 2019-02-26 Airwatch Llc Silent upgrade of software with dependencies

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
WO2013185570A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Software update method, software update system and computer storage medium
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗系统有限公司 Data processing method, server and client
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN107608687A (en) * 2016-07-11 2018-01-19 中兴通讯股份有限公司 A kind of difference upgrade method, mobile terminal, server and system
CN106657233A (en) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 Method and system for upgrading display firmware
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device
CN207067971U (en) * 2017-04-17 2018-03-02 宝沃汽车(中国)有限公司 A kind of vehicle electrically controlling unit software upgrade equipment and vehicle
CN107291457A (en) * 2017-06-08 2017-10-24 重庆长安汽车股份有限公司 The long-range renewal computing system and method for entire car controller software

Also Published As

Publication number Publication date
CN110908683A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110908683B (en) Software system upgrading method and device of hardware module, storage medium and terminal
CN107864175B (en) Gray scale release control method, device, equipment and storage medium
US9231763B2 (en) System and method for providing a multi-credential authentication protocol
CN102804144B (en) Remotely location and order mobile device
CN109154890B (en) Software updating device and software updating system
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
CN100413356C (en) Terminal, device and methods for a communication network
CN105978873B (en) Customized equipment registration method and device
US20050227669A1 (en) Security key management system and method in a mobile communication network
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN101904202A (en) Automatically provisioning a WWAN device
CN103092608A (en) Generating and operation method, server and device of client for collecting device information
CN104539686A (en) Traffic-free application downloading method, terminals and server side
CN111694591A (en) Certificate updating method, device, system, server and computer storage medium
CN102301760A (en) Method and apparatus for tracking device management data changes
CN104125558A (en) Client-based service processing method, equipment and system
CN105553920A (en) Data interaction method, apparatus, and system
CN112650520A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
EP1444845A1 (en) Identifying changed records in a file stored on an electronic token
US20200231195A1 (en) Method for operating a rail vehicle
CN101854623A (en) System and method for remote upgrade of M2M terminal
CN112637365A (en) Terminal resource issuing and acquiring method and device and electronic equipment
JP2006191384A (en) Mobile and content transmission method
CN105227736B (en) A kind of update method of reserved phone number, apparatus and system
CN103685176A (en) Terminal equipment, equipment management server and connection establishment method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant