CN103927211A - Wireless upgrading method based on FTP wireless upgrading system - Google Patents

Wireless upgrading method based on FTP wireless upgrading system Download PDF

Info

Publication number
CN103927211A
CN103927211A CN201410169676.3A CN201410169676A CN103927211A CN 103927211 A CN103927211 A CN 103927211A CN 201410169676 A CN201410169676 A CN 201410169676A CN 103927211 A CN103927211 A CN 103927211A
Authority
CN
China
Prior art keywords
ftp server
mounted terminal
port
leon
file data
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
CN201410169676.3A
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.)
Aerospace Hi Tech Holding Group Co Ltd
Original Assignee
Aerospace Hi Tech Holding Group 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 Aerospace Hi Tech Holding Group Co Ltd filed Critical Aerospace Hi Tech Holding Group Co Ltd
Priority to CN201410169676.3A priority Critical patent/CN103927211A/en
Publication of CN103927211A publication Critical patent/CN103927211A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a wireless upgrading method of a vehicle-mounted terminal, in particular to a wireless upgrading method based on an FTP wireless upgrading system. The problems that an exiting vehicle-mounted terminal wireless upgrading method is complex to use and poor in safety, and startup cannot be carried out due to improper operations are solved. The wireless upgrading method specifically comprises the steps that an FTP server is connected with the vehicle-mounted terminal; the vehicle-mounted terminal submits a user name and a password to the FTP server; whether the user name and the password are correct or not is judged, and the FTP server searches for file data packets if the user name and the password are correct, the file data packets are downloaded; whether the file data packets are downloaded successfully or not is judged, if the file data packets are downloaded successfully, an upgrading percentage progress bar is updated and displayed, meanwhile, whether all the file data packets are downloaded or not is judged, and if all the file data packets are downloaded, all the file data packets are numbered, and encrypted codes and check words of the data packets are removed; connection is carried out in an end-to-end mode; check is carried out according to full-field accumulation and a check mode, whether the check words are identical or not is judged, upgrading fails if the check words are not identical, and upgrading succeeds if the check words are identical. The wireless upgrading method is used for wirelessly upgrading the vehicle-mounted terminal.

Description

