Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Can't Detect Ungraceful SPP Disconnects with Bluetopia MSP430F5438A Stack?

$
0
0

I'm configuring my MSP430F5438A Bluetopia Stonestreet One stack as a SPP server
with a PC connecting directly as a master based on BDADDR (no
pairing).

To detect connections from the PC I am handling etPort_Open_Indication
and etPort_Open_Confirmation events in my SPP_Event_Callback().

To detect disconnections from the PC I am handling
etPort_Close_Port_Indication events in my SPP_Event_Callback().

When the PC (running Bluecove's stack under Java) disconnects
gracefully (presumably with some sort of disconnect command - I don't
know the Bluecove stack or Java), I detect the disconnection just
find.

However, I cannot detect other types of disconnects, for example,
if I just pull the PC bluetooth dongle out. The Bluetopia stack
still thinks it's connected.

How can I detect "ungraceful" disconnects?

--Randy


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>