CN106775852A - A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module - Google Patents

A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module Download PDF

Info

Publication number
CN106775852A
CN106775852A CN201611100599.1A CN201611100599A CN106775852A CN 106775852 A CN106775852 A CN 106775852A CN 201611100599 A CN201611100599 A CN 201611100599A CN 106775852 A CN106775852 A CN 106775852A
Authority
CN
China
Prior art keywords
upgrading
charge management
management terminal
file
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611100599.1A
Other languages
Chinese (zh)
Inventor
李旭升
孙明刚
刘世和
莫家年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloud Bird (shanghai) Energy Technology Co Ltd
Original Assignee
Cloud Bird (shanghai) Energy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloud Bird (shanghai) Energy Technology Co Ltd filed Critical Cloud Bird (shanghai) Energy Technology Co Ltd
Priority to CN201611100599.1A priority Critical patent/CN106775852A/en
Publication of CN106775852A publication Critical patent/CN106775852A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, a SSH server is built on main frame first, carry out configuration, then, Charge Management terminal connects SSH servers with scp orders by way of key authentication, and upgrading configuration and ROMPaq file are obtained from server, to realize itself upgrading.The upgrade method of Charge Management terminal of the invention, verified by building SSH servers and configuring cipher key, can quick obtaining upgrading configuration and program file during upgrading, the drawbacks of solving conventional Charge Management terminal and upgraded very slow using exchange data frames, pass through key authentication simultaneously, ensure that the security of data transfer, avoid the generation in the past with pseudo-terminal, pseudo- main website and " go-between " transmission malicious data situation, it is ensured that the safe and stable operation of Charge Management terminal.

Description

