hi ozgun,
i'm not sure what you mean when you say "it doesn't work," but here are
a few observations.
first of all, the rn device has to be in command mode before you can
send it a command. by default, command mode is entered when the module
is initialized, and any command that is queued up by the application is
run before reverting the rn module to data mode.
if you look at the code in RovingNetworksP.nc, you'll see that each rn
command implemented is triggered by a flag set when the interface
wrapper is called from an app.
are you certain that your command is run while the module is in command
mode? can you light an led from inside its code block that comes on
before the app gets a commandmodeended event?
two other things that might be giving you trouble: you're currently
waking only every second (983 ms), so your window for connection might
be a little small.
also realize that the master has to support sniff mode, else the slave
will be active continuously.
i hope that this helps,
steve
On 10/25/2011 07:44 AM, Özgün Pýnarer wrote:
hi all,
is there anyone who take the shimmer to the sniff mode? I tried to use
writeCommand("SW,0x0640\r","AOK"); in RovingNetworksP.nc file for it but
it didn't work.
/-----
OzgunPinarer
Department of Computer Engineering
Galatasaray University
Pervasive Computing & Ambient Intelligence
PERA Research LAB Assistant
/
_______________________________________________
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