LMX9838 Cable Replacement

Similar documents
Embedded Simply Blue Application Note

User's Graphical User Interface(GUI) for LP555x Evaluation Board PowerWise Technology. Compliant Energy Management Unit AN Overview.

The LM49370 PCM/I 2 S Bridge

LM48555 Evaluation Board

LM3881 Power Sequencer Evaluation Board

USB I 2 C Interface Board Reference Manual

LM3410X LED Driver 6-Pin LLP Demo Board

Decompensated Operational Amplifiers

LM3509 Evaluation Board

LP5526 Evaluation Kit

DS90LV004 4-Channel LVDS Buffer/Repeater with Pre-Emphasis

BlueMoon Universal Embedded PBA31309 V1.00. SPP-AT SW, Version 3.3. I n t e l P u b l i c. Revision 1.1,

DS90LV804 4-Channel 800 Mbps LVDS Buffer/Repeater

DP83848 Single 10/100 Mb/s Ethernet Transceiver Reduced Media Independent Interface (RMII ) Mode

AN4113 Application note

DS3668 Quad Fault Protected Peripheral Driver

Dual Access into Single- Access RAM on a C5x Device

PC87435 Enhanced IPMI Baseboard Management Controller

Time Compensation) for TFT-LCD Monitors and TV (XGA/WXGA/HDTV I,II,-)

The LM4935 Headset/Push-Button Detection Guide

Hardware UART for the TMS320C3x

ANTC205. Introduction

STA400EP Enhanced Plastic Dual 2:1 Analog Mux with IEEE

LMV1022 / LMV1023 Digital Output PDM Microphone Amplifier Demo Board User's Guide

AN2672 Application note

Bluetooth Serial Port Adapter Optimization

SCAN92LV090 9 Channel Bus LVDS Transceiver w/ Boundary SCAN

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

Ai-Thinker. ESP-12S Datasheet. Version V0. Copyright 2018 ESP-12S WIFI MODULE V0. Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved

Bluetooth PC Card Transport Layer

Ai-Thinker. ESP-01F Datasheet. Version V1 Copyright Copyright 2018 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved

LM A Dual Flash LED Driver System with I2C Compatible Interface

AN3154 Application note

Installing FTDI Device Drivers for the QF4A512-DK under Windows XP

Nested Loop Optimization on the TMS320C6x

AN2667 Application note

Implementation of a CELP Speech Coder for the TMS320C30 using SPOX

Interconnecting National Semiconductor s TP3420A SID to Motorola SCP/HDLC Devices

Low Power RS-232C Driver and Receiver in CMOS

CB-OBS4XX OPTIMIZATION GUIDE

Simply Blue Smart User s Guide

Jump Test of ESP8266 s Secondary Bootloader (V1.6+)

AN2261 APPLICATION NOTE

AN2825 Application Note

CRD User Guide. Table of Contents. 1 Initial Configuration of the CRD The Control Console

TC35661SBG-501 Bluetooth IC Embedded Profile Series [SPP+GATT] Supported Functions Specification Overview. Rev 1.00

UM1572 User manual. STEVAL-IPE020V1: ST energy meter application based on the Android platform. Introduction

TIDA Test Report

UM0792 User manual. Demonstration firmware for the DMX-512 communication protocol transmitter based on the STM32F103Zx.

STLC2500D. Bluetooth V2.1 "Lisbon" + EDR. Features. Description

Reading a 16-Bit Bus With the TMS320C5x Serial Port

Microphone Power Gating. Top. Back SPKR. Figure 1 Example Microphone Placement in a Mobile Phone

SELINUX SUPPORT IN HFI1 AND PSM2

