Link-OS Environment Bluetooth Low Energy AppNote October 4, 2014

Similar documents
USB On The Go AppNote October 5, 2014

THE POWER OF WiNG SIMPLIFIED

Zebra Validation Program Comprehensive Solution Overview Exhibit C

Zebra Validation Program Comprehensive Solution Overview Exhibit C

Getting Started with Windows Mobile Development Windows Mobile SDK C#

Zebra Link-OS Environment Version 2.0

ZEBRA PRINTER PORTFOLIO: PRODUCTS AND SOLUTIONS

Power Analyzer Firmware Update Utility Version Software Release Notes

THE ZEBRA PRODUCT PORTFOLIO. Solutions that track, identify and manage in a fast-moving world

Zebra Kiosk. Help Yourself to a Versatile Printing.

Global entertainment and media outlook Explore the content and tools

Cisco Aironet In-Building Wireless Solutions International Power Compliance Chart

Traffic Offload. Cisco 7200/Cisco 7500 APPLICATION NOTE

Zebra ZXP Series 7 Card Printer

Cisco Extensible Provisioning and Operations Manager 4.5

Safety. Introduction

Zebra. ZT400 Series. Ideal for These Applications

nowa jakość w automatycznej identyfikacji

END-OF-SALE AND END-OF-LIFE ANNOUNCEMENT FOR THE CISCO MEDIA CONVERGENCE SERVER 7845H-2400

Troubleshooting Ethernet Problems with Your Oscilloscope APPLICATION NOTE

Cisco CallManager 4.0-PBX Interoperability: Lucent/Avaya Definity G3 MV1.3 PBX using 6608-T1 PRI NI2 with MGCP

Zebra Xi4 High-Performance Printers

CISCO IP PHONE 7970G NEW! CISCO IP PHONE 7905G AND 7912G XML

Cisco Voice Services Provisioning Tool 2.6(1)

Cisco 3745 Gateway - PBX Interoperability: Avaya Definity G3 PBX using Q.931 PRI Network Side Interfaces to an H.323 Gateway

ALL-IN-ONE PRESENTATION SYSTEMS

Supplier Responding to New Products RFP Event

Zebra Xi4 High-Performance Printers

Cisco 2651XM Gateway - PBX Interoperability: Avaya Definity G3 PBX using Analog FXO Interfaces to an H.323 Gateway

Troubleshooting Ethernet Problems with Your Oscilloscope APPLICATION NOTE

Cisco Catalyst 2950 Series Software Feature Comparison Standard Image (SI) and Enhanced Image (EI) Feature Comparison

Dataliner Message Displays Using DL50 Slaves with a DL40 Master

Instruction Manual. VacTest Accessory. Interface Converter (Bluetooth Module) RS485 - Bluetooth. Vacuum Measurement Equipment

ENHANCED INTERIOR GATEWAY ROUTING PROTOCOL STUB ROUTER FUNCTIONALITY

Step 1: New Portal User User ID Created Using IdentityIQ (IIQ)

Purchasing. Operations 3% Marketing 3% HR. Production 1%

U85026A Detector 40 to 60 GHz

GW-WN150M 11b/g/n USB Wireless User Manual

How to Troubleshoot System Problems Using an Oscilloscope with I 2 C and SPI Decoding APPLICATION NOTE

EventBuilder.com. International Audio Conferencing Access Guide. This guide contains: :: International Toll-Free Access Dialing Instructions

High-Availability Solutions for SIP Enabled Voice-over-IP Networks

E-Seminar. Voice over IP. Internet Technical Solution Seminar

IBM Product Lifecycle Management. CAA Rade solutions

Global Ultrabooks Market Insights, Forecast to 2025

AdaptaScan Reader to a PLC-5 Using DH-485 Protocol with the 2760 RB Module and the 2760-SFC2 Protocol Cartridge

Customers want to transform their datacenter 80% 28% global IT budgets spent on maintenance. time spent on administrative tasks

AdaptaScan Reader to a PLC-5 Using RS-232/ASCII Protocol with the 2760 RB Module and the 2760-SFC1 and -SFC2 Protocol Cartridge

Programming Note. Agilent Technologies Quick Reference Guide For the 8757D/E Scalar Network Analyzer

Innovative Fastening Technologies

Zebra Xi4 High-Performance Printers

CISCO 7304 SERIES ROUTER PORT ADAPTER CARRIER CARD

Application Note. Overview. Hardware Requirements. Software Requirements

Fast 3D EMC/EMI Scan with Detectus Scanning System and Tektronix Real Time Spectrum Analyzers CASE STUDY

NEW CISCO IOS SOFTWARE RELEASE 12.2(25)EY FOR CISCO CATALYST 3750 METRO SERIES SWITCHES

N2753A and N2754A Windows XP to Windows 7 Upgrade Kits. For Infiniium 9000, 90000, and X-Series Oscilloscopes

Digital Opportunity Index. Michael Minges Telecommunications Management Group, Inc.

How the world pays, now and in the future: The Global Payments Report. Ieuan Owen, SVP Strategy Worldpay ecom

Configuring DHCP for ShoreTel IP Phones

RT-AX95U Wireless-AX11000 Tri Band Gigabit Router

THE POWER OF A STRONG PARTNERSHIP.

NEW METHOD FOR ORDERING CISCO 1700 SERIES MODULAR ACCESS ROUTERS AND CISCO 1800 SERIES INTEGRATED SERVICES ROUTERS SOFTWARE SPARE IMAGES

u-blox Low Energy Serial Port Service

TCPN-WW-CV-0102 Frank Fabricius

CONFIGURING EPOLICY ORCHESTRATOR 3.0 AND MCAFEE 8.0i WITH CISCO CALLMANAGER

Multi-Site Parallel Testing with the S535 Wafer Acceptance Test System APPLICATION NOTE

THE CISCO SUCCESS BUILDER PROGRAM THE CISCO SMALL OFFICE COMMUNICATIONS CENTER: AFFORDABLE, PROVEN COMMUNICATIONS SOLUTIONS FOR SMALL ORGANIZATIONS

Cisco MDS 9000 Family and EMC ECC Integration

Global Smoothie Market Insights, Forecast to 2025

Cisco Unified CallManager 4.0-PBX Interoperability: Mitel 3300 ICP Release 4.1 PBX to a Cisco 6608 Gateway using T1 QSIG with MGCP

Overview. ❶ Short introduction to the company. ❶ Short history of database and DBMS. ❶ What is the next DBMS s generation? ❶ Introduction to Tamino

Cisco AS5300 Gateway - PBX Interoperability: NEC NEAX 2400 PBX using T1 PRI Interfaces to an H.323 Gateway

Cisco AVVID The Architecture for E-Business

Взято с сайта

A 3/25/99 4:23 PM Page 23 APC Global Services 1999 Al Specificat

Successfully Integrating Bar Code Printers in the IBM Midrange Environment A ZEBRA BLACK&WHITE

CISCO 7304 SERIES ROUTER PORT ADAPTER CARRIER CARD

Access Code and Phone Number

Digital EAGLEs. Outlook and perspectives

ZEBRA MC55X MC65 MC67 ACCESSORIES GUIDE

Cisco ONS SDH 12-Port STM-1 Electrical Interface Card

Instructions. (For 6180 Industrial Computers) Installing a Processor Upgrade

Using TAPS with +E.164 Directory Numbers

Patent Portfolio Overview May The data in this presentation is current as of this date.

MANUAL VOICE/DATA SIMCARD CANADA

Agilent Noise Source Calibration Using the Agilent N8975A Noise Figure Analyzer and the N2002A Noise Source Test Set. Product Note

Partner Guidelines to sign Agreement. May, 2017

E-Seminar. Wireless LAN. Internet Technical Solution Seminar

s-center Evaluation Software for short range modules User Guide Abstract

Agilent N1918A Power Analysis Manager

I 2 C and SPI Protocol Triggering and Decode for Infiniium 8000 and Series Oscilloscopes

CISCO TRANSPORT MANAGER 4.7

One step ahead in home automation

I 2 C and SPI Protocol Triggering and Decode for Infiniium 9000A and 9000 H-Series Oscilloscopes

IATF Stakeholder Conference

Server Virtualisation Assessment. Service Overview

Agilent Modern Connectivity Using USB and LAN I/O Converters

Cisco Value Incentive Program Advanced Technologies: Period 7

Zebra QLn Series. Ideal for These Applications

MULTI-VRF AND IP MULTICAST

Keysight N2753A and N2754A Windows XP to Windows 7 Upgrade Kits For Infiniium 9000, 90000, and X-Series Oscilloscopes. Configuration Guide

Transcription:

Link-OS Environment Bluetooth Low Energy AppNote 2456934.977326 October 4, 2014

INTRODUCTION Bluetooth Low Energy, also referred to as Bluetooth LE, BTLE or Bluetooth Smart, is a new communication protocol that has been added to the Bluetooth (BT) 4.0 specification. It is offered as supplement to the legacy Bluetooth protocol (now referred to as Bluetooth Classic ). Bluetooth LE is intended to provide a lowpower use, low-speed alternative to Bluetooth Classic. The first Zebra printer to offer Bluetooth LE as an option is ZQ500 series. Bluetooth LE operates on the same 2.4GHz band as BT Classic and Wi-Fi. It uses a frequency-hopping scheme similar to Bluetooth Classic, but with fewer channels (37 vs. the 81 in Bluetooth Classic). Bluetooth LE is optimized for both power use and short data transmission events, so the connection process is extremely fast (0.01 seconds). However, the Bluetooth LE specification requires that devices transfer data at significantly slower rates than those using Bluetooth Classic. Data transfer speeds to printers using Bluetooth LE have been benchmarked at 80 bytes per second when used in an isolation chamber. Given this, the Bluetooth LE protocol is best used for discovering devices and light-duty, datatransfer events. At typical Bluetooth LE data transfer rates, retrieving the printers personality data (using the allcv command) could take longer than 6 minutes. A firmware download could take up to 72 hours to complete, dependent on how many other Bluetooth LE devices are in the environment. Using Bluetooth Classic is recommended when data transfer times are the priority. Bluetooth Classic used the concept of Profiles to describe the methods used to support a specific use case. For example, Zebra printers support the Serial Port Profile (SPP), which is used to enable devices to communicate with Zebra printers over Bluetooth Classic as if an RS-232 cable was being used. Bluetooth LE has replaced the Profiles concept with Services. Bluetooth LE Services exist for a number of specific use cases. Since the Bluetooth LE specification does not have an equivalent to the Serial Port Profile, Zebra has developed a custom service to enable communication with the printer. This Service is called the Zebra Bluetooth LE Parser Service, described below. PRINTER CONFIGURATION To support Bluetooth LE, a new group of SetGetDo (SGD) commands has been added to the Link-OS printer operating system. In addition to this new group of commands, some of the existing Bluetooth SetGetDo commands will now have an effect on classic and BTLE behavior. bluetooth.enable This SGD enables or disables the Bluetooth radio for both Classic and LE on or off on bluetooth.connected Indicates whether there is an active Bluetooth connection for either classic or LE no or yes (shows current state) 2

bluetooth.friendly_name Used as the friendly name or display name shown during Bluetooth and BTLE discovery events on the master device Any string up to 17 Characters The default value is the printer s serial number bluetooth.address The Bluetooth address (BDADDR) of the printer with octets delimited by : (This value is set to the radio s MAC address) (This value is set to the radio s MAC address) bluetooth.short_address The Bluetooth address (BDADDR) of the printer without the : character (This value is set to the radio s MAC address) (This value is set to the radio s MAC address) bluetooth.le.minimum_security Sets the minimum LE security level that the printer will allow; higher security levels are always allowed if requested by the master device none,unauth_key_signing,auth_key_signing,unauth_key_encrypt,auth_key_encrypt none bluetooth.le.controller_mode Controls which Bluetooth modes (classic, LE or both) are enabled both,classic,le both 3

DETAILS FOR DEVELOPERS The following content is provided for developers creating solutions for use with the ZQ500 series printers. This same information will apply to future Link-OS printers that offer the Bluetooth LE radio option. Supported GAP Roles The ZQ500 series supports the Peripheral role. Supported Generic Attribute Profile (GATT) Services GENERIC ACCESS PROFILE (GAP) The standard GAP is supported on the ZQ500 (UUID 0x1800): Characteristic UUID Description Device Name 0x2A00 device.friendly_name; same as Classic friendly name Appearance 0x2A01 Currently 0x0000 ( Unknown ) DEVICE INFORMATION SERVICE (DIS) The standard DIS is supported on the ZQ500 (UUID 0x180A). All characteristics in this service are optional. The following characteristics are supported: Characteristic UUID Description Model Name 0x2A24 device.product_name; e.g., ZQ510 Serial Number 0x2A25 device.unique_id; e.g., XXQLJ1251000001 Firmware Revision 0x2A26 appl.name; e.g., V68.19.10Z Hardware Revision 0x2A27 PCC (device.configuration_number); e.g., ZQ51-AUE0000-00 Software Revision 0x2A28 appl.link_os_version (e.g., 2.5 ) Manufacturer Name 0x2A29 device.oem.manufacturer_name (e.g., Zebra Technologies ) All other DIS characteristics are omitted, as they do not apply to Zebra devices 4

ZEBRA BLUETOOTH LE PARSER SERVICE The Zebra Bluetooth LE Parser Service is a minimal GATT service designed to facilitate parser communication in as similar a fashion to SPP as the GATT model allows. UUID Type Description 38eb4a80-c570-11e3-9507-0002a5d5c51b Service UUID 38eb4a81-c570-11e3-9507-0002a5d5c51b Characteristic From Printer Data 38eb4a82-c570-11e3-9507-0002a5d5c51b Characteristic To Printer Data PUSHING DATA INTO THE PRINTER To push data into the printer, you can use the following ATT operations on the To Printer Data characteristic: Write Value Without Response Write Value With Response Write Value with Authentication (Signed) Write Long The data will be buffered and sent to the printer for processing. Write With Response or Write Value with Authentication are preferred if high reliability is desired. The amount of data that can be written to the characteristic is the minimum of the remote connection s ATT MTU and 512 bytes. RECEIVING DATA FROM THE PRINTER To receive data from the printer via Bluetooth LE, the remote device must support the ATT Indication operation. By default, reverse data sent from the printer is not buffered and goes nowhere if the current parser connection is over LE. One possible use case is if the LE port is only being used for printer configuration, not for acquiring printer status. To activate indication support, you must write GCCC_ INDICATION (16-bits, 0x0002 in host order) to the Client Characteristic Config (CCC) for the From Printer Data characteristic. Once this value is written, the printer will send an indication to the Central role device whenever reverse data is to be sent over Bluetooth LE. The value of the characteristic provided in the indication is raw data from the parser. The amount of data that will be indicated is the smaller of the remote connection s ATT MTU and the amount of data remaining in the reverse data buffer. Indications shall be sent in order with respect to the reverse data returned from the printer. The next indication will not be sent until the Central device acknowledges the indication. 5

BLUETOOTH LE / USB DONGLE When developing a solution, developers may need to use a Bluetooth LE USB dongle, a device that enables Bluetooth LE communications from devices that do not natively support BTLE. One such device is the Bluegiga BLED112. This device is a USB dongle that contains a microcontroller with Bluetooth LE radio and stack. It presents itself to the host computer as a Serial port, allowing it to be used for Bluetooth LE communications even if the OS on the host computer does not have a native BLE stack (e.g. Windows 7). Included with the BLED112 is a simple GUI tool for accessing BTLE services. NOTE: References to Bluegiga BLED112 and Rapid Tables do not imply endorsement or support by Zebra Technologies. These details are offered for informational purposes only. For Technical Support on Bluegiga devices, please contact Bluegigga at https:// www.bluegiga.com/en-us/support/. The following procedure describes how to use the BLED112 software GUI to communicate with Zebra printers over BLE: 1. Open the Bluegiga BLE GUI Tool 2. Connect to your Bluegiga dongle 3. Click Start button on left side to perform a scan 4. After a few seconds, click Stop to end the scan 5. Connect to your printer 6

6. Click Service Discover, then select the line with Handle 58, then click Descriptors Discover 7. Select line Handle 59/UUID 2902; enter 0200 in the text box and click Write ; this writes the CCC so as to enable indications as described in earlier sections 8. As an example, we will send ~hi to the printer and retrieve the response IMPORTANT NOTE: at the time of this writing, the Bluegiga product only allows the user to send 20 characters at a time dividing up longer commands into groups of 20 characters is allowed. 7

9. All ASCII text sent via the Bluegiga tool needs to be converted to hexadecimal. An easy-to-use tool for this conversion is called Rapid Tables, available at: http://www.rapidtables.com/convert/number/ascii-to-hex.htm 10. In the Bluegiga software GUI, select Handle 61; copy the hex value from RapidTables into text box and click Write 8

11. Data should be received back from the printer on Handle 58: 12. Copy the hex values into the RapidTables Hex-to-ASCII webpage to convert back to ASCII: http://www.rapidtables.com/convert/number/hex-to-ascii.htm 13. You may have to manually concatenate the printer responses in the RapidTables interface if they exceed 20 characters Further Reading http://chapters.comsoc.org/vancouver/btler3.pdf https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=227336 All links and information provided within this document are correct at time of writing. 9

Corporate Headquarters +1 800 423 0442 inquiry4@zebra.com Asia-Pacific Headquarters +65 6858 0722 apacchannelmarketing@zebra.com EMEA Headquarters +44 (0)1628 556000 mseurope@zebra.com Latin America Headquarters +1 847 955 2283 inquiry4@zebra.com Other Locations / USA: California, Georgia, Illinois, Rhode Island, Texas, Wisconsin Europe: France, Germany, Italy, the Netherlands, Poland, Spain, Sweden, Turkey, United Kingdom Asia Pacific: Australia, China, Hong Kong, India, Indonesia, Japan, Malaysia, Philippines, Singapore, South Korea, Taiwan, Thailand, Vietnam Latin America: Argentina, Brazil, Colombia, Florida (LA Headquarters in USA), Mexico Africa/Middle East: Dubai, South Africa 2014 ZIH Corp. All product names and numbers are Zebra trademarks, and Zebra and the Zebra head graphic are registered trademarks of ZIH Corp. All rights reserved. All other trademarks are the property of their respective owners. (12/14)