Discussion:
[Shimmer-users] ShimmerExample issue with Shimmer3
Ulf Jensen
2014-03-06 13:12:19 UTC
Permalink
Hello,
I am trying to create an Android App based on the Shimmer Android Driver Library 2.2. I followed the user manual (Shimmer_Android_Instrument_Driver_User_Manual_rev2.2a.pdf) to run the ShimmerExample application. I flashed the recent firmware (BtStream_v0.2.0_shimmer3.txt) and replaced the bluetoothAddress with the correct device address from one of our sensors. When I run the app, the sensor LED turns blue but the streaming won’t start and the connection state ends up in “No state”. I get this log output from the Shimmer Example application:

03-06 13:55:54.291: D/Shimmer(32745): Start of Default ConnectThread
03-06 13:55:54.301: D/ConnectionStatus(32745): Trying
03-06 13:55:54.311: W/BluetoothAdapter(32745): getBluetoothService() called with no BluetoothManagerCallback

03-06 13:55:54.311: D/BluetoothSocket(32745): connect(), SocketState: INIT, mPfd: {ParcelFileDescriptor: FileDescriptor[48]}
03-06 13:55:54.321: D/ConnectionStatus(32745): Connecting

03-06 13:55:55.391: D/Shimmer(32745): Command Transmitted: [3]
03-06 13:55:55.391: D/Shimmer(32745): Command transmitted: 00:06:66:64:71:82; Command Issued: 3
03-06 13:55:55.391: D/ShimmerTimer(32745): Waiting for ack/response for command: 3
03-06 13:55:57.391: D/ShimmerSamlingRate(32745): Get Sampling Rate Timeout
03-06 13:55:57.391: D/Shimmer(32745): Command Transmitted: [46]
03-06 13:55:57.391: D/Shimmer(32745): Command transmitted: 00:06:66:64:71:82; Command Issued: 46
03-06 13:55:57.391: D/ShimmerTimer(32745): Waiting for ack/response for command: 46
...
03-06 13:55:59.391: D/ShimmerFW(32745): FW Response Timeout
03-06 13:55:59.401: D/Shimmer(32745): Command Transmitted: [3]
03-06 13:55:59.401: D/Shimmer(32745): Command transmitted: 00:06:66:64:71:82; Command Issued: 3
03-06 13:55:59.401: D/ShimmerTimer(32745): Waiting for ack/response for command: 3
03-06 13:56:01.401: D/Shimmer(32745): Command 3 failed; Killing Connection
03-06 13:56:01.401: D/ConnectionStatus(32745): No State

What is going wrong here?
Can somebody provide a working example for the connection to a Shimmer3 sensor?

Cheers,
Ulf Jensen

Dipl.-Inf. Ulf Jensen
Digital Sports Group

Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg
Haberstr. 2, 91058 Erlangen, Germany

Phone: +49 (0)9131 / 85-27890
E-Mail: ***@informatik.uni-erlangen.de
Web: www5.informatik.uni-erlangen.de/~jensen
Jong Chern Lim
2014-03-06 13:15:43 UTC
Permalink
Hi Ulf,

Is your Shimmer device fully charged? Can you switch the device off and back
on and try connecting again?

Best regards,
JC

-----Original Message-----
From: shimmer-users-***@eecs.harvard.edu
[mailto:shimmer-users-***@eecs.harvard.edu] On Behalf Of Ulf Jensen
Sent: 06 March 2014 13:12
To: shimmer-***@eecs.harvard.edu
Subject: [Shimmer-users] ShimmerExample issue with Shimmer3

