Skip to content

Instantly share code, notes, and snippets.

@stema12
Created July 28, 2016 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stema12/4d89e5b49658a11cf4333a0e3b12aeda to your computer and use it in GitHub Desktop.
Save stema12/4d89e5b49658a11cf4333a0e3b12aeda to your computer and use it in GitHub Desktop.
Connecting to: /dev/ttyACM3
Changing monitoring state from 'Offline' to 'Opening serial port'
Connected to: Serial<id=0x7f3801855910, open=True>(port='/dev/ttyACM3', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from 'Opening serial port' to 'Connecting'
Send: N0 M110 N0*125
Changing monitoring state from 'Connecting' to 'Offline'
Connection closed, closing down monitor
Connecting to: /dev/ttyACM3
Changing monitoring state from 'Offline' to 'Opening serial port'
Connected to: Serial<id=0x7f380184ee10, open=True>(port='/dev/ttyACM3', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from 'Opening serial port' to 'Connecting'
Send: N0 M110 N0*125
Changing monitoring state from 'Connecting' to 'Offline'
Connection closed, closing down monitor
Connecting to: /dev/ttyACM3
Changing monitoring state from 'Offline' to 'Opening serial port'
Connected to: Serial<id=0x7f3801b7bed0, open=True>(port='/dev/ttyACM3', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from 'Opening serial port' to 'Connecting'
Send: N0 M110 N0*125
Changing monitoring state from 'Connecting' to 'Offline'
Connection closed, closing down monitor
Connecting to: /dev/ttyACM4
Connecting to: /dev/ttyACM4
Changing monitoring state from 'Offline' to 'Error: Connection error, see Terminal tab'
Unexpected error while connecting to serial port: /dev/ttyACM4 OSError: '[Errno 16] Device or resource busy: '/dev/ttyACM4'' @ comm.py:_openSerial:1553 (hook default)
Changing monitoring state from 'Offline' to 'Detecting serial port'
Changing monitoring state from 'Detecting serial port' to 'Error: Connection error, see Terminal tab'
Unexpected error while connecting to serial port: AUTO UnboundLocalError: 'local variable 'state_string' referenced before assignment' @ comm.py:_openSerial:1553 (hook m33fio)
Changing monitoring state from 'Offline' to 'Detecting serial port'
Changing monitoring state from 'Detecting serial port' to 'Error: Connection error, see Terminal tab'
Unexpected error while connecting to serial port: AUTO UnboundLocalError: 'local variable 'state_string' referenced before assignment' @ comm.py:_openSerial:1553 (hook m33fio)
Connecting to: /dev/ttyACM4
Changing monitoring state from 'Offline' to 'Opening serial port'
Connected to: Serial<id=0x7f380068da10, open=True>(port='/dev/ttyACM4', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from 'Opening serial port' to 'Connecting'
Send: N0 M110 N0*125
Recv: e1
Recv: wait
Changing monitoring state from 'Connecting' to 'Operational'
Recv: wait
Send: N0 M110 N0*125
Recv: ok REPETIER_PROTOCOL:2 FIRMWARE_NAME:Micro3D FIRMWARE_VERSION:2016040401 MACHINE_TYPE:The_Micro X-SERIAL_NUMBER:BK16050201050035
Send: M117
Unexpected error while writing to serial port: TypeError: 'unsupported operand type(s) for +=: 'int' and 'NoneType'' @ comm.py:_do_send_without_checksum:2039
Connection closed, closing down monitor
Changing monitoring state from 'Operational' to 'Offline: TypeError: 'unsupported operand type(s) for +=: 'int' and 'NoneType'' @ comm.py:_do_send_without_checksum:2039'
@MarcusWolschon
Copy link

I seem to suffer from the same communication error with
**UnboundLocalError: 'local variable 'state_string' referenced before assignment' @ comm.py:_openSerial:1553 (hook default)**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment