Nothing Special   »   [go: up one dir, main page]

CN107065832B - automobile data stream acquisition method and system and computer readable storage medium - Google Patents

automobile data stream acquisition method and system and computer readable storage medium Download PDF

Info

Publication number
CN107065832B
CN107065832B CN201710345384.4A CN201710345384A CN107065832B CN 107065832 B CN107065832 B CN 107065832B CN 201710345384 A CN201710345384 A CN 201710345384A CN 107065832 B CN107065832 B CN 107065832B
Authority
CN
China
Prior art keywords
data stream
communication
data
instruction
automobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710345384.4A
Other languages
Chinese (zh)
Other versions
CN107065832A (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 CN201710345384.4A priority Critical patent/CN107065832B/en
Publication of CN107065832A publication Critical patent/CN107065832A/en
Application granted granted Critical
Publication of CN107065832B publication Critical patent/CN107065832B/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

  • Small-Scale Networks (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The invention discloses a method, a system and a computer readable storage medium for acquiring automobile data stream, wherein the method comprises the following steps: receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be checked; when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction; and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream. The scheme sends the viewing instructions of the multiple data streams to be viewed to the lower computer at the same time, so that the lower computer and the automobile OBD interface can interact to obtain the reply data corresponding to the viewing instructions, the reply data and the data streams to be viewed correspond one to one and are displayed, the display is sent and displayed in a circulating mode one by one when the multiple data streams are not viewed, and the data stream refreshing speed is increased.

Description

automobile data stream acquisition method and system and computer readable storage medium
Technical Field
the present invention relates to the field of automotive data stream technologies, and in particular, to an automotive data stream acquisition method, an automotive data stream acquisition system, and a computer-readable storage medium.
background
The automobile data flow refers to data parameters communicated with sensors and actuators by an Electronic Control Unit (ECU), the data flow memorized in the ECU truly reflects the working voltage and the state of each sensor and actuator, a basis is provided for automobile fault diagnosis, and the data flow can only be read by a special diagnostic instrument. The working state of each sensor of the automobile can be detected by reading the automobile data stream, the working state of the automobile can be detected, and the running data of the automobile can be set through the data stream. The automobile data flow can be used as the input and output data of the automobile ECU, so that maintenance personnel can know the working condition of the automobile at any time and diagnose the faults of the automobile in time.
At present, more and more sensors are arranged on an automobile, so that more and more data streams of the automobile are obtained, when the automobile is diagnosed, values of a plurality of data streams need to be monitored and checked at the same time sometimes, when the plurality of data streams are selected at the same time and are sent and displayed circularly one by one, refreshing time of the data streams can be obviously slowed down, and changes of the data streams are not timely enough.
Disclosure of Invention
The invention mainly aims to provide a method and a system for acquiring an automobile data stream and a computer readable storage medium, and aims to solve the problems that in the prior art, a plurality of data streams are circularly sent one by one, the data streams are not changed in time, and the refreshing time is slow.
in order to achieve the above object, the present invention provides an automobile data stream acquiring method, including the following steps:
receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
And after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream.
preferably, when receiving a viewing instruction of a data stream to be viewed, the viewing instruction is sent to the lower computer so that the viewing instruction is sent to the automobile OBD interface through the lower computer, and the step of the lower computer acquiring reply data output by the automobile OBD interface based on the viewing instruction includes:
when a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
And sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
preferably, the communication parameters include a sending ID, a receiving ID and an OBD interface pin number, and after receiving the reply data fed back by the lower computer, the step of one-to-one corresponding and displaying the reply data and the data stream to be viewed includes:
receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
and according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
In addition, in order to achieve the above object, the present invention further provides an automobile data stream acquiring method, including the following steps:
When receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters;
Receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
and acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
Preferably, the communication parameters include a sending ID and a receiving ID, the communication channel includes a communication sender and a communication receiver, and when receiving the communication parameters sent by the upper computer, the step of setting the parameters of the communication channel according to the communication parameters includes:
When receiving communication parameters sent by an upper computer, starting a communication transmitter and a communication receiver;
The ID of the communication transmitter is configured as a transmission ID, and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID, so that the communication receiver executes a reception instruction according to the reception ID while the communication transmitter executes the transmission instruction according to the transmission ID.
In addition, in order to achieve the above object, the present invention further provides an automobile data stream acquiring system, including: the system comprises a memory, a processor, a communication bus and an automobile data stream acquisition program stored on the memory;
The communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the automobile data flow acquisition program to realize the following steps:
Receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
When a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream.
Preferably, when receiving a viewing instruction of a data stream to be viewed, the viewing instruction is sent to the lower computer so that the viewing instruction is sent to the automobile OBD interface through the lower computer, and the step of the lower computer acquiring reply data output by the automobile OBD interface based on the viewing instruction includes:
When a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
And sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
preferably, the communication parameters include a sending ID, a receiving ID and an OBD interface pin number, and after receiving the reply data fed back by the lower computer, the step of one-to-one corresponding and displaying the reply data and the data stream to be viewed includes:
Receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
and according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
preferably, the processor is configured to execute the automobile data stream acquiring program to implement the following steps:
When receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters;
Receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
and acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
further, to achieve the above object, the present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
Receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
When a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream.
the automobile data stream obtaining method provided by the invention takes a data stream corresponding to a data stream selection instruction as a data stream to be checked, when a checking instruction of the data stream to be checked is received, the checking instruction is sent to a lower computer, the checking instruction is sent to an automobile OBD interface through the lower computer, and reply data output by the automobile OBD interface based on the checking instruction is obtained through the lower computer; after the lower computer obtains the reply data, the reply data is fed back; and after receiving the reply data fed back by the lower computer, displaying the reply data in one-to-one correspondence with the data streams to be checked. According to the scheme, the checking instructions of the data streams to be checked are sent to the lower computer at the same time, so that the lower computer and the automobile OBD interface can interact to acquire the reply data corresponding to the checking instructions, and therefore when the plurality of data streams need to be checked, the data streams are circularly sent and displayed one by one, the data stream changes more timely, and the data stream refreshing speed is accelerated.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of an automobile data stream acquisition method of the present invention;
FIG. 2 is a schematic flow chart diagram of a second embodiment of an automobile data stream acquisition method of the present invention;
FIG. 3 is a schematic diagram of an apparatus architecture of a hardware operating environment to which a method of an embodiment of the invention relates;
fig. 4 is a schematic diagram of a data transmission scenario of the automobile data stream acquisition method and system of the present invention.
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for acquiring an automobile data stream, referring to fig. 1, in a first embodiment, the method for acquiring the automobile data stream includes:
Step S10, receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
the automobile data flow refers to data parameters communicated with a sensor and an actuator by an Electronic Control Unit (ECU), and comprises information such as coolant temperature, engine speed, engine load, duration of fuel injection of each cycle of the engine and the like, and the data parameters can be read by a diagnostic instrument to provide basis for automobile fault diagnosis. When the automobile breaks down, the fault point of the automobile can be detected by reading the automobile data stream; when the fault does not occur, the fault can be prevented by reading the automobile data stream to detect the working state of the automobile. The automobile body is provided with an OBD interface, when the automobile data stream needs to be read, the OBD interface is connected with a diagnostic instrument through a diagnostic connector, and the diagnostic instrument is provided with a display device for displaying the automobile data stream; in addition, a mobile terminal such as a computer, a tablet and the like can be used for reading, the OBD interface is connected with the mobile terminal through the diagnosis connector, and the automobile data stream is displayed on a display interface of the mobile terminal. The wireless diagnosis connector can be used for reading, the wireless diagnosis connector is connected with the OBD interface and communicates with the mobile terminal in a wireless mode, and the automobile data stream read by the wireless diagnosis connector is displayed on the mobile terminal. When the data stream needs to be read, the data stream needing to be checked is selected on the display device, and the selection operation is a data stream selection instruction. And receiving the data stream selection instruction, and taking the data stream corresponding to the data stream selection instruction as the data stream to be viewed. In one embodiment, the automobile data stream is displayed on the display device in a list form, when three items of the coolant temperature, the engine speed and the engine load need to be checked, the three items are clicked at positions corresponding to the list to serve as the data stream needing to be checked, and when the data stream selection instruction is received, the data stream corresponding to the data stream selection instruction serves as the data stream to be checked, namely the coolant temperature, the engine speed and the engine load serve as the data stream to be checked.
step S20, when a viewing instruction of the data stream to be viewed is received, the viewing instruction is sent to the lower computer so that the viewing instruction is sent to the automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
According to the scheme, a device for sending instructions or displaying, such as a mobile terminal or a diagnostic instrument, is used as an upper computer, a diagnostic connector or a wireless diagnostic connector and the like are directly connected with an OBD interface on an automobile body, and a device capable of directly reading OBD interface data is used as a lower computer. After the data stream to be checked is determined according to the data stream selection instruction, a checking instruction of the data stream to be checked is sent, when the checking instruction of the data stream to be checked is received, the checking instruction is sent to a lower computer, the lower computer is directly connected with an automobile OBD interface, and the checking instruction is sent to an automobile bus through the automobile OBD interface. The automobile receives the checking instruction and simultaneously searches the reply data related to the checking instruction according to the bus protocol followed by the automobile, returns the reply data to the automobile OBD interface, and returns the reply data to the lower computer connected with the automobile OBD interface. Specifically, when the viewing instruction of the data stream to be viewed is the data stream for viewing the coolant temperature, the engine speed and the engine load, the lower computer sends the viewing instruction of the coolant temperature, the engine speed and the engine load to the automobile bus through the automobile OBD interface. Because of the timing of the transmissions, the vehicle bus may not receive at the same time that it needs to look up three data streams, perhaps receiving at a first time to look up coolant temperature, and receiving at a second time to look up engine speed. At the moment, the automobile bus responds to the temperature of the cooling liquid received at the first time, searches and sends the temperature without influencing the receiving of an engine revolution checking instruction at the second time; in addition, when an instruction for checking the engine speed is received at the second time, the coolant temperature is not found, so that the coolant temperature and the engine speed are inquired in parallel, when the response related to the engine speed is found, the response is returned to the automobile OBD interface, or the response related to the coolant temperature is found firstly, the response is returned to the automobile OBD interface, the returned data is not influenced by the sequence of the received data, and the sending and the receiving are operated respectively without mutual interaction and waiting.
and step S30, after receiving the reply data fed back by the lower computer, displaying the reply data in one-to-one correspondence with the data stream to be viewed.
furthermore, when the automobile OBD interface returns the reply data to the lower computer, the lower computer feeds back the reply data to the upper computer, the processing of the automobile bus to-be-checked data stream is not affected by the sequence, the lower computer has disorder, and after the processing is finished, the lower computer returns the data to the upper computer, so that the data fed back by the lower computer to the upper computer also has disorder. After receiving the reply data fed back by the lower computer, the reply data is in one-to-one correspondence with the data stream to be checked, the reply data is calculated after the one-to-one correspondence is completed, and the byte data is converted into numerical values to be displayed according to the numerical value form.
The automobile data stream acquiring method comprises the following steps: receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed; when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction; and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream. The scheme can simultaneously send the viewing instructions of the multiple data streams to be viewed to the lower computer so as to enable the lower computer to interact with an OBD interface of the automobile, obtain and feed back the reply data corresponding to the viewing instructions, and after the reply data fed back by the lower computer is received, the reply data and the data streams to be viewed are in one-to-one correspondence and displayed, so that when the multiple data streams need to be viewed, the data streams are circularly sent and displayed one by one, the data streams are changed more timely, and the data stream refreshing speed is accelerated.
further, in another embodiment of the method for acquiring an automobile data stream according to the present invention, when receiving a viewing instruction of a data stream to be viewed, the step S20 sends the viewing instruction to the lower computer, so that the viewing instruction is sent to the automobile OBD interface through the lower computer, and the step of the lower computer acquiring reply data output by the automobile OBD interface based on the viewing instruction includes:
step S21, when a viewing instruction of the data stream to be viewed is received, acquiring a communication parameter corresponding to the data stream to be viewed, and sending the communication parameter to a lower computer for the lower computer to set the parameter of a communication channel;
And step S22, sending the viewing instruction to a lower computer so that the lower computer can send the viewing instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction.
Further, the data stream to be viewed in this embodiment includes a communication parameter, which is used to set a parameter of the communication channel, so that the data stream to be viewed is acquired through the communication channel. When a viewing instruction of the data stream to be viewed is received, the communication parameters corresponding to the data stream to be viewed are obtained, and the communication parameters are sent to a lower computer. The communication channel of the embodiment comprises a communication transmitter and a communication receiver which are respectively used for transmitting and receiving data, when the lower computer receives the communication parameters, the communication channel is correspondingly set according to the communication parameters, the communication transmitter and the communication receiver are controlled to start, and the communication transmitter and the communication receiver can independently operate without mutual interaction and waiting. When a viewing instruction related to the data stream to be viewed is sent to the lower computer, the communication receiver receives the viewing instruction and sends the viewing instruction to the automobile bus through the automobile OBD interface; the automobile bus responds to the checking instruction according to the communication protocol to obtain the reply data, and the reply data is returned to the lower computer through the communication receiver.
Further, in another embodiment of the method for acquiring an automobile data stream according to the present invention, the communication parameters include a sending ID, a receiving ID, and an OBD interface pin number, and after receiving the reply data fed back by the lower computer, the step S30 of one-to-one corresponding and displaying the reply data and the data stream to be viewed includes:
step S31, receiving the reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
And step S32, according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in correspondence with the data stream to be checked according to a preset rule.
furthermore, since the communication channel includes a transmitting channel and a receiving channel, the communication parameters include a transmitting ID of the transmitting channel and a receiving ID of the receiving channel. Meanwhile, in order to avoid confusion of data streams, different data streams are provided with different IDs, so that the sending ID and the receiving ID of the same data stream are unique and are in one-to-one correspondence, and the sending and receiving of the corresponding data streams are realized by setting the sending ID and the receiving ID. In addition, the communication parameters also comprise a baud rate and an OBD interface pin number, wherein the baud rate is a measurement of the signal transmission rate and represents the rate during communication; the OBD interface is provided with 16 pins, and the pin definition does respectively: 1. factory definition, 2.SAE J1850 bus positive, 3. factory definition, 4. body ground, 5. signal ground, 6.ISO 15765-4 defined CAN high, 7.ISO 9141-2 and ISO14230-4 defined K line, 8. factory definition, 9. factory definition, 10.SAEJ1850 bus negative, 11. factory definition, 12. factory definition, 13. factory definition, 14.ISO 15765-4 defined CAN low, 15.ISO 9141-2 and ISO14230-4 defined L line, 16. permanent positive voltage. The data transmission of the OBD interface CAN adopt SAE J1850 bus and CAN line defined by ISO 15765-4, and the speed and mode of communication CAN be set by setting baud rate and pin number of the OBD interface.
because of the wide variety of components such as sensors, actuators, and control elements on a vehicle, in order to reduce the number of wires on the vehicle, a bus is generally used to communicate among the components using a bus communication protocol. The lower computer acquires reply data through the automobile bus, possibly mixed with other data which are not to be checked, and the reply data fed back by the lower computer is fed back and received according to the receiving ID and the OBD interface pins. Because the receiving ID and the sending ID have one-to-one correspondence, on one hand, the reply data is received through the receiving ID, and on the other hand, the reply data corresponding to the OBD interface pin is received according to a bus protocol or a CAN line protocol adopted by the data stream to be checked, so that the reply data is further filtered, and the accuracy of the reply data is ensured. Further, since the automobile bus does not have a sequence for processing the data stream to be viewed, as long as it is detected that the data transmitted by the ID is received, the data received first is not necessarily corresponding to the data transmitted first, so that after the reply data is received, the reply data and the data stream to be viewed are in one-to-one correspondence according to the one-to-one correspondence relationship between the received ID and the transmitted ID. In addition, since the reply data is data in the form of machine code characters output by the OBD interface, if the data in the form of characters is directly used as the content of the data stream, it is not intuitive enough, and it is difficult for a user to know the meaning of the data stream after knowing the characters. In this embodiment, the reply data is converted into a numerical value according to a preset rule, the preset rule may be a conversion rule between characters and decimal numerical values, and specifically may be determined according to a relationship between a character to be converted as the reply data and a numerical value as the data stream, so as to convert the reply data of the data stream selection instruction into a numerical value, and correspondingly display the numerical value and the data stream to be checked, so that a user can know the numerical value of the data stream and know the operating condition of the vehicle according to the numerical value of the data stream. In the specific embodiment, the data stream to be checked is the engine speed and the coolant temperature, the reply data obtained according to the checking instruction of the data stream to be checked are binary values of 10010110000 and 1010000 respectively, 10010110000 is converted into 1200,1010000 and converted into 80 according to the conversion relation between binary and decimal, so that the engine speed is 1200 revolutions, the coolant temperature is 80 ℃, the value and the corresponding data stream to be checked are correspondingly displayed, and a user can check the data stream to be checked to know the running condition of the automobile.
The invention provides a method for acquiring an automobile data stream, referring to fig. 2, in a first embodiment, the method for acquiring the automobile data stream includes:
step S40, when receiving the communication parameters sent by the upper computer, setting the parameters of the communication channel according to the communication parameters;
The automobile data stream acquisition method is mainly applied to the connection with an OBD interface on an automobile body, and can be used for directly reading the lower computer of the OBD interface data, and the lower computer is electrically connected or wirelessly connected with the upper computer used for sending instructions or displaying. When receiving the communication parameter that host computer sent, set up the parameter of communication channel according to communication parameter, wherein, communication parameter includes sending ID and receiving ID, and communication channel includes communication sender and communication receiver, and the method of setting up communication channel parameter includes:
step S41, when receiving the communication parameters sent by the upper computer, starting the communication sender and the communication receiver;
Step S42, configuring the ID of the communication transmitter as a transmission ID and the ID of the communication receiver as a reception ID corresponding to the transmission ID, so that the communication receiver performs a reception instruction according to the reception ID while the communication transmitter performs a transmission instruction according to the transmission ID.
Understandably, when receiving the communication parameters sent by the upper computer, the upper computer is indicated to have communication requirements, and at the moment, the communication channel is subjected to parameter setting to establish a communication connection channel. Because the lower computer and the vehicle OBD interface connection interaction comprise a sending part and a receiving part, the parameter setting of the communication channel comprises the parameter setting of the communication of the sending channel and the receiving channel. And when the communication parameters sent by the upper computer are received, the communication sender and the communication receiver are started to prepare for communication. In addition, since there are many data streams to be transmitted and received in an automobile, if the same transmission or reception ID is used, if a plurality of data streams need to be transmitted or received at the same time, the data streams to be received or transmitted are confused by the same data stream ID. Therefore, unique transmission and reception IDs are set for different data streams, and the ID of the communication transmitter is configured as a transmission ID and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID. Thereby causing the communication transmitter to transmit only the instructions in the configured transmission ID, masking the unconfigured transmission ID; the communication receiver receives only the instructions in the configured reception ID and masks the unconfigured reception ID. In a specific embodiment, when the transmission ID of the engine speed is fc00, the reception ID is fd00, the transmission ID of the coolant temperature is fm00, and the reception ID is fn00, the transmission IDs of the communication transmitters are configured as fc00 and fm00, the reception IDs of the corresponding communication receivers are fd00 and fn00, and when the lower computer and the OBD interface interact, only the commands carried in the IDs fc00 and fm00 are transmitted, only the commands carried in the IDs fd00 and fn00 are received, and the other IDs are not transmitted or received.
step S50, receiving a viewing instruction of the data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
And further, setting parameters of a communication channel, completing the configuration of sending IDs and receiving IDs of the communication sender and the communication receiver, and receiving a viewing instruction of the data stream to be viewed, which is sent by the upper computer and corresponds to the communication parameters, after the communication connection is established. The communication parameters comprise a sending ID and a receiving ID, and because the sending ID and the receiving ID of a specific data stream have uniqueness, the specific sending ID carries checking instruction information of the unique data stream to be checked corresponding to the specific sending ID, the checking instruction of the data stream to be checked corresponding to the sending ID is received, the checking instruction is sent to an automobile OBD interface through a communication sender and sent to an automobile bus through the automobile OBD interface, the checking instruction is responded according to a bus protocol, corresponding reply data is obtained, and the reply data is returned to a lower computer through a communication receiver according to the receiving ID.
and step S60, acquiring reply data output by the automobile OBD interface based on the viewing instruction, and feeding the reply data back to the upper computer.
Furthermore, the automobile OBD interface responds to the data stream to be checked according to the automobile bus protocol, outputs the reply data, acquires the reply data, and feeds the reply data back to the upper computer, so that the acquisition of the data stream is completed.
To assist understanding, a specific embodiment is described, with reference to fig. 4, when a viewing instruction of a data stream to be viewed is received, obtaining communication parameters such as a sending ID and a receiving ID corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer, so that the lower computer performs parameter setting on a communication channel and starts a communication sender and a communication receiver; then sending the data stream to be checked to a lower computer, sending the data stream to be checked to an automobile OBD interface through a communication sender, acquiring reply data corresponding to the data stream to be checked through the automobile OBD interface and automobile communication, and uploading the reply data to the upper computer through a communication receiver; the upper computer corresponds the reply data and the data streams to be checked one by one, the reply data is converted into numerical values in a character form through a preset rule, the data streams to be checked and the corresponding numerical values are displayed on a display device of the upper computer, and the data streams are acquired.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
the automobile data stream acquisition system comprises an upper computer and a lower computer which are interactive, wherein the upper computer can be a PC (personal computer), and can also be terminal equipment such as a smart phone, a tablet personal computer, a portable computer and the like, and the lower computer can be an OBD (on-board diagnostics) connector such as a wireless diagnostic connector or a wired diagnostic connector.
as shown in fig. 3, the automobile data stream acquiring system may include: the processor 1001, such as a CPU, a memory 1005, and a communication bus 1002, and the processor 1001 and the memory 1005 may exist in an upper computer, a lower computer, or both. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the automobile data stream acquiring system may further include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. The user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
those skilled in the art will appreciate that the automotive data stream acquisition system architecture shown in fig. 3 does not constitute a limitation of an automotive data stream acquisition system and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
as shown in fig. 3, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and an automobile data stream acquisition program. The operating system is a program that manages and controls the hardware and software resources of the automotive data stream acquisition system, supporting the operation of the automotive data stream acquisition program as well as other software and/or programs. The network communication module is used for realizing communication among the components in the memory 1005 and communication with other hardware and software in the automobile data stream acquisition system.
in the automobile data stream acquiring system shown in fig. 3, the automobile data stream acquiring program may be applied to an upper computer, and the processor 1001 is configured to execute the automobile data stream acquiring program stored in the memory 1005, and implement the following steps:
Receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
the automobile data flow refers to data parameters communicated with a sensor and an actuator by an Electronic Control Unit (ECU), and comprises information such as coolant temperature, engine speed, engine load, duration of fuel injection of each cycle of the engine and the like, and the data parameters can be read by a diagnostic instrument to provide basis for automobile fault diagnosis. When the automobile breaks down, the fault point of the automobile can be detected by reading the automobile data stream; when the fault does not occur, the fault can be prevented by reading the automobile data stream to detect the working state of the automobile. The automobile body is provided with an OBD interface, when the automobile data stream needs to be read, the OBD interface is connected with a diagnostic instrument through a diagnostic connector, and the diagnostic instrument is provided with a display device for displaying the automobile data stream; in addition, a mobile terminal such as a computer, a tablet and the like can be used for reading, the OBD interface is connected with the mobile terminal through the diagnosis connector, and the automobile data stream is displayed on a display interface of the mobile terminal. The wireless diagnosis connector can be used for reading, the wireless diagnosis connector is connected with the OBD interface and communicates with the mobile terminal in a wireless mode, and the automobile data stream read by the wireless diagnosis connector is displayed on the mobile terminal. When the data stream needs to be read, the data stream needing to be checked is selected on the display device, and the selection operation is a data stream selection instruction. And receiving the data stream selection instruction, and taking the data stream corresponding to the data stream selection instruction as the data stream to be viewed. In one embodiment, the automobile data stream is displayed on the display device in a list form, when three items of the coolant temperature, the engine speed and the engine load need to be checked, the three items are clicked at positions corresponding to the list to serve as the data stream needing to be checked, and when the data stream selection instruction is received, the data stream corresponding to the data stream selection instruction serves as the data stream to be checked, namely the coolant temperature, the engine speed and the engine load serve as the data stream to be checked.
When a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
According to the scheme, a device for sending instructions or displaying, such as a mobile terminal or a diagnostic instrument, is used as an upper computer, a diagnostic connector or a wireless diagnostic connector and the like are directly connected with an OBD interface on an automobile body, and a device capable of directly reading OBD interface data is used as a lower computer. After the data stream to be checked is determined according to the data stream selection instruction, a checking instruction of the data stream to be checked is sent, when the checking instruction of the data stream to be checked is received, the checking instruction is sent to a lower computer, the lower computer is directly connected with an automobile OBD interface, and the checking instruction is sent to an automobile bus through the automobile OBD interface. The automobile receives the checking instruction and simultaneously searches the reply data related to the checking instruction according to the bus protocol followed by the automobile, returns the reply data to the automobile OBD interface, and returns the reply data to the lower computer connected with the automobile OBD interface. Specifically, when the viewing instruction of the data stream to be viewed is the data stream for viewing the coolant temperature, the engine speed and the engine load, the lower computer sends the viewing instruction of the coolant temperature, the engine speed and the engine load to the automobile bus through the automobile OBD interface. Because of the timing of the transmissions, the vehicle bus may not receive at the same time that it needs to look up three data streams, perhaps receiving at a first time to look up coolant temperature, and receiving at a second time to look up engine speed. At the moment, the automobile bus responds to the temperature of the cooling liquid received at the first time, searches and sends the temperature without influencing the receiving of an engine revolution checking instruction at the second time; in addition, when an instruction for checking the engine speed is received at the second time, the coolant temperature is not found, so that the coolant temperature and the engine speed are inquired in parallel, when the response related to the engine speed is found, the response is returned to the automobile OBD interface, or the response related to the coolant temperature is found firstly, the response is returned to the automobile OBD interface, the returned data is not influenced by the sequence of the received data, and the sending and the receiving are operated respectively without mutual interaction and waiting.
And after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream.
Furthermore, when the automobile OBD interface returns the reply data to the lower computer, the lower computer feeds back the reply data to the upper computer, the processing of the automobile bus to-be-checked data stream is not affected by the sequence, the lower computer has disorder, and after the processing is finished, the lower computer returns the data to the upper computer, so that the data fed back by the lower computer to the upper computer also has disorder. After receiving the reply data fed back by the lower computer, the reply data is in one-to-one correspondence with the data stream to be checked, the reply data is calculated after the one-to-one correspondence is completed, and the byte data is converted into numerical values to be displayed according to the numerical value form.
the automobile data stream acquisition system of the embodiment: receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed; when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction; and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream. The scheme can simultaneously send the viewing instructions of the multiple data streams to be viewed to the lower computer so as to enable the lower computer to interact with an OBD interface of the automobile, obtain and feed back the reply data corresponding to the viewing instructions, and after the reply data fed back by the lower computer is received, the reply data and the data streams to be viewed are in one-to-one correspondence and displayed, so that when the multiple data streams need to be viewed, the data streams are circularly sent and displayed one by one, the data streams are changed more timely, and the data stream refreshing speed is accelerated.
further, when receiving the instruction of looking over of waiting to look over the dataflow, will look over the instruction and send to the lower computer to will look over the instruction and send to car OBD interface through the lower computer, the lower computer obtains that the step of the reply data of car OBD interface based on looking over instruction output includes:
When a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
and sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
further, the data stream to be viewed in this embodiment includes a communication parameter, which is used to set a parameter of the communication channel, so that the data stream to be viewed is acquired through the communication channel. When a viewing instruction of the data stream to be viewed is received, the communication parameters corresponding to the data stream to be viewed are obtained, and the communication parameters are sent to a lower computer. The communication channel of the embodiment comprises a communication transmitter and a communication receiver which are respectively used for transmitting and receiving data, when the lower computer receives the communication parameters, the communication channel is correspondingly set according to the communication parameters, the communication transmitter and the communication receiver are controlled to start, and the communication transmitter and the communication receiver can independently operate without mutual interaction and waiting. When a viewing instruction related to the data stream to be viewed is sent to the lower computer, the communication receiver receives the viewing instruction and sends the viewing instruction to the automobile bus through the automobile OBD interface; the automobile bus responds to the checking instruction according to the communication protocol to obtain the reply data, and the reply data is returned to the lower computer through the communication receiver.
Further, the communication parameters include a sending ID, a receiving ID and an OBD interface pin number, and after receiving the reply data fed back by the lower computer, the step of one-to-one corresponding and displaying the reply data and the data stream to be viewed includes:
receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
And according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
Furthermore, since the communication channel includes a transmitting channel and a receiving channel, the communication parameters include a transmitting ID of the transmitting channel and a receiving ID of the receiving channel. Meanwhile, in order to avoid confusion of data streams, different data streams are provided with different IDs, so that the sending ID and the receiving ID of the same data stream are unique and are in one-to-one correspondence, and the sending and receiving of the corresponding data streams are realized by setting the sending ID and the receiving ID. In addition, the communication parameters also comprise a baud rate and an OBD interface pin number, wherein the baud rate is a measurement of the signal transmission rate and represents the rate during communication; the OBD interface is provided with 16 pins, and the pin definition does respectively: 1. factory definition, 2.SAE J1850 bus positive, 3. factory definition, 4. body ground, 5. signal ground, 6.ISO 15765-4 defined CAN high, 7.ISO 9141-2 and ISO14230-4 defined K line, 8. factory definition, 9. factory definition, 10.SAEJ1850 bus negative, 11. factory definition, 12. factory definition, 13. factory definition, 14.ISO 15765-4 defined CAN low, 15.ISO 9141-2 and ISO14230-4 defined L line, 16. permanent positive voltage. The data transmission of the OBD interface CAN adopt SAE J1850 bus and CAN line defined by ISO 15765-4, and the speed and mode of communication CAN be set by setting baud rate and pin number of the OBD interface.
Because of the wide variety of components such as sensors, actuators, and control elements on a vehicle, in order to reduce the number of wires on the vehicle, a bus is generally used to communicate among the components using a bus communication protocol. The lower computer acquires reply data through the automobile bus, possibly mixed with other data which are not to be checked, and the reply data fed back by the lower computer is fed back and received according to the receiving ID and the OBD interface pins. Because the receiving ID and the sending ID have one-to-one correspondence, on one hand, the reply data is received through the receiving ID, and on the other hand, the reply data corresponding to the OBD interface pin is received according to a bus protocol or a CAN line protocol adopted by the data stream to be checked, so that the reply data is further filtered, and the accuracy of the reply data is ensured. Further, since the automobile bus does not have a sequence for processing the data stream to be viewed, as long as it is detected that the data transmitted by the ID is received, the data received first is not necessarily corresponding to the data transmitted first, so that after the reply data is received, the reply data and the data stream to be viewed are in one-to-one correspondence according to the one-to-one correspondence relationship between the received ID and the transmitted ID. In addition, since the reply data is data in the form of machine code characters output by the OBD interface, if the data in the form of characters is directly used as the content of the data stream, it is not intuitive enough, and it is difficult for a user to know the meaning of the data stream after knowing the characters. In this embodiment, the reply data is converted into a numerical value according to a preset rule, the preset rule may be a conversion rule between characters and decimal numerical values, and specifically may be determined according to a relationship between a character to be converted as the reply data and a numerical value as the data stream, so as to convert the reply data of the data stream selection instruction into a numerical value, and correspondingly display the numerical value and the data stream to be checked, so that a user can know the numerical value of the data stream and know the operating condition of the vehicle according to the numerical value of the data stream. In the specific embodiment, the data stream to be checked is the engine speed and the coolant temperature, the reply data obtained according to the checking instruction of the data stream to be checked are binary values of 10010110000 and 1010000 respectively, 10010110000 is converted into 1200,1010000 and converted into 80 according to the conversion relation between binary and decimal, so that the engine speed is 1200 revolutions, the coolant temperature is 80 ℃, the value and the corresponding data stream to be checked are correspondingly displayed, and a user can check the data stream to be checked to know the running condition of the automobile.
In the automobile data stream acquiring system shown in fig. 3, the automobile data stream acquiring program may be applied to a lower computer, and the processor 1001 is configured to execute the automobile data stream acquiring program stored in the memory 1005, and implement the following steps:
When receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters;
the automobile data stream acquisition method is mainly applied to the connection with an OBD interface on an automobile body, and can be used for directly reading the lower computer of the OBD interface data, and the lower computer is electrically connected or wirelessly connected with the upper computer used for sending instructions or displaying. When receiving the communication parameter that host computer sent, set up the parameter of communication channel according to communication parameter, wherein, communication parameter includes sending ID and receiving ID, and communication channel includes communication sender and communication receiver, and the method of setting up communication channel parameter includes:
When receiving communication parameters sent by an upper computer, starting a communication transmitter and a communication receiver;
the ID of the communication transmitter is configured as a transmission ID, and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID, so that the communication receiver executes a reception instruction according to the reception ID while the communication transmitter executes the transmission instruction according to the transmission ID.
understandably, when receiving the communication parameters sent by the upper computer, the upper computer is indicated to have communication requirements, and at the moment, the communication channel is subjected to parameter setting to establish a communication connection channel. Because the lower computer and the vehicle OBD interface connection interaction comprise a sending part and a receiving part, the parameter setting of the communication channel comprises the parameter setting of the communication of the sending channel and the receiving channel. And when the communication parameters sent by the upper computer are received, the communication sender and the communication receiver are started to prepare for communication. In addition, since there are many data streams to be transmitted and received in an automobile, if the same transmission or reception ID is used, if a plurality of data streams need to be transmitted or received at the same time, the data streams to be received or transmitted are confused by the same data stream ID. Therefore, unique transmission and reception IDs are set for different data streams, and the ID of the communication transmitter is configured as a transmission ID and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID. Thereby causing the communication transmitter to transmit only the instructions in the configured transmission ID, masking the unconfigured transmission ID; the communication receiver receives only the instructions in the configured reception ID and masks the unconfigured reception ID. In a specific embodiment, when the transmission ID of the engine speed is fc00, the reception ID is fd00, the transmission ID of the coolant temperature is fm00, and the reception ID is fn00, the transmission IDs of the communication transmitters are configured as fc00 and fm00, the reception IDs of the corresponding communication receivers are fd00 and fn00, and when the lower computer and the OBD interface interact, only the commands carried in the IDs fc00 and fm00 are transmitted, only the commands carried in the IDs fd00 and fn00 are received, and the other IDs are not transmitted or received.
receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
And further, setting parameters of a communication channel, completing the configuration of sending IDs and receiving IDs of the communication sender and the communication receiver, and receiving a viewing instruction of the data stream to be viewed, which is sent by the upper computer and corresponds to the communication parameters, after the communication connection is established. The communication parameters comprise a sending ID and a receiving ID, and because the sending ID and the receiving ID of a specific data stream have uniqueness, the specific sending ID carries checking instruction information of the unique data stream to be checked corresponding to the specific sending ID, the checking instruction of the data stream to be checked corresponding to the sending ID is received, the checking instruction is sent to an automobile OBD interface through a communication sender and sent to an automobile bus through the automobile OBD interface, the checking instruction is responded according to a bus protocol, corresponding reply data is obtained, and the reply data is returned to a lower computer through a communication receiver according to the receiving ID.
and acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
furthermore, the automobile OBD interface responds to the data stream to be checked according to the automobile bus protocol, outputs the reply data, acquires the reply data, and feeds the reply data back to the upper computer, so that the acquisition of the data stream is completed.
to assist understanding, a specific embodiment is described, with reference to fig. 4, when a viewing instruction of a data stream to be viewed is received, obtaining communication parameters such as a sending ID and a receiving ID corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer, so that the lower computer performs parameter setting on a communication channel and starts a communication sender and a communication receiver; then sending the data stream to be checked to a lower computer, sending the data stream to be checked to an automobile OBD interface through a communication sender, acquiring reply data corresponding to the data stream to be checked through the automobile OBD interface and automobile communication, and uploading the reply data to the upper computer through a communication receiver; the upper computer corresponds the reply data and the data streams to be checked one by one, the reply data is converted into numerical values in a character form through a preset rule, the data streams to be checked and the corresponding numerical values are displayed on a display device of the upper computer, and the data streams are acquired.
The present invention provides a computer readable storage medium storing one or more programs, the one or more programs further executable by one or more processors for:
Receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
When a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
and after receiving the reply data fed back by the lower computer, corresponding the reply data to the data stream to be checked one by one and displaying the data stream.
Further, when receiving a viewing instruction of a data stream to be viewed, the viewing instruction is sent to the lower computer so that the viewing instruction is sent to the automobile OBD interface through the lower computer, and the step of the lower computer acquiring reply data output by the automobile OBD interface based on the viewing instruction comprises the following steps:
When a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
and sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
further, the communication parameters include a sending ID, a receiving ID and an OBD interface pin number, and after receiving the reply data fed back by the lower computer, the step of one-to-one corresponding and displaying the reply data and the data stream to be viewed includes:
receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
And according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
the one or more programs are also executable by the one or more processors for:
when receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters;
Receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
And acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
further, the communication parameters include sending ID and receiving ID, the communication channel includes a communication sender and a communication receiver, and when receiving the communication parameters sent by the upper computer, the step of setting the parameters of the communication channel according to the communication parameters includes:
When receiving communication parameters sent by an upper computer, starting a communication transmitter and a communication receiver;
The ID of the communication transmitter is configured as a transmission ID, and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID, so that the communication receiver executes a reception instruction according to the reception ID while the communication transmitter executes the transmission instruction according to the transmission ID.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of the above-mentioned embodiments of the method and system for acquiring an automobile data stream, and is not described herein again.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
the above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An automobile data stream acquisition method is characterized by comprising the following steps:
Receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
after receiving reply data fed back by the lower computer, the reply data and the data stream to be checked are in one-to-one correspondence and displayed;
wherein, when receiving the instruction of looking over of waiting to look over the dataflow, will look over the instruction and send the next machine to will look over the instruction and send car OBD interface through the next machine, the next machine acquires that the step of car OBD interface is based on the reply data of looking over instruction output includes:
When a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
And sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
2. The automobile data stream acquiring method according to claim 1, wherein the communication parameters include a sending ID, a receiving ID, and an OBD interface pin number, and the step of one-to-one corresponding and displaying the reply data with the data stream to be viewed after receiving the reply data fed back by the lower computer comprises:
Receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
And according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
3. an automobile data stream acquisition method is characterized by comprising the following steps:
When receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters, configuring the ID of a communication sender corresponding to the communication channel as a sending ID, and configuring the ID of a communication receiver corresponding to the communication channel as a receiving ID corresponding to the sending ID;
Receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
And acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
4. The automobile data stream acquiring method according to claim 3, wherein the communication parameters include a sending ID and a receiving ID, the communication channel includes a communication sender and a communication receiver, and the step of setting the parameters of the communication channel according to the communication parameters when receiving the communication parameters sent by the upper computer includes:
When receiving communication parameters sent by an upper computer, starting a communication transmitter and a communication receiver;
the ID of the communication transmitter is configured as a transmission ID, and the ID of the communication receiver is configured as a reception ID corresponding to the transmission ID, so that the communication receiver executes a reception instruction according to the reception ID while the communication transmitter executes the transmission instruction according to the transmission ID.
5. an automobile data stream acquisition system, characterized in that the automobile data stream acquisition system comprises: the system comprises a memory, a processor, a communication bus and an automobile data stream acquisition program stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the automobile data flow acquisition program to realize the following steps:
receiving a data stream selection instruction, and taking a data stream corresponding to the data stream selection instruction as a data stream to be viewed;
when a viewing instruction of a data stream to be viewed is received, the viewing instruction is sent to a lower computer so as to be sent to an automobile OBD interface through the lower computer, and the lower computer acquires reply data output by the automobile OBD interface based on the viewing instruction;
After receiving reply data fed back by the lower computer, the reply data and the data stream to be checked are in one-to-one correspondence and displayed;
wherein, when receiving the instruction of looking over of waiting to look over the dataflow, will look over the instruction and send the next machine to will look over the instruction and send car OBD interface through the next machine, the next machine acquires that the step of car OBD interface is based on the reply data of looking over instruction output includes:
when a viewing instruction of the data stream to be viewed is received, acquiring communication parameters corresponding to the data stream to be viewed, and sending the communication parameters to a lower computer for the lower computer to set parameters of a communication channel;
And sending the checking instruction to a lower computer so that the lower computer can send the checking instruction to an automobile OBD interface through a communication channel, and the lower computer acquires reply data output by the automobile OBD interface based on the checking instruction.
6. the automobile data stream acquiring system according to claim 5, wherein the communication parameters include a sending ID, a receiving ID, and an OBD interface pin number, and the step of one-to-one corresponding and displaying the reply data with the data stream to be viewed after receiving the reply data fed back by the lower computer comprises:
receiving reply data fed back by the lower computer according to the receiving ID and the OBD interface pin number;
and according to the sending ID corresponding to the receiving ID, the reply data and the data stream to be checked are in one-to-one correspondence, and the reply data is converted into a numerical value and is displayed in a corresponding manner according to a preset rule.
7. The automotive data stream acquisition system of claim 5, wherein the processor is configured to execute the automotive data stream acquisition program to perform the steps of:
when receiving communication parameters sent by an upper computer, setting parameters of a communication channel according to the communication parameters;
Receiving a viewing instruction of a data stream to be viewed corresponding to the communication parameters, and sending the viewing instruction to an automobile OBD interface through a communication channel;
and acquiring reply data output by the automobile OBD interface based on the checking instruction, and feeding the reply data back to the upper computer.
8. a computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a car data stream acquisition program, which when executed by a processor implements the steps of the car data stream acquisition method according to any one of claims 1-2 or claims 3-4.
CN201710345384.4A 2017-05-12 2017-05-12 automobile data stream acquisition method and system and computer readable storage medium Active CN107065832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710345384.4A CN107065832B (en) 2017-05-12 2017-05-12 automobile data stream acquisition method and system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710345384.4A CN107065832B (en) 2017-05-12 2017-05-12 automobile data stream acquisition method and system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107065832A CN107065832A (en) 2017-08-18
CN107065832B true CN107065832B (en) 2019-12-10

Family

ID=59610270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710345384.4A Active CN107065832B (en) 2017-05-12 2017-05-12 automobile data stream acquisition method and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107065832B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864080A (en) * 2017-10-20 2018-03-30 深圳市元征软件开发有限公司 Auto communication method, apparatus and computer-readable recording medium
CN108196967B (en) * 2017-12-12 2023-04-18 深圳市道通科技股份有限公司 Communication method and device based on vehicle bus and computer equipment
CN109656172B (en) * 2018-12-24 2021-06-25 深圳市道通科技股份有限公司 Method and device for obtaining baud rate
CN115755857B (en) * 2022-11-28 2024-04-19 深圳市博诺技术有限公司 Data stream display system of automobile diagnosis equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009985A (en) * 2006-06-26 2008-01-17 Robert Bosch Gmbh Method and device for detecting and/or transmitting service data and diagnostic data of vehicle between vehicle and factory management system
JP4706778B2 (en) * 2009-05-20 2011-06-22 株式会社デンソー Electronic control device and vehicle control system
CN103676936A (en) * 2013-12-09 2014-03-26 北京天元晟业科技有限公司 Vehicle diagnosis test system and information transmitting method of vehicle diagnosis test system
CN103731330A (en) * 2013-12-27 2014-04-16 普华基础软件股份有限公司 Calibration data communication device and communication method
CN104731082A (en) * 2015-01-27 2015-06-24 深圳市元征科技股份有限公司 Interface conversion device and on-board diagnosis system
CN105425783A (en) * 2015-12-25 2016-03-23 北京新能源汽车股份有限公司 Real vehicle data processing method and system, controller and upper computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009985A (en) * 2006-06-26 2008-01-17 Robert Bosch Gmbh Method and device for detecting and/or transmitting service data and diagnostic data of vehicle between vehicle and factory management system
JP4706778B2 (en) * 2009-05-20 2011-06-22 株式会社デンソー Electronic control device and vehicle control system
CN103676936A (en) * 2013-12-09 2014-03-26 北京天元晟业科技有限公司 Vehicle diagnosis test system and information transmitting method of vehicle diagnosis test system
CN103731330A (en) * 2013-12-27 2014-04-16 普华基础软件股份有限公司 Calibration data communication device and communication method
CN104731082A (en) * 2015-01-27 2015-06-24 深圳市元征科技股份有限公司 Interface conversion device and on-board diagnosis system
CN105425783A (en) * 2015-12-25 2016-03-23 北京新能源汽车股份有限公司 Real vehicle data processing method and system, controller and upper computer

Also Published As

Publication number Publication date
CN107065832A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN107065832B (en) automobile data stream acquisition method and system and computer readable storage medium
CN108227675B (en) Vehicle diagnosis method, device, terminal and computer-readable storage medium
KR101911336B1 (en) Real-time vehicle operation monitoring method based on mobile terminal
US9911251B2 (en) Vehicle diagnostic system and method
CN202735835U (en) Remote vehicle diagnosis system and remote diagnosis system
JP7225596B2 (en) Program update system, program update server and vehicle
US20150228127A1 (en) OBD Interface Device Having Processor Running Diagnostics Web Server to Provide Platform Independent Diagnostics
US20150051787A1 (en) Providing communications between a vehicle control device and a user device via a head unit
US9311758B2 (en) Vehicle control device and method
JP2014182715A5 (en)
CN108762240B (en) Automobile diagnosis method and device
US9633484B2 (en) Vehicle device installation system
CN104518910B (en) Apparatus for configuring Ethernet device and method for configuring Ethernet device
CN111506047B (en) Vehicle diagnosis method, device and storage medium
CN110031232A (en) A kind of vehicle diagnosing system and method
WO2018136333A1 (en) Systems and methods of configuring vehicle service tools associated with display device based on operating condition of vehicle
US20150052226A1 (en) Communication profile selection for vehicle telematics device
CN101977275A (en) Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof
CN112740627A (en) Vehicle remote diagnosis method and system
KR101364121B1 (en) Vehicle data processing device and vehicle data processing method thereof
CN111131358B (en) Information acquisition method, device and system, readable storage medium and electronic equipment
US9843493B2 (en) Test-software-supported measuring system and measuring method
CN115512459B (en) Data acquisition method, device, equipment and readable storage medium
CN113960991A (en) Vehicle fault diagnosis system, method and device, system-on-chip and vehicle
CN106896802B (en) Automobile model increasing method and 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