Line 68: |
|
# Now we can start downloading the OS and Application. For each of the .hex files you downloaded and extracted above, please choose 'File', then 'Download', then navigate to and select the file. You should see a progress indicator and the words 'Initializing IRdA' if this is working. |
|
# Now we can start downloading the OS and Application. For each of the .hex files you downloaded and extracted above, please choose 'File', then 'Download', then navigate to and select the file. You should see a progress indicator and the words 'Initializing IRdA' if this is working. |
|
# When complete the OPN2005 will emit a series of beeps and reboot. When the LED is steady RED (indicating charging) or GREEN (indicating fully charged) the process is complete and you may disconnect your OPN2005 from the PC. instruction manuals for the various applications are available for download in the Downloads section. |
|
# When complete the OPN2005 will emit a series of beeps and reboot. When the LED is steady RED (indicating charging) or GREEN (indicating fully charged) the process is complete and you may disconnect your OPN2005 from the PC. instruction manuals for the various applications are available for download in the Downloads section. |
|
|
+ |
==SDK==
|
|
|
|
|
|
|
+ |
The OPN2002 does not need an SDK for the platforms it supports. Given the fact that it can transmit data serially via Bluetooth SPP or its USB port, or can transmit data as a Bluetooth HID (keyboard) device, SDKs for the various platforms the OPN2005 supports are not required (except for Windows Phone). This is because the manufacturers of those platforms provide APIs for accessing serial ports and managing Bluetooth connections.
|
|
|
|
|
|
|
+ |
When talking about an SDK in relation to the OPN2005, what is referred to is the [[C-Library Kit]]. With the [[C-Library Kit]] installed, developers are able to create and customize embedded applications for the OPN2005, thus changing and customizing its behavior to better suit their use cases.
|
|
|
|
|
|
|
+ |
=== Windows Phone SDK: Creating a Windows Phone 8 application for the Bluetooth OPN2005 ===
|
|
|
|
|
|
|
+ |
'''Introduction'''
|
|
|
+ |
Although Opticon's scanners rely on Bluetooth HID-mode or SPP-mode profiles to communicate barcode scans with a host device, Windows
|
|
|
+ |
Phone 7 & 8 do not ship with support for these profiles out of the box. Rather, they ship with support for the RFCOMM protocol that HID and
|
|
|
+ |
SPP-mode profiles are built upon. The purpose of this SDK is to provide SPP-mode support so that an app developer can transmit and receive
|
|
|
+ |
data, and manage the connection, all from within their Windows Phone app. This support can allow app developers to create apps which leverage
|
|
|
+ |
the features of an Opticon Bluetooth device to facilitate fast data acquisition using a Windows Phone device.
|
|
|
+ |
====Using the SDK====
|
|
|
+ |
For complete SDK documentation, see the "OpticonBluetoothAPIDocs.chm" contained in the SDK Download below.
|
|
|
+ |
To utilize the SDK, simply add a reference to the OpticonBluetoothAPI.dll file in Visual Studio by following Microsoft's tutorial:
|
|
|
+ |
http://msdn.microsoft.com/en-us/library/wkze6zky.aspx
|
|
|
+ |
Once this is done, all of the functions listed in the OpticonBluetoothAPIDocs.chm help file will be available. Please see the reference for more
|
|
|
+ |
information about specific functions. The reference is contained within a chm help file, OpticonBluetoothAPIDocs.chm which should have been
|
|
|
+ |
included with your copy of the SDK.
|
|
|
+ |
#Download the ''"Windows SDK kit"'' found in the [[#Software Software Downloads Section]] of this page.
|
|
|
|
|
|
|
|
|
|
|
+ |
'''Example'''
|
|
|
+ |
An example Visual Studio project is also included with the SDK, to demonstrate how to integrate an Opticon OPN-2002 or OPN-2005 using the
|
|
|
+ |
API. When the included solution is built, it will create an application for Windows Phone 8. This application is deployable on a live device, and it
|
|
|
+ |
should provide a good idea of the capabilities of the API.
|
|
|
+ |
The example application supports the following features:
|
|
|
+ |
Connection Management: The application can be commanded to search through the list of paired devices for supported devices. To do
|
|
|
+ |
this, choose the Find Paired Devices button. If a supported device has been paired with the phone, it will be displayed in this list. Touch
|
|
|
+ |
the desired device and choose Connect to selected to establish a connection.
|
|
|
+ |
Bidirectional Communication: To test receipt from the scanner, simply scan any supported barcode. The barcode data will appear in
|
|
|
+ |
the application. To test transmission to the scanner, touch the Send Z1 button. This causes a command to be transmitted to the scanner.
|
|
|
+ |
As a result, the firmware versions for the connected scanner will be displayed as output.
|
|
|
+ |
Please note that although the app supports managing connections, initial pairings with supported devices must still be created using the Windows
|
|
|
+ |
Phone settings app or the Windows Phone Bluetooth API. See Microsoft's Knowledge Base for more information:
|
|
|
+ |
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207007(v=vs.105).aspx
|
|
|
+ |
''Supported Devices''
|
|
|
+ |
Currently, only the OPN-2002 and OPN-2005 are tested and known to work with this API. Please contact Opticon Technical Support for more
|
|
|
+ |
information about support for our other devices.
|
|
|
|
|
|
|
|
|
|
==Downloads== |
|
==Downloads== |
|
|
|
|