google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
340 stars 138 forks source link

USB Coral not recognized as USB Device #102

Closed rubenkr closed 1 year ago

rubenkr commented 1 year ago

Description

Hi, upon connecting my USB Google Coral it gets reconized from the kernel however wrongly assigned as Global Unichip Corp. and not mounted as ttyUSB device. Please see detailed logs in log output below.

Click to expand! ### Issue Type Bug ### Operating System Linux ### Coral Device USB Accelerator ### Other Devices _No response_ ### Programming Language Other ### Relevant Log Output ```shell `➜ pycoral git🙁master) udevadm monitor monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[60040.768179] remove /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 (usb) KERNEL[60040.768248] unbind /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) KERNEL[60040.768291] remove /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) UDEV [60040.772142] remove /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 (usb) UDEV [60040.773722] unbind /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) UDEV [60040.774277] remove /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) KERNEL[60043.545573] add /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) KERNEL[60043.545986] add /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 (usb) KERNEL[60043.546027] bind /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) UDEV [60043.554015] add /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) UDEV [60043.555318] add /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 (usb) UDEV [60043.561337] bind /devices/pci0000:00/0000:00:14.0/usb3/3-1 (usb) ➜ pycoral git:(master) sudo lsusb Bus 001 Device 002: ID 8087:8001 Intel Corp. Integrated Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 006: ID 1a6e:089a Global Unichip Corp. ➜ pycoral git:(master) ls -l /dev/serial/by-id total 0 lrwxrwxrwx 1 root root 13 Dec 30 19:31 usb-Sierra_Wireless_Inc._Sierra_Wireless_EM7345_4G_LTE_013937005624067-if02 -> ../../ttyACM0 lrwxrwxrwx 1 root root 13 Dec 30 19:31 usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_3A_24-if00-port0 -> ../../ttyUSB0 ```
rubenkr commented 1 year ago

Fiddled around and it works. Here are the steps i took: sudo groupadd plugdev sudo usermod -a -G plugdev $USER git clone https://github.com/google-coral/pycoral.git cd pycoral scripts/build.sh bash examples/install_requirements.sh classify_image.py sudo python3 examples/classify_image.py \ --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \ --labels test_data/inat_bird_labels.txt \ --input test_data/parrot.jpg

now Coral should be listed under lsusb as Google Inc.

google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No