PhidgetInterface Fails to Attach.

Supporting 2.6 and up
Post Reply
j_f_paterson
Fresh meat
Posts: 2
Joined: Thu Dec 10, 2020 7:05 pm
Contact:

PhidgetInterface Fails to Attach.

Post by j_f_paterson »

I have an older Phidget 1203_0 (PhidgetTextLCD 2x20 White with PhidgetInterfaceKit 8/8/8) that communicates fine plugged into a Mac running Phidget Control Panel.

Plugged int a new Raspbery Pi 4 B running Raspian on which I have performed the following installs:

sudo apt-get update
sudo apt-get install libusb-dev
sudo apt-get install libusb-1.0-0-dev

Dowwnload libphidget22

tar -zxvf libphidget22-1.6.20201117.tar.gz
cd libphidget22-1.6.20201117/
./configure
make
sudo make install

and running any C example code the code fails to comunicate with my phidget.

When I plug the Phidget into my Rasperry Pi in messages I see:

Dec 11 11:29:48 raspberrypi kernel: [72807.692041] usb 1-1.1: USB disconnect, device number 51
Dec 11 11:32:28 raspberrypi kernel: [72968.012724] usb 1-1.2: new low-speed USB device number 52 using xhci_hcd
Dec 11 11:32:29 raspberrypi kernel: [72968.153712] usb 1-1.2: New USB device found, idVendor=06c2, idProduct=007d, bcdDevice= 1.17
Dec 11 11:32:29 raspberrypi kernel: [72968.153732] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 11 11:32:29 raspberrypi kernel: [72968.153749] usb 1-1.2: Product: PhidgetTextLCD 8/8/8
Dec 11 11:32:29 raspberrypi kernel: [72968.153765] usb 1-1.2: Manufacturer: Phidgets Inc.
Dec 11 11:32:29 raspberrypi kernel: [72968.153780] usb 1-1.2: SerialNumber: 39919
Dec 11 11:32:29 raspberrypi kernel: [72968.173387] hid-generic 0003:06C2:007D.0027: hiddev96,hidraw2: USB HID v1.10 Device [Phidgets Inc. PhidgetTextLCD 8/8/8] on usb-0000:01:00.0-1.2/input0
Dec 11 11:32:29 raspberrypi kernel: [72968.186237] hid-generic 0003:06C2:007D.0028: hiddev97,hidraw3: USB HID v1.10 Device [Phidgets Inc. PhidgetTextLCD 8/8/8] on usb-0000:01:00.0-1.2/input1
Dec 11 11:32:29 raspberrypi mtp-probe: checking bus 1, device 52: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Dec 11 11:32:29 raspberrypi mtp-probe: bus: 1, device: 52 was not an MTP device
Dec 11 11:32:29 raspberrypi mtp-probe: checking bus 1, device 52: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2"
Dec 11 11:32:29 raspberrypi mtp-probe: bus: 1, device: 52 was not an MTP device

which appears to be indicating that there could be an issue with the Pi correctly identifying the Phidget.

What am I missing? What do I need to do?
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: PhidgetInterface Fails to Attach.

Post by Patrick »

Did you try running as root? The kernel messages look fine.

-Patrick
j_f_paterson
Fresh meat
Posts: 2
Joined: Thu Dec 10, 2020 7:05 pm
Contact:

Re: PhidgetInterface Fails to Attach.

Post by j_f_paterson »

Hi Patrick,
I wasn't sure that it wasn't a power issue so I even borrowed a powered USB hub but when I run it as root it attaches even without the powered hub. Purely a permissions problem.

Thanks for that.

John
bigl00z3
Fresh meat
Posts: 3
Joined: Mon Jan 11, 2021 2:14 pm
Contact:

Re: PhidgetInterface Fails to Attach.

Post by bigl00z3 »

I don't know if it could be the same issue I just had.
I had to run everything as root to make them work.

just in case it can help you,check:
viewtopic.php?f=2&t=10213

check the udev part is done and if it still fails to attach as a normal user my fix was to just reinstall udev (check the above post).

Nico
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests