Capturing a charging session

Ways to get a capture of the powerline traffic between car and charger.

Options

  • A test system (dSPACE, Keysight, Vector, comemso and others) records both sides and exports pcap or pcapng.
  • A HomePlug Green PHY modem in sniffer mode on the Control Pilot line, with Wireshark or tcpdump on its Ethernet side. The open pyPLC project documents such a setup.
  • On a charger or car you control, tcpdump on the interface of the PLC modem. This misses SLAC frames the modem handles itself, but has all IP traffic.

Capture on the interface of the charging modem. A capture of the office network or of the charger's backend link holds no charging session; the tool says so when it finds no HomePlug frames and no SDP.

Tips

  • Start the capture before plugging in, so SLAC and SDP are in the file.
  • Record the Control Pilot at the same time if you can, and note the offset between the two clocks if they are not synchronised.
  • For TLS sessions, export a TLS key log from the stack you control so the messages can be decrypted later.