forked from IdahoLabResearch/AcCCS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_secc.py
More file actions
25 lines (20 loc) · 1.02 KB
/
run_secc.py
File metadata and controls
25 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
Copyright 2025, Ford Motor Company
Script that runs the SECC/EVSE emulator
"""
import argparse, asyncio
from app.secc.controller.evse import EVSE
parser = argparse.ArgumentParser(description="Emulator for SECC/EVSE")
parser.add_argument("--source-port", nargs=1, type=int, help="Source port of packets (default: 25565)")
parser.add_argument("--NID", nargs=1, help="Network ID of the HomePlug GreenPHY AVLN (default: \\x9c\\xb0\\xb2\\xbb\\xf5\\x6c\\x0e)")
parser.add_argument(
"--NMK",
nargs=1,
help="Network Membership Key of the HomePlug GreenPHY AVLN (default: \\x48\\xfe\\x56\\x02\\xdb\\xac\\xcd\\xe5\\x1e\\xda\\xdc\\x3e\\x08\\x1a\\x52\\xd1)",
)
parser.add_argument("--modified-cordset", action="store_true", help="Set this option when using a modified cordset during testing of a target vehicle. The AcCCS system will provide a 150 ohm ground on the proximity line to reset the connection. (default: False)")
args = parser.parse_args()
evse = EVSE(args)
asyncio.run(evse.start())
evse.openProximity()
del evse