CN105577449A - Automatic upgrading method and device based on center control system of electric vehicle - Google Patents

Automatic upgrading method and device based on center control system of electric vehicle Download PDF

Info

Publication number
CN105577449A
CN105577449A CN201610034592.8A CN201610034592A CN105577449A CN 105577449 A CN105577449 A CN 105577449A CN 201610034592 A CN201610034592 A CN 201610034592A CN 105577449 A CN105577449 A CN 105577449A
Authority
CN
China
Prior art keywords
firmware version
information
version information
control system
central control
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
CN201610034592.8A
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.)
Jiangsu Xiaoniu Electric Technology Co Ltd
Original Assignee
Jiangsu Xiaoniu Electric 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 Jiangsu Xiaoniu Electric Technology Co Ltd filed Critical Jiangsu Xiaoniu Electric Technology Co Ltd
Priority to CN201610034592.8A priority Critical patent/CN105577449A/en
Publication of CN105577449A publication Critical patent/CN105577449A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an automatic upgrading method and device based on the center control system of an electric vehicle. The method comprises following steps: receiving message sent by the central control system through a user datagram protocol UDP, wherein the messages comprise version numbers; obtaining first firmware version information from a database according to the version numbers; judging whether the timestamp in the first firmware version information is the same to that in second firmware version information; if the timestamp in the first firmware version information is more than that in second firmware version information, viewing user setting information; if the user setting information is automatic upgrading information, packaging the first firmware version information and a downloading address into upgrading instruction information; and sending the upgrading instruction information to the central control system through a thread. According to the method and the device of the invention, the central control system of the electric vehicle can be updated timely; and the newest function can be experienced timely.

Description

A kind of automatically updating method based on electric motor car central control system and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of automatically updating method based on electric motor car central control system and device.
Background technology
Along with the development of vehicle technology, the method for software upgrading is also got more and more.Existing local upgrade method, usual needs manually carry out local operation, software all needs user's manual maintenance to upgrade, user is not only needed skillfully to grasp upgrade maintenance technology, and add amount of user effort, the success or not of upgrading even determines the Grasping level of each user to upgrade maintenance technology, thus makes user can not experience new more function in time.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of automatically updating method based on electric motor car central control system and device.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of automatically updating method based on electric motor car central control system, comprising:
Receive the message that central control system is sent by User Datagram Protoco (UDP) UDP, described message comprises version number;
From database, the first firmware version information is obtained according to described version number;
Judge that whether the timestamp in described first firmware version information is identical with the timestamp in the second firmware version information;
If the timestamp in described first firmware version information is greater than the timestamp in described second firmware version information, then check information-setting by user;
If described information-setting by user is auto-update information, then described first firmware version information and download address are encapsulated as upgrading command information;
Described upgrading command information is sent to described central control system by thread.
The invention has the beneficial effects as follows: the central control system of electric motor car is upgraded in time, and experience up-to-date function in time.
On the basis of technique scheme, the present invention can also do following improvement.
Further, describedly from database, obtain the first firmware version information according to described version number and comprise:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
Further, describedly described central control system is sent to comprise by thread described upgrading command information:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
Further, also comprise: if the timestamp in described first firmware version information equals the timestamp in described second firmware version information, then do not need to upgrade.
Further, described message also comprises protocol type, locomotive state, real-time speed, real time electrical quantity and traveling total kilometrage.
Another technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of auto-update device based on electric motor car central control system, comprising:
Receiving element, for receiving the message that central control system is sent by User Datagram Protoco (UDP) UDP, described message comprises version number;
Acquiring unit, for obtaining the first firmware version information according to described version number from database;
Whether judging unit is identical with the timestamp in the second firmware version information for judging the timestamp in described first firmware version information;
Check unit, when being greater than the timestamp in described second firmware version information for the timestamp in described first firmware version information, check information-setting by user;
Encapsulation unit, for when described information-setting by user is auto-update information, is encapsulated as upgrading command information by described first firmware version information and download address;
Transmitting element, for sending to described central control system by described upgrading command information by thread.
The invention has the beneficial effects as follows: the central control system of electric motor car is upgraded in time, and experience up-to-date function in time.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described first firmware version information comprises version number, and described acquiring unit comprises:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
Further, described transmitting element comprises:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
Further, also comprise: updating block, when equaling the timestamp in described second firmware version information for the timestamp in described first firmware version information, do not need to upgrade.
Accompanying drawing explanation
A kind of auto-update application scenarios schematic diagram based on electric motor car central control system that Fig. 1 provides for the embodiment of the present invention;
A kind of automatically updating method flow chart based on electric motor car central control system that Fig. 2 provides for the embodiment of the present invention;
A kind of auto-update device schematic diagram based on electric motor car central control system that Fig. 3 provides for the embodiment of the present invention.
In accompanying drawing, the list of parts representated by each label is as follows:
10, receiving element, 20, acquiring unit, 30, judging unit, 40, check unit, 50, encapsulation unit, 60, transmitting element.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
A kind of auto-update application scenarios schematic diagram based on electric motor car central control system that Fig. 1 provides for the embodiment of the present invention.
With reference to Fig. 1, message is sent to cloud server by User Datagram Protoco (UDP) (UserDatagramProtocol, UDP) by the central control system of electric motor car, and message comprises version number.After cloud server receives message, the corresponding firmware version information of version number is searched from MongDB (database), and according to the timestamp in firmware version information by firmware version information temporally inverted order order arrange, by the time more late be placed on before, by time putting behind comparatively early, finally using the firmware version information of sequence in first place as the first firmware version information, the first firmware version information is herein up-to-date firmware version information.
Judge that whether the timestamp in the first firmware version information is identical with the timestamp in the second firmware version information; If the timestamp in the first firmware version information is greater than the timestamp in the second firmware version information, then check information-setting by user; If information-setting by user is auto-update information, then the first firmware version information and download address are encapsulated as upgrading command information.After user is set to permission on APP server, database changes the is_update in this table into true by false.
Upgrading command information is put into transmit queue, and thread transfers upgrading command information from transmit queue, and sends to described central control system, and central control system is downloaded from content distributing network (ContentDeliveryNetwork, CDN).
A kind of automatically updating method flow chart based on electric motor car central control system that Fig. 2 provides for the embodiment of the present invention.
With reference to Fig. 2, in step S201, receive the message that central control system is sent by User Datagram Protoco (UDP) UDP, described message comprises version number.
In step S202, from database, from database, obtain the first firmware version information according to described version number.
Here, the first firmware version information specifically can refer to table 1, as shown in table 1:
Table 1
Field Data type Exemplary contents
_id ObjectId ObjectId
name String Firmware name
version String Firmware version
bytesize int Byte number
path String Download path
date Date Timestamp
In step S203, judge that whether the timestamp in the first firmware version information is identical with the timestamp in the second firmware version information, if the timestamp in the first firmware version information is greater than the timestamp in the second firmware version information, then perform step S204; If the timestamp in the first firmware version information equals the timestamp in the second firmware version information, then terminate, namely do not need to upgrade.
Here, the timestamp in the second firmware version information is the timestamp of the firmware version information that electric motor car uses.
In step S204, check whether information-setting by user is auto-update information, if information-setting by user is auto-update information, then perform step S205; If information-setting by user is not auto-update information, then terminate.
Here, after user is set to allow auto-update on APP server, database changes the is_update in table 2 into true by false.Specifically as shown in table 2:
Table 2
Field Data type Exemplary contents
_id ObjectId ObjectId
sn_id String Vehicle SN
prot_type String Protocol type
state int State
sim_id String SIM card is encoded
imei String imei
phone String SIM card cell-phone number
date Date Timestamp
is_update bool Whether allow automatic renewal
In step S205, described first firmware version information and download address are encapsulated as upgrading command information.
In step S206, described upgrading command information is sent to described central control system by thread.
Here, central control system needs the network address translation through multilayer route to cloud server transmission message, message could be sent to cloud server.When central control system receives upgrading command information, the link of this multilayer route can not disappear, and returns upgrading command information by the address of carrying in datagram and the former road of port.
Central control system receives upgrading command information, and downloads from CDN.CDN is bottleneck and the link of avoiding the Internet likely affects data transmission bauds and stability as far as possible, make content delivery sooner, more stable.By placing one deck intelligent virtual network on existing Internet basic that node server is formed everywhere at network, CDN system can in real time according to the connection of network traffics and each node, load state and the request of user again to be led from the nearest service node of user to the integrated information such as Distance geometry response time of user.Its objective is and make user can obtain required content nearby, solve the situation of network congestion, improve the response speed of user's access websites.
CDN is the content distributing network be structured on network, rely on the Edge Server being deployed in various places, by the functional module such as load balancing, contents distribution, scheduling of central platform, make user obtain required content nearby, reduce network congestion, improve user's access response speed and hit rate.The key technology of CDN mainly contains content and stores and distribution technology.
The general principle of CDN extensively adopts various caching server, these caching servers are distributed in the area or network that user accesses Relatively centralized, when user's access websites, utilize overall load technology the access of user to be pointed on nearest caching server working properly, directly respond user by caching server and ask.
Further, described first firmware version information comprises version number, describedly from database, obtains the first firmware version information according to described version number and comprises:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
Further, describedly described central control system is sent to comprise by thread described upgrading command information:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
Further, also comprise: if the timestamp in described first firmware version information equals the timestamp in described second firmware version information, then do not need to upgrade.
Further, described message also comprises protocol type, locomotive state, real-time speed, real time electrical quantity and traveling total kilometrage.
Here, the information in message specifically can refer to table 3, as shown in table 3:
Table 3
A kind of auto-update device schematic diagram based on electric motor car central control system that Fig. 3 provides for the embodiment of the present invention.
Auto-update device comprises receiving element 10, acquiring unit 20, judging unit 30, checks unit 40, encapsulation unit 50 and transmitting element 60.
The message that receiving element 10 is sent by User Datagram Protoco (UDP) UDP for receiving central control system, described message comprises version number.
Acquiring unit 20 for obtaining the first firmware version information according to described version number from database.
Whether judging unit 30 is identical with the timestamp in the second firmware version information for judging the timestamp in described first firmware version information.
When checking that unit 40 is greater than the timestamp in described second firmware version information for the timestamp in described first firmware version information, check information-setting by user.
Described first firmware version information and download address, for when described information-setting by user is auto-update information, are encapsulated as upgrading command information by encapsulation unit 50.
Transmitting element 60 is for sending to described central control system by described upgrading command information by thread.
Further, described first firmware version information comprises version number, and described acquiring unit 20 comprises:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
Further, described transmitting element 60 comprises:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
Further, also comprise: the updating block (not shown) timestamp be used in described first firmware version information equals the timestamp in described second firmware version information, do not need to upgrade.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. based on an automatically updating method for electric motor car central control system, it is characterized in that, comprising:
Receive the message that central control system is sent by User Datagram Protoco (UDP) UDP, described message comprises version number;
From database, the first firmware version information is obtained according to described version number;
Judge that whether the timestamp in described first firmware version information is identical with the timestamp in the second firmware version information;
If the timestamp in described first firmware version information is greater than the timestamp in described second firmware version information, then check information-setting by user;
If described information-setting by user is auto-update information, then described first firmware version information and download address are encapsulated as upgrading command information;
Described upgrading command information is sent to described central control system by thread.
2. a kind of automatically updating method based on electric motor car central control system according to claim 1, is characterized in that, describedly from database, obtains the first firmware version information according to described version number and comprises:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
3. a kind of automatically updating method based on electric motor car central control system according to claim 1, is characterized in that, describedly sends to described central control system to comprise by thread described upgrading command information:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
4. a kind of automatically updating method based on electric motor car central control system according to claim 1, it is characterized in that, also comprise: if the timestamp in described first firmware version information equals the timestamp in described second firmware version information, then do not need to upgrade.
5. a kind of automatically updating method based on electric motor car central control system according to claim 1, is characterized in that, described message also comprises protocol type, locomotive state, real-time speed, real time electrical quantity and traveling total kilometrage.
6., based on an auto-update device for electric motor car central control system, it is characterized in that, comprising:
Receiving element, for receiving the message that central control system is sent by User Datagram Protoco (UDP) UDP, described message comprises version number;
Acquiring unit, for obtaining the first firmware version information according to described version number from database;
Whether judging unit is identical with the timestamp in the second firmware version information for judging the timestamp in described first firmware version information;
Check unit, when being greater than the timestamp in described second firmware version information for the timestamp in described first firmware version information, check information-setting by user;
Encapsulation unit, for when described information-setting by user is auto-update information, is encapsulated as upgrading command information by described first firmware version information and download address;
Transmitting element, for sending to described central control system by described upgrading command information by thread.
7. a kind of auto-update device based on electric motor car central control system according to claim 6, it is characterized in that, described acquiring unit comprises:
From described database, firmware version information corresponding to described version number is searched according to described version number;
According to the timestamp in described firmware version information by described firmware version information temporally inverted order order arrange, using the firmware version information of sequence in first place as described first firmware version information.
8. a kind of auto-update device based on electric motor car central control system according to claim 6, it is characterized in that, described transmitting element comprises:
Described upgrading command information is put into transmit queue;
Described thread transfers described upgrading command information from described transmit queue, and sends to described central control system.
9. a kind of auto-update device based on electric motor car central control system according to claim 6, it is characterized in that, also comprise: updating block, when equaling the timestamp in described second firmware version information for the timestamp in described first firmware version information, do not need to upgrade.
CN201610034592.8A 2016-01-19 2016-01-19 Automatic upgrading method and device based on center control system of electric vehicle Pending CN105577449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610034592.8A CN105577449A (en) 2016-01-19 2016-01-19 Automatic upgrading method and device based on center control system of electric vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610034592.8A CN105577449A (en) 2016-01-19 2016-01-19 Automatic upgrading method and device based on center control system of electric vehicle

