Hi Nicholas,

 

Could you explain a little more about what you mean by 'sent the signal to
enable the acc'? As an example using java (assuming you are using the
standard serial protocol), the transmitted packet should look something like


 

write(new byte[]{0x08, 0x08, 0x00}); 

 

If you refer to
http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/shimmer/a
pps/BoilerPlate/Shimmer.h?content-type=text%2Fplain , you will see that the
first 0x08 is the packet type: Set_Sensors_Command and the second 0x08 is
SENSOR_EMG. 

 

Were you able to receive an Ack packet after sending the set sensor command
packet?

 

Regards,

JC

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Nicholas Hosein
Sent: 14 May 2012 23:16
To: [email protected]
Subject: Re: [Shimmer-users] EMG Packet Question

 

In addition the data doesnt seem to change with stimulus from the muscle.

On Thu, May 10, 2012 at 2:09 PM, Nicholas Hosein <
<mailto:[email protected]> [email protected]> wrote:

So i currently have acc/gyr/mag working and was adding emg support to my C++
program. I sent the signal to enable the acc/emg (bit3 = 1 ). I then receive
9 bytes from the shimmer = 1 header, 2 timestamp, 6 data.

 

My question is why does the emg have 6 bytes of data? The accelerometer has
x,y,z so 6 bytes makes sense but the emg is just one signal?

 

Thanks,

 

Nick

 

_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to