CN114296743A - Charging pile offline upgrading method and system - Google Patents
Charging pile offline upgrading method and system Download PDFInfo
- Publication number
- CN114296743A CN114296743A CN202111345737.3A CN202111345737A CN114296743A CN 114296743 A CN114296743 A CN 114296743A CN 202111345737 A CN202111345737 A CN 202111345737A CN 114296743 A CN114296743 A CN 114296743A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- charging pile
- upgrade
- program
- version number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a charging pile off-line upgrading method and system in the technical field of charging piles, and the method comprises the following steps: step S10, after each mobile phone logs in a charging pile APP, the latest upgrading program and version comparison table of each hardware version are automatically downloaded from a server in a network environment; step S20, after each mobile phone is connected with an off-network charging pile through a charging pile APP, local version information and upgrading state information of the charging pile are obtained, and an upgrading report is generated based on a version comparison table, the local version information and the upgrading state information; step S30, the charging pile APP sends the corresponding upgrading program in the mobile phone to the charging pile based on the upgrading report; and step S40, after the charging pile checks the received upgrading program, installing the upgrading program, and completing the off-line upgrading of the charging pile. The invention has the advantages that: the realization carries out the off-line upgrading to the electric pile that fills that can't network, avoids the user to use old edition firmware always, and then very big promotion user experience.
Description
Technical Field
The invention relates to the technical field of charging piles, in particular to a charging pile off-line upgrading method and system.
Background
The charging pile is a special power supply device for directly connecting an electric vehicle to an ac/dc power grid (power supply), supplies dc power to a storage battery pack of the electric vehicle, and supplies energy to the electric vehicle under the management of a vehicle-mounted BMS system. Along with electric automobile's rapid development, fill electric pile's construction, installation quantity also increase daily, and a lot of users of purchasing electric automobile select to fill electric pile in the parking stall installation of own district for the convenience of tonifying energy.
Fill electric pile in the use, can appear some bugs, perhaps along with the deepening of using the scene, refine, need superpose some new functions, need to upgrade to filling electric pile this moment. However, many charging piles are installed in environments without networks, such as basements of some districts or remote areas, so that the charging piles cannot be upgraded in time.
Therefore, how to provide a charging pile offline upgrading method and system to realize offline upgrading of charging piles which cannot be networked becomes a problem to be solved urgently.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a charging pile offline upgrading method and system, so that offline upgrading of charging piles which cannot be networked is realized.
In a first aspect, the present invention provides an offline upgrade method for a charging pile, including the following steps:
step S10, after each mobile phone logs in a charging pile APP, the latest upgrading program and version comparison table of each hardware version are automatically downloaded from a server in a network environment;
step S20, after each mobile phone is connected with an off-network charging pile through a charging pile APP, local version information and upgrading state information of the charging pile are obtained, and an upgrading report is generated based on the version comparison table, the local version information and the upgrading state information;
step S30, the charging pile APP sends the corresponding upgrading program in the mobile phone to the charging pile based on the upgrading report;
and step S40, after the charging pile checks the received upgrading program, installing the upgrading program, and completing the off-line upgrading of the charging pile.
Further, the step S10 is specifically:
each mobile phone logs in a charging pile APP, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program of each hardware version and a version comparison table to the mobile phone from a server in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
Further, the step S20 specifically includes:
step S21, the charging pile APP sends a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone;
step S22, acquiring local version information and upgrading state information of the charging pile through the charging pile APP, and recording acquisition time;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
step S23, the charging pile APP judges whether the current server keeps network connection, if yes, the charging pile number, the local hardware version number, the local software version number and the acquisition time are uploaded to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
step S24, matching the latest software version number with the version comparison table through the charging pile APP based on the local hardware version number, judging whether the software version number is consistent with the local software version number, and if so, entering step S25; if not, generating an upgrade report needing to be upgraded, and entering the step S30;
step S25, the charging pile APP judges whether the charging pile finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report requiring upgrade is generated, and the process proceeds to step S30.
Further, the step S30 is specifically:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
and the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server.
Further, the step S40 specifically includes:
step S41, the charging pile decrypts the received upgrading program by using a pre-stored public key based on the received upgrading command, judges whether the decryption is successful, and if so, enters step S42; if not, deleting the received upgrading program and ending the process;
step S42, the charging pile carries out hash calculation on the decrypted upgrading program to obtain a second hash value, whether the second hash value is consistent with the first hash value carried by the upgrading program or not is judged, and if yes, the step S43 is executed; if not, deleting the received upgrading program and ending the process;
step S43, the charging pile judges whether the charging and discharging task is executed currently, if yes, the charging pile enters step S44 after the charging and discharging task is executed; if not, the flow immediately proceeds to step S44;
step S44, the charging pile judges whether the current upgrade version number in the local upgrade state information is consistent with the software version number carried by the received upgrade program, if yes, the upgrade program is written in batches based on the upgrade progress in the upgrade state information, and the upgrade state information is updated; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
step S45, the charging pile APP reacquires the local software version number and the upgrading state information of the charging pile after a preset duration, and then whether upgrading is successful is judged, if yes, the step S46 is executed; if not, repeatedly upgrading for a preset number of times;
step S46, the charging pile APP judges whether the current server keeps network connection, if yes, the upgrade state information is uploaded to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
In a second aspect, the present invention provides an offline upgrade system for charging piles, including the following modules:
the charging pile APP login module is used for automatically downloading the latest upgrading program and the version comparison table of each hardware version from the server in a network environment after each mobile phone logs in the charging pile APP;
the upgrading report generation module is used for acquiring local version information and upgrading state information of the charging piles after the mobile phones are connected with the off-network charging piles through the charging piles APP, and generating upgrading reports based on the version comparison table, the local version information and the upgrading state information;
the upgrading program pushing module is used for sending the corresponding upgrading program in the mobile phone to the charging pile APP based on the upgrading report;
and the offline upgrading module is used for installing the upgrading program after the charging pile checks the received upgrading program, so as to complete the offline upgrading of the charging pile.
Further, fill electric pile APP login module specifically is:
each mobile phone logs in a charging pile APP, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program of each hardware version and a version comparison table to the mobile phone from a server in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
Further, the upgrade report generation module specifically includes:
the charging pile APP is used for sending a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone;
the local information acquisition unit is used for acquiring local version information and upgrading state information of the charging pile through the charging pile APP and recording acquisition time;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
the local information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
a software version number matching unit, configured to match the latest software version number from a version comparison table based on the local hardware version number, determine whether the software version number is consistent with the local software version number, and if so, enter an upgrade state information verification unit; if not, generating an upgrade report needing to be upgraded, and entering an upgrade program pushing module;
the upgrading state information verification unit is used for judging whether the charging pile APP finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report needing to be upgraded is generated, and the upgrade report enters an upgrade program pushing module.
Further, the upgrade program pushing module specifically includes:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
and the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server.
Further, the offline upgrade module specifically includes:
the decryption unit is used for decrypting the received upgrading program by using a pre-stored public key based on the received upgrading command through the charging pile, judging whether the decryption is successful or not, and if so, entering the Hash check unit; if not, deleting the received upgrading program and ending the process;
the hash checking unit is used for performing hash calculation on the decrypted upgrading program by the charging pile to obtain a second hash value, judging whether the second hash value is consistent with the first hash value carried by the upgrading program or not, and entering the idle checking unit if the second hash value is consistent with the first hash value carried by the upgrading program; if not, deleting the received upgrading program and ending the process;
the idle checking unit is used for judging whether the charging pile executes the charging and discharging task currently or not, and if so, entering the upgrading program installation unit after the charging and discharging task is executed; if not, immediately entering an upgrading program installation unit;
the upgrading program installation unit is used for judging whether the current upgrading version number in the local upgrading state information is consistent with the software version number carried by the received upgrading program or not by the charging pile, if so, writing the upgrading program in batches based on the upgrading progress in the upgrading state information, and updating the upgrading state information; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
the upgrading result verification unit is used for reacquiring the local software version number and the upgrading state information of the charging pile through a preset time length by the charging pile APP so as to judge whether the upgrading is successful, and if so, entering the upgrading state information uploading unit; if not, repeatedly upgrading for a preset number of times;
the upgrading state information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the upgrading state information to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
The invention has the advantages that:
1. the method comprises the steps that a latest upgrading program and a version comparison table of each hardware version are automatically downloaded from a server through a charging pile APP installed on a mobile phone in a network environment, after the mobile phone is connected with an off-network charging pile through the charging pile APP, whether the charging pile needs to be upgraded is judged based on the version comparison table, local version information and upgrading state information of the charging pile, if the upgrading is needed, the upgrading program corresponding to the software version number is sent to the charging pile, then upgrading operation is carried out on the charging pile, namely, the charging pile does not need to be networked, the upgrading program can be downloaded in advance through the mobile phone of each user in the network environment, relay upgrading is carried out on the charging pile based on the upgrading state information, finally offline upgrading of the charging pile which cannot be networked is achieved, old version firmware is prevented from being used by the user all the time, and user experience is greatly improved.
2. Carry out hash calculation to upgrading procedure through the server, and utilize the private key to encrypt upgrading procedure, when filling electric pile execution upgrading order, need utilize the preset public key of dispatching from the factory to decrypt, and hash calculation verification data integrality, and the cell-phone need utilize the key that fills electric pile APP and sign on when logging on to verify, including need utilize account number password to log on and fill electric pile APP, taken 4 safety protection measures around promptly at least, very big promotion fills the security of electric pile off-line upgrading.
3. Through when filling electric pile APP and server and keeping network connection, automatic upload fill electric pile serial number, local hardware version number, local software version number, acquisition time and upgrade status information to server for the relevant data of each electric pile can in time be filled in the server to the management of each electric pile of being convenient for.
4. Only after the charging and discharging tasks are executed through the charging piles, the upgrading program is installed, namely, the upgrading operation is performed when the charging piles are idle, and the influence on user experience caused by restarting or suddenly failing to use of the charging piles in the upgrading process is avoided.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is a flowchart of an offline upgrade method for a charging pile according to the present invention.
Fig. 2 is a schematic structural diagram of an offline charging pile upgrading system according to the present invention.
Detailed Description
The technical scheme in the embodiment of the application has the following general idea: the method comprises the steps that the latest upgrading program and version comparison table of each hardware version are automatically downloaded from a server in advance through mobile phones of users in a network environment, after the mobile phones of the users are connected with charging piles, whether the charging piles need to be upgraded or not is automatically detected through the version comparison table, local version information and upgrading state information of the charging piles, if the charging piles are only partially upgraded before, different users can also perform relay upgrading on the charging piles based on the upgrading state information, namely the charging piles do not need to be networked, and the offline upgrading is performed through the upgrading program downloaded in advance through the mobile phones of the users, so that the offline upgrading of the charging piles which cannot be networked is realized.
Referring to fig. 1 to 2, a preferred embodiment of an offline upgrade method for a charging pile according to the present invention includes the following steps:
step S10, after each mobile phone logs in a charging pile APP, the latest upgrading program and version comparison table of each hardware version are automatically downloaded from a server in a network environment;
step S20, after each mobile phone is connected with an off-network charging pile through a charging pile APP, local version information and upgrading state information of the charging pile are obtained, and an upgrading report is generated based on the version comparison table, the local version information and the upgrading state information, namely whether the charging pile needs to be upgraded is judged;
step S30, the charging pile APP sends the corresponding upgrading program in the mobile phone to the charging pile based on the upgrading report;
and step S40, after the charging pile checks the received upgrading program, installing the upgrading program, and completing the off-line upgrading of the charging pile.
Different mobile phones are required, and after the charging pile is connected every time, whether the charging pile needs to be upgraded is automatically judged as long as auxiliary upgrading is allowed, and an upgrading program is automatically executed.
The step S10 specifically includes:
each mobile phone logs in a charging pile APP by using an account password, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program and a version comparison table of each hardware version from a server to the mobile phone in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
The step S20 specifically includes:
step S21, the charging pile APP sends a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone; the charging pile verifies whether the key is generated based on a preset rule, and if yes, the verification is passed;
step S22, acquiring local version information and upgrading state information of the charging pile through the charging pile APP, and recording acquisition time; by recording the acquisition time, the server can conveniently judge the time sequence of the data uploaded by different mobile phones, and then update the data;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
step S23, the charging pile APP judges whether the current server keeps network connection, if yes, the charging pile number, the local hardware version number, the local software version number and the acquisition time are uploaded to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
step S24, matching the latest software version number with the version comparison table through the charging pile APP based on the local hardware version number, judging whether the software version number is consistent with the local software version number, and if so, entering step S25; if not, generating an upgrade report needing to be upgraded, and entering the step S30;
step S25, the charging pile APP judges whether the charging pile finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report requiring upgrade is generated, and the process proceeds to step S30.
The step S30 specifically includes:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server; the private key and the public key are a pair of keys, the data encrypted by the private key can be decoded only by the public key, and the data encrypted by the public key can be decrypted only by the private key.
The step S40 specifically includes:
step S41, the charging pile decrypts the received upgrading program by using a pre-stored public key based on the received upgrading command, judges whether the decryption is successful, and if so, enters step S42; if not, deleting the received upgrading program and ending the process;
step S42, the charging pile carries out hash calculation on the decrypted upgrading program to obtain a second hash value, whether the second hash value is consistent with the first hash value carried by the upgrading program or not is judged, and if yes, the step S43 is executed; if not, deleting the received upgrading program and ending the process;
step S43, the charging pile judges whether the charging and discharging task is executed currently, if yes, the charging pile enters step S44 after the charging and discharging task is executed; if not, the flow immediately proceeds to step S44; the charging pile is used for charging and discharging the charging pile, and the charging pile is used for charging and discharging the charging pile;
step S44, the charging pile judges whether the current upgrade version number in the local upgrade state information is consistent with the software version number carried by the received upgrade program, if yes, the upgrade program is written in batches based on the upgrade progress in the upgrade state information, and the upgrade state information is updated; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
step S45, the charging pile APP reacquires the local software version number and the upgrading state information of the charging pile after a preset duration, and then whether upgrading is successful is judged, if yes, the step S46 is executed; if not, repeatedly upgrading for a preset number of times; after the repeated upgrading for the preset times fails, the charging pile generates a fault self-checking report, and the fault self-checking report is uploaded to a server through a mobile phone;
step S46, the charging pile APP judges whether the current server keeps network connection, if yes, the upgrade state information is uploaded to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
The invention discloses a preferred embodiment of a charging pile offline upgrading system, which comprises the following modules:
the charging pile APP login module is used for automatically downloading the latest upgrading program and the version comparison table of each hardware version from the server in a network environment after each mobile phone logs in the charging pile APP;
the upgrading report generation module is used for acquiring local version information and upgrading state information of the charging piles after the mobile phones are connected with the off-network charging piles through the charging piles APP, and generating upgrading reports based on the version comparison table, the local version information and the upgrading state information, namely judging whether the charging piles need to be upgraded or not;
the upgrading program pushing module is used for sending the corresponding upgrading program in the mobile phone to the charging pile APP based on the upgrading report;
and the offline upgrading module is used for installing the upgrading program after the charging pile checks the received upgrading program, so as to complete the offline upgrading of the charging pile.
Different mobile phones are required, and after the charging pile is connected every time, whether the charging pile needs to be upgraded is automatically judged as long as auxiliary upgrading is allowed, and an upgrading program is automatically executed.
The charging pile APP login module specifically comprises:
each mobile phone logs in a charging pile APP by using an account password, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program and a version comparison table of each hardware version from a server to the mobile phone in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
The upgrade report generation module specifically includes:
the charging pile APP is used for sending a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone; the charging pile verifies whether the key is generated based on a preset rule, and if yes, the verification is passed;
the local information acquisition unit is used for acquiring local version information and upgrading state information of the charging pile through the charging pile APP and recording acquisition time; by recording the acquisition time, the server can conveniently judge the time sequence of the data uploaded by different mobile phones, and then update the data;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
the local information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
a software version number matching unit, configured to match the latest software version number from a version comparison table based on the local hardware version number, determine whether the software version number is consistent with the local software version number, and if so, enter an upgrade state information verification unit; if not, generating an upgrade report needing to be upgraded, and entering an upgrade program pushing module;
the upgrading state information verification unit is used for judging whether the charging pile APP finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report needing to be upgraded is generated, and the upgrade report enters an upgrade program pushing module.
The upgrading program pushing module specifically comprises:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server; the private key and the public key are a pair of keys, the data encrypted by the private key can be decoded only by the public key, and the data encrypted by the public key can be decrypted only by the private key.
The offline upgrade module specifically includes:
the decryption unit is used for decrypting the received upgrading program by using a pre-stored public key based on the received upgrading command through the charging pile, judging whether the decryption is successful or not, and if so, entering the Hash check unit; if not, deleting the received upgrading program and ending the process;
the hash checking unit is used for performing hash calculation on the decrypted upgrading program by the charging pile to obtain a second hash value, judging whether the second hash value is consistent with the first hash value carried by the upgrading program or not, and entering the idle checking unit if the second hash value is consistent with the first hash value carried by the upgrading program; if not, deleting the received upgrading program and ending the process;
the idle checking unit is used for judging whether the charging pile executes the charging and discharging task currently or not, and if so, entering the upgrading program installation unit after the charging and discharging task is executed; if not, immediately entering an upgrading program installation unit; the charging pile is used for charging and discharging the charging pile, and the charging pile is used for charging and discharging the charging pile;
the upgrading program installation unit is used for judging whether the current upgrading version number in the local upgrading state information is consistent with the software version number carried by the received upgrading program or not by the charging pile, if so, writing the upgrading program in batches based on the upgrading progress in the upgrading state information, and updating the upgrading state information; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
the upgrading result verification unit is used for reacquiring the local software version number and the upgrading state information of the charging pile through a preset time length by the charging pile APP so as to judge whether the upgrading is successful, and if so, entering the upgrading state information uploading unit; if not, repeatedly upgrading for a preset number of times; after the repeated upgrading for the preset times fails, the charging pile generates a fault self-checking report, and the fault self-checking report is uploaded to a server through a mobile phone;
the upgrading state information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the upgrading state information to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
In summary, the invention has the advantages that:
1. the method comprises the steps that a latest upgrading program and a version comparison table of each hardware version are automatically downloaded from a server through a charging pile APP installed on a mobile phone in a network environment, after the mobile phone is connected with an off-network charging pile through the charging pile APP, whether the charging pile needs to be upgraded is judged based on the version comparison table, local version information and upgrading state information of the charging pile, if the upgrading is needed, the upgrading program corresponding to the software version number is sent to the charging pile, then upgrading operation is carried out on the charging pile, namely, the charging pile does not need to be networked, the upgrading program can be downloaded in advance through the mobile phone of each user in the network environment, relay upgrading is carried out on the charging pile based on the upgrading state information, finally offline upgrading of the charging pile which cannot be networked is achieved, old version firmware is prevented from being used by the user all the time, and user experience is greatly improved.
2. Carry out hash calculation to upgrading procedure through the server, and utilize the private key to encrypt upgrading procedure, when filling electric pile execution upgrading order, need utilize the preset public key of dispatching from the factory to decrypt, and hash calculation verification data integrality, and the cell-phone need utilize the key that fills electric pile APP and sign on when logging on to verify, including need utilize account number password to log on and fill electric pile APP, taken 4 safety protection measures around promptly at least, very big promotion fills the security of electric pile off-line upgrading.
3. Through when filling electric pile APP and server and keeping network connection, automatic upload fill electric pile serial number, local hardware version number, local software version number, acquisition time and upgrade status information to server for the relevant data of each electric pile can in time be filled in the server to the management of each electric pile of being convenient for.
4. Only after the charging and discharging tasks are executed through the charging piles, the upgrading program is installed, namely, the upgrading operation is performed when the charging piles are idle, and the influence on user experience caused by restarting or suddenly failing to use of the charging piles in the upgrading process is avoided.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (10)
1. A charging pile offline upgrading method is characterized by comprising the following steps: the method comprises the following steps:
step S10, after each mobile phone logs in a charging pile APP, the latest upgrading program and version comparison table of each hardware version are automatically downloaded from a server in a network environment;
step S20, after each mobile phone is connected with an off-network charging pile through a charging pile APP, local version information and upgrading state information of the charging pile are obtained, and an upgrading report is generated based on the version comparison table, the local version information and the upgrading state information;
step S30, the charging pile APP sends the corresponding upgrading program in the mobile phone to the charging pile based on the upgrading report;
and step S40, after the charging pile checks the received upgrading program, installing the upgrading program, and completing the off-line upgrading of the charging pile.
2. The charging pile offline upgrading method according to claim 1, characterized in that: the step S10 specifically includes:
each mobile phone logs in a charging pile APP, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program of each hardware version and a version comparison table to the mobile phone from a server in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
3. The charging pile offline upgrading method according to claim 1, characterized in that: the step S20 specifically includes:
step S21, the charging pile APP sends a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone;
step S22, acquiring local version information and upgrading state information of the charging pile through the charging pile APP, and recording acquisition time;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
step S23, the charging pile APP judges whether the current server keeps network connection, if yes, the charging pile number, the local hardware version number, the local software version number and the acquisition time are uploaded to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
step S24, matching the latest software version number with the version comparison table through the charging pile APP based on the local hardware version number, judging whether the software version number is consistent with the local software version number, and if so, entering step S25; if not, generating an upgrade report needing to be upgraded, and entering the step S30;
step S25, the charging pile APP judges whether the charging pile finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report requiring upgrade is generated, and the process proceeds to step S30.
4. The charging pile offline upgrading method according to claim 1, characterized in that: the step S30 specifically includes:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
and the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server.
5. The charging pile offline upgrading method according to claim 4, characterized in that: the step S40 specifically includes:
step S41, the charging pile decrypts the received upgrading program by using a pre-stored public key based on the received upgrading command, judges whether the decryption is successful, and if so, enters step S42; if not, deleting the received upgrading program and ending the process;
step S42, the charging pile carries out hash calculation on the decrypted upgrading program to obtain a second hash value, whether the second hash value is consistent with the first hash value carried by the upgrading program or not is judged, and if yes, the step S43 is executed; if not, deleting the received upgrading program and ending the process;
step S43, the charging pile judges whether the charging and discharging task is executed currently, if yes, the charging pile enters step S44 after the charging and discharging task is executed; if not, the flow immediately proceeds to step S44;
step S44, the charging pile judges whether the current upgrade version number in the local upgrade state information is consistent with the software version number carried by the received upgrade program, if yes, the upgrade program is written in batches based on the upgrade progress in the upgrade state information, and the upgrade state information is updated; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
step S45, the charging pile APP reacquires the local software version number and the upgrading state information of the charging pile after a preset duration, and then whether upgrading is successful is judged, if yes, the step S46 is executed; if not, repeatedly upgrading for a preset number of times;
step S46, the charging pile APP judges whether the current server keeps network connection, if yes, the upgrade state information is uploaded to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
6. The utility model provides a fill electric pile off-line upgrade system which characterized in that: the system comprises the following modules:
the charging pile APP login module is used for automatically downloading the latest upgrading program and the version comparison table of each hardware version from the server in a network environment after each mobile phone logs in the charging pile APP;
the upgrading report generation module is used for acquiring local version information and upgrading state information of the charging piles after the mobile phones are connected with the off-network charging piles through the charging piles APP, and generating upgrading reports based on the version comparison table, the local version information and the upgrading state information;
the upgrading program pushing module is used for sending the corresponding upgrading program in the mobile phone to the charging pile APP based on the upgrading report;
and the offline upgrading module is used for installing the upgrading program after the charging pile checks the received upgrading program, so as to complete the offline upgrading of the charging pile.
7. The charging pile offline upgrade system according to claim 6, wherein: the charging pile APP login module specifically comprises:
each mobile phone logs in a charging pile APP, and after the charging pile APP receives an input instruction allowing auxiliary updating of the charging pile, the charging pile APP automatically downloads a latest updating program of each hardware version and a version comparison table to the mobile phone from a server in a network environment;
the version comparison table at least comprises the following fields: a hardware version number, a software version number, and a software version update date;
and each upgrading program carries a corresponding software version number.
8. The charging pile offline upgrade system according to claim 6, wherein: the upgrade report generation module specifically includes:
the charging pile APP is used for sending a connection request to the charging pile based on a key automatically generated during login, and the charging pile verifies the received connection request and establishes connection with the mobile phone;
the local information acquisition unit is used for acquiring local version information and upgrading state information of the charging pile through the charging pile APP and recording acquisition time;
the local version information comprises a charging pile number, a local hardware version number and a local software version number; the upgrade state information comprises an upgrade flag, a current upgrade version number and an upgrade progress; the value of the upgrading mark is 1 or 0, wherein 1 represents that upgrading is completed, and 0 represents that upgrading is in progress;
the local information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to the server; if not, after the network connection is recovered, uploading the charging pile number, the local hardware version number, the local software version number and the acquisition time to a server;
a software version number matching unit, configured to match the latest software version number from a version comparison table based on the local hardware version number, determine whether the software version number is consistent with the local software version number, and if so, enter an upgrade state information verification unit; if not, generating an upgrade report needing to be upgraded, and entering an upgrade program pushing module;
the upgrading state information verification unit is used for judging whether the charging pile APP finishes upgrading or not based on the upgrading state information, if yes, an upgrading report which does not need upgrading is generated, and the process is ended; if not, an upgrade report needing to be upgraded is generated, and the upgrade report enters an upgrade program pushing module.
9. The charging pile offline upgrade system according to claim 6, wherein: the upgrading program pushing module specifically comprises:
when the charging pile APP judges that the upgrade report needs to be upgraded, matching the latest software version number from the version comparison table based on the local hardware version number, sending an upgrade program corresponding to the software version number to the charging pile, and sending an upgrade command to the charging pile;
and the upgrading program carries the first hash value after hash calculation and is encrypted by a private key stored in the server.
10. The system of claim 9, wherein the system comprises: the offline upgrade module specifically includes:
the decryption unit is used for decrypting the received upgrading program by using a pre-stored public key based on the received upgrading command through the charging pile, judging whether the decryption is successful or not, and if so, entering the Hash check unit; if not, deleting the received upgrading program and ending the process;
the hash checking unit is used for performing hash calculation on the decrypted upgrading program by the charging pile to obtain a second hash value, judging whether the second hash value is consistent with the first hash value carried by the upgrading program or not, and entering the idle checking unit if the second hash value is consistent with the first hash value carried by the upgrading program; if not, deleting the received upgrading program and ending the process;
the idle checking unit is used for judging whether the charging pile executes the charging and discharging task currently or not, and if so, entering the upgrading program installation unit after the charging and discharging task is executed; if not, immediately entering an upgrading program installation unit;
the upgrading program installation unit is used for judging whether the current upgrading version number in the local upgrading state information is consistent with the software version number carried by the received upgrading program or not by the charging pile, if so, writing the upgrading program in batches based on the upgrading progress in the upgrading state information, and updating the upgrading state information; if not, deleting the old upgrading program and the corresponding installation data, installing the newly received upgrading program, and updating the upgrading state information;
the upgrading result verification unit is used for reacquiring the local software version number and the upgrading state information of the charging pile through a preset time length by the charging pile APP so as to judge whether the upgrading is successful, and if so, entering the upgrading state information uploading unit; if not, repeatedly upgrading for a preset number of times;
the upgrading state information uploading unit is used for judging whether the current charging pile APP keeps network connection with the server or not, and if so, uploading the upgrading state information to the server in real time; if not, uploading the upgrade state information to a server after the network connection is recovered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345737.3A CN114296743A (en) | 2021-11-15 | 2021-11-15 | Charging pile offline upgrading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345737.3A CN114296743A (en) | 2021-11-15 | 2021-11-15 | Charging pile offline upgrading method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114296743A true CN114296743A (en) | 2022-04-08 |
Family
ID=80963847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111345737.3A Pending CN114296743A (en) | 2021-11-15 | 2021-11-15 | Charging pile offline upgrading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114296743A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118709A (en) * | 2022-05-24 | 2022-09-27 | 福建星云电子股份有限公司 | Charging pile fault file acquisition method and system |
CN117539519A (en) * | 2024-01-09 | 2024-02-09 | 成都智邦科技有限公司 | Program batch upgrading method for charging piles |
-
2021
- 2021-11-15 CN CN202111345737.3A patent/CN114296743A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118709A (en) * | 2022-05-24 | 2022-09-27 | 福建星云电子股份有限公司 | Charging pile fault file acquisition method and system |
CN115118709B (en) * | 2022-05-24 | 2023-08-15 | 福建星云电子股份有限公司 | Method and system for acquiring fault file of charging pile |
CN117539519A (en) * | 2024-01-09 | 2024-02-09 | 成都智邦科技有限公司 | Program batch upgrading method for charging piles |
CN117539519B (en) * | 2024-01-09 | 2024-04-02 | 成都智邦科技有限公司 | Program batch upgrading method for charging piles |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114296743A (en) | Charging pile offline upgrading method and system | |
CN109561118B (en) | Software upgrading method, device, system, storage medium, electronic equipment and vehicle | |
CN102830992B (en) | Plug-in loading method and system | |
CN110116408B (en) | Robot safety control method, robot and computer readable storage medium | |
CN103514000B (en) | Browser plug-in installation method and device | |
CN105656860A (en) | Safety management and control method, apparatus and system for Android system | |
CN111817874A (en) | Remote maintenance system and method for electric power internet of things terminal equipment | |
CN104503791A (en) | Intelligent remote upgrading and maintaining method for remote self-contained equipment | |
CN112650520A (en) | Ammeter upgrading method and system, intelligent ammeter and storage medium | |
CN107623735B (en) | Accurate updating and upgrading system and method based on openssl in credit investigation machine system | |
CN114296744A (en) | Charging pile offline upgrading method and system based on multiple users | |
CN110708158B (en) | Method for remotely maintaining charging pile based on SSH reverse tunnel technology | |
CN110045969A (en) | Application program installation method, server, system, device and storage medium | |
CN102006597B (en) | Method and system for controlling software license as well as mobile terminal | |
CN116340956B (en) | Trusted protection optimization method and device for electric embedded terminal equipment | |
CN111552497B (en) | Firmware updating method and system for hardware wallet | |
CN102695169A (en) | Mobile terminal application program running method and system thereof | |
CN103856938A (en) | Encryption and decryption method, system and device | |
CN112667272A (en) | Ammeter upgrading method and system, intelligent ammeter and storage medium | |
WO2017150233A1 (en) | Terminal device and software rewriting program | |
CN104301419A (en) | Non-local-machine remote download control system and method | |
CN113497720A (en) | Firmware server, electric power internet of things proxy gateway and firmware remote upgrading method | |
CN103856537A (en) | Method, platform and system for obtaining operation state of application program on terminal | |
CN115118709B (en) | Method and system for acquiring fault file of charging pile | |
CN110909366A (en) | Anti-flashing method and system based on software end encryption |
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 |