Author Topic: How to use the component  (Read 40998 times)

paijo_rx

  • Guest
How to use the component
« on: August 10, 2009, 10:14:52 AM »
i'm newbie
how the step to use the component?

i'm using my internal bluetooth on my laptop.

How to use the component so my laptop can connecting with my handphone?

thx

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #1 on: August 10, 2009, 10:23:54 AM »
Hi,

WCL package includes lots of samples (demo codes). You can simple take a look on it. Or visit: help.btframework.com.

There is no step-by-step instaruction because there is no single task components solve. WCL can help you in a lot of tasks you want to solve with using Bluetooth/IrDA/Serial connections.

marko_shock

  • Guest
Re: How to use the component
« Reply #2 on: October 25, 2010, 01:58:43 PM »
HI,
I need to write delphi CONSOLE APP for bluetooth pairing and some other BT features. Can I use WCL-VCL edition ??
If I can not use WCL-VCL is it possible to use some other WCL edition ??
I must use delphi and I must use it as Console APP
thanks

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #3 on: October 25, 2010, 02:59:39 PM »
Hi,

Yes of course you can use WCL VCL Edition. Unfrotunately this edition does not include console demo. But you may take a look on console demo from WCL C++ edition.

marko_shock

  • Guest
Re: How to use the component
« Reply #4 on: October 25, 2010, 03:34:28 PM »
I will see it in some c++ example but it would be nice to see some console example for delphi at least for WCL API load/unload

I have tested WCL-VCL edition shortly and
with Nokia N78 works
with BackBarry works
but with Samsung GT-S3650 basic things such as pairing does not work.
Enviroment Windows XP SP3 fully updated, BT adapter Delock with Toshiba BT Stack 7.10.16 installed. on pairing attemp I got internal driver error.
same with phone explorer. Is it know bug for Samsung mobile phones ?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #5 on: October 25, 2010, 03:38:54 PM »
It may be toshiba issue. Can toshiba pair with device?

Unfortunately sich demo can be added only in next version.

marko_shock

  • Guest
Re: How to use the component
« Reply #6 on: October 25, 2010, 03:44:34 PM »
Yes. Software which comes with 7.10.16 can pair normaly. also when I swith to other device (Lenovo T61 BCM2045B) and Microsoft Stack everything work fine. So I thing it is WCL bug.
BTW: Have you tested WCL with HTC phones ?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #7 on: October 25, 2010, 04:12:33 PM »
Not sure it is WCL issue as it works with other devices and with our Samsung E250 but we will check it. WCL has been tested with a lot of phones (http://www.btframework.com/devices.htm) but in fact Bluetooth communication does not depend on phone. Some BT profile support is depended but WCL does work with all BT enabled devices which have supported profiles.

marko_shock

  • Guest
Re: How to use the component
« Reply #8 on: October 27, 2010, 06:52:43 PM »
Hi Mike I have another problem with component.
enviroment : WCL 6.8.0.0 , Win XP SP3, Toshiba Stack.
In my APP I trying to full-fill this scenario:
Create and open BT Virtual COM port (Via BT Client not Virtual COM...see have learned something  ;) )
Use this COM port to send AT commands modem (put it in 2G, get IMSI and so on...)
Start Dial-Up Networking service(by using WCL)
Start RAS connection(of course by My imeplementation not by WCL)

This scenario works quite fine with MS stack but with Toshiba it does not works. If I deaktivate SPP and try again I can make regular RAS connection.

So basicly speaking my question is: Is this limitation(first DUN/RAS then SPP and not first SPP then DUN/RAS... if I understand well...only one active profile at the time) know bug for Toshiba stack or WCL? I  gues toshiba but just to check with you as 100% expert for BT


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #9 on: October 27, 2010, 06:55:24 PM »
Hi,

WCL was designed to be used without any vComs. I afraid I cann't help with vComs a it is absolutly wrong way.

Numbers of used profiles depends on target device.

Toshiba is one of worst stack ever.

marko_shock

  • Guest
Re: How to use the component
« Reply #10 on: October 27, 2010, 07:06:50 PM »
I must admit that I am quite surprised with you thinking related to Toshiba stack. I friend was BT tester for 2 years and he prefers Toshiba... But i believe you... you are programmer he is tester.

My needs are :
Use DUN and SPP (via WCL btClient and setting it as bluetooth trasport with SerialPort UUID)
I do not prefer not be depended from some BT stack and
I prefer to cover at least 80% of BT devices(USB sticks, integrated devices for laptops and so on)
I prefer not to now BT technical detailes n order to implement my needs.

So do I need to go further from  WCL and MS stack in order to cover more then 80% of BT Devices ?

And many thanks for such fast answers

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #11 on: October 27, 2010, 07:14:06 PM »
It depends on what you need from DUN/SPP. If jsut send AT commands (SMS/Phone Book) then yes, it is easy to do with wclClient (see BluetoothConnection demo). If you want to use your cell phone as GSM/GPRS modem and allow user to surf in internet then I afraid it is impossible with WCL and you have to use MS DUN API and user must confiure his phone manualy.

marko_shock

  • Guest
Re: How to use the component
« Reply #12 on: October 27, 2010, 07:26:48 PM »
I need first SPP and after DUN and Internet connection. That's all... I gues nothing special

SPP is already implemented via WCL and wclClient
DUN is implemented via WCL and MS RAS API but it works only for MS BT Stack

My key problem is stack behavior after activating BT-DUN service with WCL. For MS Stack it actually do same thing like I do this manually(it creates new modem called "standard modem over bluetooth link" and I can see that modem in device manager). For Toshiba Stack same code(only selected radio is not 2- MS  but 3-Toshiba) does not do the same as for MS stack. I never got new modem in device manager. I suppose again it is some problem related to Toshiba BT API but again hers APP do this OK...

With SPP implemented via WCL and wclClient and DUN-Internet connection implemented via WCL and MS RAS API Can I cover 80% of devices ?




Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to use the component
« Reply #13 on: October 27, 2010, 07:31:55 PM »
As I wrote it is impossible to do with WCL (DUN). WCL does not include such feature. The method you use may work for MS drivers only as other drivers have its own DUN API. Of course, use can manualy configure device, crreate vCOM and then you can use MS DUN, but WCL does not support such functions.

As WCL was not related to such function I can not promise something working or guaarantee working percents or something else. All I can guarantee and support is WCL related functions.

However, we do not recomend to use TwclVirtualCOMPortCreator as it is wrong way. And that component is not intended to create DUN connections. I afraid you can not do all what you want with WCL.

Of course if you need such functions (DUN connection in WCL) we can add it but it will cost money. If you want - contact us by e-mail and we discuss a development cost.

marko_shock

  • Guest
Re: How to use the component
« Reply #14 on: October 27, 2010, 07:51:54 PM »
I think that we don't understand each other...

SPP is done by WCL and wclClient

in my APP from WCL I expects only to start DUN service again via wclClient nothing more. If DUN service is started properly on win XP I must got new modem installed by BT Stack implementation..... this is must be true simply windows works like this.

If got new modem installed I already have code to communicate with whatever modem and create internet connection.

My problem related to DUN and non-MS BT Stack is that after starting DUN service via wclClient I don't get modem installed... nothing more nothing less
I have only MS and Toshiba Stack devices and this works with MS stack but not for Toshiba.

Again is this starting of service and not having locally installed modem WCL known bug or Toshiba Stack bug??
If I start DUN service manually from Toshiba SW I always got locally installed modem.

 

 

Sitemap 1 2 3 4 5 6 7