Hello,
I am trying to create an Android App based on the Shimmer Android Driver
Library 2.2. I followed the user manual
(Shimmer_Android_Instrument_Driver_User_Manual_rev2.2a.pdf) to run the
ShimmerExample application. I flashed the recent firmware
(BtStream_v0.2.0_shimmer3.txt) and replaced the bluetoothAddress with the
correct device address from one of our sensors. When I run the app, the
sensor LED turns blue but the streaming won't start and the connection state
ends up in "No state". I get this log output from the Shimmer Example
application:
.
03-06 13:55:54.291: D/Shimmer(32745): Start of Default ConnectThread
03-06 13:55:54.301: D/ConnectionStatus(32745): Trying
03-06 13:55:54.311: W/BluetoothAdapter(32745): getBluetoothService() called
with no BluetoothManagerCallback .
03-06 13:55:54.311: D/BluetoothSocket(32745): connect(), SocketState: INIT,
mPfd: {ParcelFileDescriptor: FileDescriptor[48]}
03-06 13:55:54.321: D/ConnectionStatus(32745): Connecting .
03-06 13:55:55.391: D/Shimmer(32745): Command Transmitted: [3]
03-06 13:55:55.391: D/Shimmer(32745): Command transmitted:
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:55.391: D/ShimmerTimer(32745): Waiting for ack/response for
command: 3
03-06 13:55:57.391: D/ShimmerSamlingRate(32745): Get Sampling Rate Timeout
03-06 13:55:57.391: D/Shimmer(32745): Command Transmitted: [46]
03-06 13:55:57.391: D/Shimmer(32745): Command transmitted:
00:06:66:64:71:82; Command Issued: 46
03-06 13:55:57.391: D/ShimmerTimer(32745): Waiting for ack/response for
command: 46 ...
03-06 13:55:59.391: D/ShimmerFW(32745): FW Response Timeout
03-06 13:55:59.401: D/Shimmer(32745): Command Transmitted: [3]
03-06 13:55:59.401: D/Shimmer(32745): Command transmitted:
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:59.401: D/ShimmerTimer(32745): Waiting for ack/response for
command: 3
03-06 13:56:01.401: D/Shimmer(32745): Command 3 failed; Killing Connection
03-06 13:56:01.401: D/ConnectionStatus(32745): No State

What is going wrong here?
Can somebody provide a working example for the connection to a Shimmer3
sensor?

Cheers,
Ulf Jensen

Dipl.-Inf. Ulf Jensen
Digital Sports Group

Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg Haberstr. 2, 91058
Erlangen, Germany

Phone: +49 (0)9131 / 85-27890
E-Mail: ***@informatik.uni-erlangen.de
Web: www5.informatik.uni-erlangen.de/~jensen
Ulf Jensen
2014-03-06 14:19:20 UTC
Permalink
Hi JC,
I made sure that the device is fully charged and switched it off and back on. It seems like it’s getting further but still no streaming. Here’s the current log:

03-06 15:15:15.521: D/Shimmer(6916): Start of Default ConnectThread
03-06 15:15:15.521: D/ConnectionStatus(6916): Trying
03-06 15:15:15.521: W/BluetoothAdapter(6916): getBluetoothService() called with no BluetoothManagerCallback
...
03-06 15:15:15.521: D/BluetoothSocket(6916): connect(), SocketState: INIT, mPfd: {ParcelFileDescriptor: FileDescriptor[46]}
03-06 15:15:15.531: D/ConnectionStatus(6916): Connecting

03-06 15:15:18.781: D/Shimmer(6916): Command Transmitted: [3]
03-06 15:15:18.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 3
03-06 15:15:18.781: D/ShimmerTimer(6916): Waiting for ack/response for command: 3
03-06 15:15:18.851: D/Shimmer(6916): Ack Received for Command: 3
03-06 15:15:18.851: D/Shimmer(6916): First Time : [4]
03-06 15:15:18.851: D/Shimmer(6916): First Time : [-128]
03-06 15:15:18.851: D/Shimmer(6916): First Time : [2]
03-06 15:15:20.781: D/ShimmerSamlingRate(6916): Get Sampling Rate Timeout
03-06 15:15:20.781: D/Shimmer(6916): Command Transmitted: [46]
03-06 15:15:20.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 46
03-06 15:15:20.781: D/ShimmerTimer(6916): Waiting for ack/response for command: 46
03-06 15:15:20.821: D/Shimmer(6916): Ack Received for Command: 46
03-06 15:15:21.021: D/Shimmer(6916): FW Version Response Received: BtStream 0.1.0
03-06 15:15:21.021: D/Shimmer(6916): Command Transmitted: [63]
03-06 15:15:21.021: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 63
03-06 15:15:21.021: D/ShimmerTimer(6916): Waiting for ack/response for command: 63
03-06 15:15:21.051: D/Shimmer(6916): Ack Received for Command: 63

