Bluetooth programming ?

  • Thread starter Thread starter Z.K.
  • Start date Start date
Z

Z.K.

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.
 
Z.K. said:
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.
 
Back
Top