connection issue "device is in use"

Supporting 2.6 and up
Post Reply
blairjamieson
Fresh meat
Posts: 1
Joined: Thu Nov 30, 2023 5:09 pm
Contact:

connection issue "device is in use"

Post by blairjamieson »

I get the following error using python on ubuntu 22.04. There are no other programs running that are connected to the phidget? I tried disconnecting and reconnecting the USB cable to the VINT hub, but no luck.

>>> from Phidget22.Phidget import *
>>> from Phidget22.Devices.HumiditySensor import *
>>> ch_hum = HumiditySensor()
>>> ch_hum.setHubPort(5)
>>> ch_hum.setDeviceSerialNumber( 665275 )
>>> ch_hum.openWaitForAttachment(10000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/photogrammetry/.local/lib/python3.10/site-packages/Phidget22/Phidget dot py", line 621, in openWaitForAttachment
raise PhidgetException(result)
Phidget22.PhidgetException.PhidgetException: PhidgetException 0x03 (Timed Out)
Local device: <HUM1001 (Humidity Phidget) v102 -> HUB0001 Port:5 S/N:665275> open failed because device is in use. Check that the Phidget is not already open in another program, such as the Phidget Control Panel, or another program you are developing.


Here is the output from phidget admin:

photogrammetry@supermicro:~/Downloads/HelloWorld_Example$ phidget22admin -d
(665275) 6-Port USB VINT Hub Phidget v114
(665275//0) VINT Hub
(665275/4) Spatial Phidget v212
(665275/4/0) 3-Axis Accelerometer
(665275/4/0) 3-Axis Gyroscope
(665275/4/0) 3-Axis Magnetometer
(665275/4/0) Spatial
(665275/5) Humidity Phidget v102
(665275/5/0) Humidity Sensor
(665275/5/0) Temperature Sensor
(665275/0) Hub Port - Digital Input Mode v100
(665275/0/0) Digital Input
(665275/1) Hub Port - Digital Input Mode v100
(665275/1/0) Digital Input
(665275/2) Hub Port - Digital Input Mode v100
(665275/2/0) Digital Input
(665275/3) Hub Port - Digital Input Mode v100
(665275/3/0) Digital Input
(665275/4) Hub Port - Digital Input Mode v100
(665275/4/0) Digital Input
(665275/0) Hub Port - Digital Output Mode v110
(665275/0/0) Digital Output
(665275/5) Hub Port - Digital Input Mode v100
(665275/5/0) Digital Input
(665275/1) Hub Port - Digital Output Mode v110
(665275/1/0) Digital Output
(665275/2) Hub Port - Digital Output Mode v110
(665275/2/0) Digital Output
(665275/3) Hub Port - Digital Output Mode v110
(665275/3/0) Digital Output
(665275/4) Hub Port - Digital Output Mode v110
(665275/4/0) Digital Output
(665275/5) Hub Port - Digital Output Mode v110
(665275/5/0) Digital Output
(665275/0) Hub Port - Voltage Input Mode v110
(665275/0/0) Voltage Input
(665275/1) Hub Port - Voltage Input Mode v110
(665275/1/0) Voltage Input
(665275/2) Hub Port - Voltage Input Mode v110
(665275/2/0) Voltage Input
(665275/3) Hub Port - Voltage Input Mode v110
(665275/3/0) Voltage Input
(665275/4) Hub Port - Voltage Input Mode v110
(665275/4/0) Voltage Input
(665275/5) Hub Port - Voltage Input Mode v110
(665275/5/0) Voltage Input
(665275/0) Hub Port - Voltage Ratio Mode v100
(665275/0/0) Voltage Ratio Input
(665275/1) Hub Port - Voltage Ratio Mode v100
(665275/1/0) Voltage Ratio Input
(665275/2) Hub Port - Voltage Ratio Mode v100
(665275/2/0) Voltage Ratio Input
(665275/3) Hub Port - Voltage Ratio Mode v100
(665275/3/0) Voltage Ratio Input
(665275/4) Hub Port - Voltage Ratio Mode v100
(665275/4/0) Voltage Ratio Input
(665275/5) Hub Port - Voltage Ratio Mode v100
(665275/5/0) Voltage Ratio Input

Is there any way to fix this?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 10 guests