CN107391170B - Upgrading method and device supporting multiple schemes and computer equipment - Google Patents
Upgrading method and device supporting multiple schemes and computer equipment Download PDFInfo
- Publication number
- CN107391170B CN107391170B CN201710447691.3A CN201710447691A CN107391170B CN 107391170 B CN107391170 B CN 107391170B CN 201710447691 A CN201710447691 A CN 201710447691A CN 107391170 B CN107391170 B CN 107391170B
- Authority
- CN
- China
- Prior art keywords
- upgraded
- power line
- communication terminal
- line communication
- upgrading
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/54—Systems for transmission via power distribution lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Power Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to an upgrading method and device supporting multiple schemes and computer equipment. The upgrading method is used for upgrading at least one power line communication terminal with different chip schemes; the upgrading method comprises the following steps: sending an upgrading request to the power line communication terminal to be upgraded; acquiring a chip scheme of the power line communication terminal to be upgraded according to response information fed back by the power line communication terminal to be upgraded; determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded; and upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware. Compared with the traditional upgrading method, the upgrading method can only be used for upgrading the power line communication terminal with one chip scheme.
Description
Technical Field
The invention relates to the technical field of power line communication, in particular to an upgrading method and device supporting multiple schemes and computer equipment.
Background
In recent years, with the continuous development of network communication technology, Power Line Communications (PLC) technology is becoming mature, and a simple, flexible and easy-to-use networking mode is provided for Power Line communication terminal users. The application range of power line communication is wider and wider, and power line communication networks can be established among all rooms of single-storey buildings and all floors of villas. With the development of the market, various chip manufacturers have come up and the firmware formats of chips of each manufacturer are different, if a computer device customer purchases a power line communication product with various schemes, for example: the electric modem (which does not support the wireless function) needs to use the upgrading method provided by the corresponding scheme provider when the product is required to be upgraded, and the customer has trouble in which upgrading method is used by which device and which firmware is used for upgrading, so that the customer experience is not high.
Disclosure of Invention
Therefore, it is necessary to provide an upgrading method, an upgrading device and a computer device supporting multiple schemes, which can upgrade at least one power line communication terminal with different chip schemes and have high user experience, for solving the problem of single upgrading object.
An upgrade method supporting multiple schemes is used for upgrading at least one power line communication terminal with different chip schemes; the upgrading method comprises the following steps:
sending an upgrading request to the power line communication terminal to be upgraded;
acquiring a chip scheme of the power line communication terminal to be upgraded according to response information fed back by the power line communication terminal to be upgraded;
determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded;
and upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
In one embodiment, the upgrade request includes at least one type of ethernet frame information capable of identifying different chip schemes.
In one embodiment, the obtaining the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded includes:
receiving a response message of the power line communication terminal to be upgraded, wherein the response message comprises the Ethernet frame type information and a chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model;
and acquiring the chip scheme according to the Ethernet frame type information.
In one embodiment, the method further comprises the following steps:
and if the response message of the power line communication terminal to be upgraded is not received within the preset time, detecting whether the power line communication terminal to be upgraded is in a working state.
In one embodiment, the method further comprises the following steps:
judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number;
and when the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number, upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
In one embodiment, the method further comprises the following steps:
verifying the validity of the upgraded firmware through a preset verification tool;
and when the upgrading firmware is legal, upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
In addition, an upgrading device supporting multiple schemes is provided, which is used for upgrading at least one power line communication terminal with different chip schemes; the upgrade apparatus includes:
the transmission unit is used for transmitting an upgrading request to the power line communication terminal to be upgraded;
the acquisition unit is used for acquiring the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded;
the determining unit is used for determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded; and
and the operation unit is used for upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
In one embodiment, the upgrade request includes at least one piece of ethernet frame type information capable of identifying different chip schemes; the response message comprises the Ethernet frame type information and the chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model.
In one embodiment, the method further comprises the following steps:
the judging unit is used for judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number;
and the verification unit verifies the validity of the upgraded firmware through a preset verification tool.
In addition, a computer device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned upgrading methods supporting multiple scenarios when executing the program.
Drawings
FIG. 1 is a schematic diagram showing an internal configuration of a computer device according to an embodiment;
FIG. 2 is a flow diagram of an upgrade method to support multiple scenarios in one embodiment;
FIG. 3 is a flowchart illustrating the detailed steps of step S204 in FIG. 2;
FIG. 4 is a flow diagram of an upgrade method to support multiple scenarios in another embodiment;
FIG. 5 is a block diagram of an architecture of an upgrade apparatus supporting multiple scenarios in one embodiment;
FIG. 6 is a block diagram of an upgrade apparatus supporting multiple scenarios in another embodiment;
FIG. 7 is a flow diagram of steps implemented in a computer program executed by a processor of the computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of an internal structure of a computer device according to an embodiment. As shown in fig. 1, the computer apparatus includes a processor, a nonvolatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device, which are connected through a system bus. Wherein the non-volatile storage medium of the computer device stores an operating system and computer readable instructions. The computer program is executed by a processor to implement an upgrade method supporting multiple schemes for upgrading at least one power line communication terminal having different chip schemes. The processor is used to provide computing and control capabilities to support the operation of the entire computer device. Internal memory in the computer device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The network interface is used for performing network communication with the power line communication terminal to be upgraded, such as sending an upgrade request to the power line communication terminal to be upgraded, receiving response information returned by the power line communication terminal to be upgraded, and the like. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, or an external keyboard, a touch pad or a mouse, and the like. The computer device may be a mobile phone, a tablet computer or a personal digital assistant or a wearable device, etc. Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Fig. 2 is a flowchart of an upgrade method supporting multiple schemes in an embodiment, and an embodiment of the present invention provides an upgrade method supporting multiple schemes, which is used for upgrading at least one power line communication terminal having different chip schemes; the upgrading method comprises the following steps:
step S202: and sending an upgrading request to the power line communication terminal to be upgraded.
It should be noted that the upgrade method supporting multiple schemes is implemented based on a computer device. The computer equipment is connected with the power line communication terminal to be tested through a network cable. The power line communication terminal to be tested can be a power modem. The modem is a device which modulates network signals onto wires and solves the problem of network wiring by using the existing wires. The chip solution of the power cat may be a Broadcom (Broadcom Corporation, boston) chip solution; the chip scheme of the power cat may also be a QCA (Qualcomm Atheros, INC) chip scheme. Of course, the chip scheme of the power modem may be other chip schemes, and is not further limited herein. And upgrading the different chip schemes by adopting the passed upgrading firmware.
And sending an upgrading request to a circuit line communication terminal to be upgraded.
Specifically, the upgrade request includes at least one type of ethernet frame type information capable of identifying different chip schemes.
The upgrade request is sent in the form of an MME message. An MME (Management Message Entity) Message is described based on an MME in the HomePlug AV. The message can only be supported or compatible with the equipment of the MME in the HomePlug AV standard, and the message can be used for monitoring, controlling and upgrading the MME supporting equipment in various ways. The upgrading request comprises information such as a destination MAC address, a source MAC address and an Ethernet frame type. The number of kinds of ethernet frame type information in the upgrade request is the same as the number of types of chip schemes capable of supporting the upgrade. If the upgrading method can upgrade the power line communication terminals of two different chip schemes, the types of the ethernet frame type information included in the upgrade request are also two types. For example, ethernet frame type information capable of identifying the QCA chip scheme may be represented by the code "88 e 1"; the ethernet frame type information capable of identifying the Broadcom chip scheme may be represented by the code "8912". The Ethernet frame type information can be self-defined information codes of the Botong company and the Gautong company.
Step S204: and acquiring the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded.
After receiving the upgrade request, the power line communication terminal to be upgraded feeds back corresponding response information to the received upgrade request, and acquires the chip scheme of the power line communication terminal to be upgraded according to the response information. That is, according to the response information, it is possible to acquire whether the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme or the Broadcom chip scheme.
Step S206: and determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded.
Because different chip schemes correspond to different upgrading firmware, a plurality of upgrading firmware capable of upgrading operation aiming at different chip schemes are stored in the computer equipment. For example, if the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme, upgrade firmware with extension names of ". nvm" and ". pib" may be used. If the chip scheme of the power line communication terminal to be upgraded is the Broadcom chip scheme, an upgrade firmware with an extension name of ". ggl" may be adopted.
Step S208: and upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
And calling corresponding upgrading firmware stored in the computer equipment, and upgrading the power line communication terminal to be upgraded.
By the multi-scheme supporting upgrading method, the upgrading firmware matched with the chip scheme can be determined according to the obtained chip scheme of the power line communication terminal to be upgraded, and the power line communication terminal to be upgraded is upgraded by adopting the determined upgrading firmware. Compared with the traditional upgrading method, the upgrading method can only be used for upgrading the power line communication terminal with one chip scheme.
In one embodiment, the obtaining of the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded includes the following steps:
step S302: and receiving a response message of the power line communication terminal to be upgraded, wherein the response message comprises the Ethernet frame type information and a chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model.
And receiving a response message of the power line communication terminal to be upgraded. The response message comprises the Ethernet frame type information and the chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model. As previously explained, the ethernet frame type information of the QCA chip scheme may be represented by the code "88 e 1"; the ethernet frame type information of the Broadcom chip solution may be represented by code "8912". And the power line communication terminal to be upgraded can also be obtained from the response message, wherein the power line communication terminal to be upgraded comprises a chip version number of the chip type. For example, a serial number "MAC-QCA 6410-1.1.1.1191-02-2013092" can be parsed from the response information, and by the serial number, it can be known that the power line communication terminal to be upgraded includes a chip having a model number of QCA6410 and a chip version number of 1.1.1. The power line communication terminal to be upgraded can also be analyzed from the response information, and the information that the chip model is BCM60500, the chip version number is 3.2.0 and the like is contained in the power line communication terminal to be upgraded can be analyzed.
Step S304: and acquiring the chip scheme according to the Ethernet frame type information.
And obtaining the chip scheme of the power line communication terminal to be upgraded according to the Ethernet frame type information in the response information. If the ethernet frame type information in the response message is "88 e 1", the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme. If the ethernet frame type information in the response message is "8912", the chip scheme of the power line communication terminal to be upgraded is the Broadcom chip scheme.
Further, the upgrading method further comprises the following steps:
and if the response message of the power line communication terminal to be upgraded is not received within the preset time, detecting whether the power line communication terminal to be upgraded is in a working state. Wherein the preset time range can be 30 seconds to 60 seconds.
Optionally, within 45 seconds, if the response message of the power line communication terminal to be upgraded is not received, whether the power line communication terminal to be upgraded is powered on or whether a good communication state is maintained with the computer device is detected, so as to verify whether the power line communication terminal to be upgraded is in a working state. And if the power line communication terminal is not in the working state, the power line communication terminal starts to execute the action of sending an upgrading request to the power line communication terminal to be upgraded after being in the working state through manual adjustment of a user.
In one embodiment, the upgrading method further includes a step of judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number, and when the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number, upgrading the power line communication terminal to be upgraded by using the determined upgrading firmware.
Specifically, a chip version number including a chip model of the power line communication terminal to be upgraded is obtained according to the response information, and the obtained chip version number is a current version number of the power line communication terminal to be upgraded. And upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware if the current version number is smaller than the version number of the upgrading firmware by judging the current version number and the version number (also called as the latest version number) of the upgrading firmware.
In one embodiment, the upgrading method further comprises the step of verifying the validity of the upgraded firmware through a preset verification tool, and when the upgraded firmware is legal, the power line communication terminal to be upgraded is upgraded by adopting the determined upgraded firmware.
Specifically, a verification tool MD5(Message-Digest Algorithm 5) is used to verify the validity of the upgraded firmware. MD5 is an irreversible encryption algorithm. The upgrade firmware has fixed file format or configuration information that is of its own, which may cause an upgrade failure or other problems if the upgrade firmware stored in the computer device is modified. Because MD5 is encrypted and cannot be calculated reversely, whether the upgraded firmware is modified or not can be confirmed by verifying the MD5 value of the upgraded firmware, if the upgraded firmware is modified, the upgraded firmware is illegal, and if the upgraded firmware is not modified, the upgraded firmware is legal.
In one embodiment, in the upgrading method, when the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number, the validity of the upgraded firmware is verified through a preset verification tool, and when the upgraded firmware is legal, the power line communication terminal to be upgraded is upgraded by adopting the determined upgraded firmware.
In one embodiment, the upgrade method further comprises displaying the upgrade result. If the upgrade is successful, displaying characters similar to upgrade success, and if the upgrade is failed, displaying characters similar to upgrade failure. Correspondingly, in each step, characters with similar information such as ' illegal ' and the current version number being the latest version number ' can be displayed, so that a user can be prompted to make corresponding coping operations conveniently.
FIG. 4 is an upgrade method to support multiple scenarios in another embodiment. The upgrading method supporting multiple schemes is used for upgrading two power line communication terminals with different chip schemes. One of the chip schemes is a QCA chip scheme, and the other is a Broadcom chip scheme.
The upgrading method comprises the following steps:
step S401: and sending an upgrading request to the power line communication terminal to be upgraded.
The upgrade request includes two types of ethernet frame type information capable of identifying different chip schemes. One of them may be the code "88 e 1" for the ethernet frame type information capable of identifying the QCA chip scheme, and the other may be the code "8912" for the ethernet frame type information capable of identifying the Broadcom chip scheme.
Step S402: and acquiring the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded.
And receiving a response message of the power line communication terminal to be upgraded. The response message comprises the Ethernet frame type information and the chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model. As previously explained, the ethernet frame type information of the QCA chip scheme may be represented by the code "88 e 1"; the ethernet frame type information of the Broadcom chip solution may be represented by code "8912". And the power line communication terminal to be upgraded can also be obtained from the response message, wherein the power line communication terminal to be upgraded comprises a chip version number of the chip type. For example, a serial number "MAC-QCA 6410-1.1.1.1191-02-2013092" can be parsed from the response information, and by the serial number, it can be known that the power line communication terminal to be upgraded includes a chip having a model number of QCA6410 and a chip version number of 1.1.1. The power line communication terminal to be upgraded can also be analyzed from the response information, and the information that the chip model is BCM60500, the chip version number is 3.2.0 and the like is contained in the power line communication terminal to be upgraded can be analyzed.
Step S403: and determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded.
And obtaining the chip scheme of the power line communication terminal to be upgraded according to the Ethernet frame type information in the response information. If the ethernet frame type information in the response message is "88 e 1", the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme. If the ethernet frame type information in the response message is "8912", the chip scheme of the power line communication terminal to be upgraded is the Broadcom chip scheme.
Step S404: and judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number.
And acquiring a chip version number containing the chip type of the power line communication terminal to be upgraded according to the response information, wherein the acquired chip version number is the current version number of the power line communication terminal to be upgraded. By determining the current version number and the version number of the upgraded firmware (also referred to as the latest version number), if the current version number is smaller than the version number of the upgraded firmware, step S405 is executed. And if the current version number is greater than or equal to the version number of the upgrading firmware, the power line communication terminal to be upgraded is considered to be the latest version and needs to be upgraded.
Step S405: and verifying the validity of the upgraded firmware through a preset verification tool.
Specifically, a verification tool MD5(Message-Digest Algorithm 5) is used to verify the validity of the upgraded firmware. MD5 is an irreversible encryption algorithm. The upgrade firmware has fixed file format or configuration information that is of its own, which may cause an upgrade failure or other problems if the upgrade firmware stored in the computer device is modified. Because MD5 is encrypted and cannot be calculated reversely, whether the upgraded firmware is modified or not can be confirmed by verifying the MD5 value of the upgraded firmware, if the upgraded firmware is modified, the upgraded firmware is illegal, and if the upgraded firmware is not modified, the upgraded firmware is legal. When the upgrade firmware is legitimate, step S406 is performed. When the upgrade firmware is illegal, step S406 is not executed, and the legal upgrade firmware is obtained in other manners.
Step S406: and upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
Because different chip schemes correspond to different upgrading firmware, two upgrading firmware capable of upgrading operation aiming at different chip schemes are stored in the computer equipment. For example, if the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme, upgrade firmware with extension names of ". nvm" and ". pib" may be used to perform an upgrade operation thereon. If the chip scheme of the power line communication terminal to be upgraded is the Broadcom chip scheme, the upgrading operation can be performed by adopting upgrading firmware with an extension name of ". ggl".
By the upgrading method, the power line communication terminal to be upgraded of two different chip schemes can be upgraded, the upgrading process efficiency is high, and the user experience is high.
FIG. 5 is a block diagram of an upgrade apparatus supporting multiple scenarios in one embodiment. The embodiment of the invention also provides an upgrading device supporting multiple schemes, which is used for upgrading at least one power line communication terminal with different chip schemes; the upgrade apparatus includes:
a sending unit 510, configured to send an upgrade request to the power line communication terminal to be upgraded;
an obtaining unit 520, configured to obtain a chip scheme of the power line communication terminal to be upgraded according to response information fed back by the power line communication terminal to be upgraded;
a determining unit 530, configured to determine, according to the chip scheme of the power line communication terminal to be upgraded, an upgrade firmware that matches the chip scheme; and
and the operation unit 540 is configured to upgrade the power line communication terminal to be upgraded by using the determined upgrade firmware.
The upgrading device supporting multiple schemes can determine the upgrading firmware matched with the chip scheme according to the acquired chip scheme of the power line communication terminal to be upgraded, and upgrade the power line communication terminal to be upgraded by adopting the determined upgrading firmware. The upgrading device provided by the embodiment of the invention can be used for upgrading at least one power line communication terminal with different chip schemes, and has the advantages of high upgrading efficiency and high user experience.
Specifically, the upgrade request includes at least one type of ethernet frame type information capable of identifying different chip schemes.
The response message comprises the Ethernet frame type information and the chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model.
Fig. 6 is a structural framework diagram of an upgrading device supporting multiple schemes in another embodiment. In one embodiment, the upgrade apparatus supporting multiple schemes includes a sending unit 610, an obtaining unit 620, a determining unit 630, and an operating unit 640. The functions of the sending unit 610, the obtaining unit 620, the determining unit 630 and the operating unit 640 are the same as those of the sending unit 510, the obtaining unit 520, the determining unit 530 and the operating unit 540 in fig. 5, and are not described herein again. In addition, the upgrade apparatus supporting multiple scenarios further includes:
and the judging unit 650 is configured to judge whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number.
In one embodiment, the upgrade apparatus supporting multiple schemes further includes:
the verification unit 660 verifies the validity of the upgraded firmware through a preset verification tool.
The division of each unit in the upgrade apparatus supporting multiple schemes is only used for illustration, and in other embodiments, the upgrade apparatus supporting multiple schemes may be divided into different units as needed to complete all or part of the functions of the upgrade apparatus supporting multiple schemes.
In an embodiment of the invention, the processor comprised by the mobile terminal implements the following steps when executing the computer program stored on the memory:
step S702: and sending an upgrading request to the power line communication terminal to be upgraded.
It should be noted that the upgrade method supporting multiple schemes is implemented based on a computer device. The computer equipment is connected with the power line communication terminal to be tested through a network cable. The power line communication terminal to be tested can be a power modem. The modem is a device which modulates network signals onto wires and solves the problem of network wiring by using the existing wires. The chip solution of the power cat may be a Broadcom (Broadcom Corporation, boston) chip solution; the chip scheme of the power cat may also be a QCA (Qualcomm Atheros, INC) chip scheme. Of course, the chip scheme of the power modem may be other chip schemes, and is not further limited herein. And upgrading the different chip schemes by adopting the passed upgrading firmware.
And sending an upgrading request to a circuit line communication terminal to be upgraded.
Specifically, the upgrade request includes at least one type of ethernet frame type information capable of identifying different chip schemes.
The upgrade request is sent in the form of an MME message. An MME (Management Message Entity) Message is described based on an MME in the HomePlug AV. The message can only be supported or compatible with the equipment of the MME in the HomePlug AV standard, and the message can be used for monitoring, controlling and upgrading the MME supporting equipment in various ways. The upgrading request comprises information such as a destination MAC address, a source MAC address and an Ethernet frame type. The number of kinds of ethernet frame type information in the upgrade request is the same as the number of types of chip schemes capable of supporting the upgrade. If the upgrading method can upgrade the power line communication terminals of two different chip schemes, the types of the ethernet frame type information included in the upgrade request are also two types. For example, ethernet frame type information capable of identifying the QCA chip scheme may be represented by the code "88 e 1"; the ethernet frame type information capable of identifying the Broadcom chip scheme may be represented by the code "8912". The Ethernet frame type information can be self-defined information codes of the Botong company and the Gautong company.
Step S704: and acquiring the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded.
After receiving the upgrade request, the power line communication terminal to be upgraded feeds back corresponding response information to the received upgrade request, and acquires the chip scheme of the power line communication terminal to be upgraded according to the response information. That is, according to the response information, it is possible to acquire whether the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme or the Broadcom chip scheme.
Step S706: and determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded.
Because different chip schemes correspond to different upgrading firmware, a plurality of upgrading firmware capable of upgrading operation aiming at different chip schemes are stored in the computer equipment. For example, if the chip scheme of the power line communication terminal to be upgraded is the QCA chip scheme, upgrade firmware with extension names of ". nvm" and ". pib" may be used. If the chip scheme of the power line communication terminal to be upgraded is the Broadcom chip scheme, an upgrade firmware with an extension name of ". ggl" may be adopted.
Step S708: and upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
And calling corresponding upgrading firmware stored in the computer equipment, and upgrading the power line communication terminal to be upgraded.
When the computer program running on the processor is executed, the upgrading firmware matched with the chip scheme can be determined according to the obtained chip scheme of the power line communication terminal to be upgraded, and the power line communication terminal to be upgraded is upgraded by adopting the determined upgrading firmware. Compared with the traditional computer program, the upgrading method provided by the embodiment of the invention can be used for upgrading only one power line communication terminal with one chip scheme, and can be used for upgrading at least one power line communication terminal with different chip schemes, so that the upgrading efficiency is high, and the user experience is high.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (9)
1. An upgrade method supporting multiple schemes is characterized in that the upgrade method is used for upgrading at least one power line communication terminal with different chip schemes; the upgrading method supporting multiple schemes is realized based on computer equipment; the computer equipment is connected with a power line communication terminal to be tested through a network cable; the upgrading method comprises the following steps:
sending an upgrading request to the power line communication terminal to be upgraded; wherein, the upgrading request is sent in the form of an MME message;
acquiring a chip scheme of the power line communication terminal to be upgraded according to response information fed back by the power line communication terminal to be upgraded;
determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded;
upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware; wherein, the upgrade request includes at least one type of Ethernet frame type information capable of identifying different chip schemes.
2. The upgrading method supporting multiple schemes according to claim 1, wherein obtaining the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded comprises:
receiving a response message of the power line communication terminal to be upgraded, wherein the response message comprises the Ethernet frame type information and a chip version number of the power line communication terminal to be upgraded, wherein the chip version number comprises a chip model;
and acquiring the chip scheme according to the Ethernet frame type information.
3. The multi-scenario enabled upgrade method according to claim 2, further comprising:
and if the response message of the power line communication terminal to be upgraded is not received within the preset time, detecting whether the power line communication terminal to be upgraded is in a working state.
4. The multi-scenario enabled upgrade method according to claim 2, further comprising:
judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number;
and when the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number, upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
5. The multi-scenario enabled upgrade method according to claim 1, further comprising:
verifying the validity of the upgraded firmware through a preset verification tool;
and when the upgrading firmware is legal, upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
6. An upgrading device supporting multiple schemes is characterized in that the upgrading device is used for upgrading at least one power line communication terminal with different chip schemes; the upgrading device supporting multiple schemes is realized based on computer equipment; the computer equipment is connected with a power line communication terminal to be tested through a network cable; the upgrade apparatus includes:
the transmission unit is used for transmitting an upgrading request to the power line communication terminal to be upgraded; the upgrading request is sent in the form of an MME message, and the upgrading request comprises at least one type of Ethernet frame type information capable of identifying different chip schemes;
the acquisition unit is used for acquiring the chip scheme of the power line communication terminal to be upgraded according to the response information fed back by the power line communication terminal to be upgraded;
the determining unit is used for determining an upgrading firmware matched with the chip scheme according to the chip scheme of the power line communication terminal to be upgraded; and
and the operation unit is used for upgrading the power line communication terminal to be upgraded by adopting the determined upgrading firmware.
7. The upgrading apparatus supporting multiple schemes according to claim 6, wherein the response message includes the Ethernet frame type information and a chip version number including a chip model of the power line communication terminal to be upgraded.
8. The multi-scenario enabled upgrade apparatus according to claim 7, further comprising:
the judging unit is used for judging whether the chip version number of the power line communication terminal to be upgraded is smaller than the latest version number;
and the verification unit verifies the validity of the upgraded firmware through a preset verification tool.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a multi-scenario supporting upgrade method according to any one of claims 1 to 5 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710447691.3A CN107391170B (en) | 2017-06-14 | 2017-06-14 | Upgrading method and device supporting multiple schemes and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710447691.3A CN107391170B (en) | 2017-06-14 | 2017-06-14 | Upgrading method and device supporting multiple schemes and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107391170A CN107391170A (en) | 2017-11-24 |
CN107391170B true CN107391170B (en) | 2021-01-22 |
Family
ID=60333368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710447691.3A Active CN107391170B (en) | 2017-06-14 | 2017-06-14 | Upgrading method and device supporting multiple schemes and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391170B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110858145A (en) * | 2018-08-22 | 2020-03-03 | 龙芯中科技术有限公司 | Method and device for updating BIOS (basic input output System) in Linux operating system |
CN115134342A (en) * | 2022-06-06 | 2022-09-30 | 广州云雷智能科技有限公司 | Equipment remote upgrading method, device, equipment and storage medium based on PLC |
CN115226094A (en) * | 2022-07-08 | 2022-10-21 | 深圳市中易腾达科技股份有限公司 | OTA (over the air) upgrading method and system capable of automatically identifying Bluetooth chip type |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105756A (en) * | 2007-08-21 | 2008-01-16 | 中兴通讯股份有限公司 | Multi-core terminal firmware upgrading method |
CN103984581A (en) * | 2014-05-30 | 2014-08-13 | 乐视致新电子科技(天津)有限公司 | Firmware upgrading method and device of chip |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790029A (en) * | 2010-03-03 | 2010-07-28 | 福建新大陆通信科技有限公司 | Method for performing read-write operation on set top box |
CN103138969B (en) * | 2011-11-28 | 2016-03-16 | 英业达科技有限公司 | Server rack system |
US9965632B2 (en) * | 2014-12-22 | 2018-05-08 | Capital One Services, Llc | System and methods for secure firmware validation |
CN106331862A (en) * | 2016-08-11 | 2017-01-11 | 宁波亦道信息科技有限公司 | Set-top box software upgrading method and set-top box |
-
2017
- 2017-06-14 CN CN201710447691.3A patent/CN107391170B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105756A (en) * | 2007-08-21 | 2008-01-16 | 中兴通讯股份有限公司 | Multi-core terminal firmware upgrading method |
CN103984581A (en) * | 2014-05-30 | 2014-08-13 | 乐视致新电子科技(天津)有限公司 | Firmware upgrading method and device of chip |
Also Published As
Publication number | Publication date |
---|---|
CN107391170A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109358883B (en) | Program upgrading method, system, application system and storage medium | |
CN101984575B (en) | Method and device for protecting mobile terminal software | |
CN107391170B (en) | Upgrading method and device supporting multiple schemes and computer equipment | |
CN104427501B (en) | Method for network access, device and system | |
CN104967997A (en) | Wireless network accessing method, Wi-Fi equipment, terminal equipment and system | |
CN110417543B (en) | Data encryption method, device and storage medium | |
WO2011150782A1 (en) | Method, device and system for configuring wireless fidelity (wifi) parameter | |
EP3490304B1 (en) | Method for identifying access point and hotspot, and related products | |
US20100043052A1 (en) | Apparatus and method for security management of user terminal | |
CN108040355B (en) | Network access method and system | |
CN107567017B (en) | Wireless connection system, device and method | |
US20170102934A1 (en) | Device Management Session Triggering Method, Device, System and Computer Storage Medium | |
US10687216B2 (en) | Antitheft method for mobile terminal and apparatus | |
US20170068585A1 (en) | Method and Apparatus for Recovering System Software of Intelligent Terminal | |
EP4152816A1 (en) | Information transmission method and apparatus, and electronic device | |
CN107423099B (en) | Key code programming method, server, terminal, key code programming system and storage medium | |
CN110971412B (en) | Method for safe network distribution of smart home based on block chain | |
CN105183499A (en) | ROM flashing method, mobile terminal and terminal system | |
CN106331152B (en) | Method and device for realizing information synchronization between modules | |
CN112114897B (en) | Parameter configuration method and device based on industrial control screen and computer equipment | |
CN111065090A (en) | Method for establishing network connection and wireless routing equipment | |
CN111586691A (en) | Method and device for configuring wireless connection and wireless connectable equipment | |
CN113872812A (en) | Information processing method, network equipment and terminal equipment | |
CN111918363A (en) | Network distribution method and device | |
WO2023103425A1 (en) | Communicative connection method, system, and apparatus, storage medium, and processor |
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 |