Publications (1)

Publication Number Publication Date
CN105577449A true CN105577449A (en) 2016-05-11

Family

ID=55887146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610034592.8A Pending CN105577449A (en) 2016-01-19 2016-01-19 Automatic upgrading method and device based on center control system of electric vehicle

Country Status (1)

Country Link
CN (1) CN105577449A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507337A (en) * 2016-10-08 2017-03-15 努比亚技术有限公司 A kind of FOTA updating apparatus and method
CN107749841A (en) * 2017-09-26 2018-03-02 北京北交信控科技有限公司 A kind of locomotive CIR equipment GIS database wireless upgrade systems and method
CN109144558A (en) * 2018-09-12 2019-01-04 达飞云贷科技(北京)有限公司 A kind of upgrade method and system of the non-framework document of APP
CN110673865A (en) * 2019-08-30 2020-01-10 上海能塔智能科技有限公司 Firmware upgrading method and device for equipment, storage medium, terminal and server
CN111381857A (en) * 2018-12-27 2020-07-07 北京骑胜科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN112394663A (en) * 2020-11-12 2021-02-23 深圳市泰比特科技有限公司 Method and device for upgrading central control interface line of shared electric bicycle
CN113515295A (en) * 2021-04-08 2021-10-19 上海七十迈数字科技有限公司 Method and equipment for upgrading system software of electric bicycle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252458A (en) * 2008-01-30 2008-08-27 深圳市共进电子有限公司 Firmware batch upgrading method
CN102317906A (en) * 2008-12-31 2012-01-11 施耐德电气美国股份有限公司 Automatic firmware updates for intelligent electronic devices
CN103826080A (en) * 2012-11-16 2014-05-28 杭州海康威视数字技术股份有限公司 Method and system for batch upgrading of hard-disk video recorders
CN104143225A (en) * 2013-09-18 2014-11-12 陈家盈 Electric vehicle driving information control method and system
CN104598276A (en) * 2015-01-13 2015-05-06 中科创达软件科技(深圳)有限公司 Online upgrade method and online upgrade device for touch screen firmware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252458A (en) * 2008-01-30 2008-08-27 深圳市共进电子有限公司 Firmware batch upgrading method
CN102317906A (en) * 2008-12-31 2012-01-11 施耐德电气美国股份有限公司 Automatic firmware updates for intelligent electronic devices
CN103826080A (en) * 2012-11-16 2014-05-28 杭州海康威视数字技术股份有限公司 Method and system for batch upgrading of hard-disk video recorders
CN104143225A (en) * 2013-09-18 2014-11-12 陈家盈 Electric vehicle driving information control method and system
CN104598276A (en) * 2015-01-13 2015-05-06 中科创达软件科技(深圳)有限公司 Online upgrade method and online upgrade device for touch screen firmware

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507337A (en) * 2016-10-08 2017-03-15 努比亚技术有限公司 A kind of FOTA updating apparatus and method
CN107749841A (en) * 2017-09-26 2018-03-02 北京北交信控科技有限公司 A kind of locomotive CIR equipment GIS database wireless upgrade systems and method
CN109144558A (en) * 2018-09-12 2019-01-04 达飞云贷科技(北京)有限公司 A kind of upgrade method and system of the non-framework document of APP
CN111381857A (en) * 2018-12-27 2020-07-07 北京骑胜科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN110673865A (en) * 2019-08-30 2020-01-10 上海能塔智能科技有限公司 Firmware upgrading method and device for equipment, storage medium, terminal and server
CN112394663A (en) * 2020-11-12 2021-02-23 深圳市泰比特科技有限公司 Method and device for upgrading central control interface line of shared electric bicycle
CN113515295A (en) * 2021-04-08 2021-10-19 上海七十迈数字科技有限公司 Method and equipment for upgrading system software of electric bicycle

Similar Documents

Publication Publication Date Title
CN105577449A (en) Automatic upgrading method and device based on center control system of electric vehicle
CN104468817B (en) Implementation method and device, server, the client of resource is downloaded by CDN
CN106533883B (en) A kind of method for building up, the apparatus and system of network special line
CN105979009B (en) A kind of increase load automatic balancing method for cloud application container
CN103118076B (en) Upgraded server cluster system and load balancing method thereof
CN106301959B (en) Gateway batch upgrading method and system based on WINDOWS and LINUX platform
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
CN106888270A (en) Return the method and system of source routing scheduling
KR20130088774A (en) System and method for delivering segmented content
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
CN104639648A (en) Remote upgrading method for intelligent cabinet
CN110120970B (en) Data processing method and device based on Internet of vehicles and gateway system
CN103001891B (en) Method for promoting integral service quality of local area network
CN107222560A (en) A kind of multinode Hui Yuan method, device and storage medium
CN107493346A (en) Resource file caching dissemination system and method based on multi-medium information spreading system
CN107181804A (en) The method for down loading and device of resource
CN109479018A (en) Network node with intelligent integrated
CN114124917A (en) Remote upgrading method, equipment, system and medium for ground lock firmware
CN105656964A (en) Implementation method and device for data pushing
CN108243254A (en) Electronic device, the method and storage medium of the publication of application upgrade version
CN106856456B (en) Processing method and system for cache cluster service
CN105792247A (en) Data pushing method and device
CN106330923A (en) Kubernetes system-based node registration method, and system
CN103685348B (en) The system and method that cloud performs

Legal Events

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

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication