Summary of the invention
Technical matters to be solved by this invention is, provides method and the diagnostic device of a kind of long-range ECU of on line refreshable after sale, namely can ensure the security of refreshing file, can reduce human cost again.
In order to solve the problems of the technologies described above, embodiments provide a kind of method of long-range ECU of on line refreshable after sale, described method comprises:
S1, diagnostic device server requests authentication distally, to be verified pass through after, and send inquiry request to described server, obtain corresponding vehicle configuration information, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU;
S2, the ECU Part No. read in local ECU configuration information, and from described multiple refreshing ECU Part No.s of inquiring and software version number corresponding to each refreshing ECU, determine the refreshing ECU Part No. that matches with described local ECU Part No. and corresponding software version number thereof, and according to the software version number of the described refreshing ECU Part No. determined and correspondence thereof, download corresponding Refreshing Configuration Files and updating software from described server;
S3, the Refreshing Configuration Files importing described download and updating software, configuration file in the local ECU configuration information of automatic renewal and updating software, and the ECU Part No. in configuration file after described renewal, the ECU Part No. in updating software are when all matching with described local ECU Part No., by the updating software after described renewal, refresh operation is carried out to the software of local ECU.
Wherein, the concrete steps of described step S1 comprise:
Described diagnostic device sends application code to described server and verifies, waiting receive the authorization code of described server feedback after, determine to be verified;
Obtain the vehicle identification code in described local ECU configuration information, and to the described server inquiry request that to send with the described vehicle identification code got be index, the vehicle configuration information that to obtain with described vehicle identification code be index, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU.
Wherein, after described step S2 and before step S3, described method comprises further:
Operation is encrypted to the Refreshing Configuration Files of described download and updating software, and preserves temporarily.
Wherein, described method comprises further:
When the ECU Part No. in the configuration file after described renewal does not mate with described local ECU Part No., or the ECU Part No. in updating software after described renewal is not when mating with described local ECU Part No., by the updating software after described renewal, pressure refresh operation is carried out to the software of local ECU.
Wherein, described method comprises further:
Obtain refreshing result, and give described server by the described refreshing result feedback obtained, and deletion action is carried out to the Refreshing Configuration Files of described download and updating software; Wherein, described refreshing result comprises data diary, the information of vehicles of refresh process and betters a record.
The embodiment of the present invention additionally provides a kind of diagnostic device, and described diagnostic device comprises:
Checking and query unit, for diagnostic device server requests authentication distally, to be verified pass through after, and send inquiry request to described server, obtain corresponding vehicle configuration information, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU;
Updating software download unit, for reading the ECU Part No. in local ECU configuration information, and from described multiple refreshing ECU Part No.s of inquiring and software version number corresponding to each refreshing ECU, determine the refreshing ECU Part No. that matches with described local ECU Part No. and corresponding software version number thereof, and according to the software version number of the described refreshing ECU Part No. determined and correspondence thereof, download corresponding Refreshing Configuration Files and updating software from described server;
ECU refresh unit, for importing Refreshing Configuration Files and the updating software of described download, configuration file in the local ECU configuration information of automatic renewal and updating software, and the ECU Part No. in configuration file after described renewal, the ECU Part No. in updating software are when all matching with described local ECU Part No., by the updating software after described renewal, refresh operation is carried out to the software of local ECU.
Wherein, described diagnostic device also comprises:
Cryptographic storage unit, for being encrypted operation to the Refreshing Configuration Files of described download and updating software, and preserves temporarily.
Wherein, described diagnostic device also comprises:
Force refresh unit, for not mating with described local ECU Part No. when the ECU Part No. in the configuration file after described renewal, or the ECU Part No. in updating software after described renewal is not when mating with described local ECU Part No., by the updating software after described renewal, pressure refresh operation is carried out to the software of local ECU.
Wherein, described diagnostic device also comprises:
Feedback and delete cells, refresh result for obtaining, and give described server by the described refreshing result feedback obtained, and carry out deletion action to the Refreshing Configuration Files of described download and updating software; Wherein, described refreshing result comprises data diary, the information of vehicles of refresh process and betters a record.
Implement the embodiment of the present invention, there is following beneficial effect:
1, in embodiments of the present invention, because diagnostic device is by updating software is downloaded in internet distally server, and use the updating software downloaded to refresh local ECU, thus greatly reduce human cost;
2, in embodiments of the present invention, because diagnostic device needs to verify with far-end server, and match could carry out down operation to updating software by the refreshing Part No. of local ECU Part No. and server end, thus ensure the security of refreshing file, after updating software is downloaded, carry out encrypting storing simultaneously and carry out deletion action after refreshing, thus avoiding leaking of refreshing file.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, the embodiment of the method for a kind of long-range ECU of on line refreshable after sale provided for the embodiment of the present invention, described method specifically comprises:
Step S101, diagnostic device server requests authentication distally, to be verified pass through after, and send inquiry request to described server, obtain corresponding vehicle configuration information, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU;
Detailed process is, diagnostic device distally server send application code verify, waiting receive the authorization code of server feedback after, determine to be verified;
Now, diagnostic device obtains the vehicle identification code (VehicleIdentificationNumber in local ECU configuration information further, hereinafter referred to as VIN code), and to the inquiry request that the VIN code that server sends to get is index, the vehicle configuration information that to obtain with VIN code be index, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU.
Should be noted that, far-end server is preset with the vehicle configuration information of the dissimilar and rank that main engine plants produce, and the respectively corresponding refreshing ECU Part No. of various types of vehicles and software version number corresponding to each refreshing ECU, the indexed mode of vehicle configuration information includes but not limited to VIN code simultaneously.
Step S102, the ECU Part No. read in local ECU configuration information, and from described multiple refreshing ECU Part No.s of inquiring and software version number corresponding to each refreshing ECU, determine the refreshing ECU Part No. that matches with described local ECU Part No. and corresponding software version number thereof, and according to the software version number of the described refreshing ECU Part No. determined and correspondence thereof, download corresponding Refreshing Configuration Files and updating software from described server;
Detailed process is, diagnostic device reads the ECU Part No. in local ECU configuration information again, and mate with the multiple ECU Part No.s that refresh inquired, determine the refreshing ECU Part No. matched with local ECU Part No., simultaneously in the software version number that each refreshing ECU inquired is corresponding, obtain this coupling and refresh software version number corresponding to ECU Part No., thus software version number corresponding to ECU Part No. can be refreshed according to this coupling, obtain the link that this coupling refreshes Refreshing Configuration Files corresponding to ECU Part No. and updating software on the server respectively;
Enter by internet click the link that this coupling on server refreshes Refreshing Configuration Files corresponding to ECU Part No. and updating software at diagnostic device end, and download Refreshing Configuration Files corresponding to this coupling refreshing ECU Part No. and updating software.
In order to ensure the Refreshing Configuration Files of download and the security of updating software, therefore described method comprises further: be encrypted operation to the Refreshing Configuration Files downloaded and updating software, and preserve temporarily.
Step S103, the Refreshing Configuration Files importing described download and updating software, configuration file in the local ECU configuration information of automatic renewal and updating software, and the ECU Part No. in configuration file after described renewal, the ECU Part No. in updating software are when all matching with described local ECU Part No., by the updating software after described renewal, refresh operation is carried out to the software of local ECU.
Detailed process is, the Refreshing Configuration Files of download and updating software are directed into diagnostic device, automatically the configuration file on diagnostic device in local ECU configuration information and updating software can be upgraded, now, need to carry out coupling differentiation to the ECU Part No. in the configuration file after upgrading, ECU Part No. in updating software and local ECU Part No. three, specific as follows:
(1) if the ECU Part No. in the configuration file after upgrading, the ECU Part No. in updating software all mate with local ECU Part No., namely the ECU Part No. of three is all identical, then carry out refresh operation by the updating software after renewal to the software of local ECU.
It should be noted that whether success, by user's autonomous classification, in refresh process, as there is mistake, then can exit refreshing automatically in refreshing.
(2) if the ECU Part No. in the configuration file after upgrading does not mate with local ECU Part No., or upgrade after updating software in ECU Part No. do not mate with local ECU Part No., as long as one namely in the ECU Part No. of configuration file or the Part No. of updating software does not mate with local ECU Part No., then also according to user's actual need, pressure refresh operation can be carried out by the updating software after upgrading to the software of local ECU.
In order to follow-up being convenient to refreshes the inquiry of result to ECU, therefore after diagnostic device end obtains refreshing result, can by the refreshing result feedback that obtains to server; Wherein, refresh result comprise data diary, the information of vehicles of refresh process and better a record; Simultaneously in order to prevent leaking of Refreshing Configuration Files and updating software, deletion action can be carried out to the Refreshing Configuration Files downloaded and updating software.
As shown in Figure 2, the method application scenarios of the long-range ECU of on line refreshable after sale in the embodiment of the present invention is further illustrated:
The first step, refresh for certain vehicle ECU, require that definition refreshing file is BIN file layout according to main engine plants, maintenance personal refreshes ECU according to vehicle maintenance demand to main engine plants' application, logs in diagnostic device end software, enters and refresh interface.Refresh before starting, maintenance personal sends application code to main engine plants' end server, and server, according to empowerment management server authentication efficient diagnosis software users name and password, can reply authorization code, and diagnostic device end only receives effective authorization code and could refresh ECU.
After second step, authorization code pass through, namely after being verified, diagnostic device end software reads vehicle VIN code, and being real-time transmitted to server end, server indexes Part No. corresponding to each ECU under vehicle configuration information, this vehicle configuration state by VIN code and respectively refreshes software version number corresponding to ECU;
3rd step, diagnostic device end software read the local ECU information such as the local Part No. of vehicle ECU and the software version number of correspondence again;
4th step, the Part No. of local ECU to be mated with the refreshing ECU Part No. that server inquires, the match is successful to treat the two, corresponding software version number can be inquired, thus software version number corresponding to ECU Part No. can be refreshed according to this coupling, diagnostic device automatically downloads Refreshing Configuration Files corresponding to the required ECU of refreshing from server end and new edition refreshes BIN file; Now, these two files can being kept in diagnostic device end software root directory file temporarily, simultaneously in order to ensure that file does not leak, this file being encrypted;
After 5th step, file download complete, diagnostic device end software interface meeting automatic spring refreshing file interface, and be automatically imported and fill refreshing diagnostic device end ECUBin file, namely automatically upgrade the configuration file in local ECU configuration information and updating software;
6th step, filled after, diagnostic device end software can read the header file information of the refreshing Bin file after renewal, judges that whether the Part No. comprised in the Part No. that comprises and the configuration file after upgrading in the BIN file after upgrading is consistent with the Part No. in original local ECU read;
7th step is if then refresh ECU according to the refreshing Bin file after renewal; If not, then also can carry out pressure according to the refreshing Bin file after renewal to ECU refresh or abandon refreshing; Certainly, in refresh process, there is mistake, can refreshing be exited;
After 8th step, refreshing, the refreshing file and configuration file that leave diagnostic device end software root directory in can be deleted, simultaneously data diary, the information of vehicles and bettering a record of refresh process is preserved to server by internet real-time Transmission as refreshing result temporarily.
As shown in Figure 3, the embodiment of a kind of diagnostic device that the embodiment of the present invention provides, described diagnostic device comprises:
Checking and query unit 310, for diagnostic device server requests authentication distally, to be verified pass through after, and send inquiry request to described server, obtain corresponding vehicle configuration information, and corresponding multiple refreshing ECU Part No.s and software version number corresponding to each refreshing ECU;
Updating software download unit 320, for reading the ECU Part No. in local ECU configuration information, and from described multiple refreshing ECU Part No.s of inquiring and software version number corresponding to each refreshing ECU, determine the refreshing ECU Part No. that matches with described local ECU Part No. and corresponding software version number thereof, and according to the software version number of the described refreshing ECU Part No. determined and correspondence thereof, download corresponding Refreshing Configuration Files and updating software from described server;
ECU refresh unit 330, for importing Refreshing Configuration Files and the updating software of described download, configuration file in the local ECU configuration information of automatic renewal and updating software, and the ECU Part No. in configuration file after described renewal, the ECU Part No. in updating software are when all matching with described local ECU Part No., by the updating software after described renewal, refresh operation is carried out to the software of local ECU.
Wherein, described diagnostic device also comprises:
Cryptographic storage unit 340, for being encrypted operation to the Refreshing Configuration Files of described download and updating software, and preserves temporarily.
Wherein, described diagnostic device also comprises:
Force refresh unit 350, for not mating with described local ECU Part No. when the ECU Part No. in the configuration file after described renewal, or the ECU Part No. in updating software after described renewal is not when mating with described local ECU Part No., by the updating software after described renewal, pressure refresh operation is carried out to the software of local ECU.
Wherein, described diagnostic device also comprises:
Feedback and delete cells 360, refresh result for obtaining, and give described server by the described refreshing result feedback obtained, and carry out deletion action to the Refreshing Configuration Files of described download and updating software; Wherein, described refreshing result comprises data diary, the information of vehicles of refresh process and betters a record.
Implement the embodiment of the present invention, there is following beneficial effect:
1, in embodiments of the present invention, because diagnostic device is by updating software is downloaded in internet distally server, and use the updating software downloaded to refresh local ECU, thus greatly reduce human cost;
2, in embodiments of the present invention, because diagnostic device needs to verify with far-end server, and match could carry out down operation to updating software by the refreshing Part No. of local ECU Part No. and server end, thus ensure the security of refreshing file, after updating software is downloaded, carry out encrypting storing simultaneously and carry out deletion action after refreshing, thus avoiding leaking of refreshing file.
It should be noted that in said system embodiment, each included system unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.