[go: up one dir, main page]

CN107037804A - Method, system and the computer-readable recording medium of simulated automotive communication - Google Patents

Method, system and the computer-readable recording medium of simulated automotive communication Download PDF

Info

Publication number
CN107037804A
CN107037804A CN201710270408.4A CN201710270408A CN107037804A CN 107037804 A CN107037804 A CN 107037804A CN 201710270408 A CN201710270408 A CN 201710270408A CN 107037804 A CN107037804 A CN 107037804A
Authority
CN
China
Prior art keywords
commands
return
communication
command
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710270408.4A
Other languages
Chinese (zh)
Inventor
刘均
庄文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710270408.4A priority Critical patent/CN107037804A/en
Publication of CN107037804A publication Critical patent/CN107037804A/en
Pending legal-status Critical Current

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/0216Human interface functionality, e.g. monitoring system providing help to the user in the selection of tests or in its configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses method, system and the computer-readable recording medium of a kind of simulated automotive communication, including:Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;Judge to whether there is the corresponding commands in return of the inquiry command in preset database;If there is the commands in return in database, the commands in return is sent to the slave computer, so that slave computer feeds back to automotive test equipment.The present invention can reach the purpose of exploitation and test Auto analyzer by way of simulated automotive is communicated.

Description

Method, system and the computer-readable recording medium of simulated automotive communication
Technical field
The present invention relates to vehicle diagnosis field, more particularly to the method for simulated automotive communication, system and computer-readable Storage medium.
Background technology
With expanding economy, the trip mode that result in people is changed, nowadays, and automobile has become many people Walking-replacing tool, during the use of automobile, unavoidably will to automobile carry out M R.Automobile is being maintained and tieed up When repairing, Auto analyzer is the instrument being frequently used.Auto analyzer is required for total with automobile when exploitation and test Line or ECU (electronic control unit/car running computer) carry out data communication, but whether automobile or ECU are receiving inspection It is all fixed to survey the order replied after the inquiry command that instrument is sent, it is impossible to set commands in return according to actual test condition, Do not reach detection to require.
The content of the invention
It is a primary object of the present invention to provide a kind of method, system and the computer-readable storage of simulated automotive communication Medium, it is intended to solve Auto analyzer in the prior art and when exploitation and test, be required for and automobile bus or ECU (electronic control unit/car running computer) carries out data communication, but whether automobile or ECU are receiving what detector was sent The order replied after inquiry command is all fixed, it is impossible to sets commands in return according to actual test condition, does not reach detection It is required that technical problem.
To achieve the above object, the present invention provides a kind of method of simulated automotive communication, the side of the simulated automotive communication Method is applied to host computer, and the method for the simulated automotive communication includes:
Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
Judge to whether there is the corresponding commands in return of the inquiry command in preset database;
If there is the commands in return in database, the commands in return is sent to the slave computer, for bottom Machine feeds back to automotive test equipment.
Preferably, before the inquiry command received transmitted by the sense command that slave computer is sent based on automotive test equipment Including:
According to car set type by corresponding some inquiry commands and corresponding commands in return associated storage in the car system In corresponding database.
Preferably, it is described to judge that whether there is the corresponding commands in return of the inquiry command in preset database includes:
Determine the corresponding car system of the inquiry command;
Judge to whether there is the corresponding commands in return of the inquiry command in the corresponding database of the car system.
In addition, to achieve the above object, the present invention also provides a kind of method of simulated automotive communication, the simulated automotive leads to The method of news is applied to slave computer, and the method for the simulated automotive communication includes:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent To host computer;
When receiving the commands in return from host computer transmission, lattice are carried out to the commands in return according to preset communications protocol Formula is converted, and the commands in return after the format conversion is sent to automotive test equipment.
Preferably, it is described when receive the sense command that is sent from automotive test equipment, the sense command is corresponding Inquiry command is sent to be included to before host computer:
The setting command that host computer is sent is received, according to the setting command, the communication ginseng of preset communications transceiver is set Number and communications protocol.
In addition, to achieve the above object, the present invention also provides a kind of system of simulated automotive communication, the simulated automotive leads to The system of news includes:Memory, processor, communication bus and the journey for the simulated automotive communication being stored on the memory Sequence:
The communication bus is used to realize the connection communication between processor and memory;
The processor is used for the program for performing the simulated automotive communication, to realize following steps:
Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
Judge to whether there is the corresponding commands in return of the inquiry command in preset database;
If there is the commands in return in database, the commands in return is sent to the slave computer, for bottom Machine feeds back to automotive test equipment.
Preferably, it is described to judge that whether there is the corresponding commands in return of the inquiry command in preset database includes:
Determine the corresponding car system of the inquiry command;
Judge to whether there is the corresponding commands in return of the inquiry command in the corresponding database of the car system.
Preferably, the processor is used for the program for performing the simulated automotive communication, also realizes following steps:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent To host computer;
When receiving the commands in return from host computer transmission, lattice are carried out to the commands in return according to preset communications protocol Formula is converted, and the commands in return after the format conversion is sent to automotive test equipment.
Preferably, the processor is used for the program for performing the simulated automotive communication, also realizes following steps:
The setting command that host computer is sent is received, according to the setting command, the communication ginseng of preset communications transceiver is set Number and communications protocol.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable The program of the simulated automotive that is stored with storage medium communication, the program of the simulated automotive communication is realized such as when being executed by processor The step of method of upper described simulated automotive communication.
In the present invention, when host computer is received transmitted by the sense command sent from slave computer based on automotive test equipment During inquiry command, the corresponding commands in return of the inquiry command is searched in the database stored, and commands in return is sent to Slave computer.By flexibly setting the corresponding commands in return of inquiry command, so that Auto analyzer enters according to commands in return to automobile Row diagnosis, so as to reach the purpose of exploitation and test Auto analyzer.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method first embodiment that simulated automotive of the present invention is communicated;
Fig. 2 is the schematic flow sheet for the method second embodiment that simulated automotive of the present invention is communicated;
The refinement schematic flow sheet that Fig. 3 is step S30 in Fig. 1;
Fig. 4 is the schematic flow sheet for the method 3rd embodiment that simulated automotive of the present invention is communicated;
Fig. 5 be the hardware running environment that scheme of the embodiment of the present invention is related to terminal apparatus structure schematic diagram.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Because prior art Auto analyzer is when exploitation and test, it is required for and automobile bus or ECU (electronics Control unit/car running computer) data communication is carried out, but whether automobile or ECU are receiving the inquiry that detector is sent The order replied after order is all fixed, it is impossible to set commands in return according to actual test condition, does not reach detection and requires.
The present invention provides a solution, when host computer receives the inspection sent from slave computer based on automotive test equipment When surveying the inquiry command transmitted by order, the corresponding commands in return of the inquiry command is searched in the database stored, and will Commands in return is sent to slave computer.By flexibly setting the corresponding commands in return of inquiry command, for Auto analyzer according to return Order of reporting on completion of a task is diagnosed to automobile, so as to reach the purpose of exploitation and test Auto analyzer.
Reference picture 1, Fig. 1 is the schematic flow sheet for the method first embodiment that simulated automotive of the present invention is communicated.
In one embodiment, the method for simulated automotive communication is applied to host computer, and the method for simulated automotive communication includes:
Step S20, receives the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
In the present embodiment, slave computer is not limited with the mode that host computer sets up connecting communication, can be wireless connection, for example By radio connections such as WiFi, bluetooths, wired connection is can also be, for example, data wire is used by serial ports or USB port The modes such as communication are set up, this is not restricted, suitable mode is selected with specific reference to actual conditions.
In the present embodiment, inquiry command is sent to slave computer by Auto analyzer, is then sent by slave computer to upper Machine.The inquiry command refers to the data flow of a certain car system vehicle of acquisition request, so that Auto analyzer is getting the car system car Data flow after the working condition of the vehicle is diagnosed.Car data stream refers to electronic control unit (ECU) and sensing The data parameters that device is exchanged with actuator, including the spray of coolant temperature, engine speed, engine load, per engine cycle The information such as oily duration.These data parameters are freely set in the present invention, the car data stream simulated, so that automobile is examined Disconnected instrument is diagnosed to the car data stream of simulation.
Step S30, judges to whether there is the corresponding commands in return of the inquiry command in preset database;
Step S40, if there is the commands in return in database, the commands in return is sent to the slave computer, So that slave computer feeds back to automotive test equipment.
In the present embodiment, commands in return contains car data stream (representing a kind of vehicle condition), is available for automobile to examine Car data stream of the disconnected instrument in commands in return carries out diagnostic work.In the present embodiment, commands in return capable freely changing will Car data stream is modified, so that Auto analyzer is carried out to different car data stream (different conditions for representing automobile) Diagnosis.
It is different according to car system in the present embodiment, corresponding inquiry command and the database of commands in return are set up, wherein asking Ask that order is corresponded with commands in return.As shown in table 1, table 1 is the Database Lists of an embodiment.
Table 1
If for example, the now correspondence of inquiry command 2 car system 2, in the corresponding database of car system 2 in find inquiry command 2 Corresponding commands in return 2.
In the present embodiment, by freely setting the corresponding commands in return of inquiry command (car data stream parameter), for Auto analyzer is diagnosed to the car data stream included in commands in return, i.e., completed by the car data stream of simulation to vapour The exploitation and test of car diagnostic equipment, without actual vehicle participate in, save Auto analyzer exploitation and test time with Funds.
Further, reference picture 2, Fig. 2 is the schematic flow sheet for the method second embodiment that simulated automotive of the present invention is communicated.
In one embodiment, include before step S20:
Step S10, exists corresponding some inquiry commands and corresponding commands in return associated storage according to car set type In the corresponding database of the car system.
In the present embodiment, it is different according to car system, corresponding inquiry command and the database of commands in return are set up, wherein Inquiry command is corresponded with commands in return.As shown in table 1, table 1 is the Database Lists of an embodiment.
Table 1
In the present embodiment, according to automotive test equipment the car system detected can also be needed to set up database, for example, currently Need to test automotive test equipment A function, automotive test equipment A supports that the car system of detection is car system 3, then according to car system 3 Set up corresponding inquiry command and the database of commands in return.
In the present embodiment, before testing the function of automotive test equipment, the car system detected according to automotive test equipment Type, sets up the corresponding inquiry command of car system and the database of commands in return so that need not pass through reality in host computer The vehicle on border, but exploitation and test by commands in return (simulated automotive data flow) completion to automotive test equipment, are saved Time and funds.
Reference picture 3, the refinement schematic flow sheet that Fig. 3 is step S30 in Fig. 1.
In one embodiment, step S30 includes:
Step S301, determines the corresponding car system of the inquiry command;
Step S302, judges in the corresponding database of the car system with the presence or absence of the corresponding reply life of the inquiry command Order.
In the present embodiment, for example, now needing to test the detection that Auto analyzer detects a certain car system vehicle Effect, for example, for car system A, Auto analyzer sends corresponding inquiry command (acquisition request car system A data flow), upper Machine is after the inquiry command is received, in the database of storage, the corresponding databases of car system A is searched, in the corresponding numbers of car system A According to the corresponding commands in return of the inquiry command (including car data stream) is searched in storehouse, the commands in return is then sent to bottom Machine, sends after being formatted by slave computer to the commands in return to Auto analyzer.
In the present embodiment, it is that each car system sets up corresponding database, realizes test Auto analyzer to different car systems Detection results, and do not need actual vehicle participate in, save Auto analyzer exploitation and test time and funds.
Further, in another alternative embodiment of the invention, the method for simulated automotive communication is applied to slave computer, the simulation The method of automobile communication includes:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent To host computer;
When receiving the commands in return from host computer transmission, lattice are carried out to the commands in return according to preset communications protocol Formula is converted, and the commands in return after the format conversion is sent to automotive test equipment.
In the present embodiment, diagnostic device is Auto analyzer, and Auto analyzer is a specifically designed for automotive check Special instrument, the performance of vehicle can be detected in real time, and vehicle trouble is detected, be a kind of instrument for detecting that vehicle is indispensable. In the present embodiment, slave computer sets up communication connection in the form of CAN by preset OBD interfaces with Auto analyzer.It is the next Machine is by wireless connection, and the radio connection such as by WiFi, bluetooth can also be wired connection, for example, pass through serial ports Or USB port sets up the modes such as communication with host computer foundation communication connection using data wire.Slave computer is received examines from automobile The inquiry command that disconnected instrument is sent, the inquiry command is sent to host computer.
Reference picture 4, Fig. 4 is the schematic flow sheet for the method 3rd embodiment that simulated automotive of the present invention is communicated.
In the present embodiment, slave computer sets up communication connection with host computer and Auto analyzer through the above way, according to The setting command that host computer is sent, sets the messaging parameter and communications protocol of preset communications transceiver, for completing follow-up Data transfer works.When receiving the sense command sent based on automotive test equipment from OBD buses, the order is passed through Wired or wireless communication modes are sent to host computer;When receiving the commands in return from host computer, according to Auto analyzer Type, commands in return is formatted according to preset communications protocol (BOSH, CANBUS, KWP, PWM, VPW), for form Commands in return after change can be handled by automotive diagnostic installation.Wherein, it is manufactory as the CANBUS of ISO11898CAN standards Middle field equipment connecting (sensor, actuator, controller etc.), the string bus system towards broadcast.KWP is OBDII communications One kind of agreement.PWM refers to pulse width modulation.VPW refers to variable impulse width modulation.
In the present embodiment, lattice are carried out by the commands in return sent in the preset communications protocol of slave computer to host computer Formula so that the commands in return after formatting can be diagnosed equipment processing so that the present invention can be used for examining a variety of automobiles Disconnected instrument is developed and tested.
In the present embodiment, when needing the function to Auto analyzer to develop or test, it is not necessary to which vehicle is actual Participate in, simulating vehicle is constituted by host computer and slave computer, reach the purpose of exploitation or test Auto analyzer, saved automobile Diagnostic equipment is developed and the time tested and funds.
Further, in another alternative embodiment of the invention, the method for simulated automotive communication is applied to slave computer, the simulation The method of automobile communication also includes:
The setting command that host computer is sent is received, according to the setting command, the communication ginseng of preset communications transceiver is set Number and communications protocol.
In the present embodiment, slave computer is by wireless connection, the radio connection such as by WiFi, bluetooth, can be with It is wired connection, the mode such as setting up communication using data wire by serial ports or USB port sets up communication connection with host computer. The setting command sent according to host computer, sets the messaging parameter and communications protocol of preset communications transceiver, for after the completion of Continuous data transfer work.
In the present embodiment, the messaging parameter and communications protocol by flexibly setting communications transceiver are passed through so that this Invention can be used for a variety of Auto analyzers are developed and tested.
In addition, the embodiment of the present invention also provides a kind of system of simulated automotive communication.The system of the simulated automotive communication Including:Memory, processor, communication bus and the program for the simulated automotive communication being stored on the memory.
As shown in figure 5, Fig. 5 is the terminal structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
The system of simulated automotive of embodiment of the present invention communication includes the host computer and slave computer and diagnostic device of interaction.On Position machine can be the terminal device that PC or smart mobile phone, tablet personal computer, pocket computer etc. have display function.Under Position machine can set up communication with host computer by the mode such as serial ports or USB port or WiFi, bluetooth and connect, and slave computer can also pass through OBD interfaces set up communication connection with automotive diagnostic installation.
As shown in figure 1, the system of simulated automotive communication can include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 be used for realize these components it Between connection communication.User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), Optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally include Wireline interface, the wave point (such as WI-FI interfaces) of standard.Memory 1005 can be high-speed RAM memory or steady Fixed memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of The storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can be wrapped Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 4, leading to as operating system, network can be included in a kind of memory 1005 of computer-readable storage medium Believe the program of module, Subscriber Interface Module SIM and simulated automotive communication.
In the terminal shown in Fig. 4, network interface 1004 is mainly used in connecting background server, is carried out with background server Data communication;User interface 1003 is mainly used in connection client (user terminal), and row data communication is entered with client;And processor 1001 can be used for calling the program that the simulated automotive stored in memory 1005 is communicated, and perform following operate:
Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
In the present embodiment, slave computer is not limited with the mode that host computer sets up connecting communication, can be wireless connection, for example By radio connections such as WiFi, bluetooths, wired connection is can also be, for example, data wire is used by serial ports or USB port The modes such as communication are set up, this is not restricted, suitable mode is selected with specific reference to actual conditions.
In the present embodiment, sense command is sent to slave computer by Auto analyzer, then by slave computer by sense command Corresponding inquiry command (sense command is consistent with inquiry command) is sent to host computer.The inquiry command refers to that acquisition request is a certain The data flow of car system vehicle, for working condition of the Auto analyzer after the data flow of the car system vehicle is got to the vehicle Diagnosed.Car data stream refers to the data parameters that electronic control unit (ECU) is exchanged with sensor and actuator, including cold But the information such as liquid temperature degree, engine speed, engine load, per engine cycle injection duration.Freely set in the present invention These data parameters are put, the car data stream simulated, so that Auto analyzer is diagnosed to the car data stream of simulation.
Judge to whether there is the corresponding commands in return of the inquiry command in preset database;
If there is the commands in return in database, the commands in return is sent to the slave computer, for bottom Machine feeds back to automotive test equipment.
In the present embodiment, commands in return contains car data stream (representing a kind of vehicle condition), is available for automobile to examine Car data stream of the disconnected instrument in commands in return carries out diagnostic work.In the present embodiment, commands in return capable freely changing will Car data stream is modified, so that Auto analyzer is carried out to different car data stream (different conditions for representing automobile) Diagnosis.
It is different according to car system in the present embodiment, corresponding inquiry command and the database of commands in return are set up, wherein asking Ask that order is corresponded with commands in return.As shown in table 1, table 1 is the Database Lists of an embodiment.
Table 1
If for example, the now correspondence of inquiry command 2 car system 2, in the corresponding database of car system 2 in find inquiry command 2 Corresponding commands in return 2.
In the present embodiment, by freely setting the corresponding commands in return of inquiry command (car data stream parameter), for Auto analyzer is diagnosed to the car data stream included in commands in return, i.e., completed by the car data stream of simulation to vapour The exploitation and test of car diagnostic equipment, without actual vehicle participate in, save Auto analyzer exploitation and test time with Funds.
Further, processor 1001 can call the program that the simulated automotive stored in memory 1005 is communicated, and also hold Row is following to be operated:
According to car set type by corresponding some inquiry commands and corresponding commands in return associated storage in the car system In corresponding database.
In the present embodiment, it is different according to car system, corresponding inquiry command and the database of commands in return are set up, wherein Inquiry command is corresponded with commands in return.As shown in table 1, table 1 is the Database Lists of an embodiment.
Table 1
In the present embodiment, according to automotive test equipment the car system detected can also be needed to set up database, for example, currently Need to test automotive test equipment A function, automotive test equipment A supports that the car system of detection is car system 3, then according to car system 3 Set up corresponding inquiry command and the database of commands in return.
In the present embodiment, before testing the function of automotive test equipment, the car system detected according to automotive test equipment Type, sets up the corresponding inquiry command of car system and the database of commands in return so that need not pass through reality in host computer The vehicle on border, but exploitation and test by commands in return (simulated automotive data flow) completion to automotive test equipment, are saved Time and funds.
Further, processor 1001 can call the program that the simulated automotive stored in memory 1005 is communicated, and also hold Row is following to be operated:
Determine the corresponding car system of the inquiry command;
Judge to whether there is the corresponding commands in return of the inquiry command in the corresponding database of the car system.
In the present embodiment, for example, now needing to test the detection that Auto analyzer detects a certain car system vehicle Effect, for example, for car system A, Auto analyzer sends corresponding sense command (acquisition request car system A data flow), upper Machine is after the sense command (i.e. inquiry command) is received, in the database of storage, searches the corresponding databases of car system A, The corresponding commands in return of the inquiry command (including car data stream) is searched in the corresponding databases of car system A, then this is replied Order is sent to slave computer, is sent after being formatted by slave computer to the commands in return to Auto analyzer.
In the present embodiment, it is that each car system sets up corresponding database, realizes test Auto analyzer to different car systems Detection results, and do not need actual vehicle participate in, save Auto analyzer exploitation and test time and funds.
Further, processor 1001 can call the program that the simulated automotive stored in memory 1005 is communicated, and also hold Row is following to be operated:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent To host computer;
When receiving the commands in return from host computer transmission, lattice are carried out to the commands in return according to preset communications protocol Formula is converted, and the commands in return after the format conversion is sent to automotive test equipment.
In the present embodiment, diagnostic device is Auto analyzer, and Auto analyzer is a specifically designed for automotive check Special instrument, the performance of vehicle can be detected in real time, and vehicle trouble is detected, be a kind of instrument for detecting that vehicle is indispensable. In the present embodiment, slave computer sets up communication connection in the form of CAN by preset OBD interfaces with Auto analyzer.It is the next Machine is by wireless connection, and the radio connection such as by WiFi, bluetooth can also be wired connection, for example, pass through serial ports Or USB port sets up the modes such as communication with host computer foundation communication connection using data wire.Slave computer is received examines from automobile The inquiry command that disconnected instrument is sent, the inquiry command is sent to host computer.
Reference picture 4, Fig. 4 is the schematic flow sheet for the method 3rd embodiment that simulated automotive of the present invention is communicated.
In the present embodiment, slave computer sets up communication connection with host computer and Auto analyzer through the above way, according to The setting command that host computer is sent, sets the messaging parameter and communications protocol of preset communications transceiver, for completing follow-up Data transfer works.When receiving the sense command sent based on automotive test equipment from OBD buses, the order is passed through Wired or wireless communication modes are sent to host computer;When receiving the commands in return from host computer, according to Auto analyzer Type, commands in return is formatted according to preset communications protocol (BOSH, CANBUS, KWP, PWM, VPW), for form Commands in return after change can be handled by automotive diagnostic installation.Wherein, it is manufactory as the CANBUS of ISO11898CAN standards Middle field equipment connecting (sensor, actuator, controller etc.), the string bus system towards broadcast.KWP is OBDII communications One kind of agreement.PWM refers to pulse width modulation.VPW refers to variable impulse width modulation.
In the present embodiment, lattice are carried out by the commands in return sent in the preset communications protocol of slave computer to host computer Formula so that the commands in return after formatting can be diagnosed equipment processing so that the present invention can be used for examining a variety of automobiles Disconnected instrument is developed and tested.
In the present embodiment, when needing the function to Auto analyzer to develop or test, it is not necessary to which vehicle is actual Participate in, simulating vehicle is constituted by host computer and slave computer, reach the purpose of exploitation or test Auto analyzer, saved automobile Diagnostic equipment is developed and the time tested and funds.
Further, processor 1001 can call the program that the simulated automotive stored in memory 1005 is communicated, and also hold Row is following to be operated:
The setting command that host computer is sent is received, according to the setting command, the communication ginseng of preset communications transceiver is set Number and communications protocol.
In the present embodiment, slave computer is by wireless connection, the radio connection such as by WiFi, bluetooth, can be with It is wired connection, the mode such as setting up communication using data wire by serial ports or USB port sets up communication connection with host computer. The setting command sent according to host computer, sets the messaging parameter and communications protocol of preset communications transceiver, for after the completion of Continuous data transfer work.
In the present embodiment, the messaging parameter and communications protocol by flexibly setting communications transceiver are passed through so that this Invention can be used for a variety of Auto analyzers are developed and tested.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with the program of simulated automotive communication, the program of simulated automotive communication is realized when being executed by processor and simulated as described above The step of method of automobile communication.
The embodiment for the method that the specific embodiment of computer-readable recording medium of the present invention is communicated with above-mentioned simulated automotive It is roughly the same, it will not be described here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of simulated automotive communication, it is characterised in that the method for the simulated automotive communication is applied to host computer, institute Stating the method for simulated automotive communication includes:
Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
Judge to whether there is the corresponding commands in return of the inquiry command in preset database;
If there is the commands in return in database, the commands in return is sent to the slave computer, so that slave computer is anti- It is fed to automotive test equipment.
2. the method for simulated automotive communication as claimed in claim 1, it is characterised in that the reception slave computer is examined based on automobile Include before surveying the inquiry command transmitted by the sense command that instrument is sent:
According to car set type by corresponding some inquiry commands and corresponding commands in return associated storage in car system correspondence Database in.
3. the method for simulated automotive communication as claimed in claim 1, it is characterised in that be in the preset database of the judgement No have the corresponding commands in return of the inquiry command and include:
Determine the corresponding car system of the inquiry command;
Judge to whether there is the corresponding commands in return of the inquiry command in the corresponding database of the car system.
4. a kind of method of simulated automotive communication, it is characterised in that the method for the simulated automotive communication is applied to slave computer, institute Stating the method for simulated automotive communication includes:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent supreme Position machine;
When receiving the commands in return from host computer transmission, row format is entered to the commands in return according to preset communications protocol and turned Change, the commands in return after the format conversion is sent to automotive test equipment.
5. the method for simulated automotive communication as claimed in claim 4, it is characterised in that described to receive from automotive check The sense command that instrument is sent, the corresponding inquiry command of the sense command is sent to be included to before host computer:
Receive the setting command that sends of host computer, according to the setting command, set the communications parameter of preset communications transceiver with And communications protocol.
6. a kind of system of simulated automotive communication, it is characterised in that the system of the simulated automotive communication includes:Memory, place Reason device, communication bus and the program for the simulated automotive communication being stored on the memory:
The communication bus is used to realize the connection communication between processor and memory;
The processor is used for the program for performing the simulated automotive communication, to realize following steps:
Receive the inquiry command transmitted by the sense command that slave computer is sent based on automotive test equipment;
Judge to whether there is the corresponding commands in return of the inquiry command in preset database;
If there is the commands in return in database, the commands in return is sent to the slave computer, so that slave computer is anti- It is fed to automotive test equipment.
7. the system of simulated automotive communication as claimed in claim 6, it is characterised in that be in the preset database of the judgement No have the corresponding commands in return of the inquiry command and include:
Determine the corresponding car system of the inquiry command;
Judge to whether there is the corresponding commands in return of the inquiry command in the corresponding database of the car system.
8. the system of simulated automotive communication as claimed in claim 6, it is characterised in that the processor is used to perform the mould Intend the program of automobile communication, also realize following steps:
When receiving the sense command that is sent from automotive test equipment, the corresponding inquiry command of the sense command is sent supreme Position machine;
When receiving the commands in return from host computer transmission, row format is entered to the commands in return according to preset communications protocol and turned Change, the commands in return after the format conversion is sent to automotive test equipment.
9. the system of simulated automotive communication as claimed in claim 6, it is characterised in that the processor is used to perform the mould Intend the program of automobile communication, also realize following steps:
Receive the setting command that sends of host computer, according to the setting command, set the communications parameter of preset communications transceiver with And communications protocol.
10. a kind of computer-readable recording medium, it is characterised in that be stored with simulation vapour on the computer-readable recording medium The program of car communication, the program of the simulated automotive communication realizes that such as claims 1 to 3 or right will when being executed by processor The step of method for asking the simulated automotive any one of 4 to 5 to communicate.
CN201710270408.4A 2017-04-21 2017-04-21 Method, system and the computer-readable recording medium of simulated automotive communication Pending CN107037804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710270408.4A CN107037804A (en) 2017-04-21 2017-04-21 Method, system and the computer-readable recording medium of simulated automotive communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710270408.4A CN107037804A (en) 2017-04-21 2017-04-21 Method, system and the computer-readable recording medium of simulated automotive communication