Based on the radio upgrade method of File Transfer Protocol wireless upgrade system
Technical field
The present invention relates to a kind of radio upgrade method of car-mounted terminal.
Background technology
Some car-mounted terminal can carry out radio upgrade at present, and existing car-mounted terminal radio upgrade is all to rely on supervising platform to issue program upgrade bag.That is to say, terminal manufacturer must provide program firmware (BIN file) to supervising platform, then by supervising platform, firmware is decomposed and is issued.Be made with so following problem:
1, some supervising platform can not support that firmware issues;
2, the firmware file of terminal is submitted to after platform, can not ensure its security and privacy;
If 3 misoperations and the failure of upgrading, terminal Bu Fan factory cannot start.
Summary of the invention
The radio upgrade method the present invention seeks in order to solve existing car-mounted terminal uses complicated, poor stability, and the problem that easily cannot start due to misoperation, and a kind of radio upgrade method based on File Transfer Protocol wireless upgrade system is provided.
Radio upgrade method based on File Transfer Protocol wireless upgrade system of the present invention, the wireless upgrade system based on File Transfer Protocol comprises ftp server and car-mounted terminal, car-mounted terminal comprises gsm module, CPU control module and Serial Control module;
The detailed process of the radio upgrade method based on this wireless upgrade system is:
Step 1, set up being connected of ftp server and car-mounted terminal;
The CPU control module of step 2, car-mounted terminal is submitted username and password to ftp server, is wirelessly transmitted to ftp server by gsm module;
Step 3, ftp server judge that whether the username and password of car-mounted terminal submission is correct, if it is perform step four, if otherwise return to step 1;
Step 4, ftp server retrieving files packet;
Step 5, ftp server are downloaded the file data bag retrieving;
Step 6, ftp server judge whether file data bag is downloaded successfully, if it is performs step seven, if otherwise return to step 5;
Step 7, ftp server are upgraded the progress bar that shows upgrading number percent, judge whether file data bag is all downloaded completely, if it is performs step eight simultaneously, if otherwise return to step 4;
Step 8, according to download sequencing by all files package number, remove encrypted code and the check word of each packet, obtain total data;
Step 9, the data that step 8 is obtained connect according to connected head-to-tail pattern;
Step 10, according to the verification of full word joint cumulative sum checking mode, judge whether identical with check word, if otherwise upgrade unsuccessfully, if it is upgrade successfully.
Advantage of the present invention: the radio upgrade method based on File Transfer Protocol wireless upgrade system of the present invention, it is the problem that the wireless upgrade system for solving existing car-mounted terminal exists, the upgrade method that a kind of enterprise proposing can manage voluntarily, this upgrade method does not need platform to issue firmware, and this radio upgrade method is reliable and stable.Radio upgrade method of the present invention adopts File Transfer Protocol, File Transfer Protocol provides an interactively communication pattern for this radio upgrade, the file that allows client access to specify, and possesses discriminating control ability, also allow file to there is access right, make the method be applicable to transfer files in heterogeneous network.
The major function of this radio upgrade method has:
1, firmware data decomposed and encrypt;
2, upload firmware data to ftp server, and authority is read in setting;
3, access ftp server by GSM;
4, firmware data synthesized and decipher;
5, car-mounted terminal is taken safety upgrade after firmware.
The feature that radio upgrade method based on File Transfer Protocol wireless upgrade system of the present invention is large for wirelessly transmitting data amount, environment for use is complicated, takes full advantage of that File Transfer Protocol is efficient, secret, the advantage of intervening without platform.The hardware system of the method has that integrated level is high, memory space is large, soon and easily advantage of processing speed.Be with a wide range of applications.
Brief description of the drawings
Fig. 1 is the structural representation of the wireless upgrade system based on File Transfer Protocol of the present invention;
Fig. 2 is LEON-G100 of the present invention and cpu circuit structural representation;
Fig. 3 is the radio upgrade method FB(flow block) based on File Transfer Protocol wireless upgrade system of the present invention.
Embodiment
Embodiment one: present embodiment is described below in conjunction with Fig. 1, radio upgrade method based on File Transfer Protocol wireless upgrade system described in present embodiment, wireless upgrade system based on File Transfer Protocol comprises ftp server and car-mounted terminal, and car-mounted terminal comprises gsm module, CPU control module and Serial Control module;
The detailed process of the radio upgrade method based on this wireless upgrade system is:
Step 1, set up being connected of ftp server and car-mounted terminal;
The CPU control module of step 2, car-mounted terminal is submitted username and password to ftp server, is wirelessly transmitted to ftp server by gsm module;
Step 3, ftp server judge that whether the username and password of car-mounted terminal submission is correct, if it is perform step four, if otherwise return to step 1;
Step 4, ftp server retrieving files packet;
Step 5, ftp server are downloaded the file data bag retrieving;
Step 6, ftp server judge whether file data bag is downloaded successfully, if it is performs step seven, if otherwise return to step 5;
Step 7, ftp server are upgraded the progress bar that shows upgrading number percent, judge whether file data bag is all downloaded completely, if it is performs step eight simultaneously, if otherwise return to step 4;
Step 8, according to download sequencing by all files package number, remove encrypted code and the check word of each packet, obtain total data;
Step 9, the data that step 8 is obtained connect according to connected head-to-tail pattern;
Step 10, according to the verification of full word joint cumulative sum checking mode, judge whether identical with check word, if otherwise upgrade unsuccessfully, if it is upgrade successfully.
In present embodiment, the configuration requirement of ftp server is not high, and the calculation process of File Transfer Protocol is fairly simple, does not need database yet.
Embodiment two: present embodiment is described below in conjunction with Fig. 2, present embodiment is described further embodiment one, the controller of described gsm module adopts the LEON-G100 of u-blox company, the controller of CPU control module is CPU, the DTR port ground connection of LEON-G100, after the RTS port series connection R301 resistance of LEON-G100, connect the GPRS_RTS port of CPU, after the CTS port series connection R303 resistance of LEON-G100, connect the GPRS_CTS port of CPU, R302 resistance is connected in parallel between the RTS port and CTS port of LEON-G100, after the TXD port series connection R304 resistance of LEON-G100, connect the RXD_GPRS port of CPU, the RXD port of LEON-G100 connects the TXD_GPRS port of CPU.
In present embodiment, the LEON-G100 that gsm module adopts, possesses two kinds of communication protocols of TCP and FTP.FTP communication has succinct and advantage fast, but has the unsettled shortcoming of transmission, and the bit error rate is along with weakening of GSM signal is multiplied, and the LEON-G100 performance index that the present invention adopts are better.
Embodiment three: below in conjunction with Fig. 1, present embodiment is described, present embodiment is described further embodiment one, and described ftp server also comprises fire wall, can shield network attack targetedly, ensures the stable operation of ftp server.
Embodiment four: present embodiment is described further embodiment one, the verification function of the full word joint cumulative sum checking mode described in step 10 is:
In the present invention, adopt modular design, ensure that system works is reliable, meet the requirement of real-time.In the time of wireless device access ftp server, transmission speed and accuracy rate rely on current network state completely.Once read excessive file, can extend call duration time, thereby cause the bit error rate to raise.Larger firmware file is resolved into some small documents, and small documents is encrypted one by one, can solve preferably communication issue and problem of data safety.
For firmware file, the present invention has adopted duplication check pattern, the small documents after each being decomposed adopts separately cyclic redundancy (CRC16) verification mode, and then whole firmware file is carried out to overall verification, adopts cumulative sum verification mode (SUM32).In theory still there is the possibility of makeing mistakes through the data of twice verification, so also will set up the unsuccessfully rear mechanism of recovering old firmware of upgrading on car-mounted terminal.

