Author Topic: Help with BlueChat Server  (Read 23588 times)

engpaulo

  • Guest
Help with BlueChat Server
« on: June 30, 2010, 08:20:54 PM »
Hi Mike.

I m running the BlueChat Server for tests and i have problems with Service UID.

My Phone application has to connect in BlueChat Server by Service UID. In this version(app phone) he does not search for devices,
he already tries to connect through the Service UID, but he does not connect.

In this old version (app phone), he does search for devices and I select that I want to connect. No problem in this case. Connection OK.

But I have to use the new version.


What s wrong in this code?

Code: [Select]
  wclServer->Transport = stBluetooth;
  wclServer->BluetoothParams->Radio = Radio;
  wclServer->BluetoothParams->Service = StringToGUID("{1CBF2215-9E04-40d4-9CD7-BEE54683B97D}");
  wclServer->BluetoothParams->Authentication = false;
  wclServer->BluetoothParams->Encryption = false;
  wclShowError(wclServer->Listen());




Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #1 on: June 30, 2010, 09:39:11 PM »
Hi,

Your code looks absolutly correct. How your phoen know about device to connect to? Are you sure you use the same UUID as in phone app?

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #2 on: June 30, 2010, 09:42:49 PM »
Yes, Exactly.

The app phone connects directly by the service UUID.

The same UUID.

Whats happens?

Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #3 on: June 30, 2010, 09:47:46 PM »
Phone app MUST connect to device, not to service UUID. So the same question: How does your phone app know about your PC?

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #4 on: June 30, 2010, 11:02:35 PM »
So, the application developer said he could connect directly by UID but i said that not.

He will make a new version with the search and connection.

So, I can use the UID? after the connection? The same UID in PC application and phone application. Right?

Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #5 on: June 30, 2010, 11:04:29 PM »
He is wrong. He can not connect by UUID only. Of course, if he uses fixed MAC then yes, he can connect to this fixed MAC to your UUID.
He must (in the application) search for devices around a phone and connect to a device which has your services UUID in its public browsable services list. So the app must query each device about your service's UUID.
Something like that.

UUID is like TPC/IP port number (in first look). In TCP/IP you always connect to a computer and only then an app talks to specified port.

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #6 on: July 01, 2010, 10:02:45 PM »
Hi, Mike.

I understood perfectly. Thank you very much.

One doubts....

In the BlueChat Server case... the client (Phone), what type of protocol used for communication? RFCOMM but is not create the virtual COM? Right?

Can you explain to me how to communicate?

Thanks.







Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #7 on: July 01, 2010, 10:30:17 PM »
Hi,

Yes, it uses RFCOMM. Of course it does not create any COM ports as it is bluetooth, not serial communication. And RFCOMM does not declares/requires any COM ports. It's just COM port emulation over Bluetooth (RF). Don;t mix it up :)

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #8 on: July 06, 2010, 07:33:29 PM »
Hi, Mike.

Do you know any application for Phone ( NOKIA E71 (SYMBIAN) or POCKET PC ( Windows mobile) to test BlueChat Server?


Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #9 on: July 06, 2010, 07:47:58 PM »
Hi,

No, but google gave me this: http://code.google.com/p/bluetooth-chat/
You can modify it a bit or check just service used.

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #10 on: July 06, 2010, 10:35:53 PM »
Hi, Mike.

I'm having problems with BlueChat Server.

My Phone application sometimes work well and sometimes work very bad.

When connected, not send messages. When not connected with message error "Address NOT FOUND".

Whats the problem? It may be the dongle?

Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #11 on: July 06, 2010, 10:40:21 PM »
What is BT drive you use? What is phone app you use and how does it connect? (If it is private you can send it to mike@btframework.com and I test it here)

engpaulo

  • Guest
Re: Help with BlueChat Server
« Reply #12 on: July 07, 2010, 11:26:09 PM »
Hi Mike.

I sent the email to you.

Thanks.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Help with BlueChat Server
« Reply #13 on: July 07, 2010, 11:27:11 PM »
Yes, just got it, thanks. I will test it tomorow and back to you (e-mail). The we can post result here. :)

 

Sitemap 1 2 3 4 5 6 7