CN106972961A - A kind of safety means firmware upgrade method based on bluetooth - Google Patents

A kind of safety means firmware upgrade method based on bluetooth Download PDF

Info

Publication number
CN106972961A
CN106972961A CN201710172681.3A CN201710172681A CN106972961A CN 106972961 A CN106972961 A CN 106972961A CN 201710172681 A CN201710172681 A CN 201710172681A CN 106972961 A CN106972961 A CN 106972961A
Authority
CN
China
Prior art keywords
firmware
bluetooth
firmware upgrade
terminal device
safety means
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
CN201710172681.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.)
Dynamicode Co Ltd
Original Assignee
Dynamicode 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 Dynamicode Co Ltd filed Critical Dynamicode Co Ltd
Priority to CN201710172681.3A priority Critical patent/CN106972961A/en
Publication of CN106972961A publication Critical patent/CN106972961A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses a kind of safety means firmware upgrade method based on bluetooth, belong to equipment safety field, this method carries out firmware upgrade using Bluetooth channels.The firmware upgrade scheme that the present invention is provided, based on Bluetooth channels, can greatly improve the convenience that terminal device carries out firmware upgrade, while ensure the security of escalation process, from effectively solving existing safety means the problems of in terms of firmware upgrade.

Description

A kind of safety means firmware upgrade method based on bluetooth
Technical field
The present invention relates to equipment safety technology, and in particular to the firmware upgrade technology of equipment.
Background technology
At present, many equipment with bluetooth module have this to be widely applied in security fields, such as hand brush, MPOS machines Deng, these equipment and mobile phone A PP are used cooperatively, and realize the basic function of equipment, and these equipment user distribution after delivery is extensive, Once equipment, which runs into, to be needed to update firmware updating, for example:Legacy version firmware is issued before the Iphone7 of existing issue, it is impossible to simultaneous Hold Iphone7 bluetooth, if it is desired to the Iphone7 that preferably compatibility is newly issued is accomplished by upgrading to firmware, to adapt to Widely application.
If equipment does not support the function of firmware upgrade, it is necessary to which equipment is reclaimed from numerous clients' hand, factory is returned It is unified to carry out firmware upgrade, it is necessary to consume more manpower and financial resources, user's body during reclaiming and delivering again in equipment Test also not good.
Furthermore, although some existing equipment itself support the online upgrading of firmware, and its is reliable in actual use Property and security all exist it is certain the problem of.
The content of the invention
For existing safety means, it is necessary to a kind of new DFU side the problems of in terms of firmware upgrade Case.
Therefore, the technical problems to be solved by the invention are to provide a kind of safety means firmware upgrade side based on bluetooth Method, improves the convenience and security of safety means firmware upgrade.
In order to solve the above-mentioned technical problem, the safety means firmware upgrade method based on bluetooth that the present invention is provided, the party Method carries out firmware upgrade using Bluetooth channels.
In this firmware upgrade scheme, the firmware upgrade method includes:
Carry out authentication and the comparison of firmware version information;
Firmware download and verification are carried out using firmware upgrade aid, and terminal to be upgraded is handed down to by Bluetooth channels Equipment;
Terminal device to be upgraded carries out firmware verification and switching.
In this firmware upgrade scheme, using firmware upgrade aid by Bluetooth channels from terminal device to be upgraded Obtain firmware version information and identity information, thus complete proof of identity between terminal device to be upgraded and background server and Firmware version information compares.
In this firmware upgrade scheme, using firmware upgrade aid from the firmware of background server download signed, Complete to carry out completeness check after firmware is downloaded, being then handed down to terminal to be upgraded by Bluetooth channels by the form of agreement sets It is standby.
In this firmware upgrade scheme, the firmware upgrade aid is APP forms.
In this firmware upgrade scheme, the firmware upgrade aid is SDK.
In this firmware upgrade scheme, terminal device to be upgraded is got after firmware by Bluetooth channels, is set using terminal The identity information existed in standby carries out sign test to the firmware downloaded, and new firmware is switched to after sign test success, no Then run original firmware.
The firmware upgrade scheme that the present invention is provided, based on Bluetooth channels, can greatly improve terminal device and carry out firmware liter The convenience of level, while ensureing the security of escalation process.
Equipment recovery can greatly be reduced based on this programme and deliver again the manpower and financial resources consumption caused, convenient visitor Family uses raising Consumer's Experience.Furthermore, this programme is easily implemented, practical.
Brief description of the drawings
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Fig. 1 is the flow chart based on bluetooth progress DFU in present example.
Embodiment
In order that the technical means, the inventive features, the objects and the advantages of the present invention are easy to understand, tie below Conjunction is specifically illustrating, and the present invention is expanded on further.
The problem of this programme is directed to terminal device firmware upgrade, is realized by using Bluetooth channels and terminal device is carried out Line firmware upgrade, not only realizes this kind of terminal device and carries out firmware upgrade, at the same also ensure the firmware upgrade convenience and Security.
When this programme carries out firmware upgrade especially by firmware upgrade aid to terminal device, firmware upgrade auxiliary It is communicatively coupled between instrument and terminal device to be upgraded by bluetooth.Thus, online firmware is being carried out to terminal device During upgrading, first to carrying out authentication and the comparison of version information between terminal device and background server;Pass through firmware liter Level aid carries out firmware download from background server, after downloading completion and carrying out completeness check, passes through Bluetooth channels It is handed down to terminal device;Terminal device can carry out sign test with the identity information existed in equipment to the firmware downloaded, New firmware is switched to after sign test success, original firmware is otherwise run.
Here firmware upgrade aid is completed as the bridge joint transfer instrument between terminal device and background server Data transfer between terminal device and background server, then aids in terminal device to complete the online upgrading of firmware.
The firmware upgrade aid is preferably operated in the smart machine of user in corresponding APP forms, such as intelligent hand In machine, PAD.But not limited to this, can also be realized using other forms as needed, such as exclusive firmware upgrade instrument.
In addition, being preferably based on SDK in this programme to constitute firmware upgrade aid.
Accordingly, this programme carries out the process of online firmware upgrade to terminal device by background server, firmware upgrade auxiliary Coordinate between instrument (SDK) and terminal device to be upgraded and complete.
Whole firmware upgrade step is main:
(1) proof of identity and edition comparison
Firmware version information and body are obtained from terminal device to be upgraded by Bluetooth channels by firmware upgrade aid Part information, and background server is transmitted it to, completed by background server between terminal device to be upgraded and background server Proof of identity and firmware version information compare, it is ensured that both sides are credible.
(2) firmware is downloaded
There is provided corresponding signature firmware after proof of identity and firmware version information confirmation is completed for background server;Firmware Upgrading aid (SDK) completes to carry out completeness check after firmware is downloaded, so from the firmware of background server download signed Afterwards terminal device to be upgraded is handed down to by the form of agreement by Bluetooth channels.
(3) new firmware switchover operation
Terminal has been received after new firmware, and terminal device can be with the identity information existed in equipment to The firmware of download carries out sign test, and signed data is verified, and after verification is errorless, is automatically performed from old firmware to new firmware and switches Process.
For this programme, further illustrated below by way of a concrete application example.
In this application example, background server and firmware upgrade aid APP (SDK) (hereinafter referred to as SDK) coordinate, right Terminal device carries out online firmware upgrade.
Background server, its data communication between firmware upgrade APP is connected, connected mode here can using wired or Wirelessly, as long as ensureing data cube computation reliable and stable between the two.
The background server, completes to compare the proof of identity and firmware version information of terminal device, and provides new consolidate Number of packages evidence.
It is wireless based on smart mobile phone or PAD in firmware upgrade APP (SDK), the smart mobile phone or PAD that operate in user Data cube computation is carried out between communication module and background server, while passing through smart mobile phone or PAD bluetooth module and terminal device Carry out data cube computation.
Firmware upgrade APP can produce firmware upgrade detection, and terminal device is obtained from terminal device by Bluetooth channels Identity information and firmware information, and (such as 3G, 4G, 5 networks) are transmitted to background server by way of radio communication; Firmware upgrade APP downloads the firmware data of its offer also by way of radio communication from background server, and it is carried out Completeness check, by bluetooth by being issued to terminal device after the completion of verification.
Preparation accordingly, the online firmware upgrade flow of terminal device is following (referring to Fig. 1):
Preparatory stage:
RSA key pair is generated by equipment when terminal device is produced, backstage is arrived in equipment leading out public key Public Key (C) storages Server;Public Key (B) public-key cryptographic keys information of client is write during terminal device production simultaneously.
Firmware upgrade:
1.SDK ends:
User carries out upgrading detection by SDK, and initiates to update firmware requests, and the request includes obtaining firmware version and body The request of part information, and it is sent to terminal device by Bluetooth channels.
2. terminal:
Terminal device is got after the renewal firmware requests that SDK ends are sent by Bluetooth channels:
Equipment KSN is obtained, device version information organizes the version information of forming apparatus;
Random number is obtained, for server external authentication
Random number is signed using Public Key (C), after the signing messages tissue of random number and random number, made To be sent to the identity information on backstage.
The data organized are returned to SDK ends by terminal device by Bluetooth channels.
Server authentication:
1.SDK ends:
SDK ends and background server set up connection, the identity information and the firmware version letter of equipment that terminal device is returned Background server is sent to after breath tissue.
2. server end:
Data are uploaded to equipment using the Public (B) of server storage and carry out sign test, judge whether identity is legal:
If authentication does not pass through, SDK corresponding informations are returned to by APP;
If authentication passes through, judge whether device version needs to carry out firmware upgrade;
SDK corresponding informations are returned if firmware upgrade is not needed;
If desired firmware upgrade, then signed using Private (B) to random number, by identity information and with signature Firmware data returns to SDK.
3.SDK ends:
(1) firmware data of the SDK ends from server end download identity information and with signature, and verify the integrality of firmware.
(2) after the completion of verifying, the identity information that firmware essential information (such as firmware length) and server are returned passes through indigo plant Tooth passage is sent to terminal device, carries out authentication and space checking.
(3) after preliminary check is effective, firmware data is sent to terminal by Bluetooth channels by agreement form subpackage and set It is standby.
4. terminal:
(1) identity information of preliminary identification server, school is carried out using Public (B) to the random number of server signature Test, and preliminary identification is carried out to file space size, the result is returned into SDK ends.
(2) firmware and firmware signature data that SDK ends are sent are received, the firmware of reception and firmware signature data are saved in In the temporary realm of terminal device;
(3) treat after the completion of all data receivers, the public Key (B) in equipment are verified to firmware signature, Modification initiator address after verification is errorless, and whether upgraded successfully to SDK returns;
(4) complete to automatically reset, switch to new firmware operation.
From the foregoing, it will be observed that this programme, which is based on bluetooth equipment, carries out firmware in upgrading, it is possible to reduce equipment is reclaimed and delivered again The manpower and financial resources consumption caused, facilitates client to use raising Consumer's Experience.Meanwhile, in whole escalation process, can effectively it ensure The security of escalation process.
General principle, principal character and the advantages of the present invention of the present invention has been shown and described above.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the simply explanation described in above-described embodiment and specification is originally The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (7)

1. a kind of safety means firmware upgrade method based on bluetooth, it is characterised in that methods described is carried out using Bluetooth channels Firmware upgrade.
2. the safety means firmware upgrade method according to claim 1 based on bluetooth, it is characterised in that the firmware liter Level method includes:
Carry out authentication and the comparison of firmware version information;
Firmware download and verification are carried out using firmware upgrade aid, and terminal to be upgraded is handed down to by Bluetooth channels setting It is standby;
Terminal device to be upgraded carries out firmware verification and switching.
3. the safety means firmware upgrade method according to claim 2 based on bluetooth, it is characterised in that utilize firmware liter Level aid obtains firmware version information and identity information by Bluetooth channels from terminal device to be upgraded, thus completes to treat Proof of identity and firmware version information between upgrading terminals equipment and background server are compared.
4. the safety means firmware upgrade method according to claim 2 based on bluetooth, it is characterised in that utilize firmware liter Level aid completes to carry out completeness check after firmware is downloaded, then by about from the firmware of background server download signed Fixed form is handed down to terminal device to be upgraded by Bluetooth channels.
5. the safety means firmware upgrade method according to claim 2 based on bluetooth, it is characterised in that the firmware liter Level aid is APP forms.
6. the safety means firmware upgrade method according to claim 2 based on bluetooth, it is characterised in that the firmware liter Level aid is SDK.
7. the safety means firmware upgrade method according to claim 2 based on bluetooth, it is characterised in that terminal to be upgraded Equipment is got after firmware by Bluetooth channels, using the identity information existed in terminal device to the firmware downloaded Sign test is carried out, new firmware is switched to after sign test success, otherwise runs original firmware.
CN201710172681.3A 2017-03-21 2017-03-21 A kind of safety means firmware upgrade method based on bluetooth Pending CN106972961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710172681.3A CN106972961A (en) 2017-03-21 2017-03-21 A kind of safety means firmware upgrade method based on bluetooth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710172681.3A CN106972961A (en) 2017-03-21 2017-03-21 A kind of safety means firmware upgrade method based on bluetooth

Publications (1)

Publication Number Publication Date
CN106972961A true CN106972961A (en) 2017-07-21

Family

ID=59328765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710172681.3A Pending CN106972961A (en) 2017-03-21 2017-03-21 A kind of safety means firmware upgrade method based on bluetooth

Country Status (1)

Country Link
CN (1) CN106972961A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332589A (en) * 2017-08-07 2017-11-07 陶谦 A kind of device for upgrading firmware based on bluetooth
CN109358888A (en) * 2018-12-18 2019-02-19 郑州云海信息技术有限公司 Server firmware upgrade method, device, system and computer readable storage medium
CN109951842A (en) * 2019-03-19 2019-06-28 厦门市思芯微科技有限公司 A kind of bluetooth firmware method during upgrading for retaining BLE title and MAC Address
CN110535938A (en) * 2019-08-29 2019-12-03 腾讯科技(深圳)有限公司 A kind of data processing method based on intelligent contract, equipment and storage medium
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium
CN112002084A (en) * 2020-08-05 2020-11-27 拉卡拉支付股份有限公司 Method and system for upgrading mPOS terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN104168327A (en) * 2014-08-26 2014-11-26 许磊 Method for automatically updating external device
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN105204911A (en) * 2015-10-15 2015-12-30 成都艾克尔特医疗科技有限公司 Method and system for upgrading firmware of vital sign monitoring bracelet
CN105743697A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Bluetooth gateway firmware upgrading method
CN106210102A (en) * 2016-07-20 2016-12-07 广州小鸡快跑网络科技有限公司 The method and device of radio upgrade handle firmware based on bluetooth BLE

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN104168327A (en) * 2014-08-26 2014-11-26 许磊 Method for automatically updating external device
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN105204911A (en) * 2015-10-15 2015-12-30 成都艾克尔特医疗科技有限公司 Method and system for upgrading firmware of vital sign monitoring bracelet
CN105743697A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Bluetooth gateway firmware upgrading method
CN106210102A (en) * 2016-07-20 2016-12-07 广州小鸡快跑网络科技有限公司 The method and device of radio upgrade handle firmware based on bluetooth BLE

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332589A (en) * 2017-08-07 2017-11-07 陶谦 A kind of device for upgrading firmware based on bluetooth
CN107332589B (en) * 2017-08-07 2023-02-03 深圳市升熙科技有限公司 Firmware upgrading device based on bluetooth
CN109358888A (en) * 2018-12-18 2019-02-19 郑州云海信息技术有限公司 Server firmware upgrade method, device, system and computer readable storage medium
CN109951842A (en) * 2019-03-19 2019-06-28 厦门市思芯微科技有限公司 A kind of bluetooth firmware method during upgrading for retaining BLE title and MAC Address
CN110535938A (en) * 2019-08-29 2019-12-03 腾讯科技(深圳)有限公司 A kind of data processing method based on intelligent contract, equipment and storage medium
CN110535938B (en) * 2019-08-29 2021-07-27 腾讯科技(深圳)有限公司 Data processing method, equipment and storage medium based on intelligent contract
US11733991B2 (en) 2019-08-29 2023-08-22 Tencent Technology (Shenzhen) Company Limited Data processing method based on intelligent contract, device, and storage medium
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium
CN112002084A (en) * 2020-08-05 2020-11-27 拉卡拉支付股份有限公司 Method and system for upgrading mPOS terminal

Similar Documents

Publication Publication Date Title
CN106972961A (en) A kind of safety means firmware upgrade method based on bluetooth
US11868762B2 (en) Method for authenticating and updating eUICC firmware version and related apparatus
CN101924607B (en) Firmware processing method based on firmware air transmission technology, device and system thereof
CN109560931B (en) Equipment remote upgrading method based on certificate-free system
CN101958026B (en) User authentication module setting method and system
CN104052818A (en) Version upgrade method and device for mobile terminal
CN102202307A (en) Mobile terminal identity authentication system and method based on digital certificate
CN202696901U (en) Mobile terminal identity authentication system based on digital certificate
CN101795263A (en) Secure broadband access method, authentication method, device and system
CN103839160B (en) A kind of network trading digital signature method and device
CN104932912A (en) Software updating method and system and mobile device
CN103249033A (en) Method and terminal for achieving self-help number changing of SIM card
CN104394001A (en) Dynamic password authentication method and system based on two-dimensional code
CN105183499A (en) ROM flashing method, mobile terminal and terminal system
CN106656993B (en) Dynamic verification code verification method and device
CN104461616A (en) Updating method and system of software of chip card
CN105118100B (en) Vehicle carried electronic label method for updating program, mobile terminal and program updating system
CN104702575A (en) Account management method, management platform and account management system
CN103778528A (en) Payment processing method, payment processing system and payment processing device
CN109120419B (en) Upgrading method and device for ONU version of optical network unit and storage medium
CN110659899B (en) Offline payment method, device and equipment
CN102263792A (en) Wireless security key equipment, electronic commerce service system and method
CN105072616A (en) Verification method of flash ROM and verification apparatus of flash ROM
CN107819766A (en) Safety certifying method, system and computer-readable recording medium
CN107113320B (en) Method, related equipment and system for downloading signed file

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170721

RJ01 Rejection of invention patent application after publication