Page 1 of 1

PhidgetBridge 4-Inputs 1046 conn. to Android 4.4.4 device

Posted: Fri Feb 06, 2015 8:50 am
by justbit
Hello,

I bought the controller PhidgetBridge 4-Inputs 1046 and 2 load cells: 3135 Micro Load Cell (0-50kg) and 3136 Button Load Cell (0-50kg)
it works well if i connect the controller to my notebook with windows 7
but i have a problem when i connect it to my Android device
when i run InterfaceKitUSBExample, all fields remain in the unknown state while if i run HelloWorld example it shows the correct controller info

what is it wrong with the InterfaceKitUSBExample?

I'm using android studio...

thx for any reply,

Riccardo

Re: PhidgetBridge 4-Inputs 1046 conn. to Android 4.4.4 devic

Posted: Fri Feb 06, 2015 10:42 am
by mparadis
The InterfaceKitUSB examples only work on boards that use the InterfaceKitPhidget object like the 1018 or the 1012. The 1046 uses the BridgePhidget object, so it doesn't show up in the text fields. At this time we only have examples for InterfaceKit devices in Android Java.

Re: PhidgetBridge 4-Inputs 1046 conn. to Android 4.4.4 devic

Posted: Fri Feb 06, 2015 10:58 am
by justbit
so how can i set a listener to read data from a load cell connected?
for example my load cell is connected to port 0

Using the HelloWorld example, i think i have to set my listeners after this code section:

device.addAttachListener(new AttachListener() {
public void attached(final AttachEvent attachEvent) {
// Do things after attachment (i.e. read data, control the device)
...



ok i found the right way
thx anyway