Porting applications
Existing applications of the OPN-200x, RS-3000 and PX-20 need to be ported to run on the OPN-2500 and OPN-6000.
Below you'll find important information when porting applications for these devices.
New Features in the OPN-6000 / OPN-2500
- BLE OptiConnect service (BLE and USB)
- Bluetooth Device Firmware Update (DFU) (via OptiConnect)
- Bluetooth BLE HID supported (replaces Bluetooth Classic HID)
- Both USB-VCP (default) and USB-CDC driver are supported
- Bluetooth, Batch, and OPN2001 application merged into a single default application
- Added defaults:
- OPND: OseComm data collector mode (previously Batch application + `C01`)
- BPC: Switch to USB-CDC (Serial scanner mode)
- BQZ: Switch to USB-CDC (OPN2001 mode)
- U2: OPN-2001 default
Removed / Missing Features from the OPN-6000 / OPN-2500
- Bluetooth Classic (HID/SPP) is not supported
- Scanning of Bluetooth address labels to connect has been removed (BLE is always slave)
- Setting a of PIN code is no longer supported (Replaced by Secure Simple Pairing)
- NetO protocol is no longer supported (OseComm or OptiConnect are recommended as alternative)
Changed Default Behaviour (Bluetooth Application)
- Bluetooth BLE HID is set as factory default (replaces Bluetooth Classic HID)
- Discoverability: Device becomes discoverable when pressing the trigger key
- Memorizing (when not connected) is enabled by default
- Memorizing option: 'Trigger to send' is enabled in BLE HID and USB-HID mode
- Keyboard toggle on iOS is now enabled by default
- `Trigger to connect(able)` uses function key, not the trigger key
- Automatically switches into OPN2001 mode after receiving an OPN2001 interrogate command
- Manual reset by pressing both keys for 15 seconds results in white LED. Release the function key to enter bootloader mode (was 20 seconds).
- Device can enter sleep mode in all connection statuses (except when connected to USB), greatly improving battery life when connected to Bluetooth.
- Function key can be used to remove barcodes when connected to OptiConnect (and when memorizing)
- Default Bluetooth local name is OPN6000_(serial) instead of OPN6000_(bt.address) (mobile platforms often hide the Bluetooth address for privacy reasons)
File System / Database Functions
- The Bluetooth, Batch, and OPN2001 application are merged into a single default application and store their data in the same format.
- Switch between all applications without losing data.
- Barcode data is stored in two files:
SCANNED.DAT
: barcode data
SCANNED.IDX
: quantity, serial, date, & time
- The batch application generates the CSV file with the configured formatting as soon as the USB-cable is connected instead of while scanning.
- USB-MSD file system is now 'read/write' instead of 'read/only' (file system corruption by Windows is resolved).
- The OPN-6000/OPN-2500 uses ChaN's FatFS filesystem, which uses functions like
f_open
and f_close
(from ff.h
and FileSystem.h
).
- For backwards compatibility,
stdio.h
functions like fopen
and fclose
are supported using a wrapper.
- Low-level I/O functions
open
, close
, read
, write
are no longer supported.