it seems, that on Android your Phidget-USB-library is not able to connect multiple USB Phidgets at a time.
Both these threats mention the same issue, without any solution so far:
Phidget on Android with USB-Hub. InterfaceKit & Temp Sensor
viewtopic.php?f=49&t=6947
Interfacing multiple phidgets on Android/JAVA
viewtopic.php?f=49&t=5633
I am experiencing the exact same issue: trying to open more than one RFID 1024_0 phidget, does only pick up one and throws a TIMEOUT PhidgetException afterwards for the second one:
Code: Select all
I/Phidget22: INFO [phidget22usb][2018-08-01T12:25:39]:Found device not in AttachedDevices: /dev/bus/usb/001/049
I/Phidget22: INFO [phidget22usb][2018-08-01T12:25:39]:PhidgetAndroid_openPhidget -> Opening: /dev/bus/usb/001/049 Interface: 0
D/UsbRequestJNI: init
I/Phidget22: INFO [phidget22usb][2018-08-01T12:25:39]:PhidgetAndroid_openPhidget -> Got a successful opened device!
I/Phidget22: INFO [phidget22][2018-08-01T12:25:39]:PhidgetRFID Read-Write(1024) (518886): ReadThread starting
I/Phidget22: INFO [phidget22][2018-08-01T12:25:39]:tagTimerThread running
D/ATTACH_RFID_1: Channel RFID: 0 on device 518886 ATTACHED
...
W/System.err: PhidgetException TIMEOUT (Timed Out)
W/System.err: at com.phidget22.PhidgetBase.open(Native Method)
What I do for all RFID objects:
- Create RFID objects
setDeviceSerialNumbers
setChannels
attach listenerss
open(5000) both channels
Additionally, this is considered already:
In the app code
Code: Select all
com.phidget22.usb.Manager.Initialize(this);
Code: Select all
<uses-feature android:name="android.hardware.usb.host" android:required="false" />
Adding another channel produces the same results: the app is not able to open more than one RFID channel.
Can you please point me into the right direction?
BR
fl0wtec