Table of Contents

Advertisement

Quick Links

eUniStone
PAN1322
Application Note DesignGuide

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic eUniStone

  • Page 1  eUniStone PAN1322 Application Note DesignGuide...
  • Page 2  PAN1322 Information in this document related to the Intel product or, if any, related to its use is provided in connection with Intel products. No license, express or implied, by estoppel or otherwise, to any Intellectual property rights is granted by this document. Except as provided in agreements concluded individually or Intel’s terms and conditions of sale for such products, Intel assumes no liability whatsoever and Intel disclaims any express or implied warranty, relating to sale and/or use of Intel products including liability or warranties relating to fitness for a particular purpose, merchantability, or infringement of any patent, copyright or other Intellectual property right.
  • Page 3 Description Revision Date Updated reference schematic 16-Oct-2013 Added chapter describing how to change from HCI to SPP, chapter 9.4. Added chapters Application development and FAQ 27-Jun-2013 New document for eUniStone PBA31309 v1.00 12-Mar-2013 Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 4: Table Of Contents

     PAN1322 Contents Introduction ........................10 Interfaces ........................13 UART Interface ......................13 2.1.1 Low Power Mode Control ..................13 2.1.2 Hardware Flow Control ..................... 15 EEPROM / I2C Interface ................... 15 GPIO Interface ......................16 JTAG Interface ......................16 Power Supply .......................
  • Page 5  PAN1322 Smart Phone specifics....................32 5.2.1 Android Smart Phones ....................33 5.2.1.1 Registering service for Android compatibility ..........33 5.2.1.2 Security settings and connecting/bonding to Smart Phone versus App in the phone ......................... 34 5.2.1.3 Android market and Developing Apps for Android Smart Phones ... 35 5.2.2 Windows phone ......................
  • Page 6  PAN1322 9.1.2 SPP Test Tool ....................... 51 9.1.3 HCI Lite .......................... 51 9.1.4 eeprog – Aardvark ..................... 51 Setup of Device Under Test (DUT) ..............52 Preparation for RF Tests in non-signaling mode ..........53 Restoring from HCI to SPP (without using Aardvark) ........55 9.4.1 Restoring SPP-AT - Overwriting EEPROM ............
  • Page 7 Figure 14. Restricted area under antenna and recommended placement on PCB. . 44 Figure 15. Top layer and drill holes of the eUniStone USB Dongle....... 45 Figure 16. Bottom layer (from above) and drill holes of the eUniStone USB Dongle.
  • Page 8 Table 1. Sending and receiving data in command mode ........... 19 Table 2. Sending and receiving data in stream mode ............19 Table 3. Configurable combination of Input and Output Capabilities for eUniStone................................28 Table 4. Class of Device bits for a handheld terminal with bar-code scanner..28 Table 5.
  • Page 9  PAN1322 Table 8. Windows Phone - bonding with eUniStone............36 Table 9. iPhone - bonding with eUniStone................40 Table 10. Default Pin Configuration .................... 42 Table 11. Register for Switching Capacitances ..............60 Table 12. Changing the baud rate at runtime ................ 70 Table 13.
  • Page 10: Introduction

     PAN1322 Introduction eUniStone (embedded UniStone), with part number PBA31309, is a module based on PMB8754 (eBMU), an integrated BT radio transceiver, baseband and protocol stack, with EEPROM, band-pass filter and built in antenna eUniStone supports the following features ...
  • Page 11  PAN1322  UART with HW flow control (RTS/CTS)  Use of HW flow control is mandatory  UART baud rate may be changed in EEPROM configuration 9.6kbps to 3.25Mbps Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 12: Figure 1. Simplified Block Diagram Of Eunistone Module

     PAN1322 The block diagram of the eUniStone module is shown below. eUniStone EEPROM I2C interface Onboard UART singnal Antenna Balun filter PMB8754 eBMU GPIO Supply Supply regulator 26MHz Crystal Figure 1. Simplified Block Diagram of eUniStone Module Application Note Revision 1.2, 2013-12-18...
  • Page 13: Interfaces

    To allow the eUniStone to enter low power mode, the host sets pin P0.14 low. When eUniStone is ready, it will also allow the host to enter LPM by setting P0.0 low. Before entering LPM, the host shall set UART CTS of eUniStone high.
  • Page 14: Figure 3. Host Initiates Low Power Mode Entry And Exit

    PAN1322 The host can wake up eUniStone by setting UARTCTS of eUniStone low again and setting P0.14 high again, whereas the eUniStone can wake up the host by setting its own UART RTS low again and setting P0.0 high again.
  • Page 15: Hardware Flow Control

    1. The host allows eUniStone to enter low power mode 2. eUniStone starts to enter low power mode 3. When UARTRTS is high and P0.0 is low, eUniStone enters low power mode. The host may now enter low power mode by signaling UARTCTS high.
  • Page 16: Gpio Interface

    GPIO Interface Most digital pins on eUniStone can be used as general purpose I/O’s (GPIOs). The GPIO pins are grouped into two ports: P0 and P1. P0 has 16 pins (P0.0 - P0.15) and P1 has nine pins (P1.0 - P1.8).
  • Page 17: Power Supply

    “ROK” is sent via UART to the host. After receiving the startup response, the host is informed that the eUniStone module is ready to work. The range for the startup time is indicated for each application SW release in the Release Notes [3].
  • Page 18: Power Down Through Onoff Pin

     PAN1322 RESET# SDA0 UARTRTS UARTTXD Figure 5. Example of EEPROM Access at Start-up Power down through ONOFF Pin If VSUPPLY, VDDUART and VDD1 are supplied by the same source, it is not possible to switch off the module with the ONOFF signal. When the ONOFF pin is driven low, the reference levels VDDUART and VDD1 must also be switched off.
  • Page 19: Operation Modes

    Commands to eUniStone shall be ended with carriage return and line feed. Responses from eUniStone will be ended in the same way. E.g. for SW reset, AT+JRES<cr><lf> sent to eUniStone will be responded with ROK<cr><lf>. (“<cr><lf>“ might be omitted in further descriptions of commands and responses) After a SPP connection is set up to another device, data is sent using the command AT+JSDA.
  • Page 20: Switch From Command Mode To Stream Mode

    If the remote device is off (e.g. powered off or out of range) when the eUniStone module is in stream mode, stream data cannot be transmitted any more on the air. Hardware flow control stops any further UART communication as soon as the module’s UART input buffer is full.
  • Page 21: Accessory Development Compatible With Smart Phones

    This application can run on a micro-controller, FPGA, PC or similar. When writing the host application, there are some things that need to be considered. A host solution with eUniStone that is communicating with mobile solutions on Android, iPhone and Windows phone 8 will need to take specific considerations for the host application depending on Smart Phone/OS.
  • Page 22: Accessory

     PAN1322 The host application that controls eUniStone need to fulfill the control as required by the Accessory functionality. To control the Bluetooth link using eUniStone minimal requirements must be covered since the entire Bluetooth stack is included in eUniStone.
  • Page 23: Figure 7. Host Processor With Peripheral Device And Uart Connection To Eunistone

    Host application Ext. ext bus ctrl AT command interface External chip UART eUniStone AT command interface C bus BT STACK EEPROM Figure 7. Host processor with peripheral device and UART connection to eUniStone Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 24: Host Application

    5.1.2 Host Application The focus of this part is to provide information on how to control, initialize and configure eUniStone to make the accessory working with major Smart Phones. To design the host application the commands and responses in the SPP-AT specification [2] communication over UART interface are key. Also HW aspects needs to be taken care of e.g.
  • Page 25: Figure 8. General State Machine For A Host Application As Accessory

    When being in the Not Connected or Connected state it is important to save power. The Not Connected state is most probably the normal state and LPM (Low Power Mode) should be used at all times as long as the host is not sending any commands to eUniStone nor receiving a wake-up from Application Note Revision 1.2, 2013-12-18...
  • Page 26: Smart Phone Compatibility Requirements

    In the Connected state LPM should be used jointly with having the link in Sniff mode. LPM can also be used when the link is not in Sniff, but there is no power saving benefit since eUniStone has to use the high precision clock in this state.
  • Page 27: Security Settings - Input & Output Capabilities

    AT+JDIS (Enable Page and/or Inquiry Scan)  AT+JAAC (Set auto accept or host accept of incoming connection) eUniStone as a connecting device A should be configured, by the Host application with the following SPP-AT commands.  AT+JSEC (Set security level, variable/fix PIN, Input and Output Capabilities) ...
  • Page 28: Registering Service - Uuid And Cod

    The CoD consist of a 24 bit field. When Smart Phones search for accessories the CoD may result in finding or not finding the accessory since the manufactures of the phones handle CoD differently.
  • Page 29: Figure 9. Smart Phone Apps Using Serial Port Profile Uuid Connecting To Serial Port Accessory

    Figure 9. Smart Phone Apps using Serial Port Profile UUID connecting to Serial port accessory. When the UUID with the Serial Port Profile is used any other device or mobile phone application which use the Serial Port Profile can connect to the Accessory with eUniStone (iPhone require a specific long UUID).
  • Page 30: Registering Multiple Services And Connection Handling

    When a remote device connects to eUniStone it will tell the host application which service that has been connected to in the Connect Confirm Response. With the services used in the previous chapter the following three successful Connect Confirm Response will be received.
  • Page 31: Smart Phone Connecting To Accessory

    UUID. 5.1.3.5 Smart Phone connecting to Accessory The accessory is normally a device B and the general SPP-AT sequence for enabling the eUniStone to be connected by a Smart Phone is; Table 6. Accessory (eUniStone) set to connectable, device B...
  • Page 32: Smart Phone Specifics

    The procedure will vary and depend on the UUID, CoD and Input, Output Capabilities set with the security command on eUniStone. See chapter for detail about Android, Windows Phone and iPhone in combination with settings on eUniStone. Smart Phone specifics The various Smart Phones like Android, Windows mobiles and iPhone use their own OS’s and software and hardware implementations from various vendors.
  • Page 33: Android Smart Phones

    (or other Apps) connecting to specific Android Apps. In either case it is important that the chosen UUID is registered in eUniStone and used in the Android application. It is recommended to use a CoD other than 0x000000, since some Smart Phones with specific Android versions, will require this.
  • Page 34: Security Settings And Connecting/Bonding To Smart Phone Versus App In The Phone

    App needs to support such a procedure. The security command (AT+JSEC) is used to set the security for eUniStone, variable/fixed PIN and the Input and Output Capabilities. The Input and Output Capabilities are set according to the capabilities of the accessory. Depending on which capabilities are set the bonding with Android Smart Phones or a specific App has minor differences.
  • Page 35: Android Market And Developing Apps For Android Smart Phones

    1, 0. The reason for that is that the App is requesting a “secure RFCOMM socket” with man-in-the- middle protection. To be able to use the input, output combinations 0, 0 and 1, 0 on eUniStone the App should request an “insecure RFCOMM socket”.
  • Page 36: Bonding

     PAN1322 The Class of Device, CoD, written to eUniStone should also for a Windows Phone accessory reflect the functionality and features of the accessory as described in previous chapters, to be compatible with all three Smart Phones the CoD used should be 0x240704.
  • Page 37: Programming Language For Windows Phone

    Apple devices, implement an additional protocol layer on top of RFCOMM called iAP (iPod Accessory Protocol). The eUniStone host, hereafter referred to as the accessory, must identify and authenticate itself towards the Apple device to gain access to iAP Application Note Revision 1.2, 2013-12-18...
  • Page 38: Registering Service For Iphone

    AT+JRLS=32,11,00000000DECAFADEDECADEAFDECACAFF,Serial port,01,240704 The eUniStone Class of Device (CoD), set by the AT command AT+JRLS, shall be set to a specific value in order to be discovered by an Apple device. Using e.g. CoD 0x240704 for the Accessory it will in many cases not reflect the correct functionality of the device since this means that it is a (Audio, Rendering, Wearable, Wristwatch) device.
  • Page 39: Bonding

    Bonding an iPhone with eUniStone is always performed using the Bluetooth settings in the iPhone. After bonding, it is possible to start an iPhone application and connect to eUniStone. When the iPhone application connects to eUniStone the iAP authentication will be started and handled automatically by iOS.
  • Page 40: Ios And Mfi License

    Comments Bonding is accepted on iPhone only. Pass key is shown on both eUniStone and iPhone. Bonding is accepted on iPhone only. Bonding is accepted on iPhone only. Pass key is shown on both eUniStone and iPhone. Bonding is accepted on iPhone only.
  • Page 41: Reference Design Schematic

     PAN1322 Reference Design Schematic Figure The reference design schematic is shown in  VSUPPLY, VDDUART and VDD1 can be supplied by the same 3.3 V voltage.  C1 is only need to be placed in case noise is present from the power supply. ...
  • Page 42: Table 10. Default Pin Configuration

     PAN1322  If LPM wakeup output P0.0 is not used, it can be left open.  The GPIO pin P0.1 (pin E5) can be used to indicate the connection status. P0.1 is configured as input pin by default. To use this feature the host must send the AT command “AT+JGPC=FFFD,0000,0000,0000,FFFD”...
  • Page 43: Figure 13. Reference Design

     PAN1322 Figure 13. Reference Design Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 44: Layout

     PAN1322 Layout Two layer PCB reference design Since eUniStone PBA31309 have an onboard antenna there are only minor considerations for a two layer PCB layout.  The PCB layers under the antenna shall not contain any metal.  Place module with the antenna facing the edge of the PCB.
  • Page 45: Figure 15. Top Layer And Drill Holes Of The Eunistone Usb Dongle

    Figure 16. Bottom layer (from above) and drill holes of the eUniStone USB Dongle. Most of the signal lines are routed on the bottom layers. Also a ground plane is spread, connected with via to the top layer ground.
  • Page 46: General Four Layer Pcb Design

     PAN1322 Figure 17. The two layers of the eUniStone USB Dongle. Observe that there is no copper in any layer under the antenna. General four layer PCB design This chapter describes a general four layer PCB design aimed for more complex cards which have host processors connected to multiple device and possible also clock signals, address and data buses.
  • Page 47: Via Holes

     PAN1322 Figure 18. Example of a four layer stack-up 7.2.1.1 Via Holes Before starting with routing, the layout engineer must know what kinds of via are available. The choice depends from budget considerations: micro via are the most expensive, through via are the cheapest, the others are in the middle.
  • Page 48: Phase 2: Components Placement

    1. Place the connectors in the most rational way considering power distribution and interfaces. 2. Place the eUniStone module with the antenna on the edge of the PCB. Place all the other components in order to minimize track length and –if possible- keeping separate high frequency and baseband sections.
  • Page 49 Ground plane must be a continuous plane as large as possible, avoid to just “bring” the ground where is needed. b. eUniStone has several pins that must be connected to ground. Ideal would be to connect each pin with the ground underneath through via directly on pin. In case this cannot be done a trade-off must be found.
  • Page 50: Antenna

     PAN1322 Antenna The manufacturer of the antenna is Murata. The model number is LDA21K. The antenna having 50 ohm impedance has been matched on the module to have good efficiency, and enabling the full power of the Bluetooth chip. The matching also assures that the best receiver sensitivity is achieved.
  • Page 51: Test And Development Tools

    9.1.1 SPP Toolbox The SPP Toolbox is used to control eUniStone with AT commands, to setup links and as described in later chapter, to do RF tests. A detailed manual is delivered with the Toolbox. For testing of the PBA31309 with SPP AT SW 3.x the SPP Toolbox shall have version number 3.02 or later.
  • Page 52: Setup Of Device Under Test (Dut)

    4. Search and connect with the CBT Figure 21. Setup of Device Under Test with AT commands. When the CBT is connected to eUniStone, all control of the RF measurements is done by the CBT over the air. Application Note Revision 1.2, 2013-12-18...
  • Page 53: Preparation For Rf Tests In Non-Signaling Mode

    Preparation for RF Tests in non-signaling mode To perform RF tests in non-signaling mode, i.e. without a BT tester, the eUniStone has to be configured through HCI commands, which can only be executed on the eUniStone HCI application. To use the HCI commands, the HCI application must be downloaded into the EEPROM of the eUniStone module.
  • Page 54: Figure 22. Download Of Hci Application Via Uart

    Connect the AARDVARK Programmer and follow the instructions in [4]. When the HCI application is downloaded into EEPROM, issue a HW reset to load the HCI application in eUniStone. Note: It is important to read out and note the OSC_Trim value before download of the HCI application.
  • Page 55: Restoring From Hci To Spp (Without Using Aardvark)

     PAN1322 After the RF tests are performed, the SPP-AT application must be downloaded into EEPROM again to enable the usage of eBMU SPP Toolbox. Since the SPP Toolbox cannot work with the HCI application, the SPP-AT application is normally downloaded via I2C interface. This requires a specific I2C programmer.
  • Page 56: Figure 23 Restoring From Hci To Spp-At Using Hci Lite

     PAN1322 Figure 23 Restoring from HCI to SPP-AT using HCI Lite. Sequence: 1. Send a HCI reset by clicking the ”Reset” button to make sure that the chip/module is in a known state. 2. Click on ”Send custom command” and paste 0111fc020100 in the command field, then click ”Send”...
  • Page 57  PAN1322 4. Make a HW reset of the board. After the HW reset, the module will start up running the SPP-AT application, close HCI Lite and start the SPP Toolbox. Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 58: Restoring Spp-At - Loading Latest Spp-At Application

     PAN1322 9.4.2 Restoring SPP-AT - Loading latest SPP-AT Application. After starting SPP Toolbox, make another HW reset. “ROK” shall be returned and shown in the log window. When the SW version is read with “Read Revision Information” you will notice that the SW version is 3.0 which is the default SW in the ROM of the chip.
  • Page 59: Restoring Spp - Writing Bd Address And Oscillator Trim Value

     PAN1322 9.4.3 Restoring SPP - Writing BD address and oscillator trim value After loading the latest SPP-AT application, the BD address and oscillator trim values need to be restored. Sequence continuing from previous chapter: 6. Check that the intended SPP-AT application is used by “Read Revision Information”. 7.
  • Page 60: Crystal Trimming

     PAN1322 Crystal Trimming The parameter Osc_Trim in BD_Data is calibrated during production in factory. It is used to tune the crystal on the module at the right frequency. It makes use of parallel capacitors switched in and out in order to decrease or increase the clock frequency.
  • Page 61: Crystal Trimming Procedure

     PAN1322 9.5.2 Crystal Trimming Procedure A 32 MHz clock is derived internally from the crystal oscillator. It can be switched to the GPIO pin P0.1 or P0.8. The reference signal must be adjusted with a precision that is determined by the total acceptable deviation of ±20 ppm for the Bluetooth reference clock.
  • Page 62: Figure 26. Crystal Trimming Using Hci Lite Tool

     PAN1322 Figure 26. Crystal Trimming using HCI Lite Tool The crystal trimming procedure using a frequency counter and the HCI Lite tool is as following: 1. Make the 32 MHz clock available at P0.1 or P0.8 using the HCI_Lite tool. (See in Figure a.
  • Page 63  PAN1322 5. Now the frequency has to be adjusted by repeating step 4 with different values. The frequency will be lower with a higher value of the capacitance array. 6. When the desired accuracy of the 32 MHz clock is obtained, store the corresponding trim value to the parameter Osc_Trim of the BD-data.
  • Page 64: Figure 27. Intel Write Bd-Data Window

     PAN1322 Figure 27. Intel Write BD-Data Window Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 65: Crystal Trimming With Spp-At Application

     PAN1322 9.5.2.2 Crystal Trimming with SPP-AT Application When the SPP-AT application is loaded into the EEPROM, the crystal trimming can be performed via AT commands using the eBMU SPP Toolbox provided by Intel. This is only necessary if the original calibration value, which is programmed during module production at Intel, has been lost.
  • Page 66: Figure 28. Crystal Trimming Using Ebmu Spp Toolbox

     PAN1322 Figure 28. Crystal Trimming using eBMU SPP Toolbox Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 67: Faq

    First use of PBA31309 USB dongles The USB dongle for PBA31309 contains the eUniStone module itself, an FTDI chip as interface and a voltage regulator that use the USB connectors 5 volt to power the complete dongle. The FTDI chip work as UART over USB interface.
  • Page 68: Modify Ftdi Com Port Settings For Full Throughput

     PAN1322 Figure 29. Finding the COM port in the Device Manager 10.1.2 Modify FTDI COM port settings for full throughput. The Latency Timer parameter of the FTDI driver is set to 16ms as default after installing the FTDI driver. To get full throughput with higher baud rates than 115200 bit/s this parameter need to be changed to 1ms.
  • Page 69: Change Uart Baud Rate Of Pba31309

     PAN1322 2. Click on “Advanced”. 3. In the Advance Settings dialogue, change the Latency Timer to 1ms. 4. Click the button “Ok” on the Advance Settings dialogue. 5. Finally, click the “Ok” button on the properties dialogue. Observe that this needs to be done for each new virtual FTDI COM port. E.g. for each connected USB dongle.
  • Page 70: Change Of Baud Rate By Host At Runtime

     PAN1322 10.2.2 Change of baud rate by host at runtime Changing the baud rate at runtime is done with the command AT+JSBR=<baud_rate>. This baud rate will be used by the module until it’s changed again. A HW or SW reset will make the module use the baud rate stored in EEPROM, (default 115200 bit/s) Table 12.
  • Page 71: Aardvark And Eeprog.exe

     PAN1322 Step Command/response Description  +RDOICNF The module shall indicate with an event that the software/patch has been successfully downloaded MAKE A HW RESET To enable the new software a hardware reset is needed  ROK The module has now restarted and runs the new software, but with default Bluetooth address (0003199E8B71) and default oscillator trim value (0218).
  • Page 72: Figure 31. Aardvark Drivers Installed And Visible In The Device Manager

     PAN1322 Figure 31. Aardvark drivers installed and visible in the Device Manager. Application Note Revision 1.2, 2013-12-18 Design Guide...
  • Page 73: Connecting Aardvark To Pba31309

    PAN1322 10.4.2 Connecting Aardvark to PBA31309 Figure Aardvark shall be connected to eUniStone with the signals I2C clock, I2C data and ground. See for detail on how this is done with eUniStone on the USB dongle. I2C data I2C lock Figure 32.
  • Page 74: Uuid & Cod

    Android, iPhone and Windows Phone 8. 10.6 Low Power Mode, LPM, control 2.1.1 Please see chapter for details about LPM control of eUniStone. 10.7 Bluetooth Qualification and Regulatory Certification Please see chapter 8 in document ” eUniStone_V1.0_UM_HD_Rev1.1.pdf” for details about BTQ and Regulatory Certification.
  • Page 75: References

    References No./Name Title Source eUniStone Hardware Description eUniStone_V1.0_UM_HD_Rev1.0.pdf eUniStone SPP-AT specification eUniStone_V1 00_UM_SD.pdf eUniStone SW release notes eUniStone_V1.00_SW_3.1.pdf Instructions on how to download software using Aardvark Instructions_EEPROM_download.pdf http://www.totalphase.com/products/aardva Aardvark I2C/SPI Host Adapter rk_i2cspi https://developer.apple.com/hardwaredriver Bluetooth Accessory Design Guidelines for Apple Products R6 s/BluetoothDesignGuidelines.pdf...

Table of Contents