texx00 / sandypi

The ultimate controller for sand tables
Other
27 stars 5 forks source link

[I/U] Unable to connect to Marlin Board #94

Open ydakilux opened 5 months ago

ydakilux commented 5 months ago

Necessary details:

Description of the problem: Unable to connect to the Marlin board & send GCode to it When I click on connect, SandyPi tells me I'm connected, but when I try to send GCode, nothing is added (via the manual control tab). Config SandyPi

Connection OK

I'm able to command the board and the ZenXY via my PC and using Pronterface using 250000 I'm also able to connect the Marlin board via a OctoPrint setup on another Raspberry using /dev/ttyACM0 config OctoPrint. And I was also able to send Gode command to it

Necessary attachments:

Logs from the docker:

Prestart checks
Prestart checks done

To run the server use 'ip:5000' in your browser with one of the following ip adresses: ['127.0.0.1', '172.18.0.3']

[2024-02-06 11:15:51,622] ERROR in server.hw_controller.feeder (device_serial.py): Port must be configured before it can be used.
Traceback (most recent call last):
  File "/sandypi/server/hw_controller/device_serial.py", line 34, in __init__
    self.serial.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 316, in open
    raise SerialException("Port must be configured before it can be used.")
serial.serialutil.SerialException: Port must be configured before it can be used.
[2024-02-06 11:15:51,627] ERROR in server.hw_controller.feeder (device_serial.py): Serial not available. Are you sure the device is connected and is not in use by other softwares? (Will use the fake serial)
/sandypi/server/hw_controller/leds/leds_types/dimmable.py:29: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(self.pin, GPIO.OUT)
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
Logger 'app' level: 30 (WARNING)
Logger 'feeder' level: 30 (WARNING)
 * Serving Flask app 'server' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off

To run the server use 'ip:5000' in your browser with one of the following ip adresses: ['127.0.0.1', '172.18.0.3']

[2024-02-06 11:16:02,927] ERROR in server.hw_controller.feeder (device_serial.py): Port must be configured before it can be used.
Traceback (most recent call last):
  File "/sandypi/server/hw_controller/device_serial.py", line 34, in __init__
    self.serial.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 316, in open
    raise SerialException("Port must be configured before it can be used.")
serial.serialutil.SerialException: Port must be configured before it can be used.
[2024-02-06 11:16:02,932] ERROR in server.hw_controller.feeder (device_serial.py): Serial not available. Are you sure the device is connected and is not in use by other softwares? (Will use the fake serial)
/sandypi/server/hw_controller/leds/leds_types/dimmable.py:29: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(self.pin, GPIO.OUT)
[2024-02-06 11:16:03,005] WARNING in werkzeug (_internal.py):  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
[2024-02-06 11:16:05,006] ERROR in server.hw_controller.feeder (device_serial.py): [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sandypi/server/hw_controller/device_serial.py", line 34, in __init__
    self.serial.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[2024-02-06 11:16:05,008] ERROR in server.hw_controller.feeder (device_serial.py): Serial not available. Are you sure the device is connected and is not in use by other softwares? (Will use the fake serial)
INFO:server:Leds controller started
INFO:server:Leds controller started
INFO:server:Connecting device
[2024-02-06 11:18:35,079] ERROR in server.hw_controller.feeder (device_serial.py): [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sandypi/server/hw_controller/device_serial.py", line 34, in __init__
    self.serial.open()
  File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[2024-02-06 11:18:35,082] ERROR in server.hw_controller.feeder (device_serial.py): Serial not available. Are you sure the device is connected and is not in use by other softwares? (Will use the fake serial)
INFO:server:Leds controller started
INFO:server:Connecting device
[2024-02-06 11:20:05,221] ERROR in server.hw_controller.feeder (feeder.py): Line not received correctly. Resending: N2 M110 N2 *93
[2024-02-06 11:20:05,224] ERROR in server.hw_controller.feeder (feeder.py): Line not received correctly. Resending: N3 M114 *4
[2024-02-06 11:20:05,233] ERROR in server.hw_controller.feeder (feeder.py): Line not received correctly. Resending: N4 M114 *3

Help welcome