Publications (1)

Publication Number Publication Date
CN107037804A true CN107037804A (en) 2017-08-11

Family

ID=59536036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710270408.4A Pending CN107037804A (en) 2017-04-21 2017-04-21 Method, system and the computer-readable recording medium of simulated automotive communication

Country Status (1)

Country Link
CN (1) CN107037804A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111527389A (en) * 2020-01-19 2020-08-11 深圳市元征科技股份有限公司 A vehicle diagnosis method and a vehicle diagnosis device and storage medium
CN115052038A (en) * 2022-05-19 2022-09-13 深圳市易孔立出软件开发有限公司 Vehicle communication method, device, terminal equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006352201A (en) * 2005-06-13 2006-12-28 Fujitsu Ten Ltd Communication conversion control device
CN103455022A (en) * 2012-06-01 2013-12-18 北汽福田汽车股份有限公司 Method and device for diagnosing vehicle-mounted electronic control devices
CN104076814A (en) * 2014-07-09 2014-10-01 哈尔滨工业大学 Automobile ECU measurement system based on hardware-in-loop simulation
CN104216391A (en) * 2013-05-31 2014-12-17 广州汽车集团股份有限公司 Automobile decoder and automotive type recognition method thereof
CN105259894A (en) * 2015-10-09 2016-01-20 华晨汽车集团控股有限公司 Detection test system for motor vehicle diagnostic instrument
CN105425783A (en) * 2015-12-25 2016-03-23 北京新能源汽车股份有限公司 Real vehicle data processing method and system, controller and upper computer
CN106200618A (en) * 2016-08-03 2016-12-07 北京汽车股份有限公司 The method of testing of Vehicle Electronic Control modular diagnostic function and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006352201A (en) * 2005-06-13 2006-12-28 Fujitsu Ten Ltd Communication conversion control device
CN103455022A (en) * 2012-06-01 2013-12-18 北汽福田汽车股份有限公司 Method and device for diagnosing vehicle-mounted electronic control devices
CN104216391A (en) * 2013-05-31 2014-12-17 广州汽车集团股份有限公司 Automobile decoder and automotive type recognition method thereof
CN104076814A (en) * 2014-07-09 2014-10-01 哈尔滨工业大学 Automobile ECU measurement system based on hardware-in-loop simulation
CN105259894A (en) * 2015-10-09 2016-01-20 华晨汽车集团控股有限公司 Detection test system for motor vehicle diagnostic instrument
CN105425783A (en) * 2015-12-25 2016-03-23 北京新能源汽车股份有限公司 Real vehicle data processing method and system, controller and upper computer
CN106200618A (en) * 2016-08-03 2016-12-07 北京汽车股份有限公司 The method of testing of Vehicle Electronic Control modular diagnostic function and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111527389A (en) * 2020-01-19 2020-08-11 深圳市元征科技股份有限公司 A vehicle diagnosis method and a vehicle diagnosis device and storage medium
CN115052038A (en) * 2022-05-19 2022-09-13 深圳市易孔立出软件开发有限公司 Vehicle communication method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
US10181225B2 (en) Scan tool with mobile broadband capability and method of operation thereof
US8068951B2 (en) Vehicle diagnostic system
CN108415398B (en) Automatic test system and test method for automobile information safety
US20230398963A1 (en) Systems and methods of configuring vehicle service tools associated with display device based on operating condition of vehicle
CN109740222B (en) Testing device and system for automobile networking scene
EP2302597B1 (en) Programmable on-board vehicle diagnostic system
CN103370608B (en) Mobile communication interface, the system with mobile communication interface and for recognizing, diagnosing, the method for maintenance and repair vehicle
CN104568459A (en) OBD intelligent device, test method and system thereof, and ECU simulator
CN112558584B (en) Diagnostic data acquisition method and device and diagnostic equipment
CN109857085B (en) Method and system for generating driving data in simulation mode, simulation terminal and test system
CN107423492B (en) Forklift diagnosis test method and system based on template
CN112019512B (en) Automobile network safety test system
CN110545220A (en) Automobile diagnosis protocol detection method and related product
CN106993056A (en) Car data stream acquisition methods, system and computer-readable recording medium
CN107037804A (en) Method, system and the computer-readable recording medium of simulated automotive communication
CN108390863B (en) Data processing method and device
CN107065832A (en) Car data stream acquisition methods, system and computer-readable recording medium
CN110286666A (en) Vehicle travel state scaling method, device and computer readable storage medium
CN111626231B (en) Method, device, storage medium and device for positioning vibration source of steering wheel shake
CN109960238B (en) Automatic test system and method for vehicle diagnostic instrument
CN109213111B (en) Vehicle controller testing method and system
Perişoară et al. Vehicles diagnosis based on LabVIEW and CAN interfaces
CN106993288A (en) WiFi control method and device
EP3252719A1 (en) Method for diagnosing faults in a vehicle, and corresponding system
CN111698042A (en) Vehicle-mounted communication network simulation test method and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170811