View Single Post
  #1 (permalink)  
Old 11-10-2007, 02:53 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Exception "security block" while connecting to bluetooth device

I have an application that continously polls data from a bluetooth serial port connection (btspp://). Sometimes when the connection to the bluetooth device is lost, the application is unable to reconnect again the Connection.open method throws an IOException("security block").

I may fx I loose connection when the device gets out of range from the phone, a K750i. I then try to reconnect by creating 1) closing all open io connections to the old connection, and 2) create a new connection to the device. Normally that procedure is successful, but sometimes it fails and I receive a IOException with the succinct message "security block".

What does the exception "security block" mean, and is there anything I can do to avoid it?

I have looked through the developer bluetooth samples, but I cannot see any relevant difference from the way I use the connection. I also have the latest firmware upgrade: R1AA008.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Reply With Quote
Sponsored Links