xbst / KUSBA

Klipper USB Accelerometer Project
GNU General Public License v3.0
213 stars 25 forks source link

cannot get MCU address via ls /dev/serial/by-id/* #16

Closed marcosgeorgopoulos closed 1 year ago

marcosgeorgopoulos commented 1 year ago

Hi,

I've just received from kusba and I am unable to to get the adxl mcu address.

I compiled the klipper.uf2 file as instructed.

I copied it across to the mount point, my distro auto mounted it

"/dev/sdb1 on /media/pi/RPI-RP2 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)"

but I tried mounting to /mnt as well and copied across the file, then unmounted.

I'm not sure if its expected but an ls on the device doesn't show the uf2 file, it does show any other file I copy across but and ls just shows

pi@printer:~ $ ls /media/pi/RPI-RP2/ INDEX.HTM INFO_UF2.TXT

Here is the device being mounted from /var/messages

[ 2053.062303] sd 1:0:0:0: [sdb] Attached SCSI removable disk [ 2170.531145] usb 1-1.1: USB disconnect, device number 11 [ 2173.366297] usb 1-1.1: new full-speed USB device number 12 using xhci_hcd [ 2173.501450] usb 1-1.1: New USB device found, idVendor=2e8a, idProduct=0003, bcdDevice= 1.00 [ 2173.501479] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2173.501500] usb 1-1.1: Product: RP2 Boot [ 2173.501518] usb 1-1.1: Manufacturer: Raspberry Pi [ 2173.501534] usb 1-1.1: SerialNumber: E0C9125B0D9B [ 2173.508665] usb-storage 1-1.1:1.0: USB Mass Storage device detected [ 2173.514383] scsi host1: usb-storage 1-1.1:1.0 [ 2174.559511] scsi 1:0:0:0: Direct-Access RPI RP2 3 PQ: 0 ANSI: 2 [ 2174.560261] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 2174.571427] sd 1:0:0:0: [sdb] 262144 512-byte logical blocks: (134 MB/128 MiB) [ 2174.573559] sd 1:0:0:0: [sdb] Write Protect is off [ 2174.573586] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00 [ 2174.576013] sd 1:0:0:0: [sdb] No Caching mode page found [ 2174.576037] sd 1:0:0:0: [sdb] Assuming drive cache: write through [ 2174.588001] sdb: sdb1 [ 2174.600077] sd 1:0:0:0: [sdb] Attached SCSI removable disk

Now my problem is I'm trying to get the adxl mcu address but ls /dev/serial/by-id/* does not work.

Maybe I'm just doing something silly. My RPI isn't currently plugged into my printer? Does it have to be? I didn't think so because I thought we are getting the MCU address of the KUSBA?

Thank you.

marcosgeorgopoulos commented 1 year ago

ok... update, I'm silly... it seems I had to give the box a reboot and connect the device without holding the button for it to show up.