Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocharge MAC EVSE ID extraction (plcstat) #9

Open
tropxy opened this issue Feb 8, 2022 · 0 comments
Open

Autocharge MAC EVSE ID extraction (plcstat) #9

tropxy opened this issue Feb 8, 2022 · 0 comments

Comments

@tropxy
Copy link
Contributor

tropxy commented Feb 8, 2022

AB#1525 AB#1526

For Autocharge it is possible to extract the PLC unique MAC Address from the EV, which is useful for Autocharge use case

Menno's answer:

Hi @André Duarte as mentioned during the meeting, below is the info I added to our ticket to retrieve the EV PLC node MAC address. I will also add a Wireshark trace.
Quote from ticket:
Even though the EV PLC node MAC address is not present in the high-level communication, there is a method to retrieve it. This is only possible though after SLAC matching has succeeded, because it uses specific messages defined in the HomePlug standard to retrieve the network configuration.
In open-plc-utils (the QCA reference implementation) there are two commands:

$ plcstat -t -i vensb1
 P/L NET TEI ------ MAC ------ ------ BDA ------  TX  RX CHIPSET FIRMWARE
 LOC CCO 001 00:01:87:10:A1:C0 DE:8F:A8:F8:30:76 n/a n/a QCA7000 MAC-QCA7000-1.2.5.3207-00-20180927-CS
 REM STA 002 02:26:00:00:00:22 FF:FF:FF:FF:FF:FF 009 009 QCA7000 MAC-QCA7005-1.2.5.3207-00-20180927-CS
and
plctool -m -i vensb1
vensb1 00:B0:52:00:00:01 Fetch Network Information
vensb1 00:01:87:10:A1:C0 Found 1 Network(s)
source address = 00:01:87:10:A1:C0
network->NID = 76:DE:7D:2E:84:D4:00
network->SNID = 13
network->TEI = 1
network->ROLE = 0x02 (CCO)
network->CCO_DA = 00:01:87:10:A1:C0
network->CCO_TEI = 1
network->STATIONS = 1
	station->MAC = 02:26:00:00:00:22
	station->TEI = 2
	station->BDA = FF:FF:FF:FF:FF:FF
	station->AvgPHYDR_TX = 009 mbps Primary
	station->AvgPHYDR_RX = 009 mbps Primary

which both reveal that 02:26:00:00:00:22 is the EV PLC node MAC address.
The underlying HomePlug message that can be used to retrieve the logical network information is NW_INFO.REQ. If the EVSECC sends that request to the generic HomePlug destination MAC 00:b0:52:00:00:01, the EVSE PLC node will return the network information with connected stations, including the MAC address.
Clearly, this only works after the logical network is formed, so SLAC must complete first.

Verisco_network_info.pcapng.txt

@tropxy tropxy changed the title Autocharge EVSE ID extraction Autocharge MAC EVSE ID extraction (plcstat) Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant