Ask a questionAsk a question
 

General DiscussionUsing MSComm component to communicate via bluetooth

  • Friday, October 30, 2009 11:59 AMfkucuk 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

  • Tuesday, November 03, 2009 8:14 AMTim LiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    Does your project have anything related to VBA(not VB or VB.NET)? You might posted a wrong forum for your questions.

    Thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.