diff --git a/arduino-max485-epever-json-serial.ino b/arduino-max485-epever-json-serial.ino index 5e14ed7..4717c1a 100644 --- a/arduino-max485-epever-json-serial.ino +++ b/arduino-max485-epever-json-serial.ino @@ -48,18 +48,18 @@ MAX485 => Arduino GND => GND VCC => 5V - DI => 11 + DI => 9 DE => 3 RE => 2 - RO => 10 + RO => 8 MAX485 Nr 2 =>Arduino GND => GND VCC => 5V - DI => 9 + DI => 11 DE => 5 RE => 4 - RO => 8 + RO => 10 TRACER => MAX485 blue => B @@ -80,8 +80,8 @@ bool twoController = false; int twoControllerBoolPin = 7; -SoftwareSerial myserial(10, 11); // RX, TX -SoftwareSerial myserial2(8, 9); // RX, TX +SoftwareSerial myserial(8, 9); // RX, TX +SoftwareSerial myserial2(10, 11); // RX, TX #define MAX485_DE 3 diff --git a/serial-to-file.py b/serial-to-file.py index 759432b..68bd66c 100755 --- a/serial-to-file.py +++ b/serial-to-file.py @@ -8,7 +8,7 @@ import serial import time -ser = serial.Serial('/dev/ttyACM0', baudrate = 115200, timeout = 6) +ser = serial.Serial('/dev/ttyUSB0', baudrate = 115200, timeout = 6) outfile = "epever-tracer.json" #time.sleep(3)