Home

eUniStone SPP-AT Application SW 3.x

image

Contents

1. AT JSLN lt length_friendly_name gt lt friendly_name gt Set Local device friendly Name Supports all ASCII characters length_friendly_name parameter 2 characters DEC base Length of friendly name the maximum value for length is 18 friendly_name parameter length length_friendly_name No delimiter is required The friendly name will be used for EIR and RNR the friendly name should be written at start up or reset The default friendly name after reset is eUniStone SPP with BT2 1 features OK DevA Dev B AT JSNF lt sniff_Max gt lt sniff_Min gt lt sniff_attempt gt lt sniff_tmo gt lt on off gt Sniff Request Request a link to enter Sniff Mode All command parameters are given in HEX base with the exception of on off parameter sniff_Max parameter 4 characters HEX base Maximum allowed sniff interval Value to be written N Time N 0 625 ms Range 1 25 ms to 40 9 s sniff_Min parameter 4 characters HEX base Minimum allowed sniff interval Value to be written N Time N 0 625 ms Range 1 25 ms to 40 9 s sniff_attempt parameter 4 characters HEX base Number of sniff attempts Value to be written N RSNFCNF lt sniff_Interval gt lt mode gt sniff_Interval parameter 4 characters HEX base mode parameter 1 character Normal mode mode 0 or sniff mode mode 2 If no connection exists ERR 2 DevA Dev B
2. Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 23 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B Length N 1 25 ms Time Range 0 625 ms 40 9 s sniff_tmo parameter 4 characters HEX base The time out value for sniff attempts Value to be written N Time N 0 625 ms Range 0 msec to 40 9 s on off parameter 1 character Sniff ON value 1 or Sniff OFF value 0 AT JSNS lt Maximum_Latency gt lt Maximum_Remote_tim eout gt lt Minimum_Local_Timeo ut gt Sniff Sub rating Maximum_Latency 4 characters HEX base The maximum allowed sniff sub rate of the remote device Minimum_Remote_timeout 4 characters HEX base Minimum base sniff sub rate timeout that the remote device may use Minimum_Local_Timeout 4 characters HEX base Minimum base sniff sub rate timeout that the local device may use Note 1 If the Host does not write the sniff sub rating parameters prior to sniff sub rating being initiated by the Link Manager the default values shall be used 2 Setting all sub rate values to zero is equivalent to sniff mode without sub rating enabled OK If sniff is issued also ESNS shall be received DevA Dev B AT JUCR lt Status gt User Confirmation Reply Command Status parameter 1 cha
3. 8A EEPROMSize 2 characters 80 inputFreq 8 characters 018CBA80 ImpFeatures 16 characters 87591F987E0602BF IpmConf 2 characters 40 IpmDrift 2 characters FA IpmThreshold 2 characters 12 ulpmThreshold 2 characters 18 pmuConfig 4 characters 0080 rfPselD 8 characters 06050403 rfPselConf 2 characters 44 rssiMin 2 characters 0C rssiMax 2 characters 10 ddcTlConf 2 characters 02 uartBaudrate 2 characters 04 uartInvert 2 characters 00 uartPulls 2 characters 01 oscSettle 2 characters 10 bbConf 2 characters 24 rfConf 2 characters 04 txPowerRefO 2 characters F2 txPowerRef1 2 characters F8 txPowerRef2 2 characters FE txPowerRef3 2 characters 04 oscTrim 4 characters see Note 2 threeWireArqTimeout 2 characters 06 ImpVersion 2 characters 00 17 47 eUniStone SPP AT Application SW 3 x a Intel SPP AT Command and Response AT Command Usage Resulting response s Dev A from eUniStone Dev B Three Wire_LinkMsg_Time 00 Three Wire_LPM_Time 00 reserved 12 characters 000000000000 Notes 1 The bdAddr is pre programmed in PBA31309 module It can be read through AT JRBD Don t overwrite the pre programmed value accidentally 2 The oscTrim value is pre programmed on PBA31309 module It can be read through AT JRBD Writing an incorrect value can make
4. No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 3 1 1 04 1111 4 R gt OK 5 C lt AT JDIS 3 6 R gt OK 7 C lt AT JRLS 1101 11 Serial port 01 000000 8 R gt OK C lt AT JAAC 1 10 R gt OK 11 C lt AT JSLN 04 devB 12 R gt OK 13 C lt AT JSEC 4 1 04 1111 2 1 14 R gt OK 15 C lt AT JCCR 0003199E8B24 01 16 R gt OK 17 R gt RPCI 0003199E8B00 18 C lt AT JPCR 04 1111 19 R gt OK 20 R gt RPCI 0003199E8B24 0 21 C lt AT JPCR 04 1111 22 R gt OK 23 R gt RSLE 24 R gt RSLE 25 R gt RCOI 0003199E8B00 26 R gt RCCRCNF 350 0000 0 27 R gt RCCRCNF 350 0 Rev 0 3 10 May 2013 Intel Public 44 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x References 6 References No Name Title Source 1 Bluetooth specification v2 1 EDR www bluetooth org Rev 0 3 10 May 2013 User s Manual Software Specification Document Number N A Intel Public 45 47 eUniStone SPP AT Application SW 3 x Terminology 7 Terminology A APPL Application AT Attention from Hayes command set B BT Bluetooth Cc CR Carriage Return CTS Clear To Send D DEC DECimal E eBMU BlueMoon TM Universal with Embedded SPP application v2 1 means that it supports v2 1 EDR features eUniStone Bluetooth Module using the eBMU chip
5. gt lt remote_name gt lt COD gt Extended Inquiry 1 characters For each response Dec base 0 No remote name needed Only bd_addr parameter 12 information from EIR Extended characters HEX base Inquiry Response is used no RNR Remote Name Request is phil eee ata performed all found addresses and ae e length Name o the CoD are presented the remote device 1 Shortened name requested If Extended ate aa then Shortened name is used if it is athe NAMENI i ta available If it is not available RNR is if no name is available performed If Extended Inquiry 1 or 2 Full name requested RNR is 2 remote npg will be performed for devices that do not page P if the RNR respond with full name in EIR does not find any devices answering COD parameter 6 Note characters HEX base 1 eUniStone will answer with the Class of device friendly name and the registered Completed by Rev 0 3 10 May 2013 Intel Public 13 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B service s 2 The Responses are limited to maximum eight responses RDDSCNF lt status gt status parameter 1 character AT JDIS lt discoverable gt DIScoverable Forces eUniStone into Page Scan Inquiry Scan states indefinitely note this makes the device discoverable discoverable parameter 1 character 0 No scans enabled
6. stream mode see below All communication received by host application over UART is called response except while in stream mode 3 1 Operation Modes The specification defines two operation modes of the PBA 31309 eUniStone throughout the document Command Mode and Stream Mode For Bluetooth SPP two different roles are specified e Device A Dev A initiating the over the air connection e Device B Dev B which accepts the connection 3 1 1 Command Mode In this mode the SPP application running on the eUniStone will execute the AT commands sent from the host over the UART In this mode the host application can send data packets to the eUniStone which are transmitted to the remote device that has a Bluetooth connection on SPP level with the eUniStone This mode is normally used when transmitting burst and packetized data Setting up accepting Bluetooth SPP connections and or searching for other Bluetooth devices are also operations done in this mode 3 1 2 Stream Mode In this mode the host application will send un packetized data to the eUniStone which are transmitted over the air to the remote device This mode is normally used when transmitting small amount of data in a random way and for serial cable replacement applications Command Mode typically yields higher throughput than stream mode because the filling of air packets can be optimized Rev 0 3 10 May 2013 Intel Public 7 47 User s Manual Software Specification Do
7. 1 Syntax Error e ERR 2 Command not allowed at present execution status ERR 2 is obtained when any of the following situations are met o Create a new connection when already connected o Device discovery when already connected o Send data when not connected o Accept connection request without a request o Enter sniff or sniff sub rating mode if already ON or without being connected o Enable SEC mode after another command has previously been sent o Service discovery when connected o Send data with length 0 o Register more than three services o Disconnect when not connected o Reset during EEPROM write o Enable Device Under Test mode without being in Production mode e ERR 3 if internal unknown error occurs in protocol stack Rev 0 3 10 May 2013 Intel Public 10 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response 4 2 AT Command and Response List Table Table 2 AT Command and Response List Table AT Command Usage Resulting response s from eUniStone Dev A Dev B AT JAAC lt auto_accept gt Auto Accept Connection requests Forces eUniStone to accept connection requests auto_accept parameter 1 character 0 Host will be notified on incoming connection indication RCOI no auto accept This is the default configuration 1 eUniStone will automatically auto accept incoming connection
8. 8 R gt OK 9 C lt AT JAAC 1 10 R gt OK 11 C lt AT JSLN 04 devB 12 R gt OK 13 C lt AT JSEC 4 1 04 1111 0 0 14 R gt OK 15 C lt AT JCCR 0003199E8B25 01 16 R gt OK 17 R gt RSLE 18 R gt RSLE 19 R gt RCOI 0003199E8B00 20 R gt RCCRCNF 500 0000 0 21 R gt RCCRCNF 500 1101 0 Example 6 Secure Simple Pairing Passkey entry Dev A connects to Dev B and DevA has input capability keyboard but no output capability Dev B has input and output capability User s Manual Software Specification Document Number N A Dev A Security mode 4 Dev B Security mode 4 Seq Direction Command response Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 4 1 04 1111 2 1 4 R gt OK 5 C lt AT JDIS 3 6 R gt OK 7 C lt AT JRLS 04 11 1101 Serial port 01 000000 8 R gt OK 9 C lt AT JAAC 1 10 R gt OK Ti C lt AT JSLN 04 devB 12 R gt OK 13 C lt AT JSEC 4 1 04 1111 2 0 14 R gt OK 15 C lt AT JCCR 0003199E8B25 01 Rev 0 3 10 May 2013 Intel Public 42 47 eUniStone SPP AT Application SW 3 x Example AT Commands and Responses intel 16 R gt OK 17 R gt RPCI 0003199E8B00 1 18 R gt RPNE 716986 19 C lt AT JPCR 06 716986 20 R gt OK 21 R gt RSLE 22 R gt RSLE 23 R gt RCOI 0003199E8B00 24 R gt RCCRCNF 500 1101 0 25 R gt RCCRCNF
9. Copyright 2012 2013 Intel Corporation All rights reserved Other names and brands may be claimed as the property of others Rev 0 3 10 May 2013 Intel Public 2 47 User s Manual Software Specification Document Number N A The template Word of this document has been formally released by DOC department IMC DOC intel com Template data T_TechDoc dotm Rev 2 3 25 Mar 2013 eUniStone SPP AT Application SW 3 x Revision History Revision History intel Revision Number Description Revision Date 0 3 RUCE response added Sniff Sub Rating event parameter format added Added a note for AT JRLS that only the latest written CoD is used Updated status parameter for RCCRCNF 10 May 2013 0 2 This SPP AT specification update is based on the SW3 1 used on the eUniStone module PBA31309 at final verification Updates to SPP AT commands SPP examples and BD Data were done 25 Jan 2013 0 1 Specification for the SPP AT application with Bluetooth v2 1 features in the eUniStone chip PMB8754 which is used on the eUniStone module PBA31309 This specification is using AT commands similar to those of the predecessor chip PMB8753 2 on module PBA31308 2 This document is issued before final verification of the device as a preliminary version 10 Oct 2012 Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 3 47 eUniStone SPP AT Application S
10. also supports Secure Simple Pairing SSP The three pairing procedures in Security mode 4 are e Just works e Numerical comparison e Passkey entry The procedure used depends on the input output capabilities of the connecting devices The second and third procedure below requires user interaction e Just works requires no user interaction e Numerical Comparison a 6 digit number displayed and confirmed on both devices e Passkey entry a 6 digit number used to authenticate connection when one of the devices displays a passkey and the other device enters a passkey Security mode 2 is used when a legacy device not able to use SSP is connecting to PBA31309 The pairing procedures for security mode 2 are e No pin connect without pairing e Pin entry pin entry if variable pin is used e Just works automatically if fixed pin is used The procedure used depends on the security settings in the two devices The parameter simple pairing in the RPCI event indicates to the host if it is a legacy paring security mode 2 or a secure simple paring in progress The AT JPCR command is used for both legacy and SSP pin and passkey as response to the RPCI event Different types of devices has different supported input output capabilities the table below gives examples of a typical type of devices for each combination of input output capabilities Table 7 Input and Output Capabilities Capability
11. bits uuid Dev A searches for 16 bits uuid and 128 bits uuid DevA Dev B Seq Direction Command response Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 4 1 04 1111 0 0 4 R gt OK 5 C lt AT JDIS 3 6 R gt OK Ta C lt AT JRLS 32 11 000011010000 1000800000805f9b34fb Serial port 01 000000 8 R gt OK 9 C lt AT JSLN 04 devB 10 R gt OK 11 C lt AT JSEC 4 1 04 1111 0 0 12 R gt OK 13 C lt AT JSDS 0003199E8B2532 0 000110100001000800000805f 9b34fb 14 R gt OK 15 R gt RSDSRES Serial port 01 16 R gt RSDSCNF 0 17 C lt AT JSDS 0003199E8B25 04 1101 18 R gt OK 19 R gt RSDSRES Serial port 01 20 R gt RSDSCNF 0 Example 5 Secure Simple Pairing Just works Dev A connects to Dev B no input output capabilities for any of the devices Dev A Security mode 4 Dev B Security mode 4 Seq Direction Command response Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 4 1 04 1111 0 0 4 R gt OK Rev 0 3 10 May 2013 Intel Public 41 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Example AT Commands and Responses intel 5 C lt AT JDIS 3 6 R gt OK 7 C lt AT JRLS 04 11 1101 Serial port 01 000000
12. ee ee ee ee ee ee ee eeeeeeeeeeaee 30 4 5 2 Host Initiates Low Power Mode Entry eUniStone Initiates Exit cceeeeeeeeeeeeee 31 4 6 UART Bald Rate Change wiiccceencieisccrcane dthened teas died diegied adeteaes slat ce daa aaia chad eens 31 4 7 Data Flow Cntr Olrina a test aaingele gested sbataenansneashanasaeanietauemedseseasagenaess 33 4 8 Prod ction ModE sisi cgeiais canis db ecuracatpcutisenenastdemesaubiapienuy AEE aE AE 33 4 9 SPP AT Commands Accessing EEPROM 0 ceeeeeeeeeeeeeeeee anata ease eee eeeeee eens ee eeeaeaeas 34 4 10 SOCUFIEY ModE sirot ce tenses inn ene r teaeatgerini aden nats ceaeate Vena Seueadianang eed va asibeatn ss 35 4 11 GPIO Indication of Connection StatuS cceceeeee scene eee eee e eee eee nena eens ee eaeaas 37 5 Example AT Commands and ReSPONSES c ceee cece eect ee teeters tees ee ee ea ea ea ea ea eeeeaeaea 38 6 RETERONCES cise iicdinddncnaesacniadeedan anne debe TAEAE EE E ANTA a EAD 45 7 TERMINOLOGY cenie a A ante E ddan a EA OA EEE 46 Tables Table Pin Assignments irre a a E A E E E OTE 8 Table 2 AT Command and Response List Table ssssssssssrssrssrnsnrnnnsururnnnnnssnnnnnnnnunnnnnnnnnnnnnnnnnn 11 Table 3 AT Responses List not command triggered ssssssssssrrssrssrssrurnrsrnssnnrnnnrnurnnnnnnrnnnnnnnnun 25 Table 4 Host Initiates Low Power Mode Entry and EXit sssssssrssssssrssrurnnsnnssrnrnunrnnrnnrnnnrnnnnnnnnunn 30 Table 5 Host Initiates Low Power Mode E
13. entry 2 0 1 0 Just works 2 0 1 1 Passkey entry 2 0 2 0 Passkey entry 2 0 2 1 Passkey entry 2 1 0 0 Just works 2 1 0 1 Passkey entry 2 1 1 0 Just works 2 1 1 1 Numerical comparison 2 1 2 0 Passkey entry 2 1 2 1 Numerical comparison Rev 0 3 10 May 2013 Intel Public 36 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i tel Intel SPP AT Command and Response See examples in section 5 for MSC session descriptions on SPP AT level 4 11 GPIO Indication of Connection Status The GPIO pin PO 1 pin E5 is used to indicate the connection status PO 1 is HIGH when eUniStone device is connected and LOW when there is no connection The transition from HIGH to LOW happens prior to sending the RDII indication via UART Hosts that cannot monitor the incoming data stream for the RDII indication in stream mode can monitor P0 1 in eUniStone PO 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 which configures P0 1 as an output pin Rev 0 3 10 May 2013 Intel Public 37 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Example AT Commands and Responses 5 intel Example AT Commands and Responses In all Message Sequence Charts MSC below are Dev A and Dev B PBA31309 except in the legacy device example when a PBA31308 2 is used as le
14. given in the AT JSEC command but only if fixed PIN is configured e To provide a PIN with the AT JSEC command has no effect if variable PIN is used e To auto accept a connection when Security mode 3 is used by remote device fixed PIN needs to be enabled e There is no default fixed PIN variable PIN is default the used PIN code is the one given in the AT JSEC command if fixed PIN is used Out Of Band OOB Association Model for SSP is not supported The Link keys are stored in EEPROM The security level information if needed may be stored by the host AT JSPD lt debug_mode gt Secure Simple Pairing Debug Mode Activates SSP debug Mode debug_mode 1 character DEC base 0 Disabled 1 Enabled OK DevA Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 22 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B Note This AT command will allow sniffing of encrypted links with a Bluetooth sniffer if the Secure Simple Pairing procedure is used by both devices AT JSKN lt Notification_ Type gt Send Keypress Notification Notification_Type 1 character Dec base 0 Passkey entry started 1 Passkey digit entered 2 Passkey digit erased 3 Passkey cleared 4 Passkey entry completed OK DevA Dev B
15. will be terminated before the OK response Power off during that time may corrupt the EEPROM data After this configuration the module will always use the new baud rate Intel Public 32 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x tell Intel SPP AT Command and Response 4 7 Data Flow Control eUniStone acknowledges a data packet sent by send data command AT JSDA with an OK response when it has been transmitted The host shall wait for the acknowledgement before sending a new packet 4 8 Production Mode Production mode is used for configuration and test purposes the production mode shall be entered in order to execute the following commands AT JDOI DOwnload EEPROM Image AT JEDT Enable Device under Test AT JCAC Crystal Auto Calibration AT JCBD Change BD_Data General procedure to use production mode related commands 1 E IS Rev 0 3 10 May 2013 HW reset Enter production mode AT JPRO 1 Execute command e g AT JDOI Exit production mode AT JPRO 0 HW reset Intel Public 33 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i tel Intel SPP AT Command and Response 4 9 SPP AT Commands Accessing EEPROM Power dropouts or HW reset during an EEPROM access can cause inoperability of the module The EEPROM contents are read at startup i e e after power up e when leaving the
16. 1 Inquiry Scan enabled visible 2 Page Scan enabled connectable 3 Inquiry amp Page Scan enabled visible amp connectable Scan is automatically disabled when connected and at disconnection they are automatically enabled Default configuration after a HW or SW reset is no scans enabled Note In a device with no service registered and discoverable it will not accept any incoming SPP connection request OK Dev B DevA AT JDOI Download Application Image via UART After OK response a binary file with the EEPROM image may be sent File open and send in binary format after OK is received AT JDOI command can only be issued after production mode is enabled AT JPRO 1 Changes in the EEPROM image are effective after production mode command is disabled AT JPRO 0 followed by a HW reset See section 4 8 OK after command is sent RDOICNF after eep file has been written eUniStone calculates the size of the image that is being downloaded from the file header The response RDOICNF is generated when the calculated size is reached DevA Dev B AT JEDT Rev 0 3 10 May 2013 Enable Device under Test This SPP AT command enables the device under test After this command has been sent it is possible for a remote tester to connect this AT command corresponds to the three different HCI commands listed below 1 Set Event Filter allow all connections 2 Write Scan
17. 500 0000 0 Example 7 Secure Simple Pairing Numerical comparison Dev A connects to Dev B and both has input and output capabilities Dev A Security mode 4 Dev B Security mode 4 Seq Direction Command response Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 4 1 04 1111 2 1 4 R gt OK 5 C lt AT JDIS 3 6 R gt OK 7 C lt AT JRLS 04 11 1101 Serial port 01 000000 8 R gt OK 9 C lt AT JAAC 1 10 R gt OK 11 C lt AT JSLN 04 devB 12 R gt OK 13 C lt AT JSEC 4 1 04 1111 2 1 14 R gt OK 15 C lt AT JCCR 0003199E8B25 01 16 R gt OK 17 R gt RUCE 576351 18 R gt RUCE 576351 19 C lt AT JUCR 1 20 R gt OK 21 C lt AT JUCR 1 22 R gt OK Rev 0 3 10 May 2013 Intel Public 43 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Example AT Commands and Responses intel 23 R gt RSLE 24 R gt RSLE 25 R gt RCOI 0003199E8B00 26 R gt RCCRCNF 500 0000 0 27 R gt RCCRCNF 500 1101 0 Example 8 Legacy pairing Dev A has in and output capabilities Dev A Security mode 4 Dev B Security mode 3 Legacy device Seq Direction Command response Seq Direction Command response
18. 8 characters 018CBA80 ImpFeatures 16 characters 87591F987E0602BF lpmConf 2 characters 40 IpmDrift 2 characters FA lpmThreshold 2 characters 12 ulpmThreshold 2 characters 18 pmuConfig 4 characters 0080 rfPselD 8 characters 06050403 rfPselConf 2 characters 44 rssiMin 2 characters 0C rssiMax 2 characters 10 ddcTlConf 2 characters 02 uartBaudrate 2 characters 04 uartInvert 2 characters 00 uartPulls 2 characters 01 oscSettle 2 characters 10 bbConf 2 characters 24 rfConf 2 characters 04 txPowerRefO 2 characters F2 txPowerRefi 2 characters F8 txPowerRef2 2 characters FE txPowerRef3 2 characters 04 oscTrim 4 characters see Note 2 threeWireArqTimeout 2 characters 06 ImpVersion 2 characters 00 Three Wire_LinkMsg_Time 00 Three Wire_LPM_Time 00 reserved 12 characters 000000000000 Note 1 The bdAddr is pre programmed in PBA31309 module It can be read through AT JRBD Don t overwrite the pre programmed value accidentally 2 The oscTrim value is pre programmed in PBA31309 module It can be read through AT JRBD Writing an incorrect value can change the RF functionality for the module 3 AT JCBD command can only be issued after production mode is Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 12 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Comm
19. AT JPRO 1 Read the module specific BD Address with AT JRBD command Use The AT JCAC command to define the test point and the trim_value Measure the frequency of the 32 MHz signal with the counter Iterate steps 5 and 6 until 2 ppm are reached Then write the corresponding trim_value to the parameter oscTrim in the BD data with AT JCBD Use the BD Address that was read in step 4 9 Leave production mode AT JPRO 0 10 Perform a SW reset OND Pe Ne 1 for example Agilent 53220A universal counter Rev 0 3 10 May 2013 Intel Public 28 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x tell Intel SPP AT Command and Response 4 5 Low Power Mode Control The low power mode LPM protocol for eUniStone is based on hardware signaling only No SPP commands or responses are required The existing flow control signals for the UART are used together with two GPIOs The eUniStone informs when the host may enter low power mode when the host should wake up and when the module cannot receive anything on the UART because it is in low power mode The signaling is the same for the host to the controller The eUniStone will enter low power mode in the following modes e Disconnected and idle e visible and or connectable during scan intervals e connected with link in sniff and or sniff sub rating mode during sniff intervals To allow the eUniStone to enter low power mode LPM the host set
20. BR lt baud_rate gt Set Baud Rate Set the UART baud rate temporarily until next HW or SW reset The host shall wait for the OK response before changing its baud rate lt baud_rate gt parameter 7 characters DEC base is the wanted Baud rate E g AT JSBR 0009600 is 9 6kbps The flow stop is high during the change and when flow stop is released the new UART speed shall be used Typically 50ms to change baud rate Note All baud rates from Table 6 Available UART baud ratesare supported For other baudrates please ask your technical support OK DevA Dev B AT JSCR Stream Connection Request May only be used when a SPP connection is established Transparent communication will be enabled if both sides execute this command OK DevA Dev B AT JSDA lt length gt lt data gt Send Data Request length parameter 3 characters DEC base number of bytes to be sent Value range 001 to max MTU_Size data parameter see note for size Data to be sent Note Maximum number of bytes for each packet is reported at connection confirmation MTU_Size The value for this parameter is negotiated by the two devices during connection set up OK DevA Dev B AT JSDR SPP Disconnect Request Forces a SPP disconnection OK DevA Dev B AT JSDS lt bd_addr gt lt length_uuid gt lt uuid gt Service Discovery Start Causes eUniStone to start a service discovery of
21. Enable page and Inquiry 3 Enable device under test Intel Public User s Manual Software Specification Document Number N A OK DevA Dev B 14 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B Device under test should be used without any security because the RF tester cannot use authentication AT JPRO 1 shall be the first command that is issued after startup See section 4 8 AT JGPA lt reserved gt lt read gt lt set gt lt clear gt GPIO action All parameters of this command are bit fields of 16 bits corresponding to GPIOs P0 15 to PO O E g if pin PO O is the desired bit the bit field value is 0001 and if the desired bit is PO 11 the bit field value is 0800 reserved parameter 4 characters HEX base shall be 0000 read parameter 4 characters Hex base Values for each bit 0 No Action 1 Read set parameter 4 characters HEX base Values for each bit 0 No Action 1 Set clear parameter 4 characters HEX base Values for each bit 0 No Action 1 Clear lt value gt value parameter 4 characters HEX base This value is the state of the GPIO PINs specified in read parameter Values for each bit 0 Low 1 High Note When a pin is set as output the return value will be 0 for the specific pin Set and clear may only be used on out
22. HW reset state e after a SW reset The EEPROM access is terminated when the ROK is received by the host The following commands are related to operations read write in the EEPROM 1 AT JDOI Download Image Enables writing new image content to the EEPROM when lt CMD gt lt CR gt lt LF gt is sent OK is received as a confirmation for the command send whole image byte wise as data and wait for RDOICNF to continue After a SW reset all parameters are updated in RAM 2 AT JCBD change BD_DATA It writes the BD_DATA section of the EEPROM when lt CMD gt lt CR gt lt LF gt is sent when receiving OK after AT JRES command all parameters are updated in RAM 3 AT JRTD Remove Trusted Device It has erased the associated BD_ADDR and link key from the EEPROM when OK is received 4 AT JCCR Create Connection Request The resulting link key will be written into EEPROM both in Dev A and Dev B security level is not stored Wait for RCCRCNF to continue 5 AT JRES RESet The content of EEPROM is read and loaded into RAM The EEPROM access is finished when the ROK is received AT JRBD does not read from EEPROM but from the configuration that has been read into RAM after startup Rev 0 3 10 May 2013 Intel Public 34 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i n tel Intel SPP AT Command and Response 4 10 Security Mode Security mode 4 is used when remote device
23. Input Output 0 0 Sensor 0 1 Display 1 0 Headset 1 1 Headset with display 2 0 Keyboard 2 1 Cellular phone As already mentioned the input output capabilities of the local and the remote device are used to determine the type of SSP that should be used PBA31309 has fixed Security Level setting 3 The table below lists the different combinations of input output capabilities and the expected outcome of the SSP procedure between two SPP devices Rev 0 3 10 May 2013 Intel Public 35 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x a Intel SPP AT Command and Response Table 8 Expected SSP procedure depending on input output capability DevA Dev B Input Output Input Output SSP procedure 0 0 0 0 Just works 0 0 0 1 Just works 0 0 1 0 Just works 0 0 1 1 Just works 0 0 2 0 Just works 0 0 2 1 Just works 0 1 0 0 Just works 0 1 0 1 Just works 0 1 1 0 Just works 0 1 1 1 Numerical comparison 0 1 2 0 Passkey entry 0 1 2 1 Numerical comparison 1 0 0 0 Just works 1 0 0 1 Just works 1 0 1 0 Just works 1 0 1 1 Just works 1 0 2 0 Just works 1 0 2 1 Just works 1 1 0 0 Just works 1 1 0 1 Numerical comparison 1 1 1 0 Just works 1 1 1 1 Numerical comparison 1 1 2 0 Passkey entry 1 1 2 1 Numerical comparison 2 0 0 0 Just works 2 0 0 1 Passkey
24. N code to be sent to the eUniStone device e g AT JPCR 04 1234 The PIN code is an ACII string Note In the Bluetooth v2 1 EDR specification the wording is Passkey instead of PIN for SSP OK Followed by RSLE if secure link is established DevA Dev B AT JPRO lt mode gt PROduction mode If device under test shall be used without any security AT JPRO shall be the first command that is issued after startup AT JPRO is also used to return to normal mode after use of production mode commands mode parameter 1 character 0 Production mode OFF 1 Production mode ON See section 4 8 for commands requiring production mode OK DevA Dev B AT JRBD Read Bluetooth device Data Sent to eUniStone to retrieve the Bluetooth device Data RRBDRES bd_data parameter 116 characters HEX base LSB first The bd_data string consists of following configuration data with reference value bdAddr 12 characters see Note 1 DevA Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 16 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A channelWordOffset 4 characters 0000 clkConf 2 characters
25. W 3 x i n tel Contents Contents 1 INCFODUCUON Bie ricis cdcccercteaseadsvhencddetterdccs ener dad E 5 2 BIUCCOOtN Features i ciciseit ciccedas cate neat ened teas cadinaes aaa dina saa biadd aaenieiaaatuaeeelaccadiacinees 6 3 Serial Port Profile aiccsetatecatiiesia qpeccbcicapas wits tees a E wd a E AET 7 3 1 Operation Mode Serner ii E EE E ETA E EE 7 3 1 1 Command MOS sarrias ieaie anys dpieeate ears hadue tadteede mind EE ia a EET 7 3 1 2 Stream MOG rrarena aa a A EA E a aE 7 3 2 Pir ASSIGNMENTS acasan nao a E E E 8 4 Intel SPP AT Command and ReSpoOnSe s ssssssssssrsssrrsssrrrrrrnnnttnnntnnnstnn nnn nann anann n nnana 9 4 1 AT Command and Response Format and SyntaX s ssssssssssssrrssrsrrnernrnnnrrnrnrnnnnrnrnna 9 4 1 1 AT COmMMandS avissivigtiesncieiiundyidenon cian a E E OR 9 4 1 2 AT RESPONSES noisa moa E A a E 10 4 1 2 1 AT Response Parameter List for lt status gt and lt ERROR gt c ceeeeeeeeeeeeeeeeeeeeeaes 10 4 2 AT Command and Response List Table s sssssssssssrrssrrrnssrnsrrrrrnurnnnnnnunsnnrnnnrnnnnnnnns 11 4 3 AT Responses List not command triggered s ss ssssssssssssrnsrrsrrnsrnnnrsrnnsnnrnnnrnnrnnrnns 25 4 4 Crystal Auto Calibration Frequency counter method ssssssssssssssrrsrrsrrnerrrirsrrserers 27 4 5 Low Power Mode Control siiciccicesssccneendsdeneesstdedenteddeneeseutadswagdenegensecadecneeeeagaaandadens 29 4 5 1 Host Initiates Low Power Mode Entry and EXit cceeeeeeee cece ee
26. X base Class of device The default CoD value is 000000 Notes 1 A Dev B may register up to three services 2 Once the command is issued the service is registered even though an identical service already has been registered 3 Services need to be re registered after a SW or HW reset 4 Only the CoD of the last registered service is used AT JRRI Read Revision Information lt revision gt DevA revision parameter 2 Dev B characters HEX base Note SPP AT SW revision 3x AT JRSD Read Stored Devices OK DevA Followed by Dev B RRSDCNF lt no gt lt bd_addr_1 gt to lt bd_addr_no gt for all stored device with a maximum of five devices no parameter 1 character Dec base The number of stored devices bd_addr_1i is the oldest In case no 0 then no devices are stored bd_addr parameter 12 character Hex base BD Address of the stored device AT JRTD lt bd_addr gt Remove Trusted Device OK DevA Delete the trusted device information DevB for a registered device bd_addr bd_addr parameter 12 characters HEX base The Bluetooth address of the device that shall be removed from the list Rev 0 3 10 May 2013 Intel Public 19 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B lt bd_addr gt 000000000000 Delete all trusted devices AT JS
27. and and Response User s Manual Software Specification Document Number N A AT Command Usage Resulting response s Dev A from eUniStone Dev B enabled AT JPRO 1 Changes in BD Data take place after production mode command is disabled AT JPRO 0 followed by a SW reset AT JRES See sections 4 8 and 4 9 AT JCCR lt bd_addr gt Create Connection Request OK DevA lt service channel gt Instructs eUniStone to connect to a Followed by remote Bluetooth device prospective RCCRCNF slave lt MTU_size gt lt service gt lt status gt bd_addr parameter 12 characters MTU_size parameter 3 HEX base characters DEC base The Bluetooth address of the remote device service parameter 4 or service_channel parameter 2 32 characters Dec base characters DEC base Indicating which service Value range 01 30 the remote device is Which service channel to connect to connected to The host of can be received from a Service Dev A specifies which Discovery AT JSDS service it connects to in the AT JCCR command and if needed it should be stored since Dev A service is set to 0000 status parameter 1 character If maximum number of allowed connections already exists ERR 2 AT JDDS lt Extended_In Device Discovery Start OK DevA quiry gt Causes eUniStone to start a Device Then if responses are Discovery Inquiry and Remote Name returned Request of the Bluetooth RDDSRES lt neighborhood bd_adadr
28. ase Length of PIN code The maximum PIN length value is 16 corresponding to a 16 characters long PIN code PIN_code parameter length length_PIN_code Normal user PIN for example 0000 This parameter is taken into account if PIN_type is fixed Input_capability parameter 1 character Dec 0 Input None 1 Input Yes No 2 Input Keyboard Output_capability parameter 1 charachter Dec 0 Output None 1 Output Yes No OK DevA Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 21 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B AT JSEC shall be the first command that is sent after a SW reset except if Production Mode commands like Enable Device Under Test are required In that case the AT JPRO shall be the first command after startup and no AT JSEC shall be sent Note Pairing with remote legacy devices e Fixed PIN is only used if remote devices have security mode 3 enabled e Fixed PIN needs to be enabled with the AT JSEC command default is variable PIN e If both devices have enabled fixed PIN and pairing is initiated if remote device has security mode 3 enabled the paring will fail as described in Bluetooth Core specification v2 1 EDR 1 e The PIN code that is used for auto accept connection is the one
29. ase thereby the number in ASCII format for hexadecimal base is represented by the following two characters F F E g RSNFCNF 3E80 2 The four ASCII characters 3 E 8 0 represent the number 3E80 in hexadecimal base which corresponds to 16000 in decimal base AT Commands All AT commands follow the format below AT lt command gt lt parameter 1 if required gt lt parameter 2 if required gt lt parameter 3 if required gt lt gt lt carriage return gt lt line feed gt E g AT JCCR 0010C64D67DC 01 To connect to BD_ADDR 0x0010C64D67DC service channel 1 Rev 0 3 10 May 2013 Intel Public 9 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i tell Intel SPP AT Command and Response 4 1 2 AT Responses All AT responses follow the format below with the exception of lt OK gt and lt ERROR gt lt response gt lt parameter 1 if required gt lt parameter 2 if required gt lt parameter 3 if required gt lt gt lt carriage return gt lt line feed gt E g RDAI 004 DATA 4 bytes DATA received 4 1 2 1 AT Response Parameter List for lt status gt and lt ERROR gt 4 1 2 1 1 Command Execution Status Values Values for lt status gt general for all commands e BT_OK 0 e BT_ERROR 1 e BT_TIMEOUT 4 4 1 2 1 2 General Error Messages Three error messages may be received ERR 1 ERR 2 and ERR 3 e ERR
30. aud rates are not supported using the USB UART bridge chip on the USB dongles that are provided for evaluation of the module Procedure to change UART Baud Rate 1 Enter production mode gt AT JPRO 1 lt OK 2 Read the module specific BD_ADDR and OSC_Trim values and store the values in the host or on the tester gt AT JRBD lt RRBDRES E4 2B 05 19 03 00 00 00 8A 00 80 BA 8C 01 BF 02 06 7E 98 1F 59 87 40 FA 12 18 80 00 03 04 05 06 44 OC 10 02 07 00 01 10 24 04 F2 F8 FE 04 D6 01 06 00 00 00 00 00 00 00 00 00 e g bdAddr 0x000319052BE4 oscTrim 0x01D6 3 Change UART baudrate using the Change BD_Data command by specifying the corresponding configuration value uartBaudrate in BD_DATA The original bdAddr and oscTrim values on the module must also be given in the BD_DATA parameter e g Change baudrate to 921600 index uartBaudrate 07 on default BD_DATA gt AT JCBD XX XX XX XX XX XX 00 00 8A 00 80 BA 8C 01 BF 02 06 7E 98 1F 59 87 40 FA 12 18 80 00 03 04 05 06 44 OC 10 02 07 00 01 10 24 04 F2 F8 FE 04 ZZ ZZ 06 00 00 00 00 00 00 00 00 00 XXXXXXXXXXXX BD address ZZZZ Osc_Trim lt OK The BD_DATA parameter of the AT JCBD command is composed in the LSB first format 4 Exit production mode gt AT JPRO 0 lt OK 5 SW Reset gt AT JRES lt ROK sent with new baud rate typically 70ms after AT JRES The configuration will be written to EEPROM after the AT JCBD command The EEPROM access
31. cument Number N A eUniStone SPP AT Application SW 3 x i tell Serial Port Profile 3 2 Pin Assignments The table below shows the available GPIOs GPIOs noted with Reserved cannot be controlled by a host PO 1 and P0 8 can be used as application GPIOs but not when they are used during the crystal calibration procedure All application GPIOs are by default configured as tri state Table 1 Pin Assignments Pin Name Default Direction GPIO Description Configuration UART_RX I I P0 5 Reserved UART UART_TX O PU 0 P0 4 Reserved UART UART_RTS O PU 0 P0 6 Reserved UART UART_CTS I I PO 7 Reserved UART SDA O PU 1 0 OD P0 12 Reserved I2C SCL O PU 1 0 OD P0 13 Reserved I2C PCMFR1 O PU 0 P0 0 Reserved LPM TX_Conf2 I I P0 14 Reserved LPM PCMCLK Z I O PO 1 APPL GPIO XTAL CAL PCMIN Z I O PO 2 APPL GPIO PCMOUT Z I O P0 3 APPL GPIO PAON Z I O P0 8 APPL GPIO XTAL CAL PSELO Z I O P0 9 APPL GPIO PSEL1 Z I O P0 10 APPL GPIO TX_Conf1 Z 1 O PO 11 APPL GPIO P015 Z I O P0 15 APPL GPIO For P0 12 and P0 13 it is possible to connect to host or external tool for download of eep file to EEPROM Any such use of I2C bus shall be done while onboard chip is in reset or not being active on the I2C bus For module PBA31309 the SDA and SCL have an internal 2 5V pull up Rev 0 3 10 May 2013 Intel Public 8 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Ap
32. device with bd_addr and search for services defined by uuid bd_addr parameter 12 characters OK Then if services are returned RSDSRES lt remote_service_name gt 4 Dev A Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 20 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B HEX base BD Address of remote device length_uuid 2 characters Dec base Length of uuid 04 or 32 uuid parameter 04 32 characters HEX base Service to search for e g 1101 or 0000110100001000800000805F9B34 FB for Serial Port Profile Short uuid is 4 characters while long uuid is 32 characters lt remote_service_chann el gt remote_service_name parameter variable length Name of the remote service remote_service_channel parameter 2 characters DEC base For each service available Completed by RSDSCNF lt status gt status parameter 1 character AT JSEC lt security_mode gt lt PIN_type gt lt length_PIN_code gt lt PIN_code gt lt Input_capability gt lt Output_ capability gt Enable Security security_mode parameter 1 character 1 N A 2 N A 3 N A 4 Security Mode 4 PIN_type parameter 1 character 1 Variable PIN default 2 Fixed PIN length_PIN_code parameter 2 characters DEC b
33. e Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JDIS 3 4 R gt OK 5 C lt AT JRLS 04 11 1101 Serial port 01 000000 6 R gt OK 7 C lt AT JSLN 04 devB 8 R gt OK 9 C lt AT JDDS 2 10 R gt OK 11 R gt RDDSRES 0003199E8B25 d evB 000000 12 R gt RDDSRES 90C11566186C X peria arc S Erik 58020C 13 R gt RDDSRES 549B1282F47C G T 19100 5A020C 14 R gt RDDSCNF 0 Rev 0 3 10 May 2013 Intel Public 39 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i n tel Example AT Commands and Responses Example 3 Service Discovery Dev B registers 16 bits uuid Dev A searches for 16 bits uuid DevA Dev B Seq Direction Command response Seq Direction Command response No No 1 R gt ROK 2 R gt ROK 3 C lt AT JSEC 4 1 04 1111 0 0 4 R gt OK 5 C lt AT JDIS 3 6 R gt OK 7 C lt AT JRLS 04 11 1101 Serial port 01 000000 8 R gt OK 9 AT JSLN 04 devB 10 OK 11 C lt AT JSEC 4 1 04 1111 0 0 12 R gt OK 13 C lt AT JSDS 0003199E8B25 04 1101 14 R gt OK 15 R gt RSDSRES Serial port 01 16 R gt RSDSCNF 0 Rev 0 3 10 May 2013 Intel Public 40 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Example AT Commands and Responses intel Example 4 Service Discovery Dev B registers 128
34. eUniStone SPP AT Application SW 3 x eUniStone User s Manual Software Specification Revision 0 3 10 May 2013 Intel Public Document Number N A eUniStone SPP AT Application SW 3 x m 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 Unless otherwise agreed in writing by Intel the Intel products are not designed nor intended for any application in which the failure of the Intel product could create a situation where personal injury or death may occur Unless otherwise agreed upon Intel may make changes to specifications and product descriptions at any time without notice Designers must not rely on the absence or characteristics of any features or instructions marked reserved or undefined Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatib
35. for implementation of the Serial Port Profile G GPIO General Purpose Input Output H HEX HEXadecimal HW Hardware I I O Input Output I2C Inter Integrated Circuit L LF Line Feed M MSB Most Significant Bit MTU Maximum Transmission Unit o OSC OSCillator P PU Pull Up Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 46 47 eUniStone SPP AT Application SW 3 x a R RFCOMM Radio Frequency Communication RTS Request To Send RX Reception S SCL Serial CLock SDA Serial DAta SPP Serial Port Profile SW Software T TX Transmission U UART Universal Asynchronous Receiver Transmitter Z Z Tri state Rev 0 3 10 May 2013 Intel Public 47 47 User s Manual Software Specification Document Number N A This document has been formally released by DOC department IMC DOC intel com on May 9 2013
36. gacy device When connecting to a device e g a mobile phone the GUI will prompt the user to input e g PIN or push OK depending on the pairing procedures supported by the mobile phone In the below example tables the Message Sequence Charts marks messages from Host to eUniStone with a C lt for commands An R gt for response marks messages from eUniStone to Host Table 9 Example of AT Commands and Responses Example 1 Device Discovery Extended Inquiry 0 only friendly name from EIR devices DevA Dev B Seq Direction Command response Seq Direction Command response No R gt C lt No R gt C lt Li R gt ROK 2 R gt ROK 3 C lt AT JDIS 3 4 R gt OK 5 C lt AT JRLS 04 11 1101 Serial port 01 000000 6 R gt OK 7 C lt AT JSLN 04 devB 8 R gt OK 9 C lt AT JDDS 0 10 R gt OK 11 R gt RDDSRES 0003199E8B25 d evB 000000 12 R gt RDDSRES 90C11566186C X peria arc S Erik 58020C 13 R gt RDDSRES 549B1282F47C 5A020C 14 R gt RDDSCNF 0 Rev 0 3 10 May 2013 Intel Public 38 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i n tel Example AT Commands and Responses Example 2 Device Discovery Extended Inquiry 2 Device name from all found devices DevA Dev B Seq Direction Command respons
37. ilities arising from future changes to them Unless otherwise agreed the information here is subject to change without notice Do not finalize a design with this information Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order Copies of documents which have an order number and are referenced in this document or other Intel literature may be obtained by calling 1 800 548 4725 or go to http www intel com en US 01 Any software source code reprinted in this document is furnished under a software license and may only be used or copied in accordance with the terms of that license This document may contain information on products in the design phase of development Intel product numbers are not a measure of performance Product numbers differentiate features within each product family not across different product families Code Names are only for use by Intel to identify products platforms programs services etc products in development by Intel that have not been made commercially available to the public i e announced launched or shipped They are never to be used as commercial names for products Also they are not intended to function as trademarks SMARTI SMARTi amp Device BlueMoon Comneon Comneon amp Device M GOLD S GOLD E GOLD A GOLD X GOLD XMM X PMU XPOSYS are trademarks of Intel Corporation and related companies
38. ill use DevA DevB RRSW Role Switch Indication Received when the remote device performs a master slave role switch DevA DevB 4 4 Crystal Auto Calibration Frequency counter method The eUniStone module PBA31309 includes a 26MHz crystal which provides the reference clock for the eBMU chip PMB8754 The crystal oscillator is tuned during production of the module Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 27 47 eUniStone SPP AT Application SW 3 x i n tel Intel SPP AT Command and Response During development it can happen that the oscillator trim value oscTrim in BD Data is lost for example by an invalid Change BD Data command For this reason the crystal tuning procedure is described here The method requires a frequency counter to be connected to either PO 1 or P0 8 After issuing a test command with the GPIO port and a trim_value the chip will output a 32 MHz clock on the selected pin The tester shall adjust the trim_value until it is within 2ppm 64 Hz accuracy Finally the trim_value must be programmed to the EEPROM with command Change BD Data The module specific BD Address must be known to use this command The command requires that the device is in production mode please follow the sequence below Connect the frequency counter to the appropriate test point Power up the device Enter Production Mode
39. ing 1 Secure Simple Pairing PIN_code parameter Up to 16 characters RPNE lt Numerical_Value gt Passkey Notification Event Numerical_Value parameter 6 characters Dec base Numeric value to be displayed Valid values are 000000 999999 DevA DevB RUCE lt Numerical_Value gt User Confirmation Event Numerical_Value parameter 6 characters Dec base Numeric value to be displayed Valid values are 000000 999999 AT JUCR lt Status gt Status parameter 1 character DEC base O Not accepted 1 Accepted DevA DevB RKNI lt Notification_Type gt Key press Notification Indication Event Notification Type parameter 1 character Dec base 0 Passkey entry started 1 Passkey digit entered 2 Passkey digit erased 3 Passkey cleared 4 Passkey entry completed DevA DevB RCOI lt bd_addr gt Connect Indication bd_addr parameter 12 characters HEX base See previous response for information on the format AT JACR lt accept gt accept parameter 1 character O0 Not accepted 1 Accepted DevB RDAI lt length gt lt data gt Data Indication length parameter 3 characters DEC base Number of bytes to be sent data parameter length length from previous parameter Received data Note Not available during stream mode DevA DevB RDII Disconnect Indication Received on both sides During stream mode if the
40. link is disconnected or lost the response RDII is received after the link supervision time out of 20 seconds DevA DevB Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 26 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Response Usage Command to acknowledge the response indication Dev A Dev B RSLE Secure Link Established DevA DevB RSNFCNF lt sniff_Inter val gt lt mode gt Sniff mode confirmation sniff_Interval parameter 4 characters HEX base mode parameter 1 character 0 Normal mode 1 sniff mode Note The response is received in both devices DevA DevB ESNS lt Maximum_Transmit_L atency gt lt Maximum_Re ceive_Latency gt lt Maxim um_Remote_timeout gt lt Minimum_Local_Timeo ut gt lt Status gt Sniff Sub rating event Maximum_Transmit_Latenc y 4 characters HEX base Maximum latency for data being transmitted from the local device to the remote device Maximum_Receive_Latency 4 characters HEX base Maximum latency for data received by the local device from the remote device Maximum_Remote_timeout 4 characters HEX base The base sniff sub rate timeout in baseband slots that the remote device shall use Minimum_Local_Timeout 4 characters HEX base The base sniff sub rate timeout in baseband slots that the local device w
41. ntry eUniStone Initiates Exit cc ceeeeee cece cece ee ee ee ees 31 Table 6 Available VART Daud ates 0c cciiicececeset seni saanveceacehdedhil nedaceeeed each e a ai 31 Table 7 Input and Output Capabilities 0 cece eee eee eee nee Nnnn enna 35 Table 8 Expected SSP procedure depending on input output capability cc eeeeeee cece ee ee ee ee eee 36 Table 9 Example of AT Commands and RESPONSES 0 cceeeeeee seen eee seen eee e eee e eee etna nena ee eeeaeaeas 38 Rev 0 3 10 May 2013 Intel Public 4 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i tel Introduction 1 Introduction This document describes the AT commands applicable to Intel s Bluetooth chip PMB8754 eBMU which is used on the module PBA31309 eUniStone This product implements the Serial Port Profile according to Bluetooth Core Specification v2 1 EDR Both initiating role device A and accepting role device B are supported The device supports a single point to point connection Up to 3 different services can be registered in order to be visible as 3 different types of Bluetooth accessory e g for Notebooks Android phones and Apple TM phones The device can store the link authentication keys of up to 5 paired devices Rev 0 3 10 May 2013 Intel Public 5 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x tel Bluetooth Fea
42. one Initiates Exit The picture below describes when the host initiates Low Power Mode and eUniStone initiates the Low Power Mode Table 5 Host Initiates Low Power Mode Entry eUniStone Initiates Exit Host Host Output gt Host RTS gt Host Input Host CTS eUniStone GPIO P0 14 UARTCTS GPIO P0 0 UARTRTS Dy ON E s 4 6 UART Baud Rate Change The host allows eUniStone to enter low power mode eUniStone enters low power mode eUniStone allows the host to enter low power mode The host enters low power mode eUniStone requests the host to wake up The host wakes up The baud rate of the UART can be changed permanently by writing into the UART_Baudrate parameter of the BD_DATA The available UART baud rates are Table 6 Available UART baud rates UART Baud Rate bauds s Module baud Rate Configuration value for BD_DATA bauds s 9600 9615 00 19200 19230 01 38400 38461 02 57600 57522 03 115200 115044 04 230400 230088 05 Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 31 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response UART Baud Rate bauds s Module baud Rate Configuration value for BD_DATA bauds s 460800 464285 06 921600 928571 07 1843200 1857142 08 3250000 3250000 09 Note Rev 0 3 10 May 2013 Remark The two highest b
43. plication SW 3 x tel Intel SPP AT Command and Response 4 4 1 4 1 1 Intel SPP AT Command and Response AT commands can only be sent while in command mode The escape sequence stream connection cancel can be sent in stream mode The expected response after sending an AT command is the OK response see specification below The host shall wait for a command to be terminated before sending a new one A command is considered as terminated when OK and all subsequent related responses have been received There are also responses which are not initiated by a sent command They are in that case initiated by the remote Bluetooth device AT Command and Response Format and Syntax All data exchanged between the host and eUniStone is in ASCII format Parameters for commands and responses are given in decimal DEC base in ASCII format unless hexadecimal HEX base is specified MSB is always sent first eUniStone expects only upper case characters in command mode Example for values with decimal base in ASCII format The number 255 in decimal corresponds to three characters 2 5 5 E g AT JSDA 010 1234567890 Here the number 10 must be given by three ASCII characters 0 1 0 because the parameter requires a value consisting of three characters Example for values with hexadecimal base in ASCII format The number 255 in decimal base corresponds to the number FF in hexadecimal b
44. put pins Reserved pins like e g UART pins will always return 0 DevA Dev B AT JGPC lt direction gt lt open_drain gt lt pull_on off gt lt pull_up down gt lt tristate gt GPIO Configuration All parameters of this command are bit fields of 16 bits corresponding to GPIOs P0 15 to P0 0 See command AT JGPA direction parameter 4 characters HEX base Values for each bit 0 OUT 1 IN open_drain parameter 4 characters HEX base Values for each bit 1 OPEN pull_on off parameter 4 characters HEX base Values for each bit O Pull OFF 1 Pull ON pull_up down parameter 4 OK D DevA Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 15 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B characters HEX base Value for each bit 1 Pull UP 0 Pull DOWN tristate parameter 4 characters HEX base Value for each bit 1 Tri state See section 3 2 for available GPIO pins AT JPCR lt ength_PIN_ code gt lt PIN_code gt PIN Code Reply Sent to eUniStone in response to a PIN Code Request from a remote Bluetooth device bd_addr length_PIN_code parameter 2 characters DEC base Value range 01 16 Length of PIN code PIN_code parameter length length_PIN_code The PI
45. racter DEC base O Not accepted 1 Accepted OK DevA Dev B Rev 0 3 10 May 2013 Stream Connection Cancel Exit Streaming Mode Send 3 escape characters with an initial wait time of TO gt 100 ms after the last transmitted byte and an interval of 100 ms lt T1 lt 1100 ms between the symbols TO Ti Ti Intel Public User s Manual Software Specification Document Number N A OK Dev A Dev B This string is not terminated with 24 47 eUniStone SPP AT Application SW 3 x tell Intel SPP AT Command and Response AT Command Usage Resulting response s Dev A from eUniStone Dev B lt CR gt lt LF gt 4 3 AT Responses List not command triggered Some responses are not actually responses to a command but they are triggered by events on the Bluetooth link like Sniff Mode Confirmation and Disconnect Indication or Role Switch Indication These events can also occur in stream mode When that happens the characters for the response will be transmitted to the host within the received data stream Example data command data 89 AB CD A7 RSNFCNF 0000 0 EF 12 34 56 To avoid this the following measures are needed e Start stream mode only after authentication is completed Usually Role Switch doesn t occur at a later stage any more e Avoid using sniff mode with stream mode or if the peer application is known make sure the
46. remote device will not exit sniff mode during data transmission e Make use of the feature described in section 4 11 The host in stream mode can monitor P0 1 to detect the end of the stream data before link disconnection Table 3 AT Responses List not command triggered AT Response Usage Command to acknowledge Dev A the response indication Dev B ROK Start up response DevA Dev B RCCRCNF Connect Confirm DevA lt MTU_size gt lt service gt Dev B lt status gt MTU_size parameter 3 characters DEC base service parameter 4 or 32 characters Dec base shows which service the remote device Dev A is connected to status parameter 1 character 0 connection 1 no connection Note Dev A only receives a dummy Service 0000 and host should store information needed about devices and services RPCI lt bd_addr gt PIN Code Indication AT JPCR lt length_PIN_cod Dev A lt simple_pairing gt e gt lt PIN_code gt Dev B bd_addr parameter 12characters HEX base length_PIN_code parameter MSB is sent first 2 characters DEC base Length of PIN code Rev 0 3 10 May 2013 Intel Public 25 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Response Usage Command to acknowledge the response indication Dev A Dev B simple_pairing 1 characters HEX base 0 Legacy Pair
47. request host will be notified but connection is accepted automatically OK Dev B AT JACR lt accept gt Accept Connection Request Shall be used as answer to a connect indication RCOl accept parameter 1 character O Not accepted 1 Accepted OK Dev B AT JCAC lt trim_value gt lt GPIO gt Crystal Auto Calibrate trim_value parameter 4 characters HEX base The trim value is used to adjust the frequency on the GPIO chosen by the GPIO parameter Range 0x0000 0x03FF GPIO parameter 4 characters HEX base Two GPIOs can be used as output for the oscillator trim either PO1 or PO8 0002 and 0100 See section 4 4 AT JCAC command can only be issued after production mode is enabled AT JPRO 1 See section 4 8 OK DevA Dev B AT JCBD lt bd_data gt Change BD_Data bd_data parameter 116 characters HEX base LSB first The bd_data string consists of following configuration OK DevA Dev B Rev 0 3 10 May 2013 Intel Public User s Manual Software Specification Document Number N A 11 47 eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s from eUniStone Dev A Dev B data with reference value bdAddr 12 characters see Note 1 channelWordOffset 4 characters 0000 clkConf 2 characters 8A EEPROMSize 2 characters 80 inputFreq
48. s 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 Before entering LPM eUniStone will set its own UART RTS high The host can wake up eUniStone by setting UART CTS of eUniStone low again and setting P0 14 high again eUniStone can wake up the host by setting its own UART RTS low again and setting P0 0 high again Rev 0 3 10 May 2013 Intel Public 29 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x i tell Intel SPP AT Command and Response 4 5 1 Host Initiates Low Power Mode Entry and Exit The picture below describes when the host initiates Low Power Mode and host initiates leaving the Low Power Mode Table 4 Host Initiates Low Power Mode Entry and Exit Rev 0 3 10 May 2013 Host eUniStone Host Output gt GPIO P0 14 Host RTS gt UARTCTS Host Input GPIO P0 0 Host CTS UARTRTS 1 The host allows eUniStone to enter low power mode 2 eUniStone enters low power mode 3 eUniStone allows the host to enter low power mode the host may if it can enter low power mode 4 The host requests the eUniStone to wake up 5 eUniStone wakes up Intel Public 30 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response 4 5 2 Host Initiates Low Power Mode Entry eUniSt
49. the module inoperable 3 AT JCBD command can only be issued after production mode is enabled AT JPRO 1 Changes in BD Data take place after production mode command is disabled AT JPRO 0 followed by a SW reset AT JRES AT JRES RESet ROK DevA SW reset of the system eUniStone with EEPROM Dev B software is restarted AT JRLS lt length_uuid gt Register Local Service OK Dev B lt length_ Up to three services may be service_name gt registered lt uuid gt length_uuid 2 characters DEC lt service_name gt b lt service_channel gt ase lt CoD gt Length for the uuid 4 or 32 length_service_name parameter 2 characters DEC base Value range 01 16 Length of service name uuid parameter uuid for supported profile 4 or 32 characters HEX base e g 1101 for Serial Port Profile e g 0000110100001000800000805F9B34 FB for Serial Port Profile service_name parameter length Rev 0 3 10 May 2013 Intel Public 18 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x Intel SPP AT Command and Response AT Command Usage Resulting response s Dev A from eUniStone Dev B length_service_name Name for the service no final delimiter is needed Service_channel parameter 2 characters DEC base Value range 01 30 This is the service channel number seen by remote side CoD parameter 6 characters HE
50. tures 2 Bluetooth Features e Bluetooth v2 1 EDR compliant SPP implementation Secure Simple Pairing Security Mode 4 o Association Models Numeric Comparison Just Works and Passkey Entry are supported Encryption Pause Resume Enhanced Power Control BT3 0 feature of the BT Controller e Device A initiating and device B accepting role e One point to point link for data transmission octet by octet in stream mode by packets in command mode MTU size 500 bytes e Device is visible and connectable until the link has been set up Sniff and Sniff Sub Rating are supported on the link to save current e Up to five trusted devices can be stored in EEPROM when 6th device is paired the first device is deleted e AT commands for development and manufacturing Device Under test Mode for connection to a BT tester Secure Simple Paring Debug mode to sniff and decrypt the air traffic Crystal oscillator calibration EEPROM configuration update SW upgrade via UART and I2C e 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 Rev 0 3 10 May 2013 Intel Public 6 47 User s Manual Software Specification Document Number N A eUniStone SPP AT Application SW 3 x tell Serial Port Profile 3 Serial Port Profile Host communication sent over UART is always called command except while in

Download Pdf Manuals

image

Related Search

Related Contents

USER MANUAL  デルタ 20 プラス LED ダーマトスコープ 取扱説明書  Mode d`emploi  TSU Metal User Manual - ADTRAN Support Community  LEDS88002R(K)  乗用田植機  BR256B3  MobilePower Ladegerät  設定ガイド - BIGLOBE会員サポート  お買い上げいただきまして、まことにありがとうございます。 ご使用前に  

Copyright © All rights reserved.
Failed to retrieve file