Cantool app feature requirements
In modern automotive control technology, the vehicle is controlled using multiple electronic controls (Ecu:electronic control unit). The information exchange between ECUs relies more on the network connection of the can (Controller area network) bus. To detect and control the information content of can bus, it is necessary to use can bus detection equipment. The Cantool device is the tool to complete the canbus detection. In order to realize the display and control of can data, it is necessary to use the Cantoolapp software presented in this paper, which needs to send the can information collected by the Cantool device connected on the can bus to the host computer (mobile terminal Android, IOS, Windows PC). By collating and discussing the requirements document, we will divide the Cantool app function into the following four modules, such as:
One, Cantoolapp to can information display processing function:
- The display data is divided into 3 types:
- Data received from the Cantool appliance
- Data sent by the user
- Loaded user-supplied data
- To display the processing operation of the receive data:
- The received data needs to parse the data string according to can information and the signal description database, then obtains the various can signal values contained in the can information.
- The can signal value is further computed to restore the information of the physical quantity represented by the signal and is displayed on the GUI interface.
- To display the processing of "send" data:
- The data sent needs to be in the same way that the physical values entered by the user are converted to can signals.
- The signal that belongs to the same can ID is synthesized into a string and sent to the Cantool device according to the can signal description database. 4, display "Loading" data processing operation, complete can signal data analysis and can send information assembly, with the "send" process.
Second, Cantoolapp GUI interface display:
- COM port Basic Setup Information interface
- Can basic setup Information interface
- Can information raw data and physical data real-time display interface
- Instrument panel for the physical value of can signals
- Real-time curve of can signal
- The layout diagram of can signal in can information
- Can signal tree-like structure diagram
Third, the Cantoolapp data storage function:
- User-selected display can be saved to the Cantoolapp settings file for the next use.
- You can save all the can information received to the data file in real time. The format is in CSV format, or custom.
- Can load the user-supplied can information and signal database, loaded database file related information, can be saved to the Cantoolapp settings file for the next use.
- You can save the can information and the signal database provided by the user as XML and JSON (JavaScript Object Notation) format.
- You can convert XML or JSON-formatted databases into can information and signal database formats.
Iv. Cantoolapp control can communication function by controlling the Cantool device:
- Cantoolapp can set the communication parameters of the can bus and set the can communication parameters of the Cantool device by the corresponding command, so that the Cantool device can communicate with other ECU under test in the can bus.
- The ability to search all available COM ports on the machine, and in a pop-up ComboBox list the user to select the COM port that the Cantool device maps in the host computer. and set the corresponding COM port baud rate 115200, the number of data bits 8, the number of stop bits 1.
- Can speed setting of Cantool device, enter can operation State (Open), enter can initialization state (Close).
- Control display mode, display can let the user choose the instrument panel mode display received can signal physical value.
- Allows the user to set the can signal physical value in the can information, the app can convert the physical value set by the user to the can signal value, the can information contained in all can signals to synthesize the complete can information, sent to the Cantool device, send to the CAN bus.
Cantool app function requirements for the second time job