What a kind of embedded Linux Charge Management terminal was upgraded by wireless communication module Method
Technical field
The present invention relates to a kind of upgrade method of Charge Management terminal, in particular, more particularly to one kind solves biography The method that system escalation process is slow and unsafe embedded Linux Charge Management terminal is upgraded by wireless communication module.
Background technology
Traditional Charge Management terminal wireless upgrading scheme, more using 2G networks, by GRRS modules and Mobile phone card dialing Online, with TCP or udp protocol connection main website, escalation process is completed by exchange data frames between terminal and main website.Speed is very Slowly, and communicate it is unstable.Simultaneously traditional program escalation process security is very low, pseudo- main website easily occurs to steal or destroy eventually The data at end, or occur pseudo-terminal give main website transmission malicious data.The equipment operator of allowing assume responsibility for huge security risk.
Or obtain upgrade file using network transmission schemes such as ftp, traditional network server, such as:ftp、pop All it is in itself unsafe with telnet, it is unique because they transmit password and data on network with plaintext People is very easy to just intercept and capture these passwords and data.And, the safety verification mode of these service routines is also have its weak Point, exactly it is highly susceptible to " go-between "(man-in-the-middle)The attack of this mode.So-called " go-between's " Attack pattern, exactly " go-between " pretend to be real server to receive you to be transmitted to the data of server, you is then pretended to be again number According to being transmitted to real server.Server and the transmission of the data between you are changed hands after having done trick by " go-between ", will There is very serious problem.
The content of the invention
The present invention is in order to overcome the shortcoming of above-mentioned technical problem, there is provided one kind solves traditional escalation process slowly and not The method that the embedded Linux Charge Management terminal of safety is upgraded by wireless communication module.
The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, it is characterised in that Realize by the following method:A SSH server is built on main frame first, configuration is carried out, and by upgrading configuration and ROMPaq file is placed under a catalogue without Chinese character;Then, Charge Management terminal is tested with scp orders by key The mode of card connects SSH servers, and upgrading configuration and ROMPaq file are obtained from server, to realize itself rising Level.
The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, especially by with Lower step is realized:
A) builds SSH servers, SSH application programs is loaded on the main frame as server, to form SSH servers;b). Configuration server, SSH servers are set to the pattern of key authentication login first, and private key is generated further according to public key, and by private Key file is stored in Charge Management terminal, and public key file is stored in SSH servers, to carry out key authentication;C) storages Upgrading, configuration file, upgrading configuration and ROMPaq file are stored in a mesh for not containing Chinese of SSH servers Under record, so that Charge Management terminal obtains file;D) upgrading of Charge Managements terminal, Charge Management terminal passes through key authentication Mode obtains upgrading configuration and ROMPaq file from SSH servers, and judges whether that meeting upgrading requires, if full Foot requires then to be upgraded using new ROMPaq file.
The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, institute in step d) The upgrading of the Charge Management terminal stated is realized by following steps:
D-1) defines update time section and judges, one identical update time section T1~T2 of all Charge Management terminal definitions, Terminal staging is allowed within the time period, remaining time period does not allow terminal staging then;Each terminal is in non-update time section One random time value within T1~T2 time periods of interior generation, is set to the terminal staging time;Terminal judges current time Whether update time is arrived, if be less than, continued to judge;If arrived, step f-2 is performed);D-2) obtains upgrading and matches somebody with somebody Put file, Charge Management terminal with the private key that itself stores as verification condition, by scp orders by upgrading configuration from service Copy comes on device, and record has software version number, hardware version numbers and the ROMPaq file of ROMPaq in configuration file CRC16 check values;D-3) judges whether to meet promotion condition, and Charge Management terminal first determines whether that the software version number for obtaining is It is no identical with the software version number of current operation, if identical, terminate this upgrading, if it is not the same, then judging itself Whether configuration meets the requirement of hardware version numbers, if be unsatisfactory for, terminates this upgrading, if it is satisfied, then allowing upgrading simultaneously Perform step f-4);D-4) obtains ROMPaq file, and Charge Management terminal will upgrading from SSH servers by scp orders Program file copy comes, and the CRC16 check values recorded in calculator CRC16 check values and upgrading configuration whether one Cause, if it is inconsistent, terminating this upgrading;If consistent, step f-5 is performed);D-5) terminal stagings, Charge Management end Hold and replace old program file with new ROMPaq file, and delete upgrading configuration, restart terminal, you can complete terminal Upgrading.
The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, step d-1) in Described update time section T1~T2 is 2:00 AM~5:00 AM.
The beneficial effects of the invention are as follows:The upgrade method of Charge Management terminal of the invention, by building SSH servers simultaneously Configuring cipher key verifies, terminal during upgrading by quick obtaining upgrading configuration and program file by scp orders, The drawbacks of solving conventional Charge Management terminal and upgraded very slow using exchange data frames, while by key authentication, Ensure that the security of data transfer, it is to avoid conventional use pseudo-terminal, pseudo- main website and " go-between " transmission malicious data situation Occur, it is ensured that the safe and stable operation of Charge Management terminal.
Meanwhile, Charge Management terminal passes through to generate a random time value in update time section T1~T2, effectively The terminal quantity of same time request SSH servers is reduced, the pressure of server is alleviated, is conducive to supporting more terminals Upgrading.
Advantages of the present invention is embodied in:
(1), terminal staging file acquisition only need to call scp programs in program, it is not necessary to terminal is cumbersome to control Data frame is interacted, and improves the stability of development efficiency and file transmission.
(2), authentication between terminal and server by RSA key to carrying out, in view of the security of RSA Algorithm It is high, therefore substantially increase the security of document transmission process.
(3), the verification after file transmission carried out by Crc16 algorithms, improve the reliability of file transmission.
(4), per the update time of station terminal be to have taken the random value in T1 ~ T2 time periods, same time request can be reduced The terminal quantity of SSH servers, alleviates the pressure of server, is conducive to supporting more terminal stagings.
(5), because only needing to that what a upgrading configuration and program file prepared before upgrading, greatly reduce artificial ginseng With improve a liter stage efficiency.
Brief description of the drawings
Fig. 1 is the flow of the method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module Figure.
Specific embodiment
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
The method that embedded Linux Charge Management terminal of the invention is upgraded by wireless communication module, by with lower section Method is realized:A SSH server is built on main frame first, configuration is carried out, and upgrading configuration and ROMPaq is literary Part is placed under a catalogue without Chinese character;Then, Charge Management terminal is connected with scp orders by way of key authentication SSH servers are connect, and upgrading configuration and ROMPaq file are obtained from server, to realize itself upgrading.
Specific step is:
A) builds SSH servers, SSH application programs is loaded on the main frame as server, to form SSH servers;
B) configuration servers, SSH servers are set to the pattern of key authentication login first, and private key is generated further according to public key, And private key file is stored in Charge Management terminal, public key file is stored in SSH servers, to carry out key authentication;
C) storages upgrading, configuration file, by upgrading configuration and ROMPaq file be stored in SSH servers one not Under catalogue containing Chinese, so that Charge Management terminal obtains file;
D) upgrading of Charge Managements terminal, Charge Management terminal obtains upgrading and matches somebody with somebody by key authentication mode from SSH servers File and ROMPaq file are put, and judges whether that meeting upgrading requires, using new ROMPaq text if meeting and requiring Part is upgraded.
As shown in figure 1, giving what embedded Linux Charge Management terminal of the invention was upgraded by wireless communication module The flow chart of method, it is realized by following steps:
D-1) defines update time section and judges, one identical update time section T1~T2 of all Charge Management terminal definitions, Terminal staging is allowed within the time period, remaining time period does not allow terminal staging then;Each terminal is in non-update time section One random time value within T1~T2 time periods of interior generation, is set to the terminal staging time;Terminal judges current time Whether update time is arrived, if be less than, continued to judge;If arrived, step f-2 is performed);
In the step, described update time section T1~T2 is 2:00 AM~5:00 AM.
D-2) obtains upgrading configuration, Charge Management terminal with the private key that itself stores as verification condition, by scp Order upgrading configuration copy from server, in configuration file record have ROMPaq software version number, firmly Part version number and the CRC16 check values of ROMPaq file;
D-3) judges whether to meet promotion condition, Charge Management terminal first determine whether the software version number that obtains whether with currently Whether the software version number of operation is identical, if identical, terminates this upgrading, if it is not the same, then judging the configuration of itself Meet the requirement of hardware version numbers, if be unsatisfactory for, terminate this upgrading, if it is satisfied, then allowing step of upgrading and perform f-4);
D-4) obtain ROMPaq file, Charge Management terminal by scp orders from SSH servers by ROMPaq file Copy comes, and whether calculator CRC16 check values are consistent with the CRC16 check values recorded in upgrading configuration, if not Unanimously, then this upgrading is terminated;If consistent, step f-5 is performed);
D-5) terminal stagings, Charge Management terminal replaces old program file with new ROMPaq file, and deletes upgrading and match somebody with somebody File is put, terminal is restarted, you can terminal staging is completed.

