By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

Bluetooth programming ?

P: n/a
I know this is probably not the correct newsgroup, but I can't find
anywhere else that is appropriate to post it in.

I need to figure out how to write a bluetooth program to access a
bluetooth barcode scanner. After a lot of searching the Internet, I
have come to the conclusion that something using RFCOMM would be best.
Unfortunately, Bluetooth programming books are not exactly plentiful and
finding a book on RFCOMM is almost impossible. Most of the Bluetooth
programming books deal with linix. I have not been able to find much in
how to program Bluetooth in Windows. I have a linux machine as well as
a Windows machine and on the linux machine I can run RFCOMM from the
command line, but I do not know its equivalent in Windows if there is one.

Can someone point me to an example of a Bluetooth program using RFCOMM
or a book of some kind. I have looked at Bluetooth Essentials, but it
appears to discuss more on Linux than Windows. The program does not
have to be very complicated as all I need to do is open up a bluetooth
serial port, authenticate with the scanner and then send some commands
to it. Oh, I also need to receive data from the scanner. Surely this
can not be that difficult, but it I have never done this before and I
can't find any good information that will help.

Z.K.
Mar 4 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Z.K." <no****@nospam.netwrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl...
>I know this is probably not the correct newsgroup, but I can't find
anywhere else that is appropriate to post it in.

I need to figure out how to write a bluetooth program to access a
bluetooth barcode scanner. After a lot of searching the Internet, I have
come to the conclusion that something using RFCOMM would be best.
Unfortunately, Bluetooth programming books are not exactly plentiful and
finding a book on RFCOMM is almost impossible. Most of the Bluetooth
programming books deal with linix. I have not been able to find much in
how to program Bluetooth in Windows. I have a linux machine as well as a
Windows machine and on the linux machine I can run RFCOMM from the command
line, but I do not know its equivalent in Windows if there is one.
In Windows, once a bluetooth connection is made, the bluetooth serial port
receives a "COMn" device link just like built-in serial ports. Just open
that port (or the real device name which can be found through the SetupDi
plug and play APIs) and use the normal Communications Port API.
>
Can someone point me to an example of a Bluetooth program using RFCOMM or
a book of some kind. I have looked at Bluetooth Essentials, but it
appears to discuss more on Linux than Windows. The program does not have
to be very complicated as all I need to do is open up a bluetooth serial
port, authenticate with the scanner and then send some commands to it.
Oh, I also need to receive data from the scanner. Surely this can not be
that difficult, but it I have never done this before and I can't find any
good information that will help.

Z.K.

Mar 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.