Discussion:
[Shimmer-users] Connecting to multiple sensors unstable
Markus Gräb
2014-06-27 13:33:31 UTC
Permalink
Hello,

I have problems to connect to multiple sensors in Android.

I'm currently using the shimmer2r sensors with BtStream 1.2 Firmware and
the 2.5 library.


I currently can't connect to more than 2 sensors at the same time.
When I try to connect to a third sensor, one connection always dies:

W/System.err: java.io.IOException: bt socket closed, read return: -1
W/System.err: at
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:474)
W/System.err: at
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
W/System.err: at
com.shimmerresearch.android.Shimmer.readBytes(Shimmer.java:1007)


With earlier versions the application worked quite stable, but currently
I have no idea why this is happening.
Has anybody similar problems?


Sincerely
Markus Gräb
Jong Chern Lim
2014-06-30 05:47:17 UTC
Permalink
Hi Markus,

Sorry to hear about your troubles. What example are you working with to
connect the multiple sensors? Did you manage to connect multiple shimmer
devices using the MultiShimmerTemplate example?

Best regards,
Jong Chern
Post by Markus Gräb
Hello,
I have problems to connect to multiple sensors in Android.
I'm currently using the shimmer2r sensors with BtStream 1.2 Firmware and
the 2.5 library.
I currently can't connect to more than 2 sensors at the same time.
W/System.err﹕ java.io.IOException: bt socket closed, read return: -1
W/System.err﹕ at
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:474)
W/System.err﹕ at
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
W/System.err﹕ at
com.shimmerresearch.android.Shimmer.readBytes(Shimmer.java:1007)
With earlier versions the application worked quite stable, but currently I
have no idea why this is happening.
Has anybody similar problems?
Sincerely
Markus GrÀb
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
Markus Gräb
2014-07-03 08:29:06 UTC
Permalink
Hi Jong,

I'm working on an own application which is not based on the examples, in
the past it worked more reliable (older AndroidInstrumentDriver and
older Firmware versions).

My main development platform is a Samsung Galaxy S4.

With the MultiShimmerSync application I can connect to all sensors, but
the third sensor always fails to connect on the first tries.


Best regards,
Markus GrÀb
Post by Jong Chern Lim
Hi Markus,
Sorry to hear about your troubles. What example are you working with
to connect the multiple sensors? Did you manage to connect multiple
shimmer devices using the MultiShimmerTemplate example?
Best regards,
Jong Chern
Hello,
I have problems to connect to multiple sensors in Android.
I'm currently using the shimmer2r sensors with BtStream 1.2
Firmware and the 2.5 library.
I currently can't connect to more than 2 sensors at the same time.
W/System.err﹕ java.io.IOException: bt socket closed, read return: -1
W/System.err﹕ at
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:474)
W/System.err﹕ at
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
W/System.err﹕ at
com.shimmerresearch.android.Shimmer.readBytes(Shimmer.java:1007)
With earlier versions the application worked quite stable, but
currently I have no idea why this is happening.
Has anybody similar problems?
Sincerely
Markus GrÀb
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
Continue reading on narkive:
Loading...