EEprom distroys serial connection
when:
#define EEPROM_MODE 0
then serial to usb port on a MEGA is good.
when:
#define EEPROM_MODE 1
serial is not good. We can hear (motors go into break mode) the firmware gets a connection request, but nothing further happens.
Also when:
#define EEPROM_MODE 0
It looks like it connects 3 times:
2019-08-23 09:31:24,400 - Changing monitoring state from "Offline" to "Detecting serial port"
2019-08-23 09:31:24,587 - Serial port list: ['/dev/ttyUSB0']
2019-08-23 09:31:24,588 - Connecting to: /dev/ttyUSB0
2019-08-23 09:31:24,855 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2019-08-23 09:31:24,864 - Connected to: Serial<id=0x70f66e30, open=True>(port='/dev/ttyUSB0', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=3.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2019-08-23 09:31:24,865 - Changing monitoring state from "Opening serial port" to "Connecting"
2019-08-23 09:31:25,774 - Recv: start
2019-08-23 09:31:25,818 - Send: M110
2019-08-23 09:31:25,845 - Recv: Free RAM:2306
2019-08-23 09:31:25,869 - Recv: SelectExtruder:0
2019-08-23 09:31:25,872 - Recv: FlowMultiply:100
2019-08-23 09:31:25,875 - Recv: ok
2019-08-23 09:31:25,883 - Changing monitoring state from "Connecting" to "Operational"
2019-08-23 09:31:25,903 - Send: M110 N0
2019-08-23 09:31:25,964 - Setting REGULAR output 2 to value False
2019-08-23 09:31:25,970 - Setting REGULAR output 3 to value False
2019-08-23 09:31:25,975 - Setting REGULAR output 4 to value False
2019-08-23 09:31:25,979 - Recv: ok
2019-08-23 09:31:25,984 - Send: M115
2019-08-23 09:31:25,988 - Recv: ok
2019-08-23 09:31:25,992 - Send: M21
2019-08-23 09:31:25,996 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:26,008 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:26,034 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:26,041 - Recv: Cap:EEPROM:0
2019-08-23 09:31:26,045 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:26,048 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:26,051 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:26,061 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:26,065 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:26,070 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:26,073 - Recv: PrinterMode:FFF
2019-08-23 09:31:26,077 - Recv: ok
2019-08-23 09:31:26,083 - Send: M117 HMS434 is ready...
2019-08-23 09:31:26,087 - Recv: Unknown command:M21
2019-08-23 09:31:26,090 - Recv: ok
2019-08-23 09:31:26,095 - Send: T0
2019-08-23 09:31:26,099 - Recv: ok
2019-08-23 09:31:26,103 - Send: ENC O2 S0
2019-08-23 09:31:26,105 - Send: ENC O3 S0
2019-08-23 09:31:26,108 - Send: ENC O4 S0
2019-08-23 09:31:26,113 - Recv: SelectExtruder:0
2019-08-23 09:31:26,121 - Send: M21
2019-08-23 09:31:26,134 - Recv: FlowMultiply:100
2019-08-23 09:31:26,138 - Recv: skip 0
2019-08-23 09:31:26,141 - Recv: ok
2019-08-23 09:31:26,144 - Recv: skip 0
2019-08-23 09:31:26,145 - Send: M20
2019-08-23 09:31:26,149 - Recv: ok
2019-08-23 09:31:26,163 - Send: M155 S2
2019-08-23 09:31:26,171 - Recv: skip 0
2019-08-23 09:31:26,177 - Recv: ok
2019-08-23 09:31:26,229 - Recv: ok
2019-08-23 09:31:26,286 - Recv: Unknown command:M21
2019-08-23 09:31:26,294 - Recv: ok
2019-08-23 09:31:26,304 - Recv: Unknown command:M20
2019-08-23 09:31:26,312 - Recv: ok
2019-08-23 09:31:27,193 - Recv: wait
2019-08-23 09:31:27,246 - Recv: T:76.90 /0 B:61.95 /0 B@:0 @:0 T0:76.90 /0 @0:0 T1:47.00 /0 @1:0 T2:41.80 /0 @2:0
2019-08-23 09:31:27,368 - Send: M115
2019-08-23 09:31:27,388 - Recv: ok
2019-08-23 09:31:27,409 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:27,422 - Send: M115
2019-08-23 09:31:27,457 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:27,492 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:27,521 - Recv: Cap:EEPROM:0
2019-08-23 09:31:27,530 - Send: M155 S2
2019-08-23 09:31:27,554 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:27,558 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:27,561 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:27,564 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:27,566 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:27,569 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:27,572 - Recv: PrinterMode:FFF
2019-08-23 09:31:27,575 - Recv: ok
2019-08-23 09:31:27,578 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:27,582 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:27,587 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:27,594 - Send: M155 S2
2019-08-23 09:31:27,594 - Recv: Cap:EEPROM:0
2019-08-23 09:31:27,600 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:27,630 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:27,635 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:27,668 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:27,674 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:27,679 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:27,706 - Recv: PrinterMode:FFF
2019-08-23 09:31:27,720 - Recv: ok
2019-08-23 09:31:27,741 - Recv: ok
2019-08-23 09:31:28,657 - Recv: wait
2019-08-23 09:31:28,709 - Recv: T:76.90 /0 B:61.86 /0 B@:0 @:0 T0:76.90 /0 @0:0 T1:47.00 /0 @1:0 T2:41.80 /0 @2:0
2019-08-23 09:31:24,587 - Serial port list: ['/dev/ttyUSB0']
2019-08-23 09:31:24,588 - Connecting to: /dev/ttyUSB0
2019-08-23 09:31:24,855 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2019-08-23 09:31:24,864 - Connected to: Serial<id=0x70f66e30, open=True>(port='/dev/ttyUSB0', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=3.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2019-08-23 09:31:24,865 - Changing monitoring state from "Opening serial port" to "Connecting"
2019-08-23 09:31:25,774 - Recv: start
2019-08-23 09:31:25,818 - Send: M110
2019-08-23 09:31:25,845 - Recv: Free RAM:2306
2019-08-23 09:31:25,869 - Recv: SelectExtruder:0
2019-08-23 09:31:25,872 - Recv: FlowMultiply:100
2019-08-23 09:31:25,875 - Recv: ok
2019-08-23 09:31:25,883 - Changing monitoring state from "Connecting" to "Operational"
2019-08-23 09:31:25,903 - Send: M110 N0
2019-08-23 09:31:25,964 - Setting REGULAR output 2 to value False
2019-08-23 09:31:25,970 - Setting REGULAR output 3 to value False
2019-08-23 09:31:25,975 - Setting REGULAR output 4 to value False
2019-08-23 09:31:25,979 - Recv: ok
2019-08-23 09:31:25,984 - Send: M115
2019-08-23 09:31:25,988 - Recv: ok
2019-08-23 09:31:25,992 - Send: M21
2019-08-23 09:31:25,996 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:26,008 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:26,034 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:26,041 - Recv: Cap:EEPROM:0
2019-08-23 09:31:26,045 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:26,048 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:26,051 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:26,061 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:26,065 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:26,070 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:26,073 - Recv: PrinterMode:FFF
2019-08-23 09:31:26,077 - Recv: ok
2019-08-23 09:31:26,083 - Send: M117 HMS434 is ready...
2019-08-23 09:31:26,087 - Recv: Unknown command:M21
2019-08-23 09:31:26,090 - Recv: ok
2019-08-23 09:31:26,095 - Send: T0
2019-08-23 09:31:26,099 - Recv: ok
2019-08-23 09:31:26,103 - Send: ENC O2 S0
2019-08-23 09:31:26,105 - Send: ENC O3 S0
2019-08-23 09:31:26,108 - Send: ENC O4 S0
2019-08-23 09:31:26,113 - Recv: SelectExtruder:0
2019-08-23 09:31:26,121 - Send: M21
2019-08-23 09:31:26,134 - Recv: FlowMultiply:100
2019-08-23 09:31:26,138 - Recv: skip 0
2019-08-23 09:31:26,141 - Recv: ok
2019-08-23 09:31:26,144 - Recv: skip 0
2019-08-23 09:31:26,145 - Send: M20
2019-08-23 09:31:26,149 - Recv: ok
2019-08-23 09:31:26,163 - Send: M155 S2
2019-08-23 09:31:26,171 - Recv: skip 0
2019-08-23 09:31:26,177 - Recv: ok
2019-08-23 09:31:26,229 - Recv: ok
2019-08-23 09:31:26,286 - Recv: Unknown command:M21
2019-08-23 09:31:26,294 - Recv: ok
2019-08-23 09:31:26,304 - Recv: Unknown command:M20
2019-08-23 09:31:26,312 - Recv: ok
2019-08-23 09:31:27,193 - Recv: wait
2019-08-23 09:31:27,246 - Recv: T:76.90 /0 B:61.95 /0 B@:0 @:0 T0:76.90 /0 @0:0 T1:47.00 /0 @1:0 T2:41.80 /0 @2:0
2019-08-23 09:31:27,368 - Send: M115
2019-08-23 09:31:27,388 - Recv: ok
2019-08-23 09:31:27,409 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:27,422 - Send: M115
2019-08-23 09:31:27,457 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:27,492 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:27,521 - Recv: Cap:EEPROM:0
2019-08-23 09:31:27,530 - Send: M155 S2
2019-08-23 09:31:27,554 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:27,558 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:27,561 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:27,564 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:27,566 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:27,569 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:27,572 - Recv: PrinterMode:FFF
2019-08-23 09:31:27,575 - Recv: ok
2019-08-23 09:31:27,578 - Recv: FIRMWARE_NAME:Repetier_1.0.3 COMPILED:Aug 23 2019 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:3 REPETIER_PROTOCOL:3
2019-08-23 09:31:27,582 - Recv: Cap:PROGRESS:0
2019-08-23 09:31:27,587 - Recv: Cap:AUTOREPORT_TEMP:1
2019-08-23 09:31:27,594 - Send: M155 S2
2019-08-23 09:31:27,594 - Recv: Cap:EEPROM:0
2019-08-23 09:31:27,600 - Recv: Cap:AUTOLEVEL:1
2019-08-23 09:31:27,630 - Recv: Cap:Z_PROBE:1
2019-08-23 09:31:27,635 - Recv: Cap:SOFTWARE_POWER:0
2019-08-23 09:31:27,668 - Recv: Cap:TOGGLE_LIGHTS:0
2019-08-23 09:31:27,674 - Recv: Cap:PAUSESTOP:1
2019-08-23 09:31:27,679 - Recv: Cap:PREHEAT:1
2019-08-23 09:31:27,706 - Recv: PrinterMode:FFF
2019-08-23 09:31:27,720 - Recv: ok
2019-08-23 09:31:27,741 - Recv: ok
2019-08-23 09:31:28,657 - Recv: wait
2019-08-23 09:31:28,709 - Recv: T:76.90 /0 B:61.86 /0 B@:0 @:0 T0:76.90 /0 @0:0 T1:47.00 /0 @1:0 T2:41.80 /0 @2:0
Comments
2019-08-23 09:31:26,103 - Send: ENC O2 S0
2019-08-23 09:31:26,105 - Send: ENC O3 S0
2019-08-23 09:31:26,108 - Send: ENC O4 S0
are no valid gcodes and get send. Guess the 3 skip 0 are caused by it. That you see capabilities 3 times is just because host sends 3 times M115. No idea why but it is not an error at least.
Reagarding eeprom, try EEPROM_MODE 2 instead. If something is initialized badly but checksum match it can block or use a different baud rate then you think. Changing mode to 2 makes it not match anymore if 1 matched forcing reinit of eeprom.