hi.
the master controls the connection, and times it out when it tries the
the link and fails. how long does that take? i don't know, but it's
probably immediate if a transaction is in progress and fails; in an idle
state it's longer (think of a keyboard). other people who watch this
list know much more about bt than i do...
will your scenario work? i don't know, but...did you try it?
one thought: you may want to use the shimmer as the master if you want
it to control the connection state.
have fun,
steve
On 04/11/2012 10:31 AM, Maxim Michel wrote:
Hi steve,
Thanks for your quick response!
But once the Shimmer leaves the line of sight (10m)
it will automatically close the connection, or not?
Do you know whether the following scenario might work?
- Set up BT-connection between PC and Shimmer manually.
- Shimmer starts moving through the area (+- 50 by 50 m).
- Shimmer sends a request to the PC through BT every minute.
- If the application on the PC receives this request (so Shimmer is in
range of PC), it will send an acknowledge-command to the Shimmer.
- When ack. is received Shimmer will dump the data to the PC. (led will
blink as long as data needs to be transmitted)
- When data is sent, Shimmer sents indication to PC and dumps the data
on its own SD-card.
Op 10 april 2012 17:43 schreef steve ayer <[email protected]
<mailto:[email protected]>> het volgende:
hi.
the bluetooth interface provides two connection-state events to an
application, connectionMade and connectionClosed.
managing the particulars of these two states is up to the
application, and whether it operates the bluetooth module in slave
(laptop controls the connection) or master (shimmer controls the
connection) mode.
-steve
On 04/10/2012 11:10 AM, Maxim Michel wrote:
Hi all,
I want to know if it's possible for the Shimmer module to sense
whether
a bluetooth device (laptop/smarthphone) is in it's range.
The shimmer would connect with the laptop, go away for a little
while,
and when it comes back it detects it is in range of the laptop
again,
and starts "dumping" its logged data to the laptop.
To save battery, i would like to improve this by sensing once
every ...
minute. But that's only when the previously mentioned application is
possible of course.
Thank you
_________________________________________________
Shimmer-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.eecs.harvard.__edu/mailman/listinfo/shimmer-__users
<https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users