CN107734010B - Upgrading system and upgrading method based on recorder management - Google Patents
Upgrading system and upgrading method based on recorder management Download PDFInfo
- Publication number
- CN107734010B CN107734010B CN201710899320.9A CN201710899320A CN107734010B CN 107734010 B CN107734010 B CN 107734010B CN 201710899320 A CN201710899320 A CN 201710899320A CN 107734010 B CN107734010 B CN 107734010B
- Authority
- CN
- China
- Prior art keywords
- upgraded
- upgrading
- recorder
- upgrade
- file
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0843—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an upgrading system and an upgrading method based on recorder management, wherein a service terminal of the upgrading system comprises a plurality of servers, and the servers are used for storing upgrading files; the recorder platform is connected with the recorder to be upgraded and is connected with the service terminal through a message bus, the received upgrade file is converted into a stream file in a blocking mode according to a preset rule, the stream file is sent to all servers of the service terminal through the message bus, and the recorder platform also sends an upgrade instruction to the service terminal and all the recorder to be upgraded; after the recording instrument to be upgraded receives the upgrading instruction, the recording instrument to be upgraded is connected with the service terminal through the load distribution device, and the load distribution device is used for establishing connection between the recording instrument to be upgraded and the servers so as to uniformly distribute all the servers in the service terminal to all the recording instruments to be upgraded; and the server transmits the stored upgrade file to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrade file.
Description
Technical Field
The invention belongs to the field of vehicle management, and particularly relates to an upgrading system and an upgrading method based on recorder management.
Background
At present, more than 1 million vehicles use an aerospace science and technology recorder management platform on line every day, the vehicles are distributed all over the country, and nearly 2 million coordinate data of position, speed, running state, alarm condition and the like are transmitted to the platform every day. And accumulating the coordinate data, and storing 70-80 hundred million coordinate data in the platform every year. The data truly reflects the information of road conditions, climates, vehicle gathering places and the like of all national expressways, provincial and urban highways and urban roads, and indirectly reflects the information of effluent hot spots, tourist hot spots and the like. However, the existing recorder management platform has insufficient resources during upgrading, and cannot meet the requirement of simultaneously upgrading a large number of recorders.
Disclosure of Invention
The invention provides an upgrading system and an upgrading method based on recorder management, which can meet the requirement of simultaneously upgrading a large number of recorders and can solve the problem that the existing recorder management platform has insufficient resources during upgrading and cannot meet the requirement of simultaneously upgrading the large number of recorders.
The invention relates to an upgrading system based on recorder management, which comprises:
the service terminal comprises a plurality of servers, and the servers are used for storing the upgrade files;
the system comprises a recorder platform, a server and a recorder, wherein the recorder platform is connected with a recorder to be upgraded and is connected with the server terminal through a message bus, and is used for converting a received upgrade file into a stream file in a blocking mode according to a preset rule and sending the stream file to all servers of the server terminal through the message bus;
the load distribution device is used for establishing the connection between the recording instrument to be upgraded and the server so as to uniformly distribute all the servers in the service terminal to all the recording instruments to be upgraded;
the server is used for sending the stored upgrading file to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrading file.
Preferably, the recorder platform comprises:
the receiving unit is used for receiving the upgrading file and upgrading template information, the upgrading template information comprises upgrading rules, versions and ID codes of the recording instruments to be upgraded, and the upgrading rules comprise upgrading and non-upgrading;
the database is connected with the receiving unit and used for storing the upgrading file and the ID code of the recorder to be upgraded;
the blocking unit is connected with the database and is used for blocking the upgrade file by a preset byte number, taking a blocking serial number as a block identifier and sending the blocking serial number to the service terminal in the form of the stream file through the message bus;
and the processing unit is respectively connected with the receiving unit and the database and is used for judging whether to execute upgrading operation according to the upgrading template information, and when the upgrading operation is executed, an upgrading instruction is sent to the service terminal and all the recording instruments to be upgraded according to the ID codes of the recording instruments to be upgraded in the upgrading template information.
Preferably, the server includes:
the storage unit is used for storing the upgrading file;
the authentication unit is used for verifying whether the recorder to be upgraded has access right or not after the recorder to be upgraded is connected with the server through the load distribution device, and if the recorder to be upgraded passes the verification, an attribute acquisition instruction is sent to the recorder to be upgraded;
the analysis unit is used for analyzing the attribute response sent by the recording instrument to be upgraded, judging whether the parameter information of the attribute response is complete or not, and if so, generating a validity instruction;
the verification unit is used for verifying the effectiveness of the upgrading instruction according to the effectiveness instruction;
and the upgrading unit is used for retrieving the upgrading file which accords with the upgrading instruction from the storage unit and sending the upgrading file to the recorder to be upgraded when the upgrading instruction passes verification.
The invention also provides an upgrading method based on recorder management, a service terminal is provided and comprises a plurality of servers, the servers are all used for storing upgrading files, and the upgrading method comprises the following steps:
s1, a recorder platform converts received upgrading files into stream files in a blocking mode according to preset rules, the stream files are sent to all servers of the service terminal through a message bus, and the recorder platform sends upgrading instructions to the service terminal and all the recorders to be upgraded;
s2, after the recording instrument to be upgraded receives the upgrading instruction, the recording instrument to be upgraded is connected with the service terminal through a load distribution device, and the connection between the recording instrument to be upgraded and the server is established through the load distribution device, so that all the servers in the service terminal are uniformly distributed to all the recording instruments to be upgraded;
and S3, the server issues the stored upgrade file to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrade file.
Preferably, the specific process of step S1 is as follows:
s11, receiving the upgrade file and upgrade template information, wherein the upgrade template information comprises an upgrade rule, a version and an ID code of a recorder to be upgraded, and the upgrade rule comprises upgrade and non-upgrade;
s12, storing the upgrade file and the ID code of the recorder to be upgraded;
s13, partitioning the upgrade file by using a preset byte number, using a partition serial number as a block identifier, and sending the partition serial number to the service terminal through the message bus in the form of the stream file;
s14, judging whether to execute upgrading operation according to the upgrading template information, and when the upgrading operation is executed, sending an upgrading instruction to the service terminal and all the recording instruments to be upgraded according to the ID codes of the recording instruments to be upgraded in the upgrading template information.
Preferably, a storage unit is provided in the server for storing the upgrade file; the specific process of step S3 is as follows:
s31, after the recording instrument to be upgraded is connected with the server through the load distribution device, the server verifies whether the recording instrument to be upgraded has access right, and if yes, step S33 is executed; if not, go to step S32;
s32, the server is disconnected from the recording instrument to be upgraded, and the process is finished;
s33, sending an attribute acquisition instruction to the recorder to be upgraded, and executing the step S34;
s34, acquiring an attribute response sent by the recording instrument to be upgraded, analyzing the attribute response, judging whether parameter information of the attribute response is complete or not, and if so, executing a step S35; if not, go to step S32;
s35, generating a validity instruction, verifying the validity of the upgrading instruction according to the validity instruction, judging whether the upgrading instruction passes the verification, and if so, executing the step S36; if not, go to step S32;
s36, retrieving the upgrading file conforming to the upgrading instruction in the storage unit, and sending the upgrading file to the recorder to be upgraded;
and S37, when the upgrade is completed, maintaining the upgrade information, and disconnecting the server from the recording instrument to be upgraded.
The features mentioned above can be combined in various suitable ways or replaced by equivalent features as long as the object of the invention is achieved.
The invention has the advantages that the upgrade file is converted into the stream file by the recorder platform and is sent to the service terminal, thereby accelerating the uploading speed of the upgrade file and preventing the occurrence of packet loss during file transmission; the problem of insufficient server resources caused by concurrent upgrading of large quantities of records to be upgraded is solved by upgrading the records to be upgraded by a plurality of servers.
Drawings
FIG. 1 is a block diagram of an embodiment of a recorder management based upgrade system according to the present invention;
FIG. 2 is a flowchart of a method of one embodiment of a recorder management based upgrade method of the present invention;
fig. 3 is a flowchart of an upgrade method based on recorder management according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
As shown in fig. 1, an upgrade system based on recorder management includes:
the service terminal 3 comprises a plurality of servers, and the servers are used for storing the upgrade files;
the recorder platform 1 is connected with the recorder 4 to be upgraded and connected with the service terminal 3 through the message bus 2, is used for receiving the upgrade file uploaded by background workers, converting the upgrade file into a stream file in a blocking mode according to a preset rule, and sending the stream file to all servers of the service terminal 3 through the message bus 2, and the recorder platform 1 is further used for sending upgrade instructions to the service terminal 3 and all the recorder 4 to be upgraded;
the load distribution device 5 is used for establishing the connection between the recording instrument 4 to be upgraded and the server so as to uniformly distribute all the servers in the service terminal 3 to all the recording instruments 4 to be upgraded after the recording instrument 4 to be upgraded receives the upgrading instruction, wherein the recording instrument 4 to be upgraded is connected with the service terminal 3 through the load distribution device 5;
the server is used for sending the stored upgrade files to the corresponding recorder 4 to be upgraded, and the recorder 4 to be upgraded is upgraded according to the received upgrade files.
Before upgrading, the upgrading template information and the upgrading file need to be uploaded to the recorder platform 1, the upgrading file required by the wireless upgrading of the recorder 4 to be upgraded is stored to a server through a specified path set by a spring configuration file, the upgrading template information stores the file to a database through a jdbc driver, and the upgrading template information sends a message to the background recorder platform 1 through a message bus 2. The upgrading system based on the recorder management adopts wireless upgrading, a large number of vehicles can be upgraded at one time, the vehicles to be upgraded can be accurately and quickly matched with the version number of software to be upgraded, whether the hardware version number of the equipment meets the upgrading requirement or not is judged according to the upgrading file rule, and therefore upgrading is selected according to the ID of the recorder 4 to be upgraded in the database.
In the embodiment, the upgrade file is converted into the stream file by the recorder platform 1 and is sent to the service terminal 3, so that the uploading speed of the upgrade file is increased, and the situation of packet loss during file transmission is prevented; through the message bus 2 technology, the upgrading service can be deployed to a plurality of servers simultaneously, the server load is improved, and the problem that the server resources are insufficient due to concurrent upgrading of a large number of records to be upgraded for the recorder 4 to be upgraded is solved.
In a preferred embodiment, the recorder platform 1 comprises:
the receiving unit is used for receiving the upgrade file and the upgrade template information, the upgrade template information comprises an upgrade rule, a version and a recorder 4ID code to be upgraded, and the upgrade rule comprises upgrade and non-upgrade;
the database is connected with the receiving unit and used for storing the upgrading file and the ID code of the recorder 4 to be upgraded;
the blocking unit is connected with the database and is used for blocking the upgrade file by a preset byte number, taking the block serial number as a block identifier and sending the block serial number to the service terminal 3 through the message bus 2 in the form of a stream file;
and the processing unit is respectively connected with the receiving unit and the database and is used for judging whether to execute the upgrading operation according to the upgrading template information, and when the upgrading operation is executed, the processing unit sends an upgrading instruction to the service terminal 3 and all the recorders 4 to be upgraded according to the ID codes of the recorders 4 to be upgraded in the upgrading template information.
In this embodiment, the preset number of bytes may be 900 bytes. The block identification can be quickly positioned to a lost data packet, and the packet loss compensation efficiency of the recorder can be greatly improved. The recorder platform 1 receives the upgrade message and pushes the upgrade message to the background upgrade service, and after receiving the push message, the upgrade service blocks the file according to the message content and the size of 900 bytes according to the rule, and simultaneously loads the file into a buffer area of the service terminal 3 by using the block serial number as a block identifier. The recorder platform 1 issues an upgrade instruction to the recorder 4 to be upgraded, and the recorder 4 to be upgraded is actively connected to the server to perform terminal authentication after receiving the upgrade instruction.
In a preferred embodiment, the server comprises:
the storage unit is used for storing the upgrading file;
the authentication unit is used for verifying whether the recorder 4 to be upgraded has access right after the recorder 4 to be upgraded is connected with the server through the load distribution device 5, and if the access right passes the verification, sending an attribute acquisition instruction to the recorder 4 to be upgraded;
the analysis unit is used for analyzing the attribute response sent by the upgrading recorder 4, judging whether the parameter information of the attribute response is complete or not, and if so, generating a validity instruction;
the verification unit is used for verifying the effectiveness of the upgrading instruction according to the effectiveness instruction;
and the upgrading unit is used for searching an upgrading file which accords with the upgrading instruction in the storage unit when the upgrading instruction passes the verification, and sending the upgrading file to the recorder 4 to be upgraded.
In this embodiment, after receiving the authentication information sent by the recorder 4 to be upgraded, the server performs authentication verification, sends an authentication success instruction after the authentication is successful, and simultaneously issues an attribute acquisition instruction to wait for the recorder 4 to be upgraded to report an attribute response of the query terminal.
And the server receives the terminal upgrading instruction and then performs data validity verification, after the verification is successful, the server verifies whether the terminal accords with the upgrading rule according to the attribute of the recorder 4 to be upgraded, if the terminal accords with the upgrading rule, the server retrieves the upgrading file content which accords with the upgrading in the upgrading file buffer area and sends the file block in the buffer area to the recorder.
When the server receives that the supplementary transmission packet uploaded by the recorder 4 to be upgraded is 0, the server judges that the upgrading of the recorder 4 to be upgraded is completed, the upgrading completion information is stored in a database, and the recorder platform 1 can retrieve the upgrading result.
As shown in fig. 2, an upgrade method based on recorder management provides a service terminal including a plurality of servers, where the servers are used to store upgrade files, and the upgrade method includes the following steps:
s1, a recorder platform carries out blocking conversion on a received upgrade file according to a preset rule to form a stream file, the stream file is sent to all servers of a service terminal through a message bus, and the recorder platform sends an upgrade instruction to the service terminal and all recorders to be upgraded;
s2, after the recording instrument to be upgraded receives the upgrading instruction, the recording instrument to be upgraded is connected with the service terminal through the load distribution device, and the connection between the recording instrument to be upgraded and the server is established through the load distribution device so as to uniformly distribute all the servers in the service terminal to all the recording instruments to be upgraded;
and S3, the server transmits the stored upgrade file to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrade file.
In the embodiment, the upgrade file is converted into the stream file through the recorder platform and is sent to the service terminal, so that the uploading speed of the upgrade file is increased, and the situation of packet loss during file transmission is prevented; through the message bus technology, the upgrading service can be deployed to a plurality of servers simultaneously, the server load is improved, and the problem of insufficient server resources caused by concurrent upgrading of large-batch records to be upgraded is solved by upgrading the records to be upgraded through the plurality of servers.
In a preferred embodiment, the specific process of step S1 is:
s11, receiving an upgrade file and upgrade template information, wherein the upgrade template information comprises an upgrade rule, a version and an ID code of a recorder to be upgraded, and the upgrade rule comprises upgrade and non-upgrade;
s12, storing the upgrade file and the ID code of the recorder to be upgraded;
s13, partitioning the upgrade file by using a preset byte number, using a partition serial number as a block identifier, and sending the partition serial number to a service terminal in a form of a stream file through a message bus;
and S14, judging whether to execute upgrading operation according to the upgrading template information, and when the upgrading operation is executed, sending an upgrading instruction to the service terminal and all the recording instruments to be upgraded according to the ID codes of the recording instruments to be upgraded in the upgrading template information.
In this embodiment, the preset number of bytes may be 900 bytes. The block identification can be quickly positioned to a lost data packet, and the packet loss compensation efficiency of the recorder can be greatly improved. The recorder platform receives the upgrade message and pushes the upgrade message to a background upgrade service, after receiving the push message, the upgrade service blocks the file according to the message content by 900 bytes according to the rule, and simultaneously loads the file into a buffer area of the service terminal by taking the block serial number as a block identifier. And the recorder platform issues an upgrading instruction to the recorder to be upgraded, and the recorder to be upgraded is actively connected to the server to perform terminal authentication after receiving the upgrading instruction.
As shown in fig. 3, in the preferred embodiment, a storage unit is provided in the server for storing the upgrade file; the specific process of step S3 is:
s31, after the recording instrument to be upgraded is connected with the server through the load distribution device, the server verifies whether the recording instrument to be upgraded has access authority, and if yes, step S33 is executed; if not, go to step S32;
s32, the server is disconnected from the recording instrument to be upgraded, and the process is finished;
s33, sending an attribute acquisition instruction to the recorder to be upgraded, and executing the step S34;
s34, acquiring an attribute response sent by the recording instrument to be upgraded, analyzing the attribute response, judging whether parameter information of the attribute response is complete or not, and if so, executing a step S35; if not, go to step S32;
s35, generating a validity instruction, verifying the validity of the upgrading instruction according to the validity instruction, judging whether the upgrading instruction passes the verification, and if so, executing the step S36; if not, go to step S32;
s36, retrieving an upgrade file which accords with an upgrade instruction in a storage unit, and sending the upgrade file to a recorder to be upgraded;
and S37, when the upgrade is completed, maintaining the upgrade information, and disconnecting the server from the recorder to be upgraded.
In this embodiment, after receiving the authentication information sent by the recorder to be upgraded, the server performs authentication verification, sends an authentication success instruction after the authentication is successful, and simultaneously issues an attribute acquisition instruction to wait for the recorder to be upgraded to report an attribute response of the query terminal.
And the server receives the terminal upgrading instruction and then performs data validity verification, verifies whether the terminal accords with the upgrading rule according to the attribute of the recording instrument to be upgraded after the verification is successful, retrieves the upgrading file content which accords with the upgrading in the upgrading file buffer area if the terminal accords with the upgrading rule, and sends the file block in the buffer area to the recording instrument.
When the server receives that the supplementary transmission packet uploaded by the recorder to be upgraded is 0, the server judges that the upgrading of the recorder to be upgraded is completed, the upgrading completion information is stored in the database, and the recorder platform can retrieve the upgrading result.
Converting the upgrade file into a stream file through a file uploading program, wherein the codes are as follows:
the codes for outputting the message through the message bus after the file is uploaded successfully are as follows:
the message bus uploads the upgrade file to each server, each server loads the file to the upgrade service buffer according to the received message, and the codes are as follows:
although the invention herein has been described with reference to particular embodiments, it is to be understood that these embodiments are merely illustrative of the principles and applications of the present invention. It is therefore to be understood that numerous modifications may be made to the illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that features described in different dependent claims and herein may be combined in ways different from those described in the original claims. It is also to be understood that features described in connection with individual embodiments may be used in other described embodiments.
Claims (2)
1. An upgrade system based on recorder management, comprising:
the service terminal comprises a plurality of servers, and the servers are used for storing the upgrade files;
the system comprises a recorder platform, a server and a recorder, wherein the recorder platform is connected with a recorder to be upgraded and is connected with the server terminal through a message bus, and is used for converting a received upgrade file into a stream file in a blocking mode according to a preset rule and sending the stream file to all servers of the server terminal through the message bus;
the load distribution device is used for establishing the connection between the recording instrument to be upgraded and the server so as to uniformly distribute all the servers in the service terminal to all the recording instruments to be upgraded;
the server is used for sending the stored upgrading file to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrading file;
the recorder platform includes:
the receiving unit is used for receiving the upgrading file and upgrading template information, the upgrading template information comprises upgrading rules, versions and ID codes of the recording instruments to be upgraded, and the upgrading rules comprise upgrading and non-upgrading;
the database is connected with the receiving unit and used for storing the upgrading file and the ID code of the recorder to be upgraded;
the blocking unit is connected with the database and is used for blocking the upgrade file by a preset byte number, taking a blocking serial number as a block identifier and sending the blocking serial number to the service terminal in the form of the stream file through the message bus;
the processing unit is respectively connected with the receiving unit and the database and is used for judging whether to execute upgrading operation according to the upgrading template information, and when the upgrading operation is executed, an upgrading instruction is sent to the service terminal and all the recorders to be upgraded according to the ID codes of the recorders to be upgraded in the upgrading template information;
the server includes:
the storage unit is used for storing the upgrading file;
the authentication unit is used for verifying whether the recorder to be upgraded has access right or not after the recorder to be upgraded is connected with the server through the load distribution device, and if the recorder to be upgraded passes the verification, an attribute acquisition instruction is sent to the recorder to be upgraded;
the analysis unit is used for analyzing the attribute response sent by the recording instrument to be upgraded, judging whether the parameter information of the attribute response is complete or not, and if so, generating a validity instruction;
the verification unit is used for verifying the effectiveness of the upgrading instruction according to the effectiveness instruction;
and the upgrading unit is used for retrieving the upgrading file which accords with the upgrading instruction from the storage unit and sending the upgrading file to the recorder to be upgraded when the upgrading instruction passes verification.
2. An upgrading method based on recorder management is characterized in that a service terminal is provided and comprises a plurality of servers, the servers are all used for storing upgrading files, and the upgrading method comprises the following steps:
s1, a recorder platform converts received upgrade files into stream files in a blocking mode according to preset rules, the stream files are sent to all servers of the service terminal through a message bus, and the recorder platform sends upgrade instructions to the service terminal and all recorders to be upgraded;
s2, after the recording instrument to be upgraded receives the upgrading instruction, the recording instrument to be upgraded is connected with the service terminal through a load distribution device, and the connection between the recording instrument to be upgraded and the server is established through the load distribution device, so that all the servers in the service terminal are uniformly distributed to all the recording instruments to be upgraded;
s3, the server issues the stored upgrade files to the corresponding recorder to be upgraded, and the recorder to be upgraded is upgraded according to the received upgrade files;
the specific process of step S1 is as follows:
s11, receiving the upgrade file and upgrade template information, wherein the upgrade template information comprises an upgrade rule, a version and an ID code of a recorder to be upgraded, and the upgrade rule comprises upgrade and non-upgrade;
s12, storing the upgrade file and the ID code of the recorder to be upgraded;
s13, partitioning the upgrade file by using a preset byte number, using a partition serial number as a block identifier, and sending the partition serial number to the service terminal through the message bus in the form of the stream file;
s14, judging whether an upgrading operation is executed or not according to the upgrading template information, and when the upgrading operation is executed, sending an upgrading instruction to the service terminal and all the recording instruments to be upgraded according to the ID codes of the recording instruments to be upgraded in the upgrading template information;
providing a storage unit in the server for storing the upgrade file; the specific process of step S3 is as follows:
s31, after the recording instrument to be upgraded is connected with the server through the load distribution device, the server verifies whether the recording instrument to be upgraded has access right, and if yes, step S33 is executed; if not, go to step S32;
s32, the server is disconnected from the recording instrument to be upgraded, and the process is finished;
s33, sending an attribute acquisition instruction to the recorder to be upgraded, and executing the step S34;
s34, acquiring an attribute response sent by the recording instrument to be upgraded, analyzing the attribute response, judging whether parameter information of the attribute response is complete or not, and if so, executing a step S35; if not, go to step S32;
s35, generating a validity instruction, verifying the validity of the upgrading instruction according to the validity instruction, judging whether the upgrading instruction passes the verification, and if so, executing the step S36; if not, go to step S32;
s36, retrieving the upgrading file conforming to the upgrading instruction in the storage unit, and sending the upgrading file to the recorder to be upgraded;
and S37, when the upgrade is completed, maintaining the upgrade information, and disconnecting the server from the recording instrument to be upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710899320.9A CN107734010B (en) | 2017-09-28 | 2017-09-28 | Upgrading system and upgrading method based on recorder management |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710899320.9A CN107734010B (en) | 2017-09-28 | 2017-09-28 | Upgrading system and upgrading method based on recorder management |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734010A CN107734010A (en) | 2018-02-23 |
CN107734010B true CN107734010B (en) | 2020-10-23 |
Family
ID=61208402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710899320.9A Active CN107734010B (en) | 2017-09-28 | 2017-09-28 | Upgrading system and upgrading method based on recorder management |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734010B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783541B (en) * | 2021-01-21 | 2024-08-27 | 成都路行通信息技术有限公司 | Equipment upgrading method, device and server |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
CN105260215A (en) * | 2015-11-04 | 2016-01-20 | 福建星海通信科技有限公司 | Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335641A (en) * | 2007-06-29 | 2008-12-31 | 华为技术有限公司 | Method, apparatus and system for updating apparatus |
KR20150069916A (en) * | 2013-12-16 | 2015-06-24 | 주식회사 지쓰리 | DTG Peristalsis and Upgrade system using mobile. |
CN104331948B (en) * | 2014-10-28 | 2018-04-10 | 深圳市华宝电子科技有限公司 | Tachographs upgrade information sending method, method of reseptance, apparatus and system |
CN104346844B (en) * | 2014-10-28 | 2018-04-10 | 深圳市华宝电子科技有限公司 | A kind of call method and device of Tachographs upgrade information |
-
2017
- 2017-09-28 CN CN201710899320.9A patent/CN107734010B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
CN105260215A (en) * | 2015-11-04 | 2016-01-20 | 福建星海通信科技有限公司 | Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk |
Also Published As
Publication number | Publication date |
---|---|
CN107734010A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032653B (en) | Method, device, equipment and storage medium for upgrading vehicle-mounted terminal of unmanned vehicle | |
CN108132795B (en) | Software updating method and device of electronic control unit | |
CN111291000B (en) | File acquisition method, equipment and storage medium based on block chain | |
US20160101876A1 (en) | Aircraft Troubleshooting Network | |
CN111797098B (en) | Message analysis method and device and vehicle-mounted terminal | |
CN111339471B (en) | Method and device for dynamically loading page buried point data | |
CN110990335B (en) | Log archiving method, device, equipment and computer readable storage medium | |
CN108063685B (en) | Log analysis method and device | |
CN111666205A (en) | Data auditing method, system, computer equipment and storage medium | |
CN107734010B (en) | Upgrading system and upgrading method based on recorder management | |
CN114584584A (en) | System and method for processing vehicle driving data and storage medium | |
CN110611715A (en) | System and method for collecting cloud monitoring information by service link | |
CN110244968B (en) | Charging station management system and method | |
CN112612802A (en) | Real-time data middlebox processing method, device and platform | |
CN116401146A (en) | Data interaction method and device, storage medium, server and vehicle | |
CN108763303B (en) | Platform verification method and device, computer equipment and storage medium | |
CN112003867B (en) | Communication method of vehicle-mounted T-BOX and cloud server and related equipment | |
CN110677544B (en) | PCRF location script updating method, device, equipment and storage medium | |
CN111859068B (en) | Message tracking method, device, server and storage medium | |
CN112910760B (en) | Personalized vehicle-mounted large-screen message pushing method | |
CN117896727B (en) | Vehicle end log acquisition method, device and system, vehicle end and storage medium | |
EP4383064A1 (en) | Data management apparatus, onboard device update apparatus, and data management program | |
CN112580029B (en) | Network system and method and device for checking and killing viruses of all-isolated network terminal | |
CN111147561B (en) | Method and system for uploading vehicle data based on motor vehicle electronic identification | |
CN111400161B (en) | True machine verification method, device and system of mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |