Skip to content

Debugging

Application logs

Please, refer to EVSE applications control or PEV applications control to learn how to access text logs of each application.

These might be useful to understand where a blocking point can be. You may also find clues to know if the problem comes from your side, Advantics side, or the vehicle/charger side.

CAN buses

Some CAN tools are already installed on the system. Here are a few examples.


Available CAN interfaces

CAN_IF Decription
can0 Power modules CAN bus
can1 CHAdeMO CAN bus
vcanX Virtual internal CAN buses. Not activated by default (see Virtual CAN buses).

On Linux, CAN bus interfaces are mapped as network interfaces. You can list all active network interfaces with ifconfig.

Send data on a CAN bus
$ cansend <CAN_IF> <ID>#<DATA>

ID must either be 3 (SFF) or 8 (EFF) hex chars. DATA must be a multiple of 2 hex chars, or none for empty frame, or R for remote request.

View raw CAN messages with absolute time (CTRL+C to exit)

$ candump -t a <CAN_IF>

Filter-in by IDs with mask (` & mask == can_id & mask`)

$ candump -t a <CAN_IF>,<can_id>:<can_mask>

Filter-out by IDs with mask (` & mask != can_id & mask`)

$ candump -t a <CAN_IF>,<can_id>~<can_mask>

Bridge from one CAN bus to another

$ candump -b <CAN_IF_to> <CAN_IF_from>

Export CAN dump as you see it to text file

$ candump -t a <CAN_IF> > a_file.txt

Export CAN dump in special log format usable by other tools

$ candump -l <CAN_IF>

Replay logged CAN dump on the same CAN interface

$ canplayer -I <LOG_FILE>

See candump -h and canplayer -h for more information about their parameters.

Tip

You may also install cantools to decode CAN frames using a CAN DB file (in either DBC or Kayak format):

$ candump <CAN_IF> | cantools decode <CAN_DB_FILE>

You may replace the candump command with a previously exported dump that you pipe to cantools with cat:

$ cat a_file.txt | cantools decode <CAN_DB_FILE>

CCS PLC network packet capture

You can capture network packets on the PLC line into a .pcap file like so:

$ tcpdump -i eth1 -w dump.pcap

However, the controller system runs such a packet capture by default already. Dump files are stored in /var/lib/docker/dumps.

You can analyze these packet captures yourself with PCAP compatible software, such as wireshark. However, by default, there is no decoding of the SLAC and CCS EXI packets. And they are pretty much unreadable by a human... Advantics has a private software to decode, reconstruct and analyze CCS communications.