Claims (4)

1. a kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module, it is characterised in that by with Lower method is realized:A SSH server is built on main frame first, configuration is carried out, and by upgrading configuration and upgrading journey Preface part is placed under a catalogue without Chinese character;Then, the side that Charge Management terminal passes through key authentication with scp orders Formula connects SSH servers, and upgrading configuration and ROMPaq file are obtained from server, to realize itself upgrading.
2. the method that embedded Linux Charge Management terminal according to claim 1 is upgraded by wireless communication module, its It is characterised by:Realized especially by following steps:
A) builds SSH servers, SSH application programs is loaded on the main frame as server, to form SSH servers;
B) configuration servers, SSH servers are set to the pattern of key authentication login first, and private key is generated further according to public key, And private key file is stored in Charge Management terminal, public key file is stored in SSH servers, to carry out key authentication;
C) storages upgrading, configuration file, by upgrading configuration and ROMPaq file be stored in SSH servers one not Under catalogue containing Chinese, so that Charge Management terminal obtains file;
D) upgrading of Charge Managements terminal, Charge Management terminal obtains upgrading and matches somebody with somebody by key authentication mode from SSH servers File and ROMPaq file are put, and judges whether that meeting upgrading requires, using new ROMPaq text if meeting and requiring Part is upgraded.
3. the method that embedded Linux Charge Management terminal according to claim 2 is upgraded by wireless communication module, its It is characterised by, the upgrading of the Charge Management terminal described in step d) is realized by following steps:
D-1) defines update time section and judges, one identical update time section T1~T2 of all Charge Management terminal definitions, Terminal staging is allowed within the time period, remaining time period does not allow terminal staging then;Each terminal is in non-update time section One random time value within T1~T2 time periods of interior generation, is set to the terminal staging time;Terminal judges current time Whether update time is arrived, if be less than, continued to judge;If arrived, step f-2 is performed);
D-2) obtains upgrading configuration, Charge Management terminal with the private key that itself stores as verification condition, by scp orders Upgrading configuration is copied from server, record has the software version number of ROMPaq, hardware version in configuration file This number and the CRC16 check values of ROMPaq file;
D-3) judges whether to meet promotion condition, Charge Management terminal first determine whether the software version number that obtains whether with currently Whether the software version number of operation is identical, if identical, terminates this upgrading, if it is not the same, then judging the configuration of itself Meet the requirement of hardware version numbers, if be unsatisfactory for, terminate this upgrading, if it is satisfied, then allowing step of upgrading and perform f-4);
D-4) obtain ROMPaq file, Charge Management terminal by scp orders from SSH servers by ROMPaq file Copy comes, and whether calculator CRC16 check values are consistent with the CRC16 check values recorded in upgrading configuration, if not Unanimously, then this upgrading is terminated;If consistent, step f-5 is performed);
D-5) terminal stagings, Charge Management terminal replaces old program file with new ROMPaq file, and deletes upgrading and match somebody with somebody File is put, terminal is restarted, you can terminal staging is completed.
4. the method that embedded Linux Charge Management terminal according to claim 3 is upgraded by wireless communication module, its It is characterised by:Step d-1) described in update time section T1~T2 be 2:00 AM~5:00 AM.
CN201611100599.1A 2016-12-05 2016-12-05 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module Pending CN106775852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611100599.1A CN106775852A (en) 2016-12-05 2016-12-05 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611100599.1A CN106775852A (en) 2016-12-05 2016-12-05 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module

Publications (1)

Publication Number Publication Date
CN106775852A true CN106775852A (en) 2017-05-31

Family

ID=58883996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611100599.1A Pending CN106775852A (en) 2016-12-05 2016-12-05 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module

Country Status (1)

Country Link
CN (1) CN106775852A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708158A (en) * 2019-11-06 2020-01-17 积成电子股份有限公司 Method for remotely maintaining charging pile based on SSH reverse tunnel technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN201733371U (en) * 2010-06-22 2011-02-02 上海大亚科技有限公司 Interactive TV set top box IP on-demand loading upgrading device
CN102609281A (en) * 2012-02-24 2012-07-25 中国电子科技集团公司第十五研究所 Distributed software patch updating method and distributed software patch updating system
CN104375859A (en) * 2014-10-29 2015-02-25 浪潮电子信息产业股份有限公司 Method for refreshing node BMCs of Rack in batch
CN106131682A (en) * 2016-07-14 2016-11-16 青岛海信宽带多媒体技术有限公司 Set Top Box built-in WiFi firmware upgrade method, device and Set Top Box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN201733371U (en) * 2010-06-22 2011-02-02 上海大亚科技有限公司 Interactive TV set top box IP on-demand loading upgrading device
CN102609281A (en) * 2012-02-24 2012-07-25 中国电子科技集团公司第十五研究所 Distributed software patch updating method and distributed software patch updating system
CN104375859A (en) * 2014-10-29 2015-02-25 浪潮电子信息产业股份有限公司 Method for refreshing node BMCs of Rack in batch
CN106131682A (en) * 2016-07-14 2016-11-16 青岛海信宽带多媒体技术有限公司 Set Top Box built-in WiFi firmware upgrade method, device and Set Top Box

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708158A (en) * 2019-11-06 2020-01-17 积成电子股份有限公司 Method for remotely maintaining charging pile based on SSH reverse tunnel technology
CN110708158B (en) * 2019-11-06 2022-06-10 积成电子股份有限公司 Method for remotely maintaining charging pile based on SSH reverse tunnel technology

Similar Documents

Publication Publication Date Title
CN105656890B (en) A kind of FIDO authenticators and system and method based on TEE and without line justification
CN103973787B (en) The method and system of mobile intelligent terminal remote control display terminal
US11443293B2 (en) Secure network accessing method for POS terminal, and system thereof
CN104202299A (en) System and method of identity authentication based on Bluetooth
JP2007068161A (en) Distributed authentication function
CN104539421A (en) Realizing method for mobile token based on dynamic algorithm seed
JP2014504069A (en) Method, apparatus, and system for verifying a communication session
CN106452763B (en) One kind using cipher key method by remote dummy USB device
CN111461720B (en) Identity verification method and device based on blockchain, storage medium and electronic equipment
CN103501293B (en) The authentication method that trusted end-user is accessed in a kind of intelligent grid
WO2019071650A1 (en) Method for upgrading application in security element and related device
CN102158483A (en) Method and system for authenticating access of intelligent television, intelligent television and authentication server
CN105119716A (en) Secret key negotiation method based on SD cards
CN111541776A (en) Safe communication device and system based on Internet of things equipment
CN111031540B (en) Wireless network connection method and computer storage medium
CN107566396A (en) A kind of method based on dynamic password enhancing server VPN protocol securitys
CN105930732B (en) A kind of credible startup method of suitable VPX appliance services board
KR101243101B1 (en) Voice one-time password based user authentication method and system on smart phone
CN102170630A (en) Method and system for preventing network locking of mobile terminal from being illegally cracked
CN106775852A (en) A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module
CN103475491A (en) Remote maintenance system which is logged in to safely without code and achieving method
CN104185167B (en) A kind of method and terminal updating terminal card-locking information
CN105873059A (en) United identity authentication method and system for power distribution communication wireless private network
CN107342963A (en) A kind of secure virtual machine control method, system and the network equipment
CN107147661A (en) One kind strengthens File Transfer Protocol security system and method based on dynamic password

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170531

WD01 Invention patent application deemed withdrawn after publication