03-06 15:15:21.161: D/Shimmer(6916): Shimmer Version (HW) Response Received: [3]
03-06 15:15:21.161: D/Shimmer(6916): Command Transmitted: [3]
03-06 15:15:21.161: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 3
03-06 15:15:21.161: D/ShimmerTimer(6916): Waiting for ack/response for command: 3
03-06 15:15:21.191: D/Shimmer(6916): Ack Received for Command: 3
03-06 15:15:21.191: D/Shimmer(6916): Sampling Rate Response Received: 51.2
03-06 15:15:21.191: D/Shimmer(6916): Command Transmitted: [57]
03-06 15:15:21.191: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 57
03-06 15:15:21.191: D/ShimmerTimer(6916): Waiting for ack/response for command: 57
03-06 15:15:21.231: D/Shimmer(6916): Ack Received for Command: 57
03-06 15:15:21.231: D/Shimmer(6916): Command Transmitted: [11]
03-06 15:15:21.231: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 11
03-06 15:15:21.231: D/ShimmerTimer(6916): Waiting for ack/response for command: 11
03-06 15:15:21.261: D/Shimmer(6916): Ack Received for Command: 11
03-06 15:15:21.261: D/Shimmer(6916): Command Transmitted: [75]
03-06 15:15:21.261: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 75
03-06 15:15:21.261: D/ShimmerTimer(6916): Waiting for ack/response for command: 75
03-06 15:15:21.301: D/Shimmer(6916): Ack Received for Command: 75
03-06 15:15:21.301: D/Shimmer(6916): Command Transmitted: [66]
03-06 15:15:21.301: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 66
03-06 15:15:21.301: D/ShimmerTimer(6916): Waiting for ack/response for command: 66
03-06 15:15:21.331: D/Shimmer(6916): Ack Received for Command: 66
03-06 15:15:21.331: D/Shimmer(6916): Command Transmitted: [44]
03-06 15:15:21.331: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 44
03-06 15:15:21.331: D/ShimmerTimer(6916): Waiting for ack/response for command: 44
03-06 15:15:21.371: D/Shimmer(6916): Ack Received for Command: 44
03-06 15:15:21.781: D/Shimmer(6916): All Calibration Response Received
03-06 15:15:21.781: D/Shimmer(6916): Command Transmitted: [89]
03-06 15:15:21.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82; Command Issued: 89
03-06 15:15:21.781: D/ShimmerTimer(6916): Waiting for ack/response for command: 89

03-06 15:15:33.771: D/Shimmer(6916): Command 89 failed; Killing Connection
03-06 15:15:33.771: D/ConnectionStatus(6916): No State

Cheers,
Ulf
Post by Jong Chern Lim
Hi Ulf,
Is your Shimmer device fully charged? Can you switch the device off and back
on and try connecting again?
Best regards,
JC
-----Original Message-----
Sent: 06 March 2014 13:12
Subject: [Shimmer-users] ShimmerExample issue with Shimmer3
Hello,
I am trying to create an Android App based on the Shimmer Android Driver
Library 2.2. I followed the user manual
(Shimmer_Android_Instrument_Driver_User_Manual_rev2.2a.pdf) to run the
ShimmerExample application. I flashed the recent firmware
(BtStream_v0.2.0_shimmer3.txt) and replaced the bluetoothAddress with the
correct device address from one of our sensors. When I run the app, the
sensor LED turns blue but the streaming won't start and the connection state
ends up in "No state". I get this log output from the Shimmer Example
.
03-06 13:55:54.291: D/Shimmer(32745): Start of Default ConnectThread
03-06 13:55:54.301: D/ConnectionStatus(32745): Trying
03-06 13:55:54.311: W/BluetoothAdapter(32745): getBluetoothService() called
with no BluetoothManagerCallback .
03-06 13:55:54.311: D/BluetoothSocket(32745): connect(), SocketState: INIT,
mPfd: {ParcelFileDescriptor: FileDescriptor[48]}
03-06 13:55:54.321: D/ConnectionStatus(32745): Connecting .
03-06 13:55:55.391: D/Shimmer(32745): Command Transmitted: [3]
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:55.391: D/ShimmerTimer(32745): Waiting for ack/response for command: 3
03-06 13:55:57.391: D/ShimmerSamlingRate(32745): Get Sampling Rate Timeout
03-06 13:55:57.391: D/Shimmer(32745): Command Transmitted: [46]
00:06:66:64:71:82; Command Issued: 46
03-06 13:55:57.391: D/ShimmerTimer(32745): Waiting for ack/response for
command: 46 ...
03-06 13:55:59.391: D/ShimmerFW(32745): FW Response Timeout
03-06 13:55:59.401: D/Shimmer(32745): Command Transmitted: [3]
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:59.401: D/ShimmerTimer(32745): Waiting for ack/response for command: 3
03-06 13:56:01.401: D/Shimmer(32745): Command 3 failed; Killing Connection
03-06 13:56:01.401: D/ConnectionStatus(32745): No State
What is going wrong here?
Can somebody provide a working example for the connection to a Shimmer3 sensor?
Cheers,
Ulf Jensen
Dipl.-Inf. Ulf Jensen
Digital Sports Group
Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg Haberstr. 2, 91058
Erlangen, Germany
Phone: +49 (0)9131 / 85-27890
Web: www5.informatik.uni-erlangen.de/~jensen
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
Dipl.-Inf. Ulf Jensen
Digital Sports Group

Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg
Haberstr. 2, 91058 Erlangen, Germany

