This library allows developers to easily establish a Bluetooth SSI (Serial Port Profile) connection with a Zebra barcode scanner and use it to scan barcodes using C#.
These instructions will help you set up the library and start using it in your project.
- A Zebra barcode scanner that supports Bluetooth SSI Scanner Serial (Serial Port Profile), e.g. RFD40 Premium Plus, RFD90
- A device (e.g. PC, laptop) with Bluetooth capability and support for SPP
- Add the library to your project dependencies.
- Reference the dll file in your project
- Initialize the library in your code by creating a new instance of the
BarcodeScanner
class.
- Make sure that Zebra scanner is ready to connect.
- Find Bluetooth address of the device.
- Use e.g. InTheHand.Net.Personal library
- Check in the device properties: Bluetooth Tab -> Unique identifier
- Connect to the Zebra scanner using the
Connect()
method.BarcodeScanner scanner = new BarcodeScanner(deviceAddress); scanner.Connect();
- Add barcode event.
scanner.BarcodeEvent += (object sender, BarcodeScanner.BarcodeEventArgs e) => { Console.WriteLine(e.barcode); };
- The scanned barcode will be displayed in the app.
- Disconnect from the Zebra scanner.
scanner.Disconnect();
using ZebraSSIConnect;
BarcodeScanner scanner = new BarcodeScanner("A1B2C3D4E5F5");
scanner.Connect();
scanner.BarcodeEvent += (object sender, BarcodeScanner.BarcodeEventArgs e) => {
Console.WriteLine($"{e.barcode} [{e.type}]");
};
Console.ReadLine();
scanner.Disconnect();
This library allows developers to easily establish a Bluetooth SSI connection with a Zebra barcode scanner and use it to scan barcodes using C#. The library provides methods to connect, disconnect and get scanned barcode from the scanner.
- Visual Studio
- C#
- Karol Rybak