Author Topic: WCL server - Passive Bluetooth  (Read 18805 times)

wclrookie

  • Guest
WCL server - Passive Bluetooth
« on: November 21, 2009, 06:05:58 PM »
Hi

I am trying to use WCL server to connect several BT devices. My application runs on a desktop and there are several mobile clients goes active randomly and connects to desktop. I thought I can use wcl server running on desktop and when clients wants to connect to desktop I will get notified. Notification part seems not working.
  - I am using developer version but it is trial that I downloaded from website
  - Even I use wcl server how authentication works? with wcl server can I use wclAuthenticator with wcl server?
   - One type of client uses SPP service what is the Service GUID number for wclServer.BluetoothParams.Service parameters should I use? Where can I find GUID number for certain services I did not see any documentation.

Regards

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WCL server - Passive Bluetooth
« Reply #1 on: November 21, 2009, 06:54:54 PM »
Hi,

It depends on what you want to do. If you want just to receive files from phone take a look on OPPServer demo. If you have custom aplication running on the phone take a look on Chat Demo.

All the predefined services' UUIDs are described in the doc file.

wclrookie

  • Guest
Re: WCL server - Passive Bluetooth
« Reply #2 on: November 21, 2009, 07:29:31 PM »
Hi Mike,

Thank you for the response ,
 - For SPP client I like to detect when it is active. Open serial port and run a serial protocol over it.
 -  I looked at Api Reference.doc but I could not see any UUID numbers for specific services. Would you please send me link for the doc file that you mentioned?
 
 I am using WCL .Net edition 6.6.7.0

Regards

Bruce


 

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WCL server - Passive Bluetooth
« Reply #3 on: November 21, 2009, 07:35:25 PM »
Hi,

First, there is no serial port. It is Bluetooth (RF), not serial (wire), communication.
Second, you are right, doc does not includes UUIDs, will add it there. Any way, wcl.wclUUIDs class includes them all.

If you want to hande connection on SerialPortProfile then you have to use SerialPortServiceClass_UUID as Service's UUID. But you should setup unique name for this service to be possible find the service from your phone (because PC may have other SPP service running). So after detecting it by name you will know its Channel number. Use this channel to connect to service then.

wclrookie

  • Guest
Re: WCL server - Passive Bluetooth
« Reply #4 on: November 23, 2009, 05:41:03 PM »
Hi

I meant virtual com port sorry about terminology. I changed BlueChat Server demo code to

wclServer.Transport = wcl.wclServerTransport.stBluetooth;
wclServer.BluetoothParams.Radio = Radio;
wclServer.BluetoothParams.Authentication = false;
wclServer.BluetoothParams.Encryption = false;
wclServer.BluetoothParams.Service = wcl.wclUUIDs.SerialPortServiceClass_UUID;
wclServer.BluetoothParams.Name = "BT Serial Port Service";
//wclServer.BluetoothParams.Service = new Guid("{71D47FA1-87B6-4629-AB78-77B482AE5316}");
wcl.wclErrors.wclShowError(wclServer.Listen());

I am not getting any wclServer_OnConnected event
As I am using Widcomm Stack 5.1.0.5600 , stack software also has its own serial service. Unfortunately
I don't have a control over phone software. It seems wclVirtualCOMPort almost does what I need but it runs as a client, If I can implement it as wclServer which always runs and after phone connects I can open com port run protocol over that connection.

Regards

Bruce

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WCL server - Passive Bluetooth
« Reply #5 on: November 23, 2009, 05:52:54 PM »
And what runs on phone? And how does it connect to PC? Are you sure it connects to your service not to WidComm one?

By the way, we offer Outsource Software Development service as well. May be we can develop it for you?

 

Sitemap 1 2 3 4 5 6 7