Visual Basic > Visual Basic Forums > Visual Basic Power Packs > Using MSComm component to communicate via bluetooth
Ask a questionAsk a question
 

General DiscussionUsing MSComm component to communicate via bluetooth

  • Monday, October 26, 2009 2:07 PMfkucuk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I am developing a program to receive data from a device via bluetooth. 

    I set my bluetooth dongle to a com port and can easily read data from it. The article here (http://support.microsoft.com/default.aspx/kb/194922) was very useful.

    But, I have a problem. When the bluetooth connection is lost (eg. when the device is shut down or when the device leaves its bt range), the program can not understand it.

    In debug mode; I've realised that the events (comEvCTS, comEvDSR, comEvCd and comEvRing) on MCComm1_OnComm() runs in turn one by one when I switch off the device.

    Do you think should I use this situation to control if the connection is lost?

All Replies