Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ydakilux opened this issue Feb 6, 2024 · 0 comments
Open

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

ydakilux opened this issue Feb 6, 2024 · 0 comments
Labels
Installation Issues related to the installation or update of the software

Comments

@ydakilux
Copy link

ydakilux commented Feb 6, 2024

Necessary details:

  • server OS : Raspbian OS

  • server Raspberry pi 3B+

  • serial device : Marlin - FIRMWARE_NAME:Marlin 515Z 2.1.1 (Jan 18 2024 18:04:01) SOURCE_CODE_URL:github.com/MarlinFirmware/Marlin PROTOCOL_VERSION:1.0 MACHINE_TYPE:ZenXY 515Z EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12

  • Hardware board : SKR Pro v1.2

  • commit used (hash) (use the command git rev-parse --short HEAD): From lastest docker

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

@ydakilux ydakilux added the Installation Issues related to the installation or update of the software label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Issues related to the installation or update of the software
Projects
None yet
Development

No branches or pull requests

1 participant