Skip to content

Commit

Permalink
Added the PEVHLE addr (OSA) to the FORWARDING_STA field of the CM_SLA…
Browse files Browse the repository at this point in the history
…C_PARAM.CNF response, modified evse.ini to match the config established by table A.2 of ISO 15118-3
  • Loading branch information
Pedro authored and n1000 committed Oct 7, 2020
1 parent 4b4a8cb commit 1375ec1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions slac/evse.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# EVSE-HLE initiaization;
# --------------------------------------------------------------------
[default]
time to sound = 10
number of sounds = 8
response type = 0
time to sound = 6
number of sounds = 10
response type = 1
station identifier = BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
network membership key = B59319D7E8157BA001B018669CCEE30D
network identifier = 026BCBA5354E08
5 changes: 4 additions & 1 deletion slac/evse_cm_slac_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
*
* EVSE-HLE should copy the message OSA to the session variable PEV
* MAC address; the PEV MAC address can then be used to respond in
* unicast to the right PEVHLE;
* unicast to the right PEVHLE; The PEVHLE address shall also be
* included in the FORWARDING_STA field of the SLAC MMEs when
* addressing other GP STA (RESP_TYPE = 1);
*
* EVSE-HLE should copy the run identifier to the session variable
* for use later in the session; this will be used to distinguish
Expand Down Expand Up @@ -105,6 +107,7 @@ signed evse_cm_slac_param (struct session * session, struct channel * channel, s
session->APPLICATION_TYPE = request->APPLICATION_TYPE;
session->SECURITY_TYPE = request->SECURITY_TYPE;
memcpy (session->PEV_MAC, request->ethernet.OSA, sizeof (session->PEV_MAC));
memcpy (session->FORWARDING_STA, request->ethernet.OSA, sizeof (session->FORWARDING_STA));
memcpy (session->RunID, request->RunID, sizeof (session->RunID));

#if SLAC_DEBUG
Expand Down

0 comments on commit 1375ec1

Please sign in to comment.