Dylan Knowles
Dylan Knowles

Reputation: 2803

WIDCOMM and Android: How do?

Disclaimer: Bluetooth novice question ahead. I'm not trying to troll you with inaccurate / improper use of terms :D

I'm working with a Bluetooth device that communicates using the WIDCOMM stack. In Android, I see that communication is done using RFCOMM sockets and, so I assume, the RFCOMM stack. How would I allow an Android application using the RFCOMM stack to receive data from a device using the WIDCOMM stack?

Upvotes: 0

Views: 984

Answers (2)

TJD
TJD

Reputation: 11896

It doesn't matter what stack the remote device is using. You are misunderstanding what widcomm is. RFCOMM is a standard protocol service that is implemented by all common Bluetooth stack implementations (including widcomm, bluez, android, etc.). widcomm is just a particular implementation of the stack. different stacks can communicate because they speak the same standard RFCOMM protocol.

Upvotes: 0

Dennis Mathews
Dennis Mathews

Reputation: 6975

I am assuming you are using the widcomm stack on the PC .

The Android public APIs uses RFCOMM protocol (which is one of the protocol layers in the Bluetooth stack) it is also called SPP profile commonly. So both the android stack and widcomm stack will have the same rfcomm/spp profile layers supported.

For PC's you can configure the PC stack to create virtual com port over the SPP (aka RFCOMM) link, to communicate to over this link you can write an application that open this virtual com port and send/receives data - or use an application like hyper terminal to connect to the virtual com port. And from the android device your application can use the android RFCOMM apis to connect to and open the rfcomm session with the PC device. Let me know if this helps..

Upvotes: 1

Related Questions