_äìé`çêé» UART Host Transport Summary. February 2004

Model: SJR-BTM334. Version: V

TIDA Test Report

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

TMS320C5x Memory Paging (Expanding its Address Reach)

INTEGRATED CIRCUITS ABSTRACT

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

M M WIFI Module

How to use the NTAG I²C plus for bidirectional communication. Rev June

MIC705/706/707/708. General Description. Features. Applications. Typical Application. µp Supervisory Circuit

EDBG. Description. Programmers and Debuggers USER GUIDE

Forging a Future in Memory: New Technologies, New Markets, New Applications. Ed Doller Chief Technology Officer

Evaluation Board for CS5351

AN205 CP210X BAUD RATE SUPPORT. Relevant Devices This application note applies to the following devices: CP2102, CP

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

Chipset Evaluation and Development Loadboard Version 2

AN2470 Application note TS4871 low voltage audio power amplifier Evaluation board user guidelines Features Description

Bit-reversed Addressing without Data Alignment on the C3x

User Guide Laird Configuration and Test Utility Software. Version 1.0

ESP8266 Application Note Firmware Download Protocol

Use the Status Register when the firmware needs to query the state of internal digital signals.

AN3188 Application note

BIOS Update Release Notes

BOOST YOUR SYSTEM PERFORMANCE USING THE ZILOG ESCC CONTROLLER

Manual AMB2300 Version 2.2

Innovating and Integrating for Communications and Storage

Features. Applications

LM V Off-Line TRIAC Dimmer LED Driver Reference Design

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

Hints and tips when using RC1xx0 RF Modules

USER GUIDE EDBG. Description

LM3704/LM3705 Microprocessor Supervisory Circuits with Power Fail Input, Low Line Output and Manual Reset

AN2792 Application note

Table 1 summarizes the supported device attribute differences between KSZ9021RN and KSZ9031RNX PHY devices. Device Attribute KSZ9021RN KSZ9031RNX

CPRI Repeater System. CPRI Repeater System AN System Design Overview. 1.0 Introduction

QPP Proprietary Profile Guide

TLK10081 EVM Quick Start Guide Texas Instruments Communications Interface Products

Features. Applications. n Embedded Controllers and Processors n Intelligent Instruments n Automotive Systems n Critical µp Power Monitoring

AN2676 Application note

AN2143 Application note

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

Quick Start Guide. Figure 1 Voice Capture Board Plugged Directly into Raspberry Pi

ONE PHASE POWER METER (RN8209) SOLUTION

Intel Dialogic CPi/200B2 and CPi/400B2 Fax Boards

BIOS Update Release Notes

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

M3H Group(1) Application Note. I 2 C Interface (I2C-B) MASTER/SLAVE

Transcription:

LMX9838 Cable Replacement 1.0 Introduction Bluetooth technology offers a wide range of features and profiles in order to support many different applications. Even though Bluetooth is very flexible, it still keeps the advantage of having a standardized wireless transmission. The growing success and wide distribution of Bluetooth in many different devices and applications make of Bluetooth an attractive solution to be used as general data interface such as simple cable replacement applications. 2.0 Cable Replacement as Waiting Device Implementing a cable replacement solution with a LMX9838 device only requires minimal efforts in software and hardware. The following details the hardware implementation, software implementation and a specific part on how to configure the device for production lines, in this specific scenario. 2.1 HARDWARE IMPLEMENTATION To connect a LMX9838 device in a system for a serial cable replacement application, the user should pay attention to the following points: All UART lines (TX, RX, RTS, CTS) should be connected to the host device. Omitting the flow control can bring up some corruption issues if the module works in transparent mode. In transparent mode the module forwards the data without interpreting and has therefore no way to control the flow. For more details on transparent mode refer to the Software User s Guide. 1K pull ups should be applied to the OP pins which should be at high level. Table 1 gives the possible OP pins configuration and their respective UART settings... National Semiconductor Application Note 1700 Sebastien Mathieu September 2007 National Semiconductor SimplyBlue module products include the complete Bluetooth stack and profile together with a great selection of features to provide an easy-to-use solution with minimal integration effort. This application note describes the main features and configurations required to implement the LMX9838 as cable replacement into a system. TABLE 1. General Baudrate OP3 OP4 OP5 UART Speed Selection 1 0 0 UART speed read from NVS 1 0 1 UART speed 9600 bps 1 1 0 UART speed 115200 bps 1 1 1 UART speed 921600 bps For more details and other configurations refer to the Datasheet. The module should be powered according to the Datasheet values. The Datasheet also gives system schematics example to give some guidance. PG6 pin can be connected to one of the host IO as event trigger for the application. The PG6 pin goes high when a Bluetooth link is established on the module. Figure 1 shows a connection diagram example of a typical serial replacement application. 30035101 FIGURE 1. System Diagram Example For Cable Replacement Application Note: The UART selection in this example is set up to 115200 bps. PG7 acts as RF traffic indicator. Bluetooth is a registered trademark of Bluetooth SIG, Inc. and is used under license by National Semiconductor Corporation. For more information refer to Datasheet and Design Guide 2007 National Semiconductor Corporation 300351 www.national.com LMX9838 Cable Replacement AN-1700

AN-1700 2.2 FIRMWARE IMPLEMENTATION The firmware implementation is reduced to a minimum due to the simplicity of SimplyBlue and its orientation towards cable replacement applications. The LMX9838 firmware by default is configured to automatically accept incoming links having the correct pin and switches the UART to the so called transparent mode, to directly forward the RAW data between the host and the Bluetooth link. There are few events to keep in mind in such an application: Incoming link established event: After an incoming link has been successfully established, the Incoming link established event will be sent to the host by the module. Link released event: After a link has been released, the module sends the link released event to the host with the reason of the connection release. Incoming UART break event: When the device works in transparent mode, it sends a UART break event to the host on a link release just before the link released event is sent. Event filter: This optional setting can be used to filter the event messages to a certain degree. It can be set to stop reporting any events including UART break. The event filter can be programmed in production. See Production line section for more details. To configure a SimplyBlue Bluetooth module as pure cable replacement when receiving an incoming link, the event filter should be set to mode 02 or 03 to disable the event reporting. For more details on the above parameters refer to the Software User s Guide. Indicator scenario example for Event Filter set to 01: Link establishment: the remote device initiates the link. RX Event: Incoming Link Established, BdAddr: 071501000000, Local Port 01 02 69 0C 07 00 7C 07 15 01 00 00 00 01 03 The module automatically switches to transparent mode until the connection gets released. Link release: On a link release, the device sends the incoming UART break event, switches back to command mode then sends the link released event. RX Event: Transparent mode, Local Port 01, Mode 00 00 (UART Break event) 02 69 11 02 00 7C 01 00 03 (Transparent mode left event) RX Event: Link Released, Reason: 01, Local Port 01 02 69 0E 02 00 79 01 01 03 Indicator scenario example for Event Filter set to 02: Link establishment: the remote device initiates the link. RX Event: (=> Nothing as the event filter is set to 02) The module automatically switches to transparent mode until the connection gets released. Link release: On a link release, the device sends the incoming UART break event, switches back to command mode then sends the link released event. RX Event: (=> Nothing except UART Break as the event filter is set to 02) 00 (UART Break event) RX Event: (=> Nothing as the event filter is set to 02) www.national.com 2

Indicator scenario example for Event Filter set to 03: Link establishment: the remote device initiates the link. AN-1700 RX: (=> Nothing as the event filter is set to 03) TXHex: The module automatically switches to transparent mode until the connection gets released. Link release: On a link release, the device sends the incoming UART break event, switches back to command mode then sends the link released event. RX: (=> Nothing including UART Break as the event filter is set to 03) RX Event: (=> Nothing as the event filter is set to 03) 2.3 PRODUCTION LINE The LMX9838 SimplyBlue module stores all functional parameters into the internal EEPROM. In most of the cases, the module can be used as is and do not need specific changes. But in some applications, the system requires the module to work slightly differently than default. 2.3.1 Baudrate is Different Than a Hardware Setting The OP pins settings combination can select 3 different hardware UART settings as described in Table 1. If the UART speed to be used is different than the hardware selection available, the specific baudrate can be stored in NVS. In this case the OP pin settings must be configured to UART speed read from NVS and the baudrate must be programmed in EEPROM using the Change NVS UART Speed command. Table 2 gives the NVS baudrates available and their respective values to be stored. TABLE 2. NVS UART Speed UART Speed NVS Value 2400 0 4800 1 7200 2 9600 (default) 3 19200 4 38400 5 57600 6 115200 7 230400 8 460800 9 921600 0A 2.3.2 The Local Name is Different Than Original The module Local Name is set to Serial Port Device by default. The new chosen name can be programmed in NVS (EEPROM) using the Write Local Name command. For more details refer to Software User s Guide. 2.3.3 The Pin is Different Than Default Value The original factory PIN is set to 0000. It is of good usage to set the PIN to a different value to get a better security. The PIN can be stored in NVS (EEPROM) using the set fixed PIN command. If the PIN value is empty, the module will ask the user for a dynamic PIN value. For more details, refer to the Software User s Guide. 2.3.4 The Event Filter Setting is Different Than Default Value By default the event filter setting is set to 0x01. In this configuration all events except ACL indicators are reported back to the host device. If the event filter setting needs to be different in the final application, the value can be programmed in NVS (EEPROM) using the Set Event Filter command. Table 3 sums up the filters configuration and their respective values. TABLE 3. Event Filter Settings Event Filter Level NVS Value All event reported 00 ACL events filtered 01 All events filtered except UART break 02 All events filtered including UART break 03 For more details on the event filter refer to Software User s Guide. 3 www.national.com

AN-1700 3.0 Bluetooth Link Versus Physical Cable A Bluetooth link is from its characteristics different to a physical cable. The main differences are the throughput and latency, which are always fixed for a given cable, but depend on the link parameters, the actual link state and link quality in a Bluetooth link. 3.1 THROUGHPUT The data throughput over a cable is constant for a given technology. The data throughput in a cable is reduced either if the cable gets broken, or if the other cable end is not able to sustain the flow. In a Bluetooth link, the data throughput depends on: The transport layer speed setting: Speed setting selected between the host controller and the module. The link quality: If the link quality is bad, the Bluetooth radio will see more bit, frame errors and thus retransmissions which reduce the data throughput. The transport layer mode: In command mode the module interprets the data coming in which consumes more processing and requires more overhead. This reduces the overall data throughput. In transparent mode the module just forwards the data without processing to optimize the flow. To get the best data transfer rate out of a Bluetooth link, the module needs to be configured in a way taking care of all the previous points written. To be sure having the highest throughput using a SimplyBlue module, the user should: Set up the transport layer speed to 921600 bps. Use the module in transparent mode. Ensure the Bluetooth devices are placed at a reasonable distance to get a good link quality. 3.2 LATENCY The latency of a physical cable can be considered insignificant compared to a Bluetooth link. The latency of a Bluetooth link is in ms range and depends essentially on the baseband buffer management, the RFCOMM layer buffer management, the type of packet used. With SimplyBlue modules the user does not have any direct influence on the packet type used as it is automatically selected to get the optimal transfer. 4.0 Bibliography [1] Software User s Guide [2] UART Buffer Application Note [3] Datasheet [4] Design Guide For the general buffer management, SimplyBlue handles data buffers depending on the module state and the transport layer mode. In command mode, the data bytes number is known from the command/data size field. Once all bytes are present in the data buffer, the command bytes will be forwarded to the upper layer. In transparent mode the data bytes number is unknown. Therefore there is a timeout mechanism allowing the data to be forwarded to the upper layer even if the buffer is not full. For more details on the UART buffer management refer to the UART Buffer Application Note. In order to reduce the timeout latency and get the best results out of the module, the user should: Use the module in transparent mode. Avoid slicing the data frames in small packets to improve the communication flow. (Send data packets above 330 Bytes if possible). Note: Reducing the latency is an important factor as it contributes increasing the average data throughput. 3.3 POWER MANAGEMENT Another specificity of a Bluetooth link is the power it consumes to get the data transmitted. This consumption depends mainly on the radio activity. Bluetooth includes a specific low power mode called sniff mode which allows reducing the consumption of an active link. In this mode the module will periodically shut down the radio activity for a certain time. But this low power sniff mode is a direct trade-off between latency and power consumption. If the sniff interval is low, the latency will be as low but the consumption will be the normal functional consumption If the sniff interval is high, the latency will be as high but the power consumption will be much reduced It is then really important to know the exact requirement of the cable replacement application in term of latency and throughput to be able to decide the sniff interval to be applied. For more information on sniff mode, refer to the Software User s Guide. www.national.com 4

Notes AN-1700 5 www.national.com

AN-1700 LMX9838 Cable Replacement Notes THE CONTENTS OF THIS DOCUMENT ARE PROVIDED IN CONNECTION WITH NATIONAL SEMICONDUCTOR CORPORATION ( NATIONAL ) PRODUCTS. NATIONAL MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS PUBLICATION AND RESERVES THE RIGHT TO MAKE CHANGES TO SPECIFICATIONS AND PRODUCT DESCRIPTIONS AT ANY TIME WITHOUT NOTICE. NO LICENSE, WHETHER EXPRESS, IMPLIED, ARISING BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. TESTING AND OTHER QUALITY CONTROLS ARE USED TO THE EXTENT NATIONAL DEEMS NECESSARY TO SUPPORT NATIONAL S PRODUCT WARRANTY. EXCEPT WHERE MANDATED BY GOVERNMENT REQUIREMENTS, TESTING OF ALL PARAMETERS OF EACH PRODUCT IS NOT NECESSARILY PERFORMED. NATIONAL ASSUMES NO LIABILITY FOR APPLICATIONS ASSISTANCE OR BUYER PRODUCT DESIGN. BUYERS ARE RESPONSIBLE FOR THEIR PRODUCTS AND APPLICATIONS USING NATIONAL COMPONENTS. PRIOR TO USING OR DISTRIBUTING ANY PRODUCTS THAT INCLUDE NATIONAL COMPONENTS, BUYERS SHOULD PROVIDE ADEQUATE DESIGN, TESTING AND OPERATING SAFEGUARDS. EXCEPT AS PROVIDED IN NATIONAL S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, NATIONAL ASSUMES NO LIABILITY WHATSOEVER, AND NATIONAL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY RELATING TO THE SALE AND/OR USE OF NATIONAL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. LIFE SUPPORT POLICY NATIONAL S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE CHIEF EXECUTIVE OFFICER AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness. National Semiconductor and the National Semiconductor logo are registered trademarks of National Semiconductor Corporation. All other brand or product names may be trademarks or registered trademarks of their respective holders. Copyright 2007 National Semiconductor Corporation For the most current product information visit us at www.national.com www.national.com National Semiconductor Americas Customer Support Center Email: new.feedback@nsc.com Tel: 1-800-272-9959 National Semiconductor Europe Customer Support Center Fax: +49 (0) 180-530-85-86 Email: europe.support@nsc.com Deutsch Tel: +49 (0) 69 9508 6208 English Tel: +49 (0) 870 24 0 2171 Français Tel: +33 (0) 1 41 91 8790 National Semiconductor Asia Pacific Customer Support Center Email: ap.support@nsc.com National Semiconductor Japan Customer Support Center Fax: 81-3-5639-7507 Email: jpn.feedback@nsc.com Tel: 81-3-5639-7560