Phone: +49 (0)9131 / 85-27890
E-Mail: ***@informatik.uni-erlangen.de
Web: www5.informatik.uni-erlangen.de/~jensen
Jong Chern Lim
2014-03-06 15:05:15 UTC
Permalink
Hi Ulf,

This indicated 'FW Version Response Received: BtStream 0.1.0' that you are
not using 0.2. Can you update the firmware on your Shimmer3. Hope that
helps.

Best regards,
JC

-----Original Message-----
From: shimmer-users-***@eecs.harvard.edu
[mailto:shimmer-users-***@eecs.harvard.edu] On Behalf Of Ulf Jensen
Sent: 06 March 2014 14:19
To: shimmer-***@eecs.harvard.edu
Subject: Re: [Shimmer-users] ShimmerExample issue with Shimmer3

Hi JC,
I made sure that the device is fully charged and switched it off and back
on. It seems like it's getting further but still no streaming. Here's the
current log:

03-06 15:15:15.521: D/Shimmer(6916): Start of Default ConnectThread
03-06 15:15:15.521: D/ConnectionStatus(6916): Trying
03-06 15:15:15.521: W/BluetoothAdapter(6916): getBluetoothService() called
with no BluetoothManagerCallback ...
03-06 15:15:15.521: D/BluetoothSocket(6916): connect(), SocketState: INIT,
mPfd: {ParcelFileDescriptor: FileDescriptor[46]}
03-06 15:15:15.531: D/ConnectionStatus(6916): Connecting .
03-06 15:15:18.781: D/Shimmer(6916): Command Transmitted: [3]
03-06 15:15:18.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 3
03-06 15:15:18.781: D/ShimmerTimer(6916): Waiting for ack/response for
command: 3
03-06 15:15:18.851: D/Shimmer(6916): Ack Received for Command: 3
03-06 15:15:18.851: D/Shimmer(6916): First Time : [4]
03-06 15:15:18.851: D/Shimmer(6916): First Time : [-128]
03-06 15:15:18.851: D/Shimmer(6916): First Time : [2]
03-06 15:15:20.781: D/ShimmerSamlingRate(6916): Get Sampling Rate Timeout
03-06 15:15:20.781: D/Shimmer(6916): Command Transmitted: [46]
03-06 15:15:20.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 46
03-06 15:15:20.781: D/ShimmerTimer(6916): Waiting for ack/response for
command: 46
03-06 15:15:20.821: D/Shimmer(6916): Ack Received for Command: 46
03-06 15:15:21.021: D/Shimmer(6916): FW Version Response Received: BtStream
0.1.0
03-06 15:15:21.021: D/Shimmer(6916): Command Transmitted: [63]
03-06 15:15:21.021: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 63
03-06 15:15:21.021: D/ShimmerTimer(6916): Waiting for ack/response for
command: 63
03-06 15:15:21.051: D/Shimmer(6916): Ack Received for Command: 63 .
03-06 15:15:21.161: D/Shimmer(6916): Shimmer Version (HW) Response Received:
[3]
03-06 15:15:21.161: D/Shimmer(6916): Command Transmitted: [3]
03-06 15:15:21.161: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 3
03-06 15:15:21.161: D/ShimmerTimer(6916): Waiting for ack/response for
command: 3
03-06 15:15:21.191: D/Shimmer(6916): Ack Received for Command: 3
03-06 15:15:21.191: D/Shimmer(6916): Sampling Rate Response Received: 51.2
03-06 15:15:21.191: D/Shimmer(6916): Command Transmitted: [57]
03-06 15:15:21.191: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 57
03-06 15:15:21.191: D/ShimmerTimer(6916): Waiting for ack/response for
command: 57
03-06 15:15:21.231: D/Shimmer(6916): Ack Received for Command: 57
03-06 15:15:21.231: D/Shimmer(6916): Command Transmitted: [11]
03-06 15:15:21.231: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 11
03-06 15:15:21.231: D/ShimmerTimer(6916): Waiting for ack/response for
command: 11
03-06 15:15:21.261: D/Shimmer(6916): Ack Received for Command: 11
03-06 15:15:21.261: D/Shimmer(6916): Command Transmitted: [75]
03-06 15:15:21.261: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 75
03-06 15:15:21.261: D/ShimmerTimer(6916): Waiting for ack/response for
command: 75
03-06 15:15:21.301: D/Shimmer(6916): Ack Received for Command: 75
03-06 15:15:21.301: D/Shimmer(6916): Command Transmitted: [66]
03-06 15:15:21.301: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 66
03-06 15:15:21.301: D/ShimmerTimer(6916): Waiting for ack/response for
command: 66
03-06 15:15:21.331: D/Shimmer(6916): Ack Received for Command: 66
03-06 15:15:21.331: D/Shimmer(6916): Command Transmitted: [44]
03-06 15:15:21.331: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 44
03-06 15:15:21.331: D/ShimmerTimer(6916): Waiting for ack/response for
command: 44
03-06 15:15:21.371: D/Shimmer(6916): Ack Received for Command: 44
03-06 15:15:21.781: D/Shimmer(6916): All Calibration Response Received
03-06 15:15:21.781: D/Shimmer(6916): Command Transmitted: [89]
03-06 15:15:21.781: D/Shimmer(6916): Command transmitted: 00:06:66:64:71:82;
Command Issued: 89
03-06 15:15:21.781: D/ShimmerTimer(6916): Waiting for ack/response for
command: 89 .
03-06 15:15:33.771: D/Shimmer(6916): Command 89 failed; Killing Connection
03-06 15:15:33.771: D/ConnectionStatus(6916): No State

Cheers,
Ulf
Post by Jong Chern Lim
Hi Ulf,
Is your Shimmer device fully charged? Can you switch the device off
and back on and try connecting again?
Best regards,
JC
-----Original Message-----
Sent: 06 March 2014 13:12
Subject: [Shimmer-users] ShimmerExample issue with Shimmer3
Hello,
I am trying to create an Android App based on the Shimmer Android
Driver Library 2.2. I followed the user manual
(Shimmer_Android_Instrument_Driver_User_Manual_rev2.2a.pdf) to run the
ShimmerExample application. I flashed the recent firmware
(BtStream_v0.2.0_shimmer3.txt) and replaced the bluetoothAddress with
the correct device address from one of our sensors. When I run the
app, the sensor LED turns blue but the streaming won't start and the
connection state ends up in "No state". I get this log output from the
Shimmer Example
.
03-06 13:55:54.291: D/Shimmer(32745): Start of Default ConnectThread
03-06 13:55:54.301: D/ConnectionStatus(32745): Trying
03-06 13:55:54.311: W/BluetoothAdapter(32745): getBluetoothService()
called with no BluetoothManagerCallback .
03-06 13:55:54.311: D/BluetoothSocket(32745): connect(), SocketState: INIT,
mPfd: {ParcelFileDescriptor: FileDescriptor[48]}
03-06 13:55:54.321: D/ConnectionStatus(32745): Connecting .
03-06 13:55:55.391: D/Shimmer(32745): Command Transmitted: [3]
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:55.391: D/ShimmerTimer(32745): Waiting for ack/response for
command: 3
03-06 13:55:57.391: D/ShimmerSamlingRate(32745): Get Sampling Rate Timeout
03-06 13:55:57.391: D/Shimmer(32745): Command Transmitted: [46]
00:06:66:64:71:82; Command Issued: 46
03-06 13:55:57.391: D/ShimmerTimer(32745): Waiting for ack/response for
command: 46 ...
03-06 13:55:59.391: D/ShimmerFW(32745): FW Response Timeout
03-06 13:55:59.401: D/Shimmer(32745): Command Transmitted: [3]
00:06:66:64:71:82; Command Issued: 3
03-06 13:55:59.401: D/ShimmerTimer(32745): Waiting for ack/response for
command: 3
03-06 13:56:01.401: D/Shimmer(32745): Command 3 failed; Killing Connection
03-06 13:56:01.401: D/ConnectionStatus(32745): No State
What is going wrong here?
Can somebody provide a working example for the connection to a
Shimmer3 sensor?
Cheers,
Ulf Jensen
Dipl.-Inf. Ulf Jensen
Digital Sports Group
Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg Haberstr. 2, 91058
Erlangen, Germany
Phone: +49 (0)9131 / 85-27890
Web: www5.informatik.uni-erlangen.de/~jensen
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
Dipl.-Inf. Ulf Jensen
Digital Sports Group

Pattern Recognition Lab
Friedrich-Alexander-University Erlangen-Nuremberg Haberstr. 2, 91058
Erlangen, Germany

Phone: +49 (0)9131 / 85-27890
E-Mail: ***@informatik.uni-erlangen.de
Web: www5.informatik.uni-erlangen.de/~jensen

Loading...