질문 RFCOMM in Bluetooth

  • Tuesday, May 22, 2012 8:20 AM
     
     

    Hi,

    I have few questions to ask regarding Microsoft's BT stack and about the WDK 8.0.

    I am using Win8 consumer preview and WDK 8.0.

    1. RFCOMM component for BT is provided by MS and i guess this PSM is already been registered by MS Bt stack?

    if it is correct then is their any alternative to use customized RFCOMM? what i mean is, if i want to use my own RFCOMM in place of existing RFCOMM that windows provides is their any way?

    Why i am asking this is because the old WDK .chm document suggest following.(I am not able to see anywhere the new downloadable document help for WDK 8.0)

    "Multiple profile drivers cannot register to recieve incoming L2CAP connection requests from any remote device for the same PSM".

    That means if RFCOMM is been register to L2CAP by windows itself then no one can register for this?

    2. How to set profile wise security ?

    for example i want to set "Authorization" enable everytime a device sends a request to my profile say FTP how can i achieve this?

    I have tried to read in Win7 WDK help but nothing is provided.

    3. How to make Fixed CID L2CAP channels which is a must for single mode and Dual Mode stack.

    We have searched the document thoroughly and not able to find answers to above questions. Moreover Microsoft still haven't released the

    documentation help or API reference kind of document for WDK8.0 so it is more problamatic.

    Could someone please suggest some pointers or answer this questions.

    It will be a great help for me.

    Thanks in Advance.

All Replies

  • Tuesday, May 22, 2012 11:14 AM
     
     

    The old .chm documentation, unfortunately, is no longer kept updated. Please try to read the online MSDN docum.

    -- pa

  • Tuesday, May 22, 2012 12:38 PM
     
     

    Thanks Pavel!!

    but still in latest online doc below i can see the same sentence.

    http://msdn.microsoft.com/en-us/library/windows/hardware/ff536865(v=vs.85).aspx

    "The Bluetooth driver stack registers PSMs for the following profiles: HCRP, HID, PAN, SDP, and RFCOMM."

    and "Profile drivers cannot register a PSM that has already been registered by another driver. If one attempts to do so, a STATUS_ALREADY_COMMITTED error will be returned. "

    so my question still is valid..that is

    "Is their any alternative to use customized RFCOMM? what i mean is, if i want to use my own RFCOMM in place of existing RFCOMM that windows provides is their any way?"

  • Tuesday, May 22, 2012 4:23 PM
    Owner
     
     
    you could disable the in box RFCOMM driver and then load your own, but what bigger problem are you trying to solve by writing your own RFCOMM driver? it is a huge task, not simple and if you want existing in box RFCOMM clients to continue to work, you have even more work to do.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

  • Tuesday, May 22, 2012 9:42 PM
     
     

    For 2), for RFCOMM sockets there's socket option SO_BTH_AUTHENTICATE http://msdn.microsoft.com/en-us/library/windows/desktop/aa362911(v=vs.85).aspx

    For 3) when registering an L2CAP endpoint one can specify a PSM, see http://msdn.microsoft.com/en-us/library/windows/hardware/ff536572(v=vs.85).aspx


    http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.

  • Tuesday, May 22, 2012 10:03 PM
    Owner
     
     

    2) for KM drivers you have http://msdn.microsoft.com/en-us/library/windows/hardware/ff536860(v=vs.85).aspx 
    CF_LINK_AUTHENTICATED

    3) this is not possible

    what bigger problem are you trying to solve? replacing the in box RFCOMM driver is not supported and is more than likely not the right solution to your problem


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.