Sending files to bluetooth device using vb.net
Posted on 2010-08-22
We write software for the Symbol/Motorola 9090 scanner, using vb.net 2005, Windows CE, Framework 2.0. One feature that works well is an interface to a weight scale with a serial interface, where we can send and receive data through the scanner's COM1 port on the bottom, using the snap-on cable. And, we can send lines of print to a dot matrix printer, going out that same COM1 port, and converting the serial data to the parallel port on the printer. We use Franson serial tools to manage the coding for the serial port, which I think it just an easy-to-use version of the serial commands built into vb.net 2005.
But now a customer wants to be able to send print lines from the scanner to a Zebra bluetooth printer--which raises questions, since we've never done this before:
1) Will I simply pair the scanner to the printer, much like pairing a cell phone to a bluetooth-equipped car?
2) The documentation for the scanner says I can pick from COM4, COM5, or COM9 for my "virtual serial port". Since they are referred to as COM ports, does this mean that I should be able to use the Fransion serial tools code that I now use for a normal COM1 port, simply setting the right COM port and baud rate, etc.? Or, is it somehow more complicated sending data to a bluetooth printer through a "virtual COM port"...and if so, in what way?
3) Will I need to define which of these virtual COM ports I want to use on the printer itself? Or, will it be sufficient to simply pair with it, and then I can expect the data to flow from scanner to printer, regardless of which virtual COM port I choose on the scanner?
4) Maybe I just need some general guidelines on how to send data to a bluetooth device from a vb.net program???