comparison epro.py @ 27:8b8efc343b0c

Update comment about wiring althoug it's clear as mud..
author Daniel O'Connor <darius@dons.net.au>
date Tue, 21 Dec 2021 15:05:45 +1030
parents 3090d8bf4242
children
comparison
equal deleted inserted replaced
26:3090d8bf4242 27:8b8efc343b0c
6 6
7 logger = logging.getLogger('epro') 7 logger = logging.getLogger('epro')
8 8
9 # View facing ePro from the back 9 # View facing ePro from the back
10 # +---+ 10 # +---+
11 # +-| |-| 11 # +-+ +-+
12 # | | 12 # | |
13 # | | 13 # | |
14 # +-------+ 14 # +-------+
15 # 1 ... 6 15 # 6 ... 1
16 # 16 #
17 # RJ12 plug (Jaycar cable colours) 17 # Solid Twisted Signal Actual twisted
18 # 1 white temp out 18 # Colors Colours Name Colours
19 # 2 black temp in 19 #---------------------------------------------------------
20 # 3 red GND 20 # 1 Blue Wht/Grn VCC (VBatt) Grn
21 # 4 green TX TTL (5V) 21 # 2 Yellow Wht/Org RX TTL (5V) Org
22 # 5 yellow RX TTL (5V) 22 # 3 Green Blu TX TTL (5V) Wht/Blu
23 # 6 blue VCC (12V) 23 # 4 Red Wht/Blu GND Blu
24 # 5 Black Org Temp in Wht/Org
25 # 6 White Grn Temp out Wht/Grn
26 #
27 # Note sure what happened with the wiring..
24 # 28 #
25 # 2400bps 8E1 29 # 2400bps 8E1
26 # s = serial.Serial('/dev/cu.usbserial-AM01Z7TZ', 2400, parity='E') 30 # s = serial.Serial('/dev/cu.usbserial-AM01Z7TZ', 2400, parity='E')
27 # 31 #
28 # Protocol document: https://www.enerdrive.com.au/wp-content/uploads/ePRO-communication-interface-spec-rev.02.pdf 32 # Protocol document: https://www.enerdrive.com.au/wp-content/uploads/ePRO-communication-interface-spec-rev.02.pdf