mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +00:00
startup in listen mode. Results of listen mode added.
This commit is contained in:
parent
200cae43b2
commit
0df383007e
3 changed files with 11 additions and 1 deletions
|
@ -214,7 +214,8 @@ class ipv6handler():
|
||||||
self.evaluateTcpPacket()
|
self.evaluateTcpPacket()
|
||||||
|
|
||||||
def __init__(self, transmitCallback):
|
def __init__(self, transmitCallback):
|
||||||
self.enterEvseMode()
|
#self.enterEvseMode()
|
||||||
|
self.enterListenMode()
|
||||||
self.transmit = transmitCallback
|
self.transmit = transmitCallback
|
||||||
# 16 bytes, a default IPv6 address for the charging station
|
# 16 bytes, a default IPv6 address for the charging station
|
||||||
# self.SeccIp = [ 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0x06, 0xaa, 0xaa, 0xff, 0xfe, 0, 0xaa, 0xaa ]
|
# self.SeccIp = [ 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0x06, 0xaa, 0xaa, 0xff, 0xfe, 0, 0xaa, 0xaa ]
|
||||||
|
|
|
@ -177,6 +177,15 @@ Using the TPlink and Win10 laptop as evse, the python script runs successfully t
|
||||||
neighbor solicitation (ICMP) to confirm the IPv6 address, and the Win10 responds to it. The car tries to open the TCP on port 15118, this is failing
|
neighbor solicitation (ICMP) to confirm the IPv6 address, and the Win10 responds to it. The car tries to open the TCP on port 15118, this is failing
|
||||||
because of missing implementation of the listener on PC side.
|
because of missing implementation of the listener on PC side.
|
||||||
|
|
||||||
|
### 2022-10-26 Network is established in sniffer mode
|
||||||
|
Using the TPlink in EVSE mode and Win10 laptop, listening to a communication setup between real car and real alpitronics, the python script
|
||||||
|
successfully extracts the NID and NMK from the SLAC_MATCH response, sets this information into the TPlink, and the TPlink turns three
|
||||||
|
LEDs on. Means: Network established. When we send a broadcast software version request, we get three responses: One from the TPlink, one from the
|
||||||
|
PLC modem of the car, and one from the PLC modem of the charger. This confirms, that the network is established.
|
||||||
|
But: From the higher level communication (IPv6, UDP, TCP) we see only the broadcast neighbor solicitation at the beginning. The remaining traffic
|
||||||
|
is hidden, most likely because the TPlink "too intelligent", it knows who has which MAC address and hides traffic which is not intended for the
|
||||||
|
third participant in the network.
|
||||||
|
|
||||||
## List of open topics
|
## List of open topics
|
||||||
- add listener to socket at port 15118 (use case: evse)
|
- add listener to socket at port 15118 (use case: evse)
|
||||||
- add evaluation of the TP packets (use case: sniffer)
|
- add evaluation of the TP packets (use case: sniffer)
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue