Hey Sunit,
I'm guessing you're trying to send to the shimmer the 'connect'
command as if you were using shimmerconnect? To me that seems like it
should work but I have no idea whether that's theoretically correct.
Maybe try sending the 'stream' command as well? Or you could just
change the BP code and turn on all the parameters such as
enable_sending, so that it's automatically sending upon power up.
Cheers,
Richard
Quoting Sunit Verma <[email protected]>:
Hey Richard,
I am trying to read the "Boilerplate code" signal through Matlab
using fwrite
(SerialObject, '00000111', 'uint8'); and fread(SerialObject,12, 'uint8') but
I do not receive any data. Can you please suggest me what to do ?
On Tue, Jun 14, 2011 at 7:13 PM, Sunit Verma <[email protected]> wrote:
Thanks Richard. I will surely do.
Sunit
On Tue, Jun 14, 2011 at 6:38 PM, <[email protected]> wrote:
Hey Sunit,
I'm actually not sure where I got my Boilerplate code from, but I'll send
it to you anyway and it's in some weird zipfile that you can use 7zip to
open. The tinyos environment is set up, however you need to update it once
in a while, I don't know if that's affecting your code. In any case, I
usually just ignore the warnings and look at the errors only, if it still
doesn't work you could copy the errors here and I'll try to see if
I've seen
the same problems before. You should also CC this thread to the forum
archive cuz I'm pretty new with this as well and I'm sure the contributors
could help you out.
Richard
Quoting Sunit Verma <[email protected]>:
Hi Richard,
I am running Linux which was provided by Shimmer USB and I suppose it has
already configured environment for tinyos. I have .hex file of
Boilerplate
provided by Shimmer and it runs in Windows. Actually I want to make some
changes into that code for my application which is to transmit only ECG
signal. The code of Boilerplate I got is from sourceforge. We I tried to
compile it, it throws errors. Did you also get the Boilerplate Code from
sourceforge ?
Regards,
Sunit
On Tue, Jun 14, 2011 at 2:04 PM, <[email protected]> wrote:
Hey Sunit,
The sourceforge code should be the most updated one, I would guess that
your tinyos environment is out of date? In any case, on the shimmer usb
from
the kit there is an already compiled boilerplate code that works,
assuming
that you have the BSL loader, that you can just load in windows. Let me
know
if either of those work.
Cheers,
Richard
Quoting Sunit Verma <[email protected]>:
Hi Richard,
I tried compling the Boiler code provided by source-forge but it did
not
complied and threw lots of error. Did it occur with you also ? I tried
to
modify but it kind of looks complex to me. Can you please send me the
"working" Boilerplate code ?
Thanks for your reply,
Regards,
Sunit
On Tue, Jun 14, 2011 at 1:49 AM, <[email protected]> wrote:
Hey Sunit,
I used the BoilerPlate code as template, basically copying over the
entire
part about the buffer and the section with the packet. I made my own
data
packet format which is just all data, so I'm assuming its Accel X, Y,
Z,
ECG, and something else which is the zero column, where each channel
takes
up two of those columns, if that's what you're asking? So yeah I have
no
idea if im interpreting it correctly on the matlab side or just that
the
transfer is very delayed so I'm not getting a regular signal.
Cheers,
Richard
Quoting Sunit Verma <[email protected]>:
Hi Richard,
I am trying to read ECG data by modifying AccelECG code provided by
Shimmer.
Could you please let me know how you created data format for sending
via
bluetooth. I am also using Matlab to read the data.
Regards,
Sunit
On Mon, Jun 13, 2011 at 8:24 PM, <[email protected]> wrote:
Hi,
I'm working with the shimmer ECG module and trying to add bluetooth
functionality to JFATlogging. I'm getting the data stream through
fread
in
matlab and converted it to uint8 as such:
6 201 4 203 7 226 7 0 8 0
6 220 4 225 7 215 7 7 8 0
6 195 4 214 7 222 7 253 7 0
which presumably are 5 channels split into two bytes each (7&8th
column
being ECG). So i'm just multiplying the 7th column by 256 and adding
it
to
the 8th, which is the same operation as the shimmerconnect code,
however
the
data looks much wonkier than if I just plotted the 8th column alone.
Any
ideas on how to process these numbers?
Also, I'm calling bluetooth.write after every DMA0transferdone,
which
may
or may not take place depending on send_ready being reset in
bluetooth.writedone, which seems to cause the data to be sent in
irregular
intervals (I've excluded the timestamp in the datapacket)?
Lastly, just a general serial port question: every time I call fread
to
take in a stream of say 1000 numbers, is it the next 1000 numbers
from
the
last time i called fread, or is it the 1000 currently being
transfered
as
soon as I called fread?
Thanks,
Richard
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users