utkabobr / BeamKlipper

Android Klipper goes brrrr!
GNU General Public License v3.0
64 stars 2 forks source link

serial port permision problem #5

Open rootkgh opened 1 month ago

rootkgh commented 1 month ago

i install ver 1.0 and config set serial but it is not work

do you know how do i permission to your app ?

1.0 error message :

mcu 'mcu': Unable to open port: [Errno 13] Permission denied: '/dev/bus/usb/001/004'

and ver. 1.0.1 is not work auto set serial so i install ver. 1.0

1.0.1 error message :

[Beam] Note: ignoring serial setting /dev/ttyACM0, using '' instead [Beam] Error: failed to configure , no devices found MCU error during connect

utkabobr commented 1 month ago

/dev/bus/usb/001/004 is wrong, real serial device should be found in printer.cfg => Devices (on top of the editor) Auto connection attempts to connect to the first USB device is available at start time, please check that Settings => List USB Devices shows your device at start time

rootkgh commented 1 month ago

i check many case of serial set

i test in android 9 and android 13

  1. auto detect -> it is work [Beam] Note: ignoring serial setting /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0, using 'auto' instead [Beam] Configured 'auto' to '/data/user/0/ru.ytkab0bp.beamklipper/files/serial/_dev_bus_usb_001_003'

  2. reboot, auto detect -> it is work [Beam] Note: ignoring serial setting /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0, using 'auto' instead [Beam] Configured 'auto' to '/data/user/0/ru.ytkab0bp.beamklipper/files/serial/_dev_bus_usb_001_003'

  3. so i set print.cfg and klipper restart, no reboot -> it is work serial : /data/user/0/ru.ytkab0bp.beamklipper/files/serial/_dev_bus_usb_001_003

  4. set serial and reboot -> in android 9 -> it is work in android 13 -> it is not work
    app check usb driver, it show above serial exist, but klipper not found it

error message : mcu 'mcu': Unable to open port: [Errno 2] No such file or directory: '/data/user/0/ru.ytkab0bp.beamklipper/files/serial/_dev_bus_usb_001_003'

i think, app need something in android 13

  1. auto detect, find serial and set serial file something can do something to config's serial

  2. andorid 13 need do something serial file ex. when first time connect usb, do not ask permission

if only a printer, i set autodetect it is work but i use mmu, so use 2 serial port connect , so i can't set auto detect

do you know, why app can't find serial in android 13?

utkabobr commented 1 month ago
  1. You should only use paths from printer.cfg => "Devices" tab under serials devices, it's only reliable source for USB paths for printer.cfg
  2. You should select "Always open in Beam Klipper" on device connection if device does not connect reliably as a serial device
rootkgh commented 1 month ago
  1. i set device tab and auto detect show path
  2. yes I select it, so app is auto run at reboot when reboot no usb device app is not run when reboot usb device connected app is auto run so I think I do it

can you test in android13?

rootkgh commented 1 month ago

it work great, thank you

if you have cfg files, easily setup in no-root phone, only one printer serial auto detect work fine

but i still has serial problem in my case

now, i use print and mmu so before boot, only one print connect and autodetect after boot cfg set serial and mmu usb connect and restart klipper then it work print with mmu

every boot, i have to do until I find solver of serial problem

thanks you

utkabobr commented 1 month ago

You can try VID/PID serial naming in settings if your devices have different VID/PID

rootkgh commented 1 month ago

so sorry previosly, i did set only serial don't know how i find it and set

can you explain?

utkabobr commented 1 month ago

It's in app's settings, "Device naming" => "VID/PID"

rootkgh commented 1 month ago

thanks your reply

i do set print.cfg "serial : xxxx:yyyy" and i select by VID/PID in apps setting

app is close but app rerun check setting it is by path, not changed and klipper error did not found port

i dont know why app setting is not changed and what i do set vid/pid ex print.cfg

check app can be set by vis/pid plz and what I do set others exclude apps settings

rootkgh commented 1 month ago

I success by vid/pid print.cfg is set include path and vid_pid

klipper use serial same my case klipper print.cfg's device search in usb tab but no device in serial tab when smart phone reboot with usb hub

so I use above usb one more attached

i think usb hub and multi usb when boot usb serial driver is incorrect maybe

thanks for your help