CN108803577A - A kind of diagnostic method, host computer and slave computer - Google Patents

A kind of diagnostic method, host computer and slave computer Download PDF

Info

Publication number
CN108803577A
CN108803577A CN201810837248.1A CN201810837248A CN108803577A CN 108803577 A CN108803577 A CN 108803577A CN 201810837248 A CN201810837248 A CN 201810837248A CN 108803577 A CN108803577 A CN 108803577A
Authority
CN
China
Prior art keywords
configuration
diagnostic
message
host computer
diagnosis
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.)
Granted
Application number
CN201810837248.1A
Other languages
Chinese (zh)
Other versions
CN108803577B (en
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810837248.1A priority Critical patent/CN108803577B/en
Publication of CN108803577A publication Critical patent/CN108803577A/en
Application granted granted Critical
Publication of CN108803577B publication Critical patent/CN108803577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The embodiment of the present application provides a kind of diagnostic method, host computer and slave computer, wherein method:When receiving diagnostic instruction input by user, host computer determines the corresponding diagnosis object set of diagnostic instruction;Host computer is from searching configuration data corresponding with each diagnosis object in diagnosis set in database, and by configuration data according to preset format generation configuration file;Host computer generates configuration message according to configuration file, and configuration message is sent to slave computer, and instruction slave computer configures the corresponding transceiver of each diagnosis object according to the configuration file in configuration message.The embodiment of the present application finds the configuration parameter of each diagnosis object by host computer, slave computer carries out parameter setting to the corresponding transceiver of each diagnosis object, in order to which slave computer can obtain vehicle data to complete vehicle diagnostics by each transceiver from each diagnosis object of vehicle, it realizes using single channel while diagnosing multiple vehicle diagnostics objects, improve diagnosis efficiency.

Description

A kind of diagnostic method, host computer and slave computer
Technical field
This application involves a kind of technical field of data processing more particularly to diagnostic method, host computer and slave computers.
Background technology
With the development of China's productivity, the raising of economic level, the sharp increase of car ownership, car rapidly into Enter ordinary people family.In fast-developing Internet era, requirement of the user to quality of life steps up, in order to meet use The demand at family and the development and change for adapting to automobile under the new situation, automotive diagnostic installation also continue to develop therewith.Currently used vapour Vehicle diagnostic device is all single pass, and the multiple systems that be directed in vehicle when being diagnosed to vehicle carry out one by one in sequence Diagnosis, reduces diagnosis efficiency.In order to solve this problem, existing method is risen to the software and hardware in diagnostic device Software and hardware in diagnostic device is all changed to the software and hardware for supporting multichannel diagnosis, but multichannel is used to occupy system by grade Resource is more, and software and hardware needs big change, increases the expense of diagnostic device various aspects.
Invention content
The embodiment of the present application provides a kind of diagnostic method, host computer and slave computer, and each examine is found by host computer The configuration parameter of disconnected object, slave computer carries out parameter setting to the corresponding transceiver of each diagnosis object, in order to which slave computer can To obtain vehicle data from each diagnosis object of vehicle to complete vehicle diagnostics by each transceiver, realizes and utilize single-pass Road simultaneously diagnoses multiple vehicle diagnostics objects, improves diagnosis efficiency.
In a first aspect, the embodiment of the present application provides a kind of diagnostic method, including:
When receiving diagnostic instruction input by user, host computer determines the corresponding diagnosis object set of diagnostic instruction, examines Disconnected object set includes at least two diagnosis objects;
Host computer is from searching configuration data corresponding with each diagnosis object in object set is diagnosed in database;
Configuration data is generated configuration file by host computer according to preset format;
Host computer generates configuration message according to configuration file, and configuration message is sent to slave computer, configures and is taken in message Band configuration file, it is corresponding to each diagnosis object according to the configuration file in configuration message that configuration message is used to indicate slave computer Transceiver is configured.
Optionally, diagnostic method further includes:
If prompting message is completed in the configuration that host computer receives slave computer transmission, host computer is searched and diagnosis from database The corresponding diagnostic command of each diagnosis object in object set;
Host computer is based on diagnostic command and generates diagnostic file according to preset format;
Host computer generates diagnostic message according to diagnostic file, and diagnostic message is sent to slave computer, is taken in diagnostic message Band diagnostic file, diagnostic message are used to indicate slave computer and diagnostic message are sent to car-mounted terminal.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
Second aspect, the embodiment of the present application provide another diagnostic method, including:
Slave computer receives the configuration message that host computer is sent, and configures and carries configuration file in message, and configuration file is upper Machine will diagnose what the corresponding configuration data of each diagnosis object in object set was generated according to preset format;
Slave computer configures the corresponding transceiver of each diagnosis object according to configuration file.
Optionally, diagnostic method further includes:If slave computer is according to configuration file to the corresponding transceiver of each diagnosis object Configuration is completed, and slave computer sends configuration to host computer and completes prompting message;Slave computer receives the diagnostic message that host computer is sent, and examines Disconnected message is upper to be generated after receiving configuration completion prompting message, and diagnostic file, diagnosis text are carried in diagnostic message Part is that host computer is generated according to the corresponding diagnostic command of each diagnosis object according to preset format;
Diagnostic message is sent to car-mounted terminal by slave computer, in order to indicate car-mounted terminal according to carrying in diagnostic message Diagnostic file diagnoses each diagnosis object.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
The third aspect, the embodiment of the present application provide a kind of host computer, including:
Receiving unit, for receiving diagnostic instruction input by user;
Determination unit, for when receiving unit receives diagnostic instruction input by user, determining that diagnostic instruction is corresponding Object set is diagnosed, diagnosis object set includes at least two diagnosis objects;
Searching unit is used for configuration number corresponding with each diagnosis object in diagnosis object set from lookup in database According to;
Generation unit, for configuration data to be generated configuration file according to preset format;
Generation unit is additionally operable to generate configuration message according to configuration file;
Transmission unit is sent to slave computer for that will configure message, configures and carry configuration file in message, and configuration message is used The corresponding transceiver of each diagnosis object is configured according to the configuration file in configuration message in instruction slave computer.
Optionally, host computer further includes:
Receiving unit is additionally operable to receive the configuration completion prompting message that slave computer is sent;
Searching unit is additionally operable to order from the diagnosis corresponding with each diagnosis object in diagnosis object set of lookup in database It enables, diagnostic command includes that the system for diagnosing object enters order and data reading order;
Generation unit is additionally operable to diagnostic command generating diagnostic file according to preset format;
Generation unit is additionally operable to generate diagnostic message according to diagnostic file, diagnostic file is carried in diagnostic message;
Transmission unit is additionally operable to diagnostic message being sent to slave computer, and diagnostic message is used to indicate slave computer and diagnosis disappears Breath is sent to car-mounted terminal.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
Fourth aspect, the embodiment of the present application provide a kind of slave computer, including:
Receiving unit, the configuration message for receiving host computer transmission configure in message and carry configuration file, configuration file It will diagnose what the corresponding configuration data of each diagnosis object in object set was generated according to preset format for host computer;
Dispensing unit, for being matched to the corresponding transceiver of each diagnosis object according to the configuration file in configuration message It sets.
Optionally, slave computer further includes transmission unit:
Transmission unit, if being configured to the corresponding transceiver of each diagnosis object according to configuration file for dispensing unit At to host computer transmission configuration completion prompting message;
Receiving unit is additionally operable to receive the diagnostic message that host computer is sent, and diagnostic message is that host computer is receiving configuration It completes what prompting message generated later, diagnostic file is carried in diagnostic message, diagnostic file is host computer according to each diagnosis pair As corresponding diagnostic command is generated according to preset format;
Transmission unit is additionally operable to diagnostic message being sent to car-mounted terminal, in order to indicate that car-mounted terminal disappears according to diagnosis The diagnostic file carried in breath diagnoses each diagnosis object.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
5th aspect, the embodiment of the present application provide a kind of host computer, including processor, input equipment, output equipment and Memory, processor, input equipment, output equipment and memory are connected with each other, wherein memory supports terminal to hold for storing The computer program of the row above method, computer program include program instruction, and processor is configured for caller instruction, holds The method of the above-mentioned first aspect of row and its any optional mode.
6th aspect, the embodiment of the present application provide a kind of slave computer, including processor, input equipment, output equipment and Memory, processor, input equipment, output equipment and memory are connected with each other, wherein memory supports terminal to hold for storing The computer program of the row above method, computer program include program instruction, and processor is configured for caller instruction, holds The method of the above-mentioned second aspect of row and its any optional mode.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, computer storage media storage It includes program instruction to have computer program, computer program, and it is above-mentioned that program instruction when being executed by a processor executes processor The method of first aspect and its any optional mode.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, computer storage media storage It includes program instruction to have computer program, computer program, and it is above-mentioned that program instruction when being executed by a processor executes processor The method of second aspect and its any optional mode.
Host computer determines diagnosis object set according to diagnostic instruction input by user in the embodiment of the present application, and then from number The corresponding configuration data of at least two diagnosis objects in object set is diagnosed according to being searched in library, and by configuration data according to pre- If format generates configuration file, further host computer is based on configuration file and generates configuration information and sending to slave computer, instruction Slave computer configures the corresponding transceiver of each diagnosis object according to the configuration file in configuration message, is looked by host computer The configuration parameter of each diagnosis object is found, slave computer carries out parameter setting to the corresponding transceiver of each diagnosis object, so as to Vehicle data can be obtained to complete vehicle diagnostics from each diagnosis object of vehicle by each transceiver, realize in slave computer Multiple vehicle diagnostics objects are diagnosed simultaneously using single channel, improve diagnosis efficiency.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of frame diagram of diagnostic system provided by the embodiments of the present application;
Fig. 2 is a kind of structure chart of diagnostic system provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of diagnostic method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another diagnostic method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another diagnostic method provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of host computer provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram that the application implements a kind of slave computer provided;
Fig. 8 is the structural schematic diagram of another host computer provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram that the application implements another slave computer provided.
Specific implementation mode
It is found when to carrying out diagnosis detection to vehicle using automotive diagnostic installation, existing frequently-used diagnostic device is to being all It is single pass, when multiple systems to vehicle diagnose, typically in a predetermined sequence one by one system carry out, so Cause diagnosis efficiency relatively low.For this problem, by the software and hardware liter in diagnostic device involved in the solution of existing proposition Grade can occupy more system resource using multichannel to support multichannel, cause overhead big.On solving State problem, the embodiment of the present application proposes a kind of diagnostic method, host computer and slave computer:Host computer is examined according to input by user Diagnosis object set is determined in severed finger order, and then diagnoses at least two diagnosis object difference in object set from being searched in database Corresponding configuration data, and configuration data is generated into configuration file according to preset format, further host computer is based on configuration text Part generates configuration information and sending to slave computer, and instruction slave computer is according to the configuration file in configuration message to each diagnosis object Corresponding transceiver is configured, and the configuration parameter of each diagnosis object is found by host computer, slave computer is to each diagnosis The corresponding transceiver of object carries out parameter setting, in order to which slave computer can be by each transceiver from each diagnosis object of vehicle Middle acquisition vehicle data is realized using single channel while being diagnosed to multiple vehicle diagnostics objects to complete vehicle diagnostics, Improve diagnosis efficiency.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described.
It is a kind of Organization Chart of diagnostic system provided by the embodiments of the present application with reference to figure 1.It is wrapped in framework as shown in Figure 1 Include host computer 10, slave computer 20 and car-mounted terminal 30.Wherein, host computer 10 can pass through USB interface, RS232 with slave computer 20 The modes such as serial ports or Wireless Fidelity (Wireless Fidelity, WIFI) connect, to realize between host computer and slave computer Communication;Slave computer 20 can be connect by vehicle bus with car-mounted terminal 30, so that car-mounted terminal is by each diagnosis pair of vehicle The diagnostic data of elephant is sent to slave computer, and then diagnostic data is sent to host computer by slave computer, to realize to each of vehicle The diagnosis of a diagnosis object.
Optionally, host computer 10 determines diagnosis object for receiving diagnostic instruction input by user, and according to diagnostic instruction Set, and then according to from finding configuration data generation corresponding with each diagnosis object in diagnosis object set in database Message is configured, configuration message is sent to slave computer, to indicate that slave computer is examined according to the configuration file in configuration message each The disconnected corresponding transceiver of object is configured.In a kind of feasible embodiment, if host computer 10 is additionally operable to receive bottom The prompting message that the configuration that machine is sent is completed, from being searched in database and diagnose in object set that each diagnosis object is corresponding examines Disconnected order;Diagnostic command is generated diagnostic file by host computer 10 according to preset format;Further, host computer 10 is according to diagnosis text Part generates diagnostic message, and diagnostic message is sent to slave computer, and diagnostic message is used to indicate slave computer and sends diagnostic message To car-mounted terminal.Optionally, configuration data is generated configuration file by above-mentioned host computer 10 according to preset format, therein default It include data type in format;Data type is parameter set type in configuration file, and data type is logical in diagnostic file Interrogate type.
In a kind of feasible embodiment, slave computer 20 be used for receive host computer transmission configuration message, and according to The configuration file set in message configures the corresponding transceiver of each diagnosis object.Wherein, it configures to carry in message and match File is set, configuration file, which is host computer, will diagnose the corresponding configuration data of each diagnosis object in object set according to default lattice What formula generated.In another feasible embodiment, completed if being configured to the corresponding transceiver of each diagnosis object, slave computer 20 send configuration to host computer 10 completes prompting message;Slave computer 20 receives the diagnostic message that host computer is sent, and by the diagnosis Message is sent to car-mounted terminal 30.Wherein, diagnostic message is that host computer generates after receiving configuration and completing prompting message, Diagnostic file is carried in diagnostic message, diagnostic file is for host computer by the corresponding diagnostic command of each diagnosis object according to default What format generated.It should be understood that diagnostic message is sent to car-mounted terminal 30 in order to 30 basis of car-mounted terminal by slave computer 20 Diagnostic file in diagnostic message diagnoses each diagnosis object of vehicle.
As a kind of feasible embodiment, diagnostic message of the car-mounted terminal 30 for receiving slave computer transmission, and according to Diagnostic file in diagnostic message diagnoses each diagnosis object of vehicle.Optionally, car-mounted terminal 30 is according to diagnosis text The mode that part diagnoses each diagnosis object of vehicle can be:For the diagnosis pair of any of diagnosis object set As, car-mounted terminal 30 obtains the diagnostic command for the diagnosis object that diagnostic file includes, diagnostic command include diagnose object be System enters order and data reading order;Car-mounted terminal 30 enters order according to the system of diagnosis object and enters diagnosis object correspondence System, and according to data read command read any one diagnosis object diagnostic data.Optionally, car-mounted terminal 30 is according to examining After disconnected file diagnoses each diagnosis object of vehicle, the diagnostic data for getting each diagnosis object is sent to down Position machine 20;Diagnostic data is sent to host computer, diagnosis number of the host computer to each diagnosis object received by slave computer 20 again According to being handled, finally obtains vehicle diagnosis result and can include in the display screen of host computer 20, just by diagnostic result Diagnostic result is checked in user.
Referring to Fig. 2 and Fig. 3, Fig. 2 is the Organization Chart of another diagnostic system, and Fig. 3 is applied to Fig. 2 and shown in FIG. 1 to examine A kind of flow chart of diagnostic method in disconnected system.It, will be in conjunction with Fig. 2 and Fig. 3, to Fig. 1 institutes in a kind of feasible embodiment The workflow of the diagnostic system shown is described in detail.It should be noted that the workflow of diagnostic system shown in Fig. 2 Only a kind of feasible embodiment provided by the embodiments of the present application, the workflow of diagnostic system are not limited only to this.
In vehicle diagnosing system structure chart as shown in Figure 2, display interface and multiple diagnosis pair are may include in host computer 10 As corresponding multiple acquisition communication commands/upload diagnostic data module, data processing module and communication thread module.Wherein, exist It can show that multiple diagnosis objects, diagnosis object can be engine system, instrument system, the wave case system of vehicle in display interface Etc..It should be noted that the communications protocol that the different system of vehicle is supported is different, for example lead to used in engine system News agreement is controller zone network agreement (Controller Area Network, CAN), is communicated used in wave case system Agreement is keyword agreement (Keyword Protocol, KWP) agreement, and communications protocol used in instrument system is pulsewidth modulation Agreement (Pulse-width modulation, PWM).
It should be understood that a diagnosis object corresponds to an acquisition communication command/upload diagnostic data module, in host computer In may include at least two acquisition communication commands/upload diagnostic data module.As an example it is assumed that diagnosis object is engine system System, then acquisition communication command corresponding with engine system/upload diagnostic data module is to obtain CAN communication order/upload CAN Diagnostic data module;Assuming that diagnosis object is wave case system, then acquisition communication command corresponding with wave case system/upload diagnoses number It is to obtain KWP communication commands/upload KWP diagnostic data modules according to module.The example above is some possible implementations of the application Mode does not limit specific embodiment the application.
In a kind of feasible embodiment, user can input diagnostic instruction by the display interface of host computer 10, use The mode of family input diagnostic instruction can be that user clicks at least two diagnosis objects shown in selection display interface, Huo Zheyong Family controls at least two diagnosis objects in upper computer selecting display interface by voice mode.Optionally, if in S301 Position machine receives the diagnostic instruction that user is inputted by display interface, determines the corresponding diagnosis object set of diagnostic instruction, also If being to say that the acquisition communication corresponding with each diagnosis object in diagnosis object set that upper computer detection includes is ordered to host computer Order/upload diagnostic data module has got the diagnostic instruction of each diagnosis object respectively, which host computer can obtain according to Communication command/upload diagnostic data module is taken to have received diagnostic instruction, to determine diagnosis object set.For example it obtains CAN and leads to News order/upload CAN diagnostic data modules detect diagnostic instruction, then can determine that the engine system of vehicle is diagnosis object A diagnosis object in set.Host computer is each from lookup in database and diagnosis set after S301, in S302 examines The corresponding configuration data of disconnected object, configuration data are that data are arranged in transceiver parameters.Optionally, host computer can be according to having received The acquisition communication command of diagnostic instruction/upload diagnostic data module is searched and the relevant transceiver of above-mentioned module in the database Configuration data.For example, obtaining CAN communication order/upload CAN diagnostic data modules has received diagnostic instruction, then host computer can It searches and the relevant transceiver configuration data of the module namely CAN transceiver configuration data in the database.
Optionally, after host computer finds transceiver configuration data relevant with above-mentioned module in the database, Configuration data is generated configuration file by host computer according to preset format in S303, it is understood that is the data processing mould of host computer The each configuration data found in step S302 is generated cooperation file by block according to preset format.Wherein, data processing module Each configuration data generation configuration file be can be understood as into data processing module by each configuration data according to preset format It is packaged together to obtain a configuration file according to preset format.In a kind of feasible embodiment, preset format can be with As shown in table 1, configuration data, data type, total length of data and the check word of multiple transceivers are may include in preset format Section etc..Wherein, data type includes parameter set type and communication type.
Table 1
In a kind of feasible embodiment, after generating configuration file, host computer is given birth to according to configuration file in S304 At the configuration message of carrying configuration file, and the configuration message is sent to slave computer.Optionally, host computer can pass through communication Configuration file is sent to slave computer by threading models, in the configuration message that host computer is sent to slave computer by communication thread module Including configuration file, the data type of configuration file is parameter set type.
In vehicle diagnosing system structure chart as shown in Figure 2, slave computer 20 includes communication module, document analysis module, text Part uploading module, order sorting module, transceiver parameters setup module and transceiver etc..Wherein, order sorting module can be with The sorting module for including agreement reception/transmission order used in multiple diagnosis objects, may include that CAN protocol connects as shown in the figure Transmitting/receiving to lose one's life enables sorting module, KWP agreements receive/send order sorting module and VPW/PWM agreements reception/transmission order Sorting module;Since the order that different order sorting modules is received or sent is obtained by different transceivers, The number of transceivers that slave computer includes is identical as order sorting module, reference can be made to Fig. 2.
In a kind of feasible embodiment, slave computer receives the configuration message that host computer is sent in S305.Optionally, under The mode that position machine receives the configuration message that host computer is sent can be the connection that configuration message is transferred to host computer by host computer Journey module, then the communication thread of host computer will configure message again and issue the communication module of slave computer.Further, slave computer Communication module receive configuration message after, in S306 slave computer according to configuration message in configuration file to it is each diagnosis pair As corresponding transceiver carries out parameter setting.In a kind of feasible embodiment, slave computer is according to the configuration in configuration message The concrete mode that file carries out each diagnosis object relevant transceiver parameter setting can be:The communication module of slave computer connects After receiving configuration message, configuration message transmission is given to document analysis module;Matching in document analysis module parsing configuration message File is set, the configuration data of the corresponding transceiver of multiple diagnosis objects is obtained;Document analysis module is by the configuration of multiple transceivers Data transfer is to corresponding transceiver parameters setup module;After each transceiver parameters setup module receives configuration data, Parameter setting is carried out to corresponding transceiver according to configuration data.It should be noted that mould is arranged in each transceiver parameters Block only receives relative configuration data, for example CAN protocol transceiver parameters setup module only receives CAN protocol transceiver and has The configuration data of pass.
Optionally, after the completion of transceiver configuration module is configured the parameter of transceiver, slave computer can be to upper Machine sends configuration and completes prompting message, if prompting message, host computer are completed in the configuration that S307, host computer receive slave computer transmission From searching diagnostic command corresponding with each diagnosis object in diagnosis set in database;S308, host computer press diagnostic command Diagnostic file is generated according to preset format;S309, host computer generate diagnostic message according to diagnostic file, and send and diagnose to slave computer Message.In a kind of feasible embodiment, some feasible embodiments and above-mentioned steps that step S307-S309 includes The mode of S301-S304 is similar, repeats no more here.Diagnostic message is sent to car-mounted terminal by S3010, slave computer, one Relative diagnostic message is sent to car-mounted terminal by the transceiver of slave computer in the feasible embodiment of kind.It is S3011, vehicle-mounted Terminal diagnoses each diagnosis object according to the diagnostic message in diagnostic message, and by it is each diagnosis object diagnostic data It is sent to slave computer;Diagnostic data is returned to host computer by S3012, slave computer, in order to which host computer is completed to each diagnosis pair The diagnosis of elephant.
Optionally, in step S3012, slave computer before diagnostic data is returned to host computer, can also judge from Whether include all diagnostic datas for diagnosing objects in middle diagnosis set in the diagnostic data that car-mounted terminal receives:If so, Diagnostic data is returned to host computer by slave computer;If it is not, then can further judge to send diagnostic message to vehicle-mounted end from slave computer Hold whether the duration between current time has been more than maximum waiting time:If so, examining for car-mounted terminal transmission will not received The diagnosis object of disconnected data is determined as the diagnosis object of not diagnostic data, and the diagnostic data that this part is also diagnosed to object is set It is set to blank;If duration is not above maximum waiting time, slave computer continues etc. to maximum time to ensure to receive all examine The diagnostic data of disconnected object.As an example it is assumed that diagnosis object set includes 3 diagnosis objects, if slave computer receives 2 diagnosis object diagnostic datas that car-mounted terminal is sent, then slave computer can determine that there are one the diagnostic datas of diagnosis object It does not receive, slave computer continues waiting for car-mounted terminal and sends diagnostic data at this time.Further, if the duration that slave computer waits for surpasses Default maximum waiting time is spent, then slave computer can determine that the diagnostic data of the diagnosis object is blank.
In a kind of feasible embodiment, after host computer receives the diagnostic data of slave computer transmission, according to default Diagnostic mode diagnostic data is handled, obtain diagnostic result.For example, it is to start that host computer, which receives level diagnosis data, The rotating speed of machine, then host computer can according to default diagnostic mode such as according to the whether normal calculation formula of rotating speed determine vehicle to hair The diagnostic result of motivation.
The vehicle diagnosing system to sum up described shown in Fig. 1, Fig. 2 and Fig. 3, host computer are true according to diagnostic instruction input by user It makes diagnosis object set, and then matches from searching at least two diagnosis in diagnosis object set in database object being corresponding Data are set, and configuration data is generated into configuration file according to preset format, further host computer is based on configuration file generation and matches Information and sending is set to slave computer, instruction slave computer is according to the configuration file in configuration message to the corresponding receipts of each diagnosis object Hair device is configured, and the configuration parameter of each diagnosis object is found by host computer, and slave computer corresponds to each diagnosis object Transceiver carry out parameter setting, in order to which slave computer can obtain vehicle by each transceiver from each diagnosis object of vehicle Data are realized using single channel while being diagnosed to multiple vehicle diagnostics objects, improve and examine to complete vehicle diagnostics Disconnected efficiency.
It is a kind of flow diagram of diagnostic method provided by the embodiments of the present application, diagnosis as shown in Figure 4 with reference to figure 4 Method can be applicable in diagnostic system shown in FIG. 1, and diagnostic method may include following steps:
S401, when receiving diagnostic instruction input by user, host computer determines the corresponding diagnosis object set of diagnostic instruction It closes.
In a kind of feasible embodiment, diagnosis object set includes at least two diagnosis objects, and diagnosis object is Refer to the Vehicular system that user wants diagnosis.It should be understood that vehicle includes multiple systems such as engine system, wave case system And instrument system etc. just can guarantee vehicle normal operation only when all Vehicular systems all work normally.Wherein, respectively Communications protocol used in a system is different.
Optionally, the mode that host computer receives diagnostic instruction input by user can be:Host computer can be shown to user Diagnostics Interfaces;When Diagnostics Interfaces receive operational order input by user, host computer, which can determine, has received user's input Diagnostic instruction.In a kind of feasible embodiment, host computer determines the mode of the corresponding diagnosis object set of diagnostic instruction Can be:User clicks the diagnosis object for wanting diagnosis, each diagnosis object that host computer clicks user on Diagnostics Interfaces Composition diagnosis object set.
S402, host computer are from searching configuration data corresponding with each diagnosis object in object set is diagnosed in database.
Optionally, host computer is specific from configuration data corresponding with each diagnosis object in diagnosis set is searched in database For:Host computer first determines each diagnosis object that diagnosis object set includes corresponds to which transceiver in slave computer;So It is searched and the relevant configuration data of each transceiver from database afterwards.As an example it is assumed that host computer determines diagnosis object set The diagnosis object that conjunction includes is respectively engine system, wave case system and instrument system, and assumes that engine system is used Communications protocol be CAN protocol, then the corresponding transceiver of engine system then be CAN protocol transceiver;Assuming that wave case system institute The communications protocol used is KWP systems, then the corresponding transceiver of wave case system is KWP protocol transceivers;Assuming that instrument system institute The communications protocol used is PWM agreements, then the corresponding transceiver of instrument system is PWM protocol transceivers.Host computer can basis The correspondence of the diagnosis object and transceiver of above-mentioned hypothesis, determines the corresponding transceiver of each diagnosis object;Then from data It is found in library and the relevant configuration data of each transceiver.Such as, it is assumed that diagnosis object is engine system, and host computer can determine The corresponding transceiver of engine system is CAN protocol transceiver;Further, host computer can be found from database with The corresponding configuration data of CAN protocol transceiver, such as baud rate is 400k, input and output pin is respectively pin 6 and pin 14.
Configuration data is generated configuration file by S403, host computer according to preset format.
Optionally, configuration data can be by host computer in such a way that preset format generates configuration file:Host computer will Configuration data generates configuration frame data according to frame format associated with diagnosis object;Each configuration frame number that host computer will obtain Configuration file is generated according to according to format shown in table 1, configuration file includes multiple configuration frame data.It should be understood that different Diagnosis object used in the different therefore different corresponding configuration frame data of diagnosis object of communications protocol frame format not yet Together.For example, if the communications protocol that diagnosis object uses is CAN protocol, may include communicating in the frame format of CAN configuration frame data defeated Enter pin, communication output pin, communication baud rate, system identifier number and CAN spininess key datas etc.;If diagnosis object makes Communications protocol is KWP agreements, may include communicating input pin, communication output in the frame format of KWP protocol configuration frame data Pin, communication baud rate, system identifier, input and output voltage and starting digit etc.;If the communications protocol that diagnosis object uses is It may include communicating input pin, output pin, communication baud in the frame format of PWM/VPW, PWM/VPW protocol configuration frame data Rate, system address, device address and maximum latency etc..
Optionally, the corresponding configuration data of each diagnosis object is generated configuration text by host computer according to format shown in table 1 When part, each sequence for diagnosing the corresponding configuration data of object in table 1 can be set by host computer, can also be in host computer The sequence of acquiescence.Assuming that diagnosis object set includes two diagnosis objects:Engine and wave case, then configure shown in table 1 The first frame data can be that CAN frame data can also KWP frame data in file format.It should be noted that matching in configuration file The sequence for setting data determines that host computer receives the sequence for the diagnostic data that slave computer is sent.Namely if host computer configuration file In the sequence of configuration data be the first frame data be CAN data, the second frame data are KWP data, then when under host computer reception The sequence for the diagnostic data that position machine is sent is that first frame receives CAN diagnostic datas, and the second frame receives KWP data.
S404, host computer generate configuration message according to configuration file, and configuration message is sent to slave computer.
Optionally, it configures and carries configuration file in message, configuration message is for prompting slave computer according in configuration message Each configuration file carries out parameter setting to corresponding transceiver in slave computer respectively.
In a kind of feasible embodiment, diagnostic method further includes:If host computer receives the configuration of slave computer transmission Complete prompting message, host computer is from searching diagnostic command corresponding with each diagnosis object in object set is diagnosed in database; Diagnostic command is generated diagnostic file by host computer according to preset format;Host computer generates diagnostic message according to diagnostic file, and will Diagnostic message is sent to slave computer.Optionally, diagnostic command includes that the system for diagnosing object enters order and data reading order. Diagnostic file is carried in diagnostic message, diagnostic message is used to indicate slave computer and the diagnostic message is sent to car-mounted terminal, so as to Vehicle is diagnosed according to the diagnostic file in diagnostic message in car-mounted terminal.It is vehicle-mounted in a kind of feasible embodiment Terminal is according to the mode that diagnostic file diagnoses vehicle:Car-mounted terminal obtains the diagnostic command that diagnostic file includes; Enter order according to the system in diagnostic command and enters the corresponding Vehicular system of each diagnosis object;It is read according to data read command Take the diagnostic data in each Vehicular system.
Host computer determines diagnosis object set according to diagnostic instruction input by user in the embodiment of the present application, and then from number The corresponding configuration data of at least two diagnosis objects in object set is diagnosed according to being searched in library, and by configuration data according to pre- If format generates configuration file, further host computer is based on configuration file and generates configuration information and sending to slave computer, instruction Slave computer configures the corresponding transceiver of each diagnosis object according to the configuration file in configuration message, is looked by host computer The configuration parameter of each diagnosis object is found, slave computer carries out parameter setting to the corresponding transceiver of each diagnosis object, so as to Vehicle data can be obtained to complete vehicle diagnostics from each diagnosis object of vehicle by each transceiver, realize in slave computer Multiple vehicle diagnostics objects are diagnosed simultaneously using single channel, improve diagnosis efficiency.
With reference to figure 5, for the flow diagram of another diagnostic method provided by the embodiments of the present application.As shown in Figure 5 examines Disconnected method can be applicable in diagnostic system shown in FIG. 1, it may include following steps:
S501, slave computer receive the configuration message that host computer is sent.
Optionally, it configures in message and carries configuration file, which will be diagnosed in object set by host computer Each diagnosis object corresponding configuration data generated according to preset format.It should be understood that configuration file includes at least Two groups of configuration datas.Optionally, configuration data is the data being configured to the parameter of transceiver, such as baud rate, input pipe The data such as foot and output pin.Therefore, slave computer receive host computer transmission configuration message after, can perform S502 according to The step of configuration file in configuration message configures each diagnosis object relevant transmitting-receiving utensil.
In a kind of feasible embodiment, configuration file includes verification data, and slave computer receives host computer transmission Configuration message after, can according to verification data to configuration file verify:If verification passes through, slave computer executes step S502;If Verification does not pass through, then slave computer can not execute step S502.Optionally, verification data can be cyclic redundancy check (Cyclic Redundancy Check, CRC) data, or be other verification datas, it is not specifically limited in the embodiment of the present application.
S502, slave computer carry out parameter according to the configuration file in configuration message to the corresponding transceiver of each diagnosis object Setting.
In a kind of feasible embodiment, the configuration data that slave computer includes according to configuration file is respectively to each receipts It sends out device and carries out parameter setting.As an example it is assumed that the configuration data CAN protocol that the configuration file that slave computer receives includes Baud rate is 500K, input pin is 6 and output pin is 14, then slave computer sets the parameter of CAN transceiver to baud Rate is 500K, input pin is 6 and output pin is 14.
Optionally, slave computer, can after being completed to the configuration of each diagnosis object relevant transceiver according to configuration file Prompting message is completed to send configuration to host computer.Based on this in a kind of feasible embodiment, diagnostic method shown in fig. 5 Further include:Slave computer receives the diagnostic message that host computer is sent;Diagnostic message is sent to car-mounted terminal by slave computer.Namely It says, after slave computer is provided with the corresponding transceiver parameters of each diagnosis object, sends configuration to host computer and complete to prompt to disappear Breath;After host computer receives prompting message, further diagnostic message is sent to slave computer;Slave computer sends the diagnostic message To car-mounted terminal, in order to which car-mounted terminal diagnoses vehicle according to diagnostic message.Wherein, diagnosis is carried in diagnostic message File, the diagnostic file are that host computer generates the corresponding diagnostic command of each diagnosis object according to preset format.It needs Bright, host computer can be identical for generating configuration file and the preset format of diagnostic file, can also be different, It does not limit in the embodiment of the present application.
The configuration message that the host computer received is sent is sent to car-mounted terminal by the embodiment of the present application slave computer, in order to Car-mounted terminal carries out parameter configuration according to configuration message to the relevant transceiver of each diagnostic file, in order to which slave computer can be from Vehicle data is obtained in each diagnosis object of vehicle to complete vehicle diagnostics, realizes using single channel while multiple vehicles are examined Disconnected object is diagnosed, and diagnosis efficiency is improved.
It is a kind of structural schematic diagram of host computer provided by the embodiments of the present application, terminal as shown in FIG. 6 can with reference to figure 6 Including receiving unit 601, determination unit 602, searching unit 603, generation unit 604 and transmission unit 605:
Receiving unit 601, for receiving diagnostic instruction input by user;
Determination unit 602, for when receiving unit receives diagnostic instruction input by user, determining that diagnostic instruction corresponds to Diagnosis object set, diagnosis object set include at least two diagnose objects;
Searching unit 603 is used for configuration corresponding with each diagnosis object in diagnosis object set from lookup in database Data;
Generation unit 604, for configuration data to be generated configuration file according to preset format;
Generation unit 604 is additionally operable to generate configuration message according to configuration file;
Transmission unit 605 is sent to slave computer for that will configure message, configures in message and carry configuration file, configuration disappears Breath is used to indicate slave computer and is configured to the corresponding transceiver of each diagnosis object according to the configuration file in configuration message.
Optionally, host computer further includes:
Receiving unit 601 is additionally operable to receive the configuration completion prompting message that slave computer is sent;
Searching unit 602 is additionally operable to from being searched in database and diagnose in object set that each diagnosis object is corresponding examines Disconnected order, diagnostic command include that the system for diagnosing object enters order and data reading order;
Generation unit 604 is additionally operable to diagnostic command generating diagnostic file according to preset format;
Generation unit 604 is additionally operable to generate diagnostic message according to diagnostic file, diagnostic file is carried in diagnostic message;
Transmission unit 605 is additionally operable to diagnostic message being sent to slave computer, and diagnostic message is used to indicate slave computer and will diagnose Message is sent to car-mounted terminal.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
If receiving unit 601 receives diagnostic instruction input by user, 602 basis of determination unit in the embodiment of the present application Diagnostic instruction determines diagnosis object set.In turn, searching unit 603 is at least two from lookup diagnosis object set in database The corresponding configuration data of object is diagnosed, and configuration data is generated configuration file by generation unit 604 according to preset format.Into One step, generation unit 604 generates configuration message according to configuration file, is finally sent to by transmission unit 605 by message is configured Slave computer with indicate slave computer according to configuration message in configuration file the corresponding transceiver of each diagnosis object is configured, The configuration parameter of each diagnosis object is found by host computer, slave computer joins the corresponding transceiver of each diagnosis object Number setting, in order to which slave computer can obtain vehicle data to complete vehicle by each transceiver from each diagnosis object of vehicle Diagnosis, realizing using single channel while being diagnosed to multiple vehicle diagnostics objects, improving diagnosis efficiency.
It is a kind of structural schematic diagram of slave computer provided by the embodiments of the present application with reference to figure 7, slave computer as shown in Figure 7, It may include receiving unit 701 and dispensing unit 702:
Receiving unit 701, the configuration message for receiving host computer transmission configure in message and carry configuration file, configure File, which is host computer, will diagnose what the corresponding configuration data of each diagnosis object in object set was generated according to preset format;
Setting unit 702, for according to configuration message in configuration file to the corresponding transceiver of each diagnosis object into Row configuration.
Optionally, slave computer includes transmission unit 703:
Transmission unit 703, if being configured to the corresponding transceiver of each diagnosis object according to configuration file for dispensing unit It completes, sending configuration to host computer completes prompting message;
Receiving unit 701 is additionally operable to receive the diagnostic message that host computer is sent, and diagnostic message is that host computer is matched receiving Generation after completing prompting message is set, diagnostic file is carried in diagnostic message, diagnostic file is host computer according to each diagnosis The corresponding diagnostic command of object is generated according to preset format;
Transmission unit 703 is additionally operable to diagnostic message being sent to car-mounted terminal, in order to indicate car-mounted terminal according to diagnosis The diagnostic file carried in message diagnoses each diagnosis object.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
After receiving unit 701 receives the configuration message that host computer is sent in the embodiment of the present application, 702 basis of dispensing unit The configuration file that configuration message includes is configured the corresponding transceiver of each diagnosis object, in order to which slave computer can be from vehicle Vehicle data is obtained in each diagnosis object to complete vehicle diagnostics, is realized using single channel simultaneously to multiple vehicle diagnostics Object is diagnosed, and diagnosis efficiency is improved.
It is a kind of schematic block diagram of host computer provided by the embodiments of the present application referring to Fig. 8.This implementation as shown in Figure 8 Example in host computer may include:One or more processors 801;One or more sending devices 802, one or more receptions Equipment 803 and memory 804.Above-mentioned processor 801, sending device 802, receiving device 803 and memory 804 pass through bus 805 connections.Memory 804 includes program instruction for storing computer program, computer program, and processor 801 is for executing The program instruction that memory 804 stores.Wherein, processor 801 is configured for caller instruction execution:
When receiving diagnostic instruction input by user, the corresponding diagnosis object set of diagnostic instruction is determined, diagnose object Set includes at least two diagnosis objects;
From the configuration data corresponding with each diagnosis object in diagnosis object set of lookup in database;
Configuration data is generated into configuration file according to preset format;
Configuration message is generated according to configuration file, and configuration message is sent to slave computer, configures and carries configuration in message File, configuration message are used to indicate slave computer according to the configuration file in configuration message to the corresponding transceiver of each diagnosis object Carry out parameter setting.
Optionally, processor 801 be configured for caller instruction also execute:
It is each in object set from searching and diagnosing in database if prompting message is completed in the configuration for receiving slave computer transmission The corresponding diagnostic command of a diagnosis object;
Diagnostic command is generated into diagnostic file according to preset format;
Diagnostic message is generated according to diagnostic file, and diagnostic message is sent to slave computer, diagnosis is carried in diagnostic message File, diagnostic message are used to indicate slave computer and diagnostic message are sent to car-mounted terminal.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
It should be appreciated that in the embodiment of the present application, alleged processor 801 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Sending device 802 is used for transmission data, and receiving device 803 is for receiving data.
The memory 803 may include read-only memory and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 803 can also include nonvolatile RAM.For example, memory 803 can also be deposited Store up the information of device type.
In the specific implementation, the processor 801, sending device 802 and receiving device 803 described in the embodiment of the present application can The realization method of host computer described in the embodiment and Fig. 6 of the diagnostic method that execution the embodiment of the present application Fig. 4 is provided, herein not It repeats again.
It is a kind of schematic block diagram of host computer provided by the embodiments of the present application referring to Fig. 9.This implementation as shown in Figure 9 Example in slave computer may include:One or more processors 901;One or more sending devices 902, one or more receptions Equipment 903 and memory 904.Above-mentioned processor 901, sending device 902, receiving device 903 and memory 904 pass through bus 905 connections.Memory 904 includes program instruction for storing computer program, computer program, and processor 901 is for executing The program instruction that memory 904 stores.Wherein, processor 901 is configured for caller instruction execution:
The configuration message that host computer is sent is received, configures and carries configuration file in message, configuration file, which will be host computer, to examine What the corresponding configuration data of each diagnosis object in disconnected object set was generated according to preset format;
The corresponding transceiver of each diagnosis object is configured according to configuration file.
Optionally, processor 901 be configured for caller instruction also execute:
It is completed if being configured to the corresponding transceiver of each diagnosis object according to configuration file, sending configuration to host computer completes Prompting message;
The diagnostic message that host computer is sent is received, diagnostic message is upper raw after receiving configuration and completing prompting message At, diagnostic file is carried in diagnostic message, diagnostic file is that host computer is pressed according to the corresponding diagnostic command of each diagnosis object It is generated according to preset format;
Diagnostic message is sent to car-mounted terminal, in order to indicate the diagnosis carried during car-mounted terminal is asked according to diagnosis text Part diagnoses each diagnosis object.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
It should be appreciated that in the embodiment of the present application, alleged processor 901 can be central processing unit CPU, the processor It can also be other general processors, digital signal processor DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA either other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..General processor Can be microprocessor or the processor can also be any conventional processor etc..
Sending device 902 is used for transmission data, and receiving device 903 is for receiving data.
The memory 904 may include read-only memory and random access memory, and to processor 901 provide instruction and Data.The a part of of memory 904 can also include nonvolatile RAM.For example, memory 904 can also be deposited Store up the information of device type.
In the specific implementation, the processor 901, sending device 902 and receiving device 903 described in the embodiment of the present application can The realization method of slave computer described in the embodiment and Fig. 7 of the diagnostic method that execution the embodiment of the present application Fig. 5 is provided, herein not It repeats again.
A kind of computer readable storage medium is provided in embodiments herein, computer-readable recording medium storage has Computer program, computer program include program instruction, are realized when program instruction is executed by processor:
When receiving diagnostic instruction input by user, the corresponding diagnosis object set of diagnostic instruction is determined, diagnose object Set includes at least two diagnosis objects;
From the configuration data corresponding with each diagnosis object in diagnosis object set of lookup in database;
Configuration data is generated into configuration file according to preset format;
Configuration message is generated according to configuration file, and configuration message is sent to slave computer, configures and carries configuration in message File, configuration message are used to indicate slave computer according to the configuration file in configuration message to the corresponding transceiver of each diagnosis object Carry out parameter setting.
Optionally, it is also realized when program instruction is executed by processor:
It is each in object set from searching and diagnosing in database if prompting message is completed in the configuration for receiving slave computer transmission The corresponding diagnostic command of a diagnosis object;
Diagnostic command is generated into diagnostic file according to preset format;
Diagnostic message is generated according to diagnostic file, and diagnostic message is sent to slave computer, diagnosis is carried in diagnostic message File, diagnostic message are used to indicate slave computer and diagnostic message are sent to car-mounted terminal.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
Another computer readable storage medium, computer-readable recording medium storage are provided in embodiments herein It includes program instruction to have computer program, computer program, is realized when program instruction is executed by processor:
The configuration message that host computer is sent is received, configures and carries configuration file in message, configuration file, which will be host computer, to examine What the corresponding configuration data of each diagnosis object in disconnected object set was generated according to preset format;
The relevant transceiver of each diagnosis object is configured according to the configuration file in configuration message.
Optionally, it is also realized when program instruction is executed by processor:
It is completed if being configured to the corresponding transceiver of each diagnosis object according to configuration file, sending configuration to host computer completes Prompting message;
The diagnostic message that host computer is sent is received, diagnostic message is upper raw after receiving configuration and completing prompting message At, diagnostic file is carried in diagnostic message, diagnostic file is that host computer is pressed according to the corresponding diagnostic command of each diagnosis object It is generated according to preset format;
Diagnostic message is sent to car-mounted terminal, in order to indicate the diagnosis carried during car-mounted terminal is asked according to diagnosis text Part diagnoses each diagnosis object.
Optionally, preset format includes data type, and data type is parameter set type, diagnosis text in configuration file Data type is communication type in part.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with It is completed by the relevant hardware of computer program instructions, computer program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, computer read/write memory medium Can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the application, cannot limit the power of the application with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the application Equivalent variations made by profit requirement, still belong to the scope covered by the invention.

Claims (10)

1. a kind of diagnostic method, which is characterized in that including:
When receiving diagnostic instruction input by user, host computer determines the corresponding diagnosis object set of the diagnostic instruction, institute It includes at least two diagnosis objects to state diagnosis object set;
The host computer is from searching corresponding with each diagnosis object in diagnosis object set configuration data in database;
The configuration data is generated configuration file by the host computer according to preset format;
The host computer generates configuration message according to the configuration file, and the configuration message is sent to slave computer, described The configuration file is carried in configuration message, the configuration message is used to indicate the slave computer according in the configuration message Configuration file configures the corresponding transceiver of each diagnosis object.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the host computer receives the configuration that the slave computer is sent and completes prompting message, the host computer is from the database Middle to search diagnostic command corresponding with each diagnosis object in the diagnosis object set, the diagnostic command includes diagnosis object System enter order and data reading order;
The diagnostic command is generated diagnostic file by the host computer according to the preset format;
The host computer generates diagnostic message according to the diagnostic file, and the diagnostic message is sent to slave computer, described The diagnostic file is carried in diagnostic message, the diagnostic message is used to indicate the slave computer and is sent to the diagnostic message Car-mounted terminal.
3. according to the method described in claim 2, it is characterized in that, the preset format includes data type, the configuration Data type is parameter set type in file, and data type is communication type in the diagnostic file.
4. a kind of diagnostic method, which is characterized in that including:
Slave computer receives the configuration message that host computer is sent, and carries configuration file in the configuration message, the configuration file is The host computer will diagnose what the corresponding configuration data of each diagnosis object in object set was generated according to preset format;
The slave computer is according to the configuration file in the configuration message to each diagnosis object corresponding transceiver progress Configuration.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
If the slave computer completes each diagnosis object corresponding transceiver configuration according to the configuration file, under described Position machine sends configuration to the host computer and completes prompting message;
The slave computer receives the diagnostic message that the host computer is sent, and the diagnostic message is the host computer receiving It states configuration and completes what prompting message generated later, diagnostic file is carried in the diagnostic message, the diagnostic file is on described Position machine generates the corresponding diagnostic command of each diagnosis object according to preset format;
The diagnostic message is sent to car-mounted terminal by the slave computer, in order to indicate the car-mounted terminal according to the diagnosis The diagnostic file carried in message diagnoses each diagnosis object.
6. any one of them method according to claim 4 or 5, which is characterized in that the preset format includes data type, Data type is parameter set type in the configuration file, and data type is communication type in the diagnostic file.
7. a kind of host computer, which is characterized in that including:
Receiving unit, for receiving diagnostic instruction input by user;
Determination unit, for when receiving unit receives diagnostic instruction input by user, determining that the diagnostic instruction is corresponding Object set is diagnosed, the diagnosis object set includes at least two diagnosis objects;
Searching unit is used for configuration data corresponding with each diagnosis object in diagnosis set from lookup in database;
Generation unit, for the configuration data to be generated configuration file according to preset format;
The generation unit is additionally operable to generate configuration message according to the configuration file;
Transmission unit carries the configuration file, institute for the configuration message to be sent to slave computer in the configuration message It states configuration message and is used to indicate the slave computer according to the configuration file in the configuration message to each diagnosis object pair The transceiver answered carries out parameter setting.
8. a kind of slave computer, which is characterized in that including:
Receiving unit, the configuration message for receiving host computer transmission carry configuration file, the configuration in the configuration message File is that the host computer generates the corresponding configuration data of each diagnosis object diagnosed in object set according to preset format 's;
Setting unit, for according to the configuration file in the configuration message to the corresponding transceiver of each diagnosis object into Row configuration.
9. a kind of host computer, which is characterized in that including processor, input equipment, output equipment and memory, the processor, The input equipment, the output equipment and the memory are connected with each other, wherein the memory is for storing computer journey Sequence, the computer program include program instruction, and the processor is configured for calling described program instruction, executes such as right It is required that 1-3 any one of them diagnostic methods.
10. a kind of slave computer, which is characterized in that including processor, input equipment, output equipment and memory, the processor, The input equipment, the output equipment and the memory are connected with each other, wherein the memory is for storing computer journey Sequence, the computer program include program instruction, and the processor is configured for calling described program instruction, executes such as right It is required that 4-6 any one of them diagnostic methods.
CN201810837248.1A 2018-07-26 2018-07-26 Diagnosis method, upper computer and lower computer Active CN108803577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810837248.1A CN108803577B (en) 2018-07-26 2018-07-26 Diagnosis method, upper computer and lower computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810837248.1A CN108803577B (en) 2018-07-26 2018-07-26 Diagnosis method, upper computer and lower computer

Publications (2)

Publication Number Publication Date
CN108803577A true CN108803577A (en) 2018-11-13
CN108803577B CN108803577B (en) 2021-10-22

Family

ID=64078233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810837248.1A Active CN108803577B (en) 2018-07-26 2018-07-26 Diagnosis method, upper computer and lower computer

Country Status (1)

Country Link
CN (1) CN108803577B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658542A (en) * 2018-11-16 2019-04-19 深圳市元征科技股份有限公司 Diagnostic parameters data verification method, device, vehicle diagnostic equipment and storage medium
CN109814524A (en) * 2018-12-17 2019-05-28 深圳市轱辘汽车维修技术有限公司 A kind of Vehicular diagnostic method, apparatus and system
CN111527389A (en) * 2020-01-19 2020-08-11 深圳市元征科技股份有限公司 Vehicle diagnosis method, vehicle diagnosis device and storage medium
CN112306038A (en) * 2020-10-14 2021-02-02 深圳市元征科技股份有限公司 Detection method, detection device and diagnosis equipment
CN113055414A (en) * 2019-12-26 2021-06-29 观致汽车有限公司 Vehicle diagnosis method and system
CN113424234A (en) * 2018-12-11 2021-09-21 实耐宝公司 Vehicle scanning tool auto-initialization
CN115442261A (en) * 2022-05-27 2022-12-06 北京罗克维尔斯科技有限公司 Method and system for testing lower computer

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060100972A1 (en) * 2004-10-19 2006-05-11 Ge Medical Systems Technology Llc Automated software-based hardware tracking system
CN101807068A (en) * 2010-02-12 2010-08-18 深圳市元征软件开发有限公司 Universal bus parallelism-based vehicle diagnosis system and method
CN202090380U (en) * 2011-04-01 2011-12-28 长沙中联重工科技发展股份有限公司 Fault diagnosis system for evacuator
CN102736565A (en) * 2011-04-02 2012-10-17 成都齐峰科技有限公司 Communication method of automatic control equipment based on upper and lower computer structures
CN103287400A (en) * 2013-02-05 2013-09-11 深圳市元征科技股份有限公司 Vehicle data diagnostic system and method
CN103605359A (en) * 2013-11-25 2014-02-26 深圳市道通科技有限公司 Automobile diagnostic system and method
WO2014080491A1 (en) * 2012-11-22 2014-05-30 三菱電機株式会社 Programmable display device
CN104038262A (en) * 2014-06-13 2014-09-10 陕西法士特齿轮有限责任公司 Mobile terminal commercial vehicle monitoring system for realizing diagnosis technology and Bluetooth communication under Android platform
CN206451037U (en) * 2016-12-29 2017-08-29 北京汽车研究总院有限公司 A kind of offline diagnostic configuration system of vehicle
CN108062805A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 A kind of vehicle-mounted data processing method and server
CN108196861A (en) * 2017-12-29 2018-06-22 深圳市元征科技股份有限公司 A kind of data updating method and its diagnostic device
CN108833037A (en) * 2018-05-18 2018-11-16 上海欧科微航天科技有限公司 A kind of the ground detection method and device of satellite

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060100972A1 (en) * 2004-10-19 2006-05-11 Ge Medical Systems Technology Llc Automated software-based hardware tracking system
CN101807068A (en) * 2010-02-12 2010-08-18 深圳市元征软件开发有限公司 Universal bus parallelism-based vehicle diagnosis system and method
CN202090380U (en) * 2011-04-01 2011-12-28 长沙中联重工科技发展股份有限公司 Fault diagnosis system for evacuator
CN102736565A (en) * 2011-04-02 2012-10-17 成都齐峰科技有限公司 Communication method of automatic control equipment based on upper and lower computer structures
WO2014080491A1 (en) * 2012-11-22 2014-05-30 三菱電機株式会社 Programmable display device
CN103287400A (en) * 2013-02-05 2013-09-11 深圳市元征科技股份有限公司 Vehicle data diagnostic system and method
CN103605359A (en) * 2013-11-25 2014-02-26 深圳市道通科技有限公司 Automobile diagnostic system and method
CN104038262A (en) * 2014-06-13 2014-09-10 陕西法士特齿轮有限责任公司 Mobile terminal commercial vehicle monitoring system for realizing diagnosis technology and Bluetooth communication under Android platform
CN206451037U (en) * 2016-12-29 2017-08-29 北京汽车研究总院有限公司 A kind of offline diagnostic configuration system of vehicle
CN108062805A (en) * 2017-11-03 2018-05-22 深圳市轱辘车联数据技术有限公司 A kind of vehicle-mounted data processing method and server
CN108196861A (en) * 2017-12-29 2018-06-22 深圳市元征科技股份有限公司 A kind of data updating method and its diagnostic device
CN108833037A (en) * 2018-05-18 2018-11-16 上海欧科微航天科技有限公司 A kind of the ground detection method and device of satellite

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658542A (en) * 2018-11-16 2019-04-19 深圳市元征科技股份有限公司 Diagnostic parameters data verification method, device, vehicle diagnostic equipment and storage medium
CN113424234A (en) * 2018-12-11 2021-09-21 实耐宝公司 Vehicle scanning tool auto-initialization
CN109814524A (en) * 2018-12-17 2019-05-28 深圳市轱辘汽车维修技术有限公司 A kind of Vehicular diagnostic method, apparatus and system
CN113055414A (en) * 2019-12-26 2021-06-29 观致汽车有限公司 Vehicle diagnosis method and system
CN111527389A (en) * 2020-01-19 2020-08-11 深圳市元征科技股份有限公司 Vehicle diagnosis method, vehicle diagnosis device and storage medium
CN112306038A (en) * 2020-10-14 2021-02-02 深圳市元征科技股份有限公司 Detection method, detection device and diagnosis equipment
CN112306038B (en) * 2020-10-14 2022-06-17 深圳市元征科技股份有限公司 Detection method, detection device and diagnosis equipment
CN115442261A (en) * 2022-05-27 2022-12-06 北京罗克维尔斯科技有限公司 Method and system for testing lower computer

Also Published As

Publication number Publication date
CN108803577B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108803577A (en) A kind of diagnostic method, host computer and slave computer
JP5709055B2 (en) Electronic control device for vehicle
US10621797B2 (en) System and method for transferring diagnostic commands to a vehicle
CN107479525B (en) Vehicle remote diagnosis system and its control method
WO2020125591A1 (en) Vehicle diagnosis method, management server and diagnosis server
US9805520B2 (en) Method and system for providing vehicle security service
US8897952B1 (en) Vehicle diagnostic communications system and application
CN108958224B (en) Vehicle diagnosis method, diagnosis terminal and diagnosis box
WO2019174504A1 (en) Method and device for establishing a logical channel, and vehicle communication interface (vci)
CN111538312B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
US20050154500A1 (en) Method and device for emitting and/or receiving information relating to a vehicle
US11514731B2 (en) Method and system for remote vehicle diagnostics
CN106970609A (en) The diagnostic method and vehicle diagnostics box of vehicle diagnostics box
CN111176695A (en) Vehicle ECU configuration method, server and terminal
CN112990495A (en) Method, device and system for vehicle after-sale diagnosis and storage medium
CN110333713A (en) Car fault diagnosis method and system
CN109451499A (en) A kind of method and apparatus connecting wireless access point
CN113038421A (en) Automobile diagnosis method, automobile diagnosis device and automobile gateway
CN113433923A (en) Vehicle remote diagnosis method, system, readable storage medium and device
CN112202884A (en) Data transmission method for vehicle connection interface device and related equipment
WO2024109535A1 (en) Communication interaction method and apparatus, device, and storage medium
CN113505056A (en) Vehicle diagnosis method, system, device and storage medium
JP5966697B2 (en) Information processing device
CN116319499A (en) Diagnostic method and device for vehicle, electronic equipment and storage medium
CN114003018A (en) Vehicle diagnosis method and related device

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