Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeMG-INL committed Feb 15, 2024
2 parents a0c419c + e3e01d7 commit 293103b
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 4 deletions.
16 changes: 12 additions & 4 deletions EVSE.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def __init__(self, args):
self.nmapPorts.append(i)
else:
self.nmapPorts.append(int(arg))

if args.modified_cordset:
self.modified_cordset = True
else:
self.modified_cordset = False
self.destinationMAC = None
self.destinationIP = None
self.destinationPort = None
Expand Down Expand Up @@ -83,12 +86,16 @@ def start(self):

# Close the circuit for the proximity pins
def closeProximity(self):
print("INFO (EVSE): Closing relay connection")
self.bus.write_byte_data(self.I2C_ADDR, self.CONTROL_REG, self.EVSE_CP | self.EVSE_PP)
if self.modified_cordset:
print("INFO (EVSE): Closing CP/PP relay connections")
self.bus.write_byte_data(self.I2C_ADDR, self.CONTROL_REG, self.EVSE_PP | self.EVSE_CP)
else:
print("INFO (EVSE): Closing CP relay connection")
self.bus.write_byte_data(self.I2C_ADDR, self.CONTROL_REG, self.EVSE_CP)

# Close the circuit for the proximity pins
def openProximity(self):
print("INFO (EVSE): Opening relay connection")
print("INFO (EVSE): Opening CP/PP relay connections")
self.bus.write_byte_data(self.I2C_ADDR, self.CONTROL_REG, self.ALL_OFF)

# Opens and closes proximity circuit with a delay
Expand Down Expand Up @@ -686,6 +693,7 @@ def buildNeighborAdvertisement(self):
parser.add_argument("--nmap-mac", nargs=1, help="The MAC address of the target device to NMAP scan (default: EVCC MAC address)")
parser.add_argument("--nmap-ip", nargs=1, help="The IP address of the target device to NMAP scan (default: EVCC IP address)")
parser.add_argument("--nmap-ports", nargs=1, help="List of ports to scan seperated by commas (ex. 1,2,5-10,19,...) (default: Top 8000 common ports)")
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)
Expand Down
78 changes: 78 additions & 0 deletions resources/BOM.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
The following parts were used to build the PWM board and enclosure for an AcCCS box.

Enclosure
https://www.mcmaster.com/69945K156/

Enclosure Panel (1x per box)
https://www.mcmaster.com/69945K57/

24V to 12V Isolated DC/DC Converter (2x per box)
https://www.digikey.com/en/products/detail/cui-inc/PYBE30-Q24-S12-T/9859982

24V to 5V Isolated DC/DC Converter (1x per box)
https://www.digikey.com/en/products/detail/cui-inc/PYBE30-Q24-S5-T/9859981

Description: 555 Timer
https://www.digikey.com/en/products/detail/texas-instruments/TLC555CP/277502

Description Op-Amp
https://www.digikey.com/en/products/detail/rochester-electronics-llc/TLE2142AMJG/13446742

Description: I2C GPIO Expansion
https://www.digikey.com/en/products/detail/microchip-technology/MCP23008-E-P/735951

Description: Relay (5x per box)
https://www.amazon.com/Songle-Household-Appliance-Relay-SRD-05VDC-SL-C/dp/B00O9WPAJ6

Description: Optocoupler (10x per box)
https://www.digikey.com/en/products/detail/vishay-semiconductor-opto-division/SFH617A-1/4075067

Description: NPN Transistor (10x per box)
https://www.digikey.com/en/products/detail/central-semiconductor-corp/2SC1815-PBFREE/5777301

Description: Red LED (10x per box)
https://www.digikey.com/en/products/detail/kingbright/WP7113ID/1747663

Description: Potentiometer (2x per box)
https://www.digikey.com/en/products/detail/sparkfun-electronics/COM-09806/7319606

Description: Screw Terminals (6x per box)
https://www.digikey.com/en/products/detail/te-connectivity-amp-connectors/282837-4/2187975

Description: 100-piece resistor packs

100 ohm
https://www.amazon.com/gp/product/B07QKDSCSM

1K ohm
https://www.amazon.com/gp/product/B07HDDWFDD

10K ohm
https://www.amazon.com/gp/product/B07HDGX5LM

470 ohm
https://www.amazon.com/gp/product/B07HDFBR2P

4.7K ohm
https://www.amazon.com/gp/product/B07HDFHPP3

47K ohm
https://www.amazon.com/gp/product/B07HDFHVLL

2.2K ohm
https://www.amazon.com/gp/product/B07HDFT8NF

22K ohm
https://www.amazon.com/gp/product/B07HDF633C

330 ohm
https://www.amazon.com/gp/product/B07HDFFN81

510 ohm
https://www.amazon.com/gp/product/B07HDFSV7C

680 ohm
https://www.amazon.com/gp/product/B07HDFJVYF

150 ohm
https://www.amazon.com/gp/product/B07HDH2M4M

0 comments on commit 293103b

Please sign in to comment.