Author Topic: How to activate SPP and Dialup services  (Read 8281 times)

Offline Groumf

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: How to activate SPP and Dialup services
« Reply #30 on: July 10, 2007, 09:04:48 AM »
Hello,

Any news ??

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • Karma: 1000
    • Wireless Communication Library
Re: How to activate SPP and Dialup services
« Reply #31 on: July 10, 2007, 12:27:40 PM »
Uploaded. Redownalod the package.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Groumf

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: How to activate SPP and Dialup services
« Reply #32 on: July 11, 2007, 03:48:01 PM »
Hello,

how can I use the feature that allow me to retrieve the bluetooth com ports without recreating/openning them each time ?

I've checked and performed some tests with the latest release you give me but I can not find a better way than using the COMportCreator to retrieve the virtual ports associated to DUN and SPP profiles.

Here is what I do to get the COM port associated to one device

Code: [Select]
pSPPComPort->Device = pDevice;
pSPPComPort->Authentication = VARIANT_TRUE;
pSPPComPort->Encryption = VARIANT_FALSE;
pSPPComPort->ServiceUUID = "{00001101-0000-1000-8000-00805F9B34FB}";
pSPPComPort->AutoDetect = VARIANT_FALSE;
pSPPComPort->Permanent = VARIANT_TRUE;
//pSPPComPort->Open();
pSPPComPort->Active = VARIANT_TRUE;
sh_Ports[portId].sppComPort = pSPPComPort->GetCOMNumber();

But to be avle to do that, I need to perform a fast discovery to get all devices but on widcomm stack, the fast discovery is not so fast....

If you can give me a sample it will be great.

Thanks

Offline shagendo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: How to activate SPP and Dialup services
« Reply #33 on: October 31, 2007, 12:06:16 PM »
Hello,

In our (limited) experience with the bluetooth staks, we found that the most stable configuration is using a com port to open the bluetooth connection.
We'd like to use the Bluetooth Framework to determine if a device has been paired and which comport it has been assigned. If it's not paired, we'd like to pair it and store the comport connection created.
Could you please provide a sample for matching bt devices with their com ports?

Best regards,
Sander Hagendoorn
www.rstechmedic.com

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • Karma: 1000
    • Wireless Communication Library
Re: How to activate SPP and Dialup services
« Reply #34 on: October 31, 2007, 01:22:15 PM »
Good day!

You can check is device paired or not. But BTF does not provie any functions to know the com port, because it does not required for BTF.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline shagendo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: How to activate SPP and Dialup services
« Reply #35 on: October 31, 2007, 02:23:21 PM »
Thanks for your fast reply!

I understand the BTF doesn't use com ports directly. We are using the BT serial port profile to send real time data from our device to the PC application.
On slower machines (<= 2 GHz), this represents serious memory issues (especially when running for longer periods of time) when using the network approach used by BTF.
Which is why we decided to use the serial port component to connect to the bt devices.

That leaves us with the requirement for discovery and serial port detection of bt devices.
My  questions are:
- Is it possible to incorporate serial port discovery in BTF?
- Are you aware of another way of discovering which com ports have been assigned during the pairing process?

Kind regards,
Sander Hagendoorn
www.rstechmedic.com

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • Karma: 1000
    • Wireless Communication Library
Re: How to activate SPP and Dialup services
« Reply #36 on: October 31, 2007, 02:36:06 PM »
Good day!

It may be implemented as a stand alone code. May be in feature version i'll add it as a part of the library.

In current version it is not supported.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager