added status

This commit is contained in:
uhi22 2022-10-19 19:31:21 +02:00
parent 28a713c32e
commit 98c569597b

View file

@ -3,6 +3,11 @@
## Goal ## Goal
This project tries to use cheap powerline network adaptors for communication with electric cars charging system. This project tries to use cheap powerline network adaptors for communication with electric cars charging system.
There are three different use cases, where this project can be helpful:
1. Sniffing the traffic between an CCS charger and a car. For instance to measure which side is the limiting element for reduced charging power.
2. Building a charger for CCS or for AC with digital communication.
3. Building a charging unit for a car which does not support powerline communication.
## References ## References
[i] https://www.goingelectric.de/wiki/CCS-Technische-Details/ [i] https://www.goingelectric.de/wiki/CCS-Technische-Details/
[ii] https://openinverter.org/forum/viewtopic.php?p=37085#p37085 [ii] https://openinverter.org/forum/viewtopic.php?p=37085#p37085
@ -75,6 +80,8 @@ This is fighting against the Libpcap-installation, so we need to deinstall the s
python -m pip uninstall libpcap python -m pip uninstall libpcap
Then again install pcap-ct, and finally add in the libpcap\_platform\__init__py the missing is_osx = False. (Is in the meanwhile fixed in the github repository.) Then again install pcap-ct, and finally add in the libpcap\_platform\__init__py the missing is_osx = False. (Is in the meanwhile fixed in the github repository.)
Finally, we need to patch the Pcap-ct, because the python script needs a non-blocking version. This is discussed in https://github.com/karpierz/pcap-ct/issues/9
Now, in the IDLE shall 3.10.6, the import works: Now, in the IDLE shall 3.10.6, the import works:
import pcap import pcap
sniffer = pcap.pcap(name=None, promisc=True, immediate=True, timeout_ms=50) sniffer = pcap.pcap(name=None, promisc=True, immediate=True, timeout_ms=50)
@ -86,5 +93,21 @@ for ts, pkt in sniffer:
Pcap-ct does not work with Python 3.4. After update to Python 3.8, it works. Pcap-ct does not work with Python 3.4. After update to Python 3.8, it works.
## Further steps ## Change history / functional status
(to be continued) ### 2022-10-19 Communication with Ioniq car established
* Using a TPlink TL-PA4010P with firmware MAC-QCA7420-1.4.0.20-00-20171027-CS and the PIB configuration file patched for evse according to the open-plc-utils docu.
* Python software running on Win10, Python 3.10.8
* On control pilot, sending 5% PWM to initiate digital communication with the car
* Since the TPlink is configured as coordinator, it sends "alive" messages, and the IONIQ starts sending the SLAC_PARAM.REQ.
* Per keystroke, we trigger a SET_KEY before the car is connected. The TPlink responds with "rejected", but this is normal, the LEDs are turning off and on, key is accepted.
* Python script interprets the relevant incoming messages (SLAC_PARAM.REQ, MNBC_SOUND.IND, SLAC_MATCH.REQ) and reacts accordingly.
* After successfull SLAC sequence, all three LEDs on the TPlink are ON, means: Network is established.
* In wireshark, we see that the car is sending UDP multicast messages to destination port 15118. This looks like a good sign, that it wants a ISO15118 compatible communication.
### 2022-10-19 Sniffing mode not yet working with the TPlink adaptors
* with a Devolo dLAN 200 AVplus, software INT6000-MAC-4-4-4405-00-4497-20101201-FINAL-B in original parametrization, it is possible
to see the complete SLAC traffic (both directions) which sniffing the communication between a real charger and a real car. This does
NOT work with the TPlink adaptors. They route only "their own" direction of the traffic to the ethernet. Means: The pev-configured device
does not see the real car, and the evse-configured device does not see the real charger. This is bad for sniffing.
(further steps ongoing)