Author Topic: How to write strings in device Virtual COM????  (Read 18975 times)

engpaulo

  • Guest
How to write strings in device Virtual COM????
« on: March 30, 2010, 08:09:09 PM »
Hi,

I am new at this forum and am developing a application interface PC -> SmartPhone.

The phone has to communicate with dongle bluetooth and send data. The Phone sent a string of data (example: "start") and my PC software receive it and perform an action.

The PC Software is the paring with device and connect.

My doubts is in comunicate PC Software. When the device connects, emulates a COM VIRTUAL???

I know I have to read and write in COM VIRTUAL for comunicate.

What component do I use of WCL TOOLS?

Thanks

Att.

Paulo

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to write strings in device Virtual COM????
« Reply #1 on: March 30, 2010, 08:30:54 PM »
Hello,

WCL does not need any COM ports to communicate with remote device over Bluetooth connection. Forget about any COM ports when talk about Bluetooth.

Take a look on BlueChatClient and BlueChatServer demo apps. It does exactly you need. Just make sure that an app running on a phone's side uses the same service's UUID that PC software uses.

engpaulo

  • Guest
Re: How to write strings in device Virtual COM????
« Reply #2 on: March 30, 2010, 11:16:27 PM »
So, On the PC then I will have the server (BlueChatServer) and on de remote phone i will have the Client.

If they have de same service's UUID, they will communicate. Is correct???

I need to pair and connect the device before?

Thanks

Att.
Paulo


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to write strings in device Virtual COM????
« Reply #3 on: March 31, 2010, 06:00:14 AM »
Hi,

Yes, that is absolutly correct. However, you may have server running on your phone and client on PC, but usualy server is on PC.

You do not need to pair before connect if you use non-authenticated connection.

engpaulo

  • Guest
Re: How to write strings in device Virtual COM????
« Reply #4 on: March 31, 2010, 04:05:32 PM »
Good morning!

Sure, i understand.

I need a little security, so I will have to use Authentication = true. right?


I did tests with server and client on PC.I had some problems with client.

The server is ok, connection and listening Ok, but the client report problems.

Error: " Enable connect. Error: 2".


What happens???

Thanks

Att.

Paulo



Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: How to write strings in device Virtual COM????
« Reply #5 on: March 31, 2010, 05:00:00 PM »
Hello,

Error 2 happened, didn't it?

 

Sitemap 1 2 3 4 5 6 7