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.
$ 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.
$ candump -t a <CAN_IF>
$ candump -t a <CAN_IF>,<can_id>:<can_mask>
$ candump -t a <CAN_IF>,<can_id>~<can_mask>
$ candump -b <CAN_IF_to> <CAN_IF_from>
$ candump -t a <CAN_IF> > a_file.txt
$ candump -l <CAN_IF>
$ 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.