CN110233768B - UDS-based CAN bus test system and CAN bus test method - Google Patents

UDS-based CAN bus test system and CAN bus test method Download PDF

Info

Publication number
CN110233768B
CN110233768B CN201810179782.8A CN201810179782A CN110233768B CN 110233768 B CN110233768 B CN 110233768B CN 201810179782 A CN201810179782 A CN 201810179782A CN 110233768 B CN110233768 B CN 110233768B
Authority
CN
China
Prior art keywords
ecu
bus
tested
test
pcan
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
CN201810179782.8A
Other languages
Chinese (zh)
Other versions
CN110233768A (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.)
Pateo Connect and Technology Shanghai Corp
Original Assignee
Pateo Connect and Technology Shanghai Corp
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 Pateo Connect and Technology Shanghai Corp filed Critical Pateo Connect and Technology Shanghai Corp
Priority to CN201810179782.8A priority Critical patent/CN110233768B/en
Publication of CN110233768A publication Critical patent/CN110233768A/en
Application granted granted Critical
Publication of CN110233768B publication Critical patent/CN110233768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The application relates to the technical field of testing, and provides a CAN bus testing system and a CAN bus testing method based on a UDS (Universal Serial bus). an ECU to be tested is connected to PCAN hardware through a CAN bus, the ECU to be tested is connected to an external testing device through the PCAN hardware in a USB (Universal Serial bus) mode, the ECU to be tested is started, and the working performance of the ECU to be tested is tested through the external testing device. Through the mode, the German Vector software collocation canoe hardware testing system with high cost can be avoided, the testing cost is effectively reduced, the testing effect is accurate, the success rate is high, the testing system is simple to erect and convenient to operate and can be understood easily, the same testing function as the German Vector software collocation canoe hardware testing system can be realized, and the working performance of a product is guaranteed.

Description

UDS-based CAN bus test system and CAN bus test method
Technical Field
The application relates to the technical field of testing, in particular to a CAN bus testing system based on a UDS (Universal data System) and a CAN bus testing method adopting the CAN bus testing system based on the UDS.
Background
Based on factors of environmental, energy and technical development, new energy automobiles are the current and future trends in automobile development, wherein pure electric vehicles are mainstream products. In order to meet the requirements of the times and customers, Electronic Control Units (ECUs) on new energy vehicles are increasing, and during the process of producing or using the vehicles, a plurality of ECUs in the vehicles are generally required to be tested.
In an electric vehicle, an ECU is an important core part, and the safe operation of the ECU is the guarantee of the normal running of the electric vehicle. At present, the mode of testing the ECU adopts a mode of sample car testing, which specifically comprises the following steps: and loading the tested ECU onto a sample car, and simultaneously carrying out sample car debugging by sample car debugging personnel and system testing personnel in the field so as to verify whether the ECU is correct. The ECU is tested by adopting a sample car test mode, the assistance of testers is needed, the time and the energy of the testers are wasted, and the test method is unsafe. If a problem occurs in the field sample vehicle debugging process, the control strategy program set in the ECU cannot be changed or/and refreshed in time.
In addition, the procedure of the related UDS (universal diagnostic Services) based CAN bus controller test method is as follows: the ECU diagnosis module is developed, a security access service and a related security authentication algorithm thereof need to be realized, in order to verify the development correctness, the current traditional test method is to test by matching German Vector software with the Canoe hardware (Vector hardware), wherein the Vector is a bus development tool, a network node test verification tool and an embedded software component supplier which are leading in the world, a series of powerful software and hardware tools and source codes are provided for the fields of design, modeling, simulation, analysis and test of an automobile bus network, development, test, calibration, diagnosis and the like of the ECU, and the price of the Vector software and the Canoe hardware is high and is generally tens of thousands of yuan, when a plurality of tools are needed for a plurality of projects, the cost is increased, and if the number of the tools is not enough, the working efficiency is influenced.
In view of various defects in the prior art, the inventor of the present application has made extensive studies to provide a UDS-based CAN bus test system and a CAN bus test method.
Disclosure of Invention
The purpose of the application is to provide a CAN bus test system and a CAN bus test method based on UDS, which CAN avoid using a German Vector software collocation canoe hardware test system with high cost, effectively reduce the test cost, have accurate test effect and high success rate, are simple to erect and convenient to operate, are understandable, and simultaneously ensure that the same test function as the German Vector software collocation canoe hardware test system CAN be realized, and the working performance of the product is ensured.
In order to solve the technical problem, the present application provides a UDS-based CAN bus test method, wherein the CAN bus test method includes:
connecting an ECU to be tested to PCAN hardware through a CAN bus;
connecting the ECU to be tested to an external testing device by utilizing PCAN hardware in a USB mode;
and starting the ECU to be tested, and testing the working performance of the ECU to be tested through the external testing device.
And connecting the ECU to be tested to an external testing device by using PCAN hardware in a USB mode, wherein the external testing device is provided with PCAN Explorer and serial testing software thereof.
The CAN bus test method further comprises the following steps:
and carrying out secondary development on the PCAN Explorer and the serial test software thereof installed in the external test device, and programming a test program by adopting VB script language.
The step of programming the test program by adopting VB script language specifically comprises the following steps:
and compiling a seed request, a security authentication algorithm of a seed generation key and a sending key by adopting VB script language.
The step of connecting the ECU to be tested to the PCAN hardware through the CAN bus specifically comprises the following steps:
and respectively connecting the ECU to be tested to CAN _ H and CAN _ L of the PCAN hardware through CAN _ H and CAN _ L.
Wherein, the step of testing the working performance of the ECU to be tested through the external testing device specifically comprises:
and testing the safe access service of the ECU to be tested through the external testing device.
In order to solve the above technical problem, the present application further provides a UDS-based CAN bus test system, wherein the CAN bus test system includes:
the PCAN hardware is used for being connected to the ECU to be tested through a CAN bus;
and the external testing device is connected to the PCAN hardware in a USB mode and further connected to the ECU to be tested through the PCAN hardware so as to test the working performance of the ECU to be tested through the external testing device when the ECU to be tested is started.
Wherein, PCAN Explorer and serial test software thereof are installed in the external test device.
The PCAN Explorer and the series of test software thereof installed in the external test device are developed for the second time, and a test program is compiled by adopting VB script language, wherein a seed request, a security authentication algorithm of a seed generation key and a transmission key are compiled by adopting the VB script language.
Wherein CAN _ H and CAN _ L of the PCAN hardware are respectively connected to CAN _ H and CAN _ L of the ECU to be tested.
The external testing device is used for testing the safe access service of the ECU to be tested.
According to the CAN bus test system and the CAN bus test method based on the UDS, the ECU to be tested is connected to the PCAN hardware through the CAN bus, the ECU to be tested is connected to an external test device through the PCAN hardware in a USB mode, the ECU to be tested is started, and the working performance of the ECU to be tested is tested through the external test device. Through the mode, the German Vector software collocation canoe hardware test system with high cost can be avoided, the cost of tens of thousands of yuan of the existing test scheme can be replaced by low cost of about hundreds of yuan, the test cost is effectively reduced, the test effect is accurate, the success rate is high, the test system is simple to erect and convenient to operate and easy to understand, the same test function as the German Vector software collocation canoe hardware test system can be realized, and the working performance of the product is ensured.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood, the present application may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present application more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic flow chart of an embodiment of a UDS-based CAN bus testing method according to the present application.
Fig. 2 is a schematic structural diagram of an embodiment of the UDS-based CAN bus test system according to the present application.
FIG. 3 is a diagram showing the test effect of the UDS-based CAN bus test method according to the present application.
Detailed Description
To further illustrate the technical means and effects of the present application for achieving the intended application purpose, the following detailed description is provided with reference to the accompanying drawings and preferred embodiments for specific embodiments, methods, steps, features and effects of the UDS-based CAN bus test system and the CAN bus test method according to the present application.
The foregoing and other technical matters, features and effects of the present application will be apparent from the following detailed description of preferred embodiments, which is to be read in connection with the accompanying drawings. While the present application has been described in terms of specific embodiments and examples for achieving the desired objects and objectives, it is to be understood that the invention is not limited to the disclosed embodiments, but is to be accorded the widest scope consistent with the principles and novel features as defined by the appended claims.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an embodiment of a UDS-based CAN bus testing method according to the present application.
In this embodiment, the CAN bus test method includes, but is not limited to, the following steps.
Step S101, connecting an ECU to be tested to PCAN hardware through a CAN bus; it should be noted that, in this embodiment, the PCAN hardware, i.e., PCAN-USB, or CAN card, may implement a CAN-to-USB interface, may transmit a message on the CAN bus network to the PC personal computer through the USB interface, and may generate the CAN message through the related software, so as to implement the related functions such as testing.
Step S102, connecting the ECU to be tested to an external testing device in a USB mode by utilizing PCAN hardware; it should be noted that, in this embodiment, the USB may also adopt a USB hub mode to realize a simultaneous online multi-test function, and the external test device may be a PC, which may be connected to a near-end line, or may further exist in a mode of being connected to a local area network or a wide area network through the USB to a cloud server, which is not limited in this application.
And step S103, starting the ECU to be tested, and testing the working performance of the ECU to be tested through the external testing device. It should be noted that, in this embodiment, the ECU to be tested may be directly powered on and started, or may be controlled by the vehicle main controller to be started or shut down in a unified manner, so as to perform the operation test according to different control strategies.
It is worth mentioning that the present application may be applied to ECU testing, such as an anti-lock brake system ECU, a four-wheel drive system ECU, an electronically controlled automatic transmission ECU, an active suspension system ECU, an airbag system ECU, a multi-directional adjustable electronically controlled seat ECU, and the like, and in other embodiments, may be specifically applied to testing an engine ECU, a motor MCU, a battery BMS, an automatic transmission TCU, a hybrid controller HCU, and the like.
In this embodiment, the step of connecting the ECU to be tested to the PCAN hardware through the CAN bus may specifically include: and respectively connecting the ECU to be tested to CAN _ H and CAN _ L of the PCAN hardware through CAN _ H and CAN _ L.
It should be noted that, the step of connecting the ECU to be tested to an external test device through USB by using PCAN hardware is described, and the external test device is installed with PCAN Explorer (a general-purpose tool for monitoring CAN network data developed by PEAK company in germany) and its series of test software.
Correspondingly, the CAN bus test method CAN further comprise the following steps: and carrying out secondary development on the PCAN Explorer and the serial test software thereof installed in the external test device, and programming a test program by adopting VB script language.
For example, the step of programming the test program by using the VB script language may specifically include: and compiling a seed request, a security authentication algorithm of a seed generation key and a sending key by adopting VB script language.
Correspondingly, the step of testing the working performance of the ECU to be tested by the external testing device may specifically include: and testing the safe access service of the ECU to be tested through the external testing device. Please refer to the test effect diagram shown in fig. 3.
Besides the test for the safety access service, the test system is built by adopting the CAN bus, the PCAN hardware and the PCAN Explorer, and CAN meet the requirements of automobile indoor and outdoor environment tests, plateau polar region tests, endurance tests and road tests in various harsh environments. Various parameters on the automobile CAN be collected, and various signals such as vehicle speed, rotating speed, temperature, pressure, flow, wind speed, humidity, temperature, voltage, current, pulse, acceleration, angular speed, angle, strain and CAN bus are covered. The external testing device CAN perform real-time monitoring, visual display, data recording and analysis and the like on signals on the CAN bus through PCAN-Exploore software. The whole test system has compact structure, modularization, high protection level and stable performance.
In addition, the PCAN Explorer of the present application can adopt the PCAN-Explore5 (PE 5 for short) series. All files and elements CAN be stored and managed in the engineering project, and engineering project components such as CAN connection, a message transceiving window, a chart display plug-in and a dashboard display plug-in CAN also be clearly displayed in the engineering project; the integrated data recorder CAN store messages and data information on the CAN bus. The testing method CAN also comprise the operation processes of configuring the baud rate and the object type of the CAN bus, configuring various parameters of test data acquisition and the like.
The method is simple to operate, stable and reliable, and can analyze, calculate and research the automobile system according to the tested data and parameters, thereby greatly improving the development and development speed of the automobile system and shortening the development period.
The application PE5 CAN customize a symbol file (a file containing related binary file debugging information), CAN analyze a CAN message into actual physical quantity, CAN also import a dbc file (database file), CAN embed a VB script (scripting language produced by Microsoft corporation), and CAN create a script to automatically schedule complex tasks. In addition, PE5 may integrate data recording functions so that data transmitted over the CAN bus may be recorded, analyzed, and saved by PE5, and may be remotely controlled by scripting.
This application is through adopting PCAN Explorer's mode, and the purchase is convenient and with low costs, CAN connect a plurality of CAN passageways simultaneously moreover, and various automation task CAN be accomplished through the script to configurable data logging function, integrated standard macro and VB script that CAN also integrate, CAN be in the control CAN network in addition, backstage operation script, CAN also count message error and bus load etc. in the network simultaneously.
According to the method, the ECU to be tested is connected to the PCAN hardware through the CAN bus, the ECU to be tested is connected to an external testing device through the PCAN hardware in a USB mode, the ECU to be tested is started, and the working performance of the ECU to be tested is tested through the external testing device. Through the mode, the German Vector software collocation canoe hardware test system with high cost can be avoided, the cost of tens of thousands of yuan of the existing test scheme can be replaced by low cost of about hundreds of yuan, the test cost is effectively reduced, the test effect is accurate, the success rate is high, the test system is simple to erect and convenient to operate and easy to understand, the same test function as the German Vector software collocation canoe hardware test system can be realized, and the working performance of the product is ensured.
Referring to fig. 2 in conjunction with the above embodiments, fig. 2 is a schematic structural diagram of an embodiment of a UDS-based CAN bus test system according to the present application.
In the present embodiment, the CAN bus test system includes, but is not limited to, PCAN hardware 21 and an external test device 22.
The PCAN hardware 21 is used for being connected to an ECU to be tested through a CAN bus;
the external testing device 22 is configured to be connected to the PCAN hardware 21 in a USB manner, and further connected to the ECU to be tested through the PCAN hardware 21, so that when the ECU to be tested is started, the external testing device 22 tests the working performance of the ECU to be tested.
It should be noted that, in the present embodiment, the PCAN hardware 21, i.e., PCAN-USB or CAN card, may implement a CAN-to-USB interface, may transmit a message on the CAN bus network to the PC personal computer through the USB interface, and may generate the CAN message through the related software, so as to implement the related functions such as testing.
In this embodiment, the USB may also adopt a USB hub mode to realize a simultaneous online multi-test function, and the external test device 22 may be a PC, which may be connected to a near-end line, or may further exist in a mode of being connected to a local area network or a wide area network through the USB to a cloud server, which is not limited in this application.
In the embodiment, the ECU to be tested can be directly powered on for starting, or can be uniformly controlled by the vehicle main controller for starting or closing, so as to perform operation test according to different control strategies.
It should be noted that CAN _ H and CAN _ L of the PCAN hardware 21 may be connected to CAN _ H and CAN _ L of the ECU to be tested, respectively.
Further, the external test device 22 is installed with PCAN Explorer and its series test software.
It should be noted that the PCAN Explorer and its series of test software installed in the external test device 22 are developed for the second time, and a test program is compiled in the VB script language, wherein a seed request, a security authentication algorithm for generating a key by the seed, and a transmission key are compiled in the VB script language.
In the present embodiment, the external test device 22 is used for testing the secure access service of the ECU to be tested.
Besides the test for the safety access service, the test system is built by adopting the CAN bus, the PCAN hardware 21 and the PCAN Explorer, and CAN meet the requirements of automobile indoor and outdoor environment tests, plateau polar region tests, durability tests and road tests in various harsh environments. Various parameters on the automobile CAN be collected, and various signals such as vehicle speed, rotating speed, temperature, pressure, flow, wind speed, humidity, temperature, voltage, current, pulse, acceleration, angular speed, angle, strain and CAN bus are covered. The external testing device 22 CAN perform real-time monitoring, visual display, data recording and analysis and the like on signals on the CAN bus through PCAN-Exploore software. The whole test system has compact structure, modularization, high protection level and stable performance.
In addition, the PCAN Explorer of the present application may employ the PE5 series. All files and elements CAN be stored and managed in the engineering project, and engineering project components such as CAN connection, a message transceiving window, a chart display plug-in and a dashboard display plug-in CAN also be clearly displayed in the engineering project; the integrated data recorder CAN store messages and data information on the CAN bus. The testing method CAN also comprise the operation processes of configuring the baud rate and the object type of the CAN bus, configuring various parameters of test data acquisition and the like.
The method is simple to operate, stable and reliable, and can analyze, calculate and research the automobile system according to the tested data and parameters, thereby greatly improving the development and development speed of the automobile system and shortening the development period.
The PE5 CAN customize the symbol file, CAN analyze the CAN message into actual physical quantity, CAN also import the dbc file, CAN embed the VB script, and CAN create the script to automatically schedule complex tasks. In addition, PE5 may integrate data recording functions so that data transmitted over the CAN bus may be recorded, analyzed, and saved by PE5, and may be remotely controlled by scripting.
This application is through adopting PCAN Explorer's mode, and the purchase is convenient and with low costs, CAN connect a plurality of CAN passageways simultaneously moreover, and various automation task CAN be accomplished through the script to configurable data logging function, integrated standard macro and VB script that CAN also integrate, CAN be in the control CAN network in addition, backstage operation script, CAN also count message error and bus load etc. in the network simultaneously.
According to the method, the ECU to be tested is connected to the PCAN hardware 21 through the CAN bus, the ECU to be tested is connected to the external testing device 22 through the PCAN hardware 21 in a USB mode, the ECU to be tested is started, and the working performance of the ECU to be tested is tested through the external testing device 22. Through the mode, the German Vector software collocation canoe hardware test system with high cost can be avoided, the cost of tens of thousands of yuan of the existing test scheme can be replaced by low cost of about hundreds of yuan, the test cost is effectively reduced, the test effect is accurate, the success rate is high, the test system is simple to erect and convenient to operate and easy to understand, the same test function as the German Vector software collocation canoe hardware test system can be realized, and the working performance of the product is ensured.
In the present application, the UDS-based CAN bus test system and method described above CAN be used in a vehicle system having a vehicle TBOX.
In this embodiment, the CAN may include three network channels CAN _1, CAN _2, and CAN _3, and the vehicle may further include one ethernet network channel, where the three CAN network channels may be connected to the ethernet network channel through two in-vehicle networking gateways, for example, where the CAN _1 network channel includes a hybrid power assembly system, where the CAN _2 network channel includes an operation support system, where the CAN _3 network channel includes an electric dynamometer system, and the ethernet network channel includes a high-level management system, the high-level management system includes a human-vehicle-road simulation system and a comprehensive information collection unit that are connected as nodes to the ethernet network channel, and the in-vehicle networking gateways of the CAN _1 network channel, the CAN _2 network channel, and the ethernet network channel may be integrated in the comprehensive information collection unit; the car networking gateway of the CAN _3 network channel and the Ethernet network channel CAN be integrated in a man-car-road simulation system.
Further, the nodes connected to the CAN _1 network channel include: the hybrid power system comprises an engine ECU, a motor MCU, a battery BMS, an automatic transmission TCU and a hybrid power controller HCU; the nodes connected with the CAN _2 network channel are as follows: the system comprises a rack measurement and control system, an accelerator sensor group, a power analyzer, an instantaneous oil consumption instrument, a direct-current power supply cabinet, an engine water temperature control system, an engine oil temperature control system, a motor water temperature control system and an engine intercooling temperature control system; the nodes connected with the CAN _3 network channel are as follows: electric dynamometer machine controller.
The preferable speed of the CAN _1 network channel is 250Kbps, and a J1939 protocol is adopted; the rate of the CAN _2 network channel is 500Kbps, and a CANopen protocol is adopted; the rate of the CAN _3 network channel is 1Mbps, and a CANopen protocol is adopted; the rate of the Ethernet network channel is 10/100Mbps, and a TCP/IP protocol is adopted.
In this embodiment, the vehicle networking gateway may be equipped with an IEEE802.3 interface, a DSPI interface, an eSCI interface, a CAN interface, an MLB interface, a LIN interface, and/or an I2C interface.
In this embodiment, for example, the IEEE802.3 interface may be used to connect to a wireless router to provide a WIFI network for the entire vehicle; the DSPI (provider manager component) interface is used for connecting a Bluetooth adapter and an NFC (near field communication) adapter and can provide Bluetooth connection and NFC connection; the eSCI interface is used for connecting the 4G/5G module and communicating with the Internet; the CAN interface is used for connecting a vehicle CAN bus; the MLB interface is used for connecting an MOST (media oriented system transmission) bus in the vehicle, and the LIN interface is used for connecting a LIN (local interconnect network) bus in the vehicle; the IC interface is used for connecting a DSRC (dedicated short-range communication) module and a fingerprint identification module. In addition, the application can merge different networks by mutually converting different protocols by adopting the MPC5668G chip.
In addition, the vehicle TBOX system, Telematics-BOX, of the present embodiment is simply referred to as a vehicle TBOX or a Telematics.
Telematics is a synthesis of Telecommunications and information science (information) and is defined as a service system that provides information through a computer system, a wireless communication technology, a satellite navigation device, and an internet technology that exchanges information such as text and voice, which are built in a vehicle. In short, the vehicle is connected to the internet (vehicle networking system) through a wireless network, and various information necessary for driving and life is provided for the vehicle owner.
In addition, Telematics is a combination of wireless communication technology, satellite navigation system, network communication technology and vehicle-mounted computer, when a fault occurs during vehicle running, the vehicle is remotely diagnosed by connecting a service center through wireless communication, and the computer built in the engine can record the state of main parts of the vehicle and provide accurate fault position and reason for maintenance personnel at any time. The vehicle can receive information and check traffic maps, road condition introduction, traffic information, safety and public security services, entertainment information services and the like through the user communication terminal, and in addition, the vehicle of the embodiment can be provided with electronic games and network application in a rear seat. It is easy to understand that, this embodiment provides service through Telematics, can make things convenient for the user to know traffic information, the parking stall situation that closes on the parking area, confirms current position, can also be connected with the network server at home, in time knows electrical apparatus running condition, the safety condition and guest's condition of visiting etc. at home.
The vehicle according to this embodiment may further include an Advanced Driver Assistance System (ADAS) that collects environmental data inside and outside the vehicle at the first time using the various sensors mounted on the vehicle, and performs technical processing such as identification, detection, and tracking of static and dynamic objects, so that a Driver can recognize a risk that may occur at the fastest time, thereby attracting attention and improving safety. Correspondingly, the ADAS of the present application may also employ sensors such as radar, laser, and ultrasonic sensors, which can detect light, heat, pressure, or other variables for monitoring the state of the vehicle, and are usually located on the front and rear bumpers, side view mirrors, the inside of the steering column, or on the windshield of the vehicle. It is obvious that various intelligent hardware used by the ADAS function can be accessed to the car networking system by means of an ethernet link to realize communication connection and interaction.
The host computer of the present embodiment vehicle may comprise suitable logic, circuitry, and/or code that may enable operation and/or functional operation of the five layers above the OSI model (Open System Interconnection, Open communication systems Interconnection reference model). Thus, the host may generate and/or process packets for transmission over the network, and may also process packets received from the network. At the same time, the host may provide services to a local user and/or one or more remote users or network nodes by executing corresponding instructions and/or running one or more applications. In various embodiments of the present application, the host may employ one or more security protocols.
In the present application, a network connection for an internet of vehicles system may be a switch, which may have AVB functionality (Audio Video brightening, meeting the IEEE802.1 set of standards), and/or include one or more unshielded twisted pair wires, each of which may have an 8P8C module connector.
In a preferred embodiment, the vehicle networking system specifically comprises a vehicle body control module BCM, a power bus P-CAN, a vehicle body bus I-CAN, a combination meter CMIC, a chassis control device and a vehicle body control device.
In this embodiment, the body control module BCM may integrate the functions of the car networking gateway to perform signal conversion, message forwarding, and the like between different network segments, i.e., between the power bus P-CAN and the body bus I-CAN, for example, if a controller connected to the power bus needs to communicate with a controller connected to the body bus I-CAN, the body control module BCM may perform signal conversion, message forwarding, and the like between the two controllers.
The power bus P-CAN and the vehicle body bus I-CAN are respectively connected with a vehicle body control module BCM.
The combination instrument CMIC is connected with a power bus P-CAN, and the combination instrument CMIC is connected with a vehicle body bus I-CAN. Preferably, the combination meter CMIC of the present embodiment is connected to different buses, such as a power bus P-CAN and a vehicle body bus I-CAN, and when the combination meter CMIC needs to acquire controller information that is hung on any bus, it is not necessary to perform signal conversion and message forwarding through a vehicle body control module BCM, so that gateway pressure CAN be reduced, network load CAN be reduced, and the speed of acquiring information by the combination meter CMIC CAN be increased.
The chassis control device is connected with the power bus P-CAN. The vehicle body control device is connected with a vehicle body bus I-CAN. In some examples, the chassis control device and the body control device CAN respectively broadcast data such as information to the power bus P-CAN and the body bus I-CAN, so that other vehicle-mounted controllers and other devices hung on the power bus P-CAN or the body bus I-CAN CAN acquire the broadcast information, and communication between the vehicle-mounted devices such as different controllers is realized.
In addition, in the car networking system of the vehicle of the embodiment, two CAN buses, namely a power bus P-CAN and a car body bus I-CAN, CAN be used, the car body control module BCM is used as a gateway, and the structure that the combination instrument CMIC is connected with both the power bus P-CAN and the car body bus I-CAN is adopted, so that the operation that information of a chassis control device or a car body control device is forwarded to the combination instrument CMIC through the gateway when the combination instrument CMIC is hung on one of the two buses in the traditional mode CAN be omitted, therefore, the pressure of the car body control module BCM as the gateway is relieved, the network load is reduced, and information of vehicle-mounted equipment hung on a plurality of buses, such as the power bus P-CAN and the car body bus I-CAN, CAN be sent to the combination instrument CMIC for display and the information transmission is strong in real-time.
This application CAN test to above-mentioned complicated vehicle based on UDS's CAN bus test system and method, corresponds and provides more perfect comprehensive test service, when making the comprehensive development of vehicle system, CAN realize corresponding comprehensive system test, avoids adopting costly test tool, CAN guarantee the test result moreover, does benefit to and generally uses widely in vehicle manufacturer.
Although the present application has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the application, and all changes, substitutions and alterations that fall within the spirit and scope of the application are to be understood as being included within the following description of the preferred embodiment.

Claims (11)

1. A CAN bus test method based on UDS is characterized by comprising the following steps:
connecting an ECU to be tested to PCAN hardware through a CAN bus;
connecting an ECU to be tested to an external testing device by utilizing PCAN hardware in a USB mode, wherein the external testing device is provided with a PCAN Explorer;
starting the ECU to be tested, and testing the working performance of the ECU to be tested through the external testing device, wherein the working performance of the ECU to be tested is tested through the PCAN Explorer of the external testing device;
the ECU to be tested comprises an anti-lock brake system ECU, a four-wheel drive system ECU, an electric control automatic transmission ECU, an active suspension system ECU, an airbag system ECU, a multidirectional adjustable electric control seat ECU, an engine ECU, a motor MCU, a battery BMS, an automatic transmission TCU and a hybrid power controller HCU;
the experiments tested included: indoor and outdoor environment tests, plateau polar region tests and durability tests of automobiles;
the PCAN Explorer carries out real-time monitoring, visual display, data recording and analysis on signals on the CAN bus, wherein the signals on the CAN bus comprise vehicle speed, rotating speed, temperature, pressure, flow, wind speed, humidity, voltage, current, pulse, acceleration, angular speed, angle and strain.
2. The CAN bus testing method of claim 1, wherein the step of USB connecting the ECU to be tested to an external testing device installed with a PCAN Explorer and its series of testing software using PCAN hardware.
3. The CAN bus test method of claim 2, further comprising:
and carrying out secondary development on the PCAN Explorer and the serial test software thereof installed in the external test device, and programming a test program by adopting VB script language.
4. The CAN bus test method according to claim 3, wherein the step of programming the test program using VB script language specifically comprises:
and compiling a seed request, a security authentication algorithm of a seed generation key and a sending key by adopting VB script language.
5. The CAN bus testing method of claim 1, wherein the step of connecting the ECU to be tested to the PCAN hardware via the CAN bus specifically comprises:
and respectively connecting the ECU to be tested to CAN _ H and CAN _ L of the PCAN hardware through CAN _ H and CAN _ L.
6. The CAN bus test method according to any one of claims 1 to 5, wherein the step of testing the operating performance of the ECU to be tested by the external test device specifically comprises:
and testing the safe access service of the ECU to be tested through the external testing device.
7. A UDS-based CAN bus test system, the CAN bus test system comprising:
the PCAN hardware is used for being connected to the ECU to be tested through a CAN bus;
the external testing device is connected to the PCAN hardware in a USB mode and further connected to the ECU to be tested through the PCAN hardware so as to test the working performance of the ECU to be tested through the external testing device when the ECU to be tested is started, wherein the external testing device is provided with a PCAN Explorer so as to test the working performance of the ECU to be tested through the PCAN Explorer of the external testing device;
the ECU to be tested comprises an anti-lock brake system ECU, a four-wheel drive system ECU, an electric control automatic transmission ECU, an active suspension system ECU, an airbag system ECU, a multidirectional adjustable electric control seat ECU, an engine ECU, a motor MCU, a battery BMS, an automatic transmission TCU and a hybrid power controller HCU;
the experiments tested included: indoor and outdoor environment tests, plateau polar region tests and durability tests of automobiles;
the PCAN Explorer carries out real-time monitoring, visual display, data recording and analysis on signals on the CAN bus, wherein the signals on the CAN bus comprise vehicle speed, rotating speed, temperature, pressure, flow, wind speed, humidity, voltage, current, pulse, acceleration, angular speed, angle and strain.
8. The CAN bus test system of claim 7, wherein the external test device is installed with a PCAN Explorer and its family of test software.
9. The CAN bus test system of claim 8, wherein the PCAN Explorer and its series of test software installed in the external test device are secondarily developed and the test program is compiled using VB script language, wherein the VB script language is used to compile a seed request, a security authentication algorithm for a seed generation key, and a transmission key.
10. The CAN bus test system of claim 7, wherein CAN _ H and CAN _ L of the PCAN hardware are connected to CAN _ H and CAN _ L of the ECU under test, respectively.
11. The CAN bus test system of any of claims 7-10, wherein the external test device is configured to test the ECU under test for secure access service.
CN201810179782.8A 2018-03-05 2018-03-05 UDS-based CAN bus test system and CAN bus test method Active CN110233768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810179782.8A CN110233768B (en) 2018-03-05 2018-03-05 UDS-based CAN bus test system and CAN bus test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810179782.8A CN110233768B (en) 2018-03-05 2018-03-05 UDS-based CAN bus test system and CAN bus test method

Publications (2)

Publication Number Publication Date
CN110233768A CN110233768A (en) 2019-09-13
CN110233768B true CN110233768B (en) 2022-02-25

Family

ID=67862037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810179782.8A Active CN110233768B (en) 2018-03-05 2018-03-05 UDS-based CAN bus test system and CAN bus test method

Country Status (1)

Country Link
CN (1) CN110233768B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045711A (en) * 2019-12-03 2020-04-21 东风电驱动系统有限公司 MCU software program upgrading method and system based on USBCAN
CN111537862B (en) * 2020-04-21 2023-03-31 青岛矽昌通信技术有限公司 PCBA test method and system
CN113805559A (en) * 2020-06-17 2021-12-17 北京新能源汽车股份有限公司 Control parameter processing method, device and equipment
CN113467429B (en) * 2021-07-23 2023-03-28 重庆长安汽车股份有限公司 Real vehicle scene reinjection system and method based on PCAN-USB and ADAS controller
CN113778055B (en) * 2021-09-13 2023-05-16 宁波均联智行科技股份有限公司 TBOX detection method and detection system
CN114115183A (en) * 2021-11-15 2022-03-01 合众新能源汽车有限公司 Monitoring system and method capable of assembling motor controller
CN115022223A (en) * 2022-06-06 2022-09-06 深圳市赛格车圣科技有限公司 Method and system for carrying out automatic test on TBOX through UDS
CN115933584B (en) * 2022-10-27 2024-06-11 重庆赛力斯凤凰智创科技有限公司 Vehicle-mounted controller testing system, method, computer equipment and storage medium
CN117057163B (en) * 2023-10-11 2024-01-19 富钛字节车载软件(长春)有限公司 Remote simulation method, system, equipment and storage medium based on wireless communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104118372A (en) * 2013-04-24 2014-10-29 广州汽车集团股份有限公司 Hybrid electric vehicle CAN network system
CN104714787A (en) * 2013-12-12 2015-06-17 北汽福田汽车股份有限公司 Method and device for generating files of MDF format
CN104836713A (en) * 2014-09-02 2015-08-12 北汽福田汽车股份有限公司 Measurement and calibration method for vehicle electronic controller, device and system
CN105718288A (en) * 2016-01-21 2016-06-29 北京新能源汽车股份有限公司 Program flashing method, device, system and terminal of automobile controller
JP2017146699A (en) * 2016-02-16 2017-08-24 アイシン・エィ・ダブリュ株式会社 Operation simulator system, operation simulator method, and computer program
JP2017171180A (en) * 2016-03-24 2017-09-28 日本精機株式会社 Vehicle information acquisition device and vehicle information acquisition method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102555946B (en) * 2010-12-30 2016-01-06 上海博泰悦臻电子设备制造有限公司 The based reminding method of vehicle-state, car-mounted terminal
CN201907474U (en) * 2010-12-30 2011-07-27 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted terminal
CN104076814A (en) * 2014-07-09 2014-10-01 哈尔滨工业大学 Automobile ECU measurement system based on hardware-in-loop simulation
US9648023B2 (en) * 2015-01-05 2017-05-09 Movimento Group Vehicle module update, protection and diagnostics
US11165851B2 (en) * 2015-06-29 2021-11-02 Argus Cyber Security Ltd. System and method for providing security to a communication network
JP6805559B2 (en) * 2016-06-09 2020-12-23 株式会社デンソー Replog Master

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104118372A (en) * 2013-04-24 2014-10-29 广州汽车集团股份有限公司 Hybrid electric vehicle CAN network system
CN104714787A (en) * 2013-12-12 2015-06-17 北汽福田汽车股份有限公司 Method and device for generating files of MDF format
CN104836713A (en) * 2014-09-02 2015-08-12 北汽福田汽车股份有限公司 Measurement and calibration method for vehicle electronic controller, device and system
CN105718288A (en) * 2016-01-21 2016-06-29 北京新能源汽车股份有限公司 Program flashing method, device, system and terminal of automobile controller
WO2017124806A1 (en) * 2016-01-21 2017-07-27 北京新能源汽车股份有限公司 Automobile controller program flashing method, device, system, and terminal
JP2017146699A (en) * 2016-02-16 2017-08-24 アイシン・エィ・ダブリュ株式会社 Operation simulator system, operation simulator method, and computer program
JP2017171180A (en) * 2016-03-24 2017-09-28 日本精機株式会社 Vehicle information acquisition device and vehicle information acquisition method

Also Published As

Publication number Publication date
CN110233768A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
Malekian et al. Design and implementation of a wireless OBD II fleet management system
CN110855558B (en) Internet of vehicles gateway and CANoverTCP/IP protocol connection realization method, ECU and upgrading method
CN105159188B (en) A kind of new energy vehicle heterogeneous network emulator and control method
CN106292626B (en) Data acquisition device and method for new-energy automobile test evaluation
CN110971567A (en) Vehicle, cloud server, vehicle equipment, media device and data integration method
CN110989555A (en) Vehicle diagnosis and alarm method, device and system
CN110647139B (en) Evaluation test tool and evaluation test method for OBD (on-Board diagnostics) mass production vehicle
CN110849411A (en) Internet of vehicles server, vehicle and vehicle condition evaluation method based on driving oil consumption data
CN111199030A (en) Vehicle, vehicle equipment and automatic activation method of vehicle-mounted third-party application software
CN106200609A (en) Automatically the device and method of engine of heavy-duty car ECU software version is tested
CN212694288U (en) TBOX detection device
CN111124443A (en) Vehicle, vehicle equipment and vehicle instrument upgrading method
CN212276236U (en) Portable real vehicle network automatic test system
CN110793537A (en) Navigation path recommendation method, vehicle machine and vehicle
Zhou et al. Development method of simulation and test system for vehicle body CAN bus based on CANoe
CN103399569B (en) For judging the miniature diagnostic device of automobile and the determination methods thereof of motoring condition
CN103699077A (en) Bluetooth intelligent mobile terminal-based hydrodynamic retarder monitoring system
US20230122334A1 (en) Automotive network vehicle bus diagnostics
CN107968831A (en) A kind of Vehicular intelligent product long distance service system and its operating method
CN207543144U (en) A kind of Vehicular intelligent product long distance service system
CN111026475A (en) Vehicle, vehicle equipment and vehicle service processing method based on map software
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
CN208224834U (en) A kind of onboard diagnostic system based on Ethernet
CN111216663A (en) Vehicle, vehicle equipment and intelligent maintenance method of vehicle equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 208, building 4, 1411 Yecheng Road, Jiading District, Shanghai, 201821

Applicant after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Address before: Room 208, building 4, 1411 Yecheng Road, Jiading District, Shanghai, 201821

Applicant before: SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 3701, No. 866 East Changzhi Road, Hongkou District, Shanghai, 200080

Patentee after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: Room 208, building 4, 1411 Yecheng Road, Jiading District, Shanghai, 201821

Patentee before: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region before: China