Claims (3)

1. the radio upgrade method based on File Transfer Protocol wireless upgrade system, the wireless upgrade system based on File Transfer Protocol comprises ftp server and car-mounted terminal, car-mounted terminal comprises gsm module, CPU control module and Serial Control module;
It is characterized in that, the detailed process of the radio upgrade method based on this wireless upgrade system is:
Step 1, set up being connected of ftp server and car-mounted terminal;
The CPU control module of step 2, car-mounted terminal is submitted username and password to ftp server, is wirelessly transmitted to ftp server by gsm module;
Step 3, ftp server judge that whether the username and password of car-mounted terminal submission is correct, if it is perform step four, if otherwise return to step 1;
Step 4, ftp server retrieving files packet;
Step 5, ftp server are downloaded the file data bag retrieving;
Step 6, ftp server judge whether file data bag is downloaded successfully, if it is performs step seven, if otherwise return to step 5;
Step 7, ftp server are upgraded the progress bar that shows upgrading number percent, judge whether file data bag is all downloaded completely, if it is performs step eight simultaneously, if otherwise return to step 4;
Step 8, according to download sequencing by all files package number, remove encrypted code and the check word of each packet, obtain total data;
Step 9, the data that step 8 is obtained connect according to connected head-to-tail pattern;
Step 10, according to the verification of full word joint cumulative sum checking mode, judge whether identical with check word, if otherwise upgrade unsuccessfully, if it is upgrade successfully.
2. the radio upgrade method based on File Transfer Protocol wireless upgrade system according to claim 1, it is characterized in that, the controller of described gsm module adopts the LEON-G100 of u-blox company, the controller of CPU control module is CPU, the DTR port ground connection of LEON-G100, after the RTS port series connection R301 resistance of LEON-G100, connect the GPRS_RTS port of CPU, after the CTS port series connection R303 resistance of LEON-G100, connect the GPRS_CTS port of CPU, R302 resistance is connected in parallel between the RTS port and CTS port of LEON-G100, after the TXD port series connection R304 resistance of LEON-G100, connect the RXD_GPRS port of CPU, the RXD port of LEON-G100 connects CPU's _ TXD_GPRS port.
3. the radio upgrade method based on File Transfer Protocol wireless upgrade system according to claim 1, is characterized in that, described ftp server also comprises fire wall, can shield network attack targetedly, ensures the stable operation of ftp server.
CN201410169676.3A 2014-04-25 2014-04-25 Wireless upgrading method based on FTP wireless upgrading system Pending CN103927211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410169676.3A CN103927211A (en) 2014-04-25 2014-04-25 Wireless upgrading method based on FTP wireless upgrading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410169676.3A CN103927211A (en) 2014-04-25 2014-04-25 Wireless upgrading method based on FTP wireless upgrading system

Publications (1)

Publication Number Publication Date
CN103927211A true CN103927211A (en) 2014-07-16

Family

ID=51145440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410169676.3A Pending CN103927211A (en) 2014-04-25 2014-04-25 Wireless upgrading method based on FTP wireless upgrading system

Country Status (1)

Country Link
CN (1) CN103927211A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819794A (en) * 2016-09-12 2018-03-20 厦门雅迅网络股份有限公司 Car-mounted terminal programme upgrade method and its system
CN108471456A (en) * 2018-06-26 2018-08-31 北京长城华冠汽车技术开发有限公司 Vehicle mounted communication module upgrade-system and upgrade method
CN108536452A (en) * 2017-02-28 2018-09-14 深圳市帝迈生物技术有限公司 A kind of embedded device and its system software upgrading method, system and terminal
CN110928566A (en) * 2019-11-27 2020-03-27 航天科技控股集团股份有限公司 Software ota upgrading method based on multi-version hardware
CN113660317A (en) * 2021-07-30 2021-11-16 江西五十铃汽车有限公司 Vehicle-mounted terminal remote upgrading method based on FTP protocol

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819794A (en) * 2016-09-12 2018-03-20 厦门雅迅网络股份有限公司 Car-mounted terminal programme upgrade method and its system
CN108536452A (en) * 2017-02-28 2018-09-14 深圳市帝迈生物技术有限公司 A kind of embedded device and its system software upgrading method, system and terminal
CN108536452B (en) * 2017-02-28 2023-05-26 深圳市帝迈生物技术有限公司 Embedded device, system software upgrading method, system and terminal thereof
CN108471456A (en) * 2018-06-26 2018-08-31 北京长城华冠汽车技术开发有限公司 Vehicle mounted communication module upgrade-system and upgrade method
CN110928566A (en) * 2019-11-27 2020-03-27 航天科技控股集团股份有限公司 Software ota upgrading method based on multi-version hardware
CN113660317A (en) * 2021-07-30 2021-11-16 江西五十铃汽车有限公司 Vehicle-mounted terminal remote upgrading method based on FTP protocol
CN113660317B (en) * 2021-07-30 2023-07-04 江西五十铃汽车有限公司 Vehicle-mounted terminal remote upgrading method based on FTP protocol

Similar Documents

Publication Publication Date Title
CN103927211A (en) Wireless upgrading method based on FTP wireless upgrading system
CN103414741B (en) A kind of method and system of remote upgrade PLC
CN102662697B (en) Software upgrading method and device
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN105659646B (en) Mobile device authentication
CN101309436A (en) Matching authentication method, apparatus and system for radio communication apparatus
CN102478797A (en) Monitoring system with configurable communication protocol
CN103597796A (en) Activation solution
CN104104547A (en) Management method for network equipment configuration files, and network controller
CN102104500A (en) Automatic network management equipment abnormity restoring method
CN104301875A (en) Short message processing method and device
EP3514093A1 (en) Mechanical system service tool
JP2009544379A (en) Method for data coupling between a medical device and a computer system
CN110727938A (en) Configuration method and device of intelligent equipment, electronic equipment and storage medium
CN112181455B (en) Online upgrading method of microcontroller, microcontroller and storage medium
CN112069008A (en) Equipment debugging information acquisition method and device and equipment debugging information generation method
CN104991800A (en) Method, apparatus and system for upgrading firmware of device that is not networked
CN113504922A (en) Robot software upgrading method and device, bridge server and upgrading server
CN106534342B (en) Connect control method, host and system
EP1936451A1 (en) System and method for setting software option of numeric control device
CN116700751A (en) Upgrading method of server firmware and computing device
CN111258603A (en) Intelligent door lock firmware upgrading method and intelligent door lock
CN107562021A (en) The system and method for the equipment operated in pre-configured or configuration industrial automation environment
CN107436778A (en) A kind of high reliability upgrade method of unmanned systems
CN107870776A (en) A kind of IPMC online upgradings method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Zheng Xiangbin

Inventor after: Wu Nannan

Inventor after: Zhang Lianying

Inventor after: Bi Sijun

Inventor after: Xiao Fanghui

Inventor after: E Hongfei

Inventor after: Yin Haikun

Inventor before: Zheng Xiangbin

Inventor before: Wu Nannan

Inventor before: Zhang Lianying

Inventor before: Xiao Fanghui

COR Change of bibliographic data
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140716