l en tia nf id Ba rr ot Co i480e&i480e-MD2 Programming Manual 2022.9.23 Version 3.
i480e&i480e-MD2 Programming Manual VERSION HISTORY DATE 2014-7-24 1.1 1.2 2014-8-19 2014-11-4 en tia Li Li 2014-11-20 Li Li 2014-11-28 Li Li 2015-1-5 Li Li 2015-1-20 Li Li nf id 2014-11-17 1.5 1.6 1.7 Ba rr ot 1.4 Co 1.3 Add GATT Central 1. Add commands: AT+B GCTST AT+B PBCSETPARSE AT+B PBCGETPARSE AT+B CBSTARTEX AT+B CBSTOP 2.
i480e&i480e-MD2 Programming Manual Li Li Li Li Yuqiang Wang Rechael 2015-12-25 2016-3-23 Fine Yuqiang Wang Yintian 2016-8-11 Li Li 2016-15-5 Wang Yuqiang 2.6 2.7 Change the order of chapter 28 and 29. Change contact info 1 Update 4.20, add voice functions; 2 Add commands: 4.26 AT+B PIOSETPIN 4.27 AT+B PIOGETPIN 4.28 AT+B PIOSETDIR 4.29 AT+B PIOGETDIR 4.30 AT+B PIOSETMAP 4.31 AT+B PIOGETMAP Change SPRO bit 0 Review 2017-3-22 2017-7-11 2.
i480e&i480e-MD2 Programming Manual 2018-07-12 2022-09-23 Joe Yin Tian Co nf id en tia l Joe ot 3.0 3.1 2017-10-24 Ba rr 2.9 Add AT+B BLERCVR Delete AT+B BLEMTU In 7.18 HFCODEC and 21.18 AGCODEC: 1,CVSD change to NBS; 2,Smbc change to WBS. Bluetooth version updated to 5.
i480e&i480e-MD2 Programming Manual Contents 1 Introduction ......................................................................................................... 13 2 Important Notes................................................................................................... 13 Default Settings .......................................................................................... 13 2.1.1 UART Default Setting........................................................................ 13 2.1.
i480e&i480e-MD2 Programming Manual 5.1 5.2 5.3 l INIT ............................................................................................................. 35 ROLE............................................................................................................ 35 SSPPIN......................................................................................................... 35 HFP AT Command Definition ................................................................................
i480e&i480e-MD2 Programming Manual 6.16 6.17 6.18 6.19 6.20 HFP Indication Definition ..................................................................................... 47 8 nf id en tia l HFSTAT ...................................................................................................................... 47 HFCONN ...................................................................................................... 48 HFDISC .................................................................
i480e&i480e-MD2 Programming Manual 10.5 10.6 10.7 10.8 10.9 10.10 10.11 11 AVRCPFORWARD ......................................................................................... 60 AVRCPBACKWARD....................................................................................... 60 AVRCPVOLUMEUP ....................................................................................... 61 AVRCPVOLUMEDOWN ................................................................................ 61 AVRCPSABSVOL ........
i480e&i480e-MD2 Programming Manual 14.5 14.6 14.7 14.8 14.9 MAP Client Indication Definition ......................................................................... 80 16 MAPCINIT ................................................................................................ 80 MAPCDISC ............................................................................................... 80 MAPCGETDATAIND .........................................................................................
i480e&i480e-MD2 Programming Manual 20 HFP AG AT Command Definition .......................................................................... 95 HFP AG Status ......................................................................................... 95 20.1.1 HFP AG Status .................................................................................. 95 20.1.2 HFP AG Connect Status .................................................................... 95 20.1.3 HFP AG Disconnect Status....................
i480e&i480e-MD2 Programming Manual 21.8 21.9 21.10 21.11 21.12 21.13 21.14 21.15 21.16 21.17 21.18 23.1 23.2 23.3 24 AVRCP Status ......................................................................................... 119 AVRCPCONN ..............................................................................................121 AVRCPDISC ............................................................................................ 121 A2DPCODEC .............................................................
i480e&i480e-MD2 Programming Manual 26.3 26.4 GATT Peripheral AT Command Definition .......................................................... 128 27.1 27.2 GATT Peripheral Indication Definition ............................................................... 129 28.1 GATT Central AT Command Definition ............................................................... 130 30 DFU/Production PIO (PIO5)...................................................................
i480e&i480e-MD2 Programming Manual Note: In the following statement, i480e&i480e-MD2 is represented by i480e en tia l FCC Radio Frequency Exposure distance statement Important Note:To comply with the FCC RF exposure compliance requirement,no change to the antenna or the device is permitted.Any change to the antenna or the device could result in the device exceeding the RF exposure requirements and void user's authority to operate the device.Caution: Exposure to Radio Frequency Radiation.
i480e&i480e-MD2 Programming Manual Ba rr ot Co nf id en tia l The UART default setting is 115200, 8, N, 1 13 13/ /139 139
i480e&i480e-MD2 Programming Manual 2.1.2 Default Device Name i480e default device name is I480E. 2.1.3 Default PIN Code The default PIN Code is 0000. 2.1.4 Default Device Type 2.1.5 Default Speaker Volume en tia l The default device type is 0x001F00 (Unknown Bluetooth device). nf id The default speaker volume is 15. It can be changed with the command in the chapter 6.11. Co 2.1.6 Default Microphone Volume ot The default microphone volume is 15.
i480e&i480e-MD2 Programming Manual 2.3.2 Bluetooth Device Address An ASCII code string like “1234567890AB”, the length is 12 bytes. 2.3.3 Bluetooth Device Name The maximum length of the Bluetooth device name is a 31 bytes UTF8 code string with a mix of ‘A’-‘Z’,’a’-‘z’,’0’-‘9’. The length of the local device name must be between 1 byte and 31 byte. en tia l If the remote device name is non-English letters, the host unit shall call a UTF8 to ASCII converter to display characters correctly.
i480e&i480e-MD2 Programming Manual 3.1 Command Format ::={ [[COMMA]]* } en tia l ::=AT+B ::=’character set, upper case’ ::=’ number set and character set, be separated by comma, the last parameter need not comma-tailed’ 3.
Ba rr ot Co nf id en tia l i480e&i480e-MD2 Programming Manual ::=’ number set and character set, be separated by 17 17/ /139 139
i480e&i480e-MD2 Programming Manual comma, the last parameter need not comma-tailed’ 4 Generic AT Command Definition This chapter introduces the generic AT commands’ definition, including a brief description of commands’ syntax, responses and examples. All commands listed in this chapter are profile-independent. 4.1GVER AT+B GVER Response AT-B GVER [ver] Parameters N/A Note N/A nf id Command en tia l The GVER command is used to get the version of the controller unit firmware. Co 4.
i480e&i480e-MD2 Programming Manual Succeed: AT-B GLDN 0,[name] Ba rr ot Co nf id en tia l Response 19 19/ /139 139
i480e&i480e-MD2 Programming Manual Failed: AT-B GLDN 1, Parameter name Note N/A Device name. 4.4SLDN AT+B SLDN [name] Response Succeed: AT-B SLDN 0 Failed: AT-B SLDN 1 en tia Command l The SLDN command is used to set the local device name. name Device name. UTF-8 format. Note The length of name can be up to 31 bytes at maximum. nf id Parameter Co 4.5GRDN Command AT+B GRDN [bd] Response ot The GRDN command is used to get the specific remote device name.
i480e&i480e-MD2 Programming Manual Succeed: AT-B SPIN 0 Ba rr ot Co nf id en tia l Response 21 21/ /139 139
i480e&i480e-MD2 Programming Manual Failed: AT-B SPIN 1 Parameters pin Note N/A The new PIN code. The default PIN code is 0000. 4.7GPIN AT+B GPIN Response Succeeded: AT-B GPIN 0,[pin] Failed: AT-B GPIN 1,0 pin Note N/A The local PIN code. nf id Parameters en tia Command l The FPIN command is used to get the local PIN code. Co 4.8GPRD The GPRD command is used to get the paired record which stored in local BT module.
i480e&i480e-MD2 Programming Manual Remote Bluetooth device address.
i480e&i480e-MD2 Programming Manual Note bd is comprised of 12 bytes hexadecimal characters. 4.9DPRD The DPRD command is used to delete the specified BD address paired record.
i480e&i480e-MD2 Programming Manual If op=2 and any nearby device was found: AT-B INQR [bd],[class],[name] If the inquiry process finished: AT-B INQC Parameters op 0: stop the inquiry procedure. 1: start searching nearby Bluetooth devices, and return devices’ address and class of device 2: start searching nearby Bluetooth devices, and return devices’ address, class of device and device name Remote Bluetooth device address.
i480e&i480e-MD2 Programming Manual supported; 6: Authentication failed as simple pairing is not supported; 7: Authentication failed as host is already busy pairing. Note bd is comprised of 12 bytes hexadecimal characters. 4.12 SCAN AT+B SCAN [mode] Response Succeeded: AT-B SCAN 0 Failed: AT-B SCAN 1 mode Scan mode, where nf id Parameters en tia Command l The SCAN command is used to set the scan mode.
i480e&i480e-MD2 Programming Manual the DFU mode. 4.14 UART The UART command is used to set serial communication parameters of the module’s UART controller. Command AT+B UART [baud],[ stop],[ parity] Response Succeeded: AT-B UART 0 baud Supported baud rate: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, and 1382400. stop 0: 1bit stop bit; nf id 1: 2 bit stop bit. en tia Parameters l Otherwise: AT-B UART 1 parity 0: No checksum; 1: Odd checksum; N/A Ba rr 4.
i480e&i480e-MD2 Programming Manual establish HID (keyboard or mouse) connections with Bluetooth devices which COD is not set to HID devices. COD (Major and minor device class fields) refers to the link: https://www.bluetooth.org/en-us/specification/assigned-numbers/base band For instance, the major device class field (bit 12~bit8) should be set to 00101, the minor device class field (bit7~bit6) could be set to 01 (keyboard), a0(pointing device).
i480e&i480e-MD2 Programming Manual bit 6: OPP Client, 0: disable, 1:enable; bit 7: OPP Server, 0: disable, 1:enable; bit 8: SPP, 0: disable, 1:enable; bit 9: PBAP Server, 0: disable, 1:enable; bit 10: HID mouse, 0: disable, 1:enable; bit 11: HID keyboard, 0: disable, 1:enable. 1. When both bit10 and bit11 equal to 1, it will only support HID keyboard. 2.
i480e&i480e-MD2 Programming Manual bdaddr The connected remote device Bluetooth address. If the corresponded connection of the inquired profile doesn’t exist, the returned Bluetooth address will be 000000000000 This command is used to get connection status. For instance, To inquire HFP connection state and HFP connection exists, Command: AT+B GCTST 1\r Indication: AT-B 1,3,9CC1729DCCC\r (HFP connection is established.
i480e&i480e-MD2 Programming Manual media Media type 1, audio(music) 2,voice Input Input source 0, ADC(analog input) 1, I2S 2, SPDIF Audio output type 2, I2S 3, SPDIF Stereo 0, Mono 1 The route will take effect next time. 4.21 GROUTE Co Note nf id 1, Stereo en tia 0,1, DAC(internal codec) l Output Command ot This command is used to get route of the audio system.
i480e&i480e-MD2 Programming Manual 1, Stereo Note Input parameter is reserved for future use, default value is 0. 4.22 I2CR This command is used to receive data across I2C interface Command AT+B I2CR [r_addr], [length] Response AT-B I2CR [stauts],[length], [data] Parameters status Device Address to read Length Length of data Data Data received nf id R_addr N/A Co Note en tia Else: Failed. l 0: Succeeded; ot 4.23 I2CW Ba rr This command is used to transmit data across I2C interface.
i480e&i480e-MD2 Programming Manual 4.24 I2SC This command is used to set the configuration of I2S Interface. Command AT+B I2SC [master],[justify], [delay],[bits],[scale] Response AT-B I2SC [status] Parameters status 0: Succeeded; Else: Failed. 0, Slave mode l Master Justify I2S format nf id 0, left justified en tia 1, Master mode, Clock and sync will be generated by I2S hardware.
i480e&i480e-MD2 Programming Manual 1, Master mode, Clock and sync will be generated by the I2S hardware. Justify I2S format 0, left justified 1, right justified Delay Left justified format 0, MSB of SD data occurs in the first SCK period following WS transition l 1 MSB of SD data occurs in the second SCK period bits per sample Scale master clock frequency scaling factor en tia Bits clock rate = sample rate * scale N/A nf id Note Co 4.
i480e&i480e-MD2 Programming Manual 2 The upper 16 PIOs must be mapped in before they can be used through AT+B PIOSETMAP. 4.27 PIOGETPIN This command is used to get the contents of PIO data register. Command AT+B PIOGETPIN Response AT-B PIOGETPIN [result] Parameters result 1, high 0, low N/A nf id Note en tia l A 32 bit value. Each bit in the result value corresponds to a PIO line: Co 4.
i480e&i480e-MD2 Programming Manual 4.29 I2SG This command is used to read whether PIOs are set as inputs or outputs. Command AT+B I2SG Response AT-B I2SG [result] Parameters result Note N/A en tia l A 32 bit value. Each bit in the result value corresponds to a PIO line. Bits set to 1 means that PIO line is configured as an output. Bits set to 0 means it is configured as an input. 4.30 PIOSETMAP nf id This command is used to make usual function of chip pins behave as PIOs.
i480e&i480e-MD2 Programming Manual an output. (PIO 18) maps to UART_DATA_OUT. This can be configured as an input or an output. (PIO 19) maps to PCM_CLK_OUT. Set this to output to the PCM_CLK pin. This line is output only. (PIO 20) maps to AIO0. (PIO 21) maps to AIO1. l PIO lines above 21 map to nothing and cannot be mapped or written. en tia For I480e the PIO lines map to other pins as follows: (PIO 0-12) have no mapping. They are always PIO 0-12.They can be configured as inputs or outputs.
i480e&i480e-MD2 Programming Manual (PIO 19) maps to the PCM_SYNC pin. This can be configured as an input or an output. (PIO 20) maps to the PCM_CLK pin. This can be configured as an input or an output. (PIO 21) maps to the SQIF Flash Clock pin. This can be configured as an input or an output. (PIO 22) maps to the SQIF RAM Clock pin. This can be configured as an input or an output. (PIO 23) maps to the SQIF Flash CS pin. This can be configured as an input or an output.
i480e&i480e-MD2 Programming Manual 5 Generic Indication Definition 5.1INIT The INIT indication is used to inform the host unit if the Bluetooth initialization is successfully completed. Indication AT-B INIT [status] Parameters status 0: succeeded; Note en tia l 1: failed. N/A nf id 5.2ROLE The ROLE indication is used to inform the host of current role in the specific connection. AT-B ROLE [role] Parameters role Co Indication 0: master; ot 1: slave; Ba rr 2: role doesn’t care.
i480e&i480e-MD2 Programming Manual 6 HFP AT Command Definition This chapter introduces the HFP (HF Unit Role) relevant AT commands’ definition, including a brief description of commands’ syntax, responses and examples. 6.1 HFP Status This chapter introduces the defined HFP status. l 6.1.1 HFP Lib Status Ba rr ot Co nf id en tia typedef enum { hfp_success = 0, /*! Success.*/ hfp_fail = 0x01, /*! Failure.*/ hfp_ag_failure= 0x02, /*! Failure - AG failure.
i480e&i480e-MD2 Programming Manual hfp_network_not_allowed= 0x17, hfp_timeout=0x1d, response */ hfp_network_no_carrier, hfp_network_busy, hfp_network_no_answer, hfp_network_delayed, hfp_network_blacklisted } hfp_lib_status; /*! Failure - Network not allowed, emergency calls only.*/ /*! Failure - Timed out waiting for AG /*! Failure – No Carrier */ /*! Failure - BUSY */ /*! Failure – NO ANSWER */ /*! Failure - DELAYED */ /*! Failure - BLACKLISTED */ /*! Successful connection.
i480e&i480e-MD2 Programming Manual 6.1.3 HFP Disconnect Status typedef enum { hfp_disconnect_success, hfp_disconnect_link_loss, loss.*/ hfp_disconnect_no_slc, connection.*/ hfp_disconnect_timeout, /*! Successful disconnection.*/ /*! Unsuccessful due to abnormal link /*! Unsuccessful due to no current /*! Unsuccessful due to RFCOMM connection attempt timeout.*/ /*! Unsuccessful due to RFCOMM connection attempt error.*/ en tia l hfp_disconnect_error, } hfp_disconnect_status; nf id 6.
i480e&i480e-MD2 Programming Manual Command AT+B HFDISC Response AT-B HFDISC [status],[bd] Parameters status Values in the chapter 6.1.3. bd Remote Bluetooth device address. Note N/A Command AT+B HFANSW Response AT-B HFANSW [status] Parameters status Note N/A en tia The HFANSW command is used to answer the incoming call. l 6.4HFANSW Co nf id Values in the chapter 6.1.1. 6.
i480e&i480e-MD2 Programming Manual Response AT-B HFDIAL [status],[type] Parameters type Call type, where 0: dial the supplied number; 1: perform a last number redial. The dialed out number. The maximum length is 40 bytes. status Values in the chapter 6.1.1. N/A en tia l Note num 6.7HFDTMF nf id The HFDTMF command is used to transmit a DTMF code to the AG, for HandsFree profile only. AT+B HFDTMF [key] Response AT-B HFDTMF [status] Parameters key Values in the chapter 6.1.1.
i480e&i480e-MD2 Programming Manual 6.9HFMCAL The HFMCAL command is used to change three-way calling status (active or held). This command will be successfully executed when the HFP instance is in either hsActiveCall or hsTWCallWaiting status. Command AT+B HFMCAL [op] Response AT-B HFMCAL [status],[op] Parameters op Operation code, where l 0: MultipleCallsReleaseHeldOrRejectWaiting; en tia 1: MultipleCallsReleaseActiveAcceptOther; 2: MultipleCallsHoldActiveAcceptOther.
i480e&i480e-MD2 Programming Manual 0: Call is currently active; 1: Call is currently held; 2: Call is being dialed - mobile originated only; 3: Call is alerting - mobile originated only; 4: Call is incoming - mobile terminated only; 5: Call is waiting - mobile terminated only. mode Call mode, where 0: voice call; multiparty en tia 2: fax call. l 1: data call; Call multiparty indicator, where 0: Call is not multiparty; nf id 1: Call is multiparty.
i480e&i480e-MD2 Programming Manual Parameters Note vol Speaker volume, where ranges from 0 to 15. status Values in the chapter 6.1.1 If the connection is a HSP SLC, this command can be sent when the audio connection is ongoing. If the connection is a HFP SLC, this command can be sent when the connection status equals to or greater than hsConnected. en tia The HFGVGS command is used to get speaker volume. l 6.
i480e&i480e-MD2 Programming Manual 6.14 HFGVGM Command AT+B HFGVGM Response AT-B HFGVGM [vol] Parameters vol Note If the connection is a HSP SLC, this command can be sent when the audio connection is ongoing. Microphone volume, where ranges from 0 to 15. en tia l If the connection is a HFP SLC, this command can be sent when the connection status equals to or greater than hsConnected. 6.15 HFMUTE nf id The HFMUTE command is used to mute or unmute the microphone when a call is ongoing.
i480e&i480e-MD2 Programming Manual Parameters mask 1: enable/disable the reconnect function; 2: enable/disable local ring tone. config When mask=1, if config=0: disable the reconnect function; if config=1, enable the reconnect function. When mask=2, if config=0: enable local ring tone; if config=1: disable local ring tone. status 0: succeeded; 1: failed. l N/A en tia Note 6.
i480e&i480e-MD2 Programming Manual Command AT+B HFBVRA [enable] Response AT-B HFBVRA [hfp_lib_status] Parameters enable 1: enable voice recognition; 0: disable voice recognition; hfp_lib_status Refer to chapter 6.1.1 Note N/A en tia l 6.19 HFCOPS The HFCOPS command is used to Get the network operator for the AG. AT+B HFCOPS Response Succeeded: AT-B HFCOPS [mode],[operator] nf id Command Failed: AT-B HFCOPS 1 mode Network operator selection mode, currently not used, so ignore it.
i480e&i480e-MD2 Programming Manual accepts the other (held or waiting) call. 3: Adds a held call to the conversation. 4: Connects the two calls and disconnects the subscriber from both calls (Explicit Call Transfer). Support for this value and its associated functionality is optional for the HF. index This parameter is returned in call_idx parameter of AT-B HFCCIN indication. en tia l Only when the op parameter equals to either 1 or 2, index parameter has meaningful value.
i480e&i480e-MD2 Programming Manual 5: HfpTLOutgoingCallEstablish; 6: HfpTLActiveCall; 7: HfpTLTWCalling: there is a current call. A new incoming call arrives, and this new incoming call is in waiting status. 8: HfpTWCallOnHold: one call is active and another call is in held status. 9: HfpTWMulticall: multiple calling 10: HfpCallOnHoldNoActive: all calls are in held status. N/A en tia l Note 7.
i480e&i480e-MD2 Programming Manual bd Note Remote Bluetooth device address N/A 7.4HFRING The HFRING indication is used to inform the host unit when HFP ring comes. The host unit shall turn on the audio path when receives this indication, and turn off the audio path when the HFP status changes HfpTLSlcConnected. AT-B HFRING Parameters N/A Note N/A en tia l Indication nf id 7.5HFIBRN AT-B HFIBRN [inbandring] Parameters inbandring 0: in-band ring tone is off; 1: in-band ring tone is on.
i480e&i480e-MD2 Programming Manual 7.7HFCLIP The HFCLIP indication is used to inform the host unit of the incoming call’s caller ID. Indication AT-B HFCLIP [callerid] Parameters callerid Note N/A en tia l Incoming call’s caller ID. There is no limit to number length on HF device side, and it depends on mobile phone side, but we had better limit it to less than 40 bytes. 7.
i480e&i480e-MD2 Programming Manual 7.10 HFNUMC The HFNUMC indication is used to inform the host that the query of subscriber number is completed. Indication AT-B HFNUMC [status] Parameters status Note N/A Values in the chapter 6.1.1. en tia l 7.11 HFSGNL The HFSGNL indication is used to inform the host unit of the signal strength of the AG side. AT-B HFSGNL [signal] Parameters signal Note N/A Co Signal strength indicator, where ranges from 0 to 5. ot 7.
i480e&i480e-MD2 Programming Manual Indication AT-B HFBATC [battchg] Parameters battchg Note N/A Battery charge indicator of AG, where ranges from 0 to 5. 7.14 HFVGSI AT-B HFVGSI [spkvol] Parameters spkvol Note N/A en tia Indication l The HFVGSI indication is used to inform the host unit of the current speaker volume of the AG side. nf id Speaker volume, where ranges from 0 to 15. 7.
i480e&i480e-MD2 Programming Manual 7.17 HFCHLD This indication is used to inform the host unit of the call held status of AG side. Indication AT-B HFCHLD [callheld] Parameters callheld Bluetooth proprietary call hold status indicator. Support for this indicator is mandatory for the AG, optional for the HF. Possible values are as follows: 0: No calls held; en tia l 1: Call is placed on hold or active/held calls swapped (The AG has both and active AND a held call); 2: Call on hold, no active call.
i480e&i480e-MD2 Programming Manual client. */ a2dp_sdp_fail, a2dp_l2cap_fail, a2dp_operation_fail, a2dp_insufficient_memory, task. */ a2dp_wrong_state, /*! SDP registration has failed. */ /*! L2CAP registration has failed. */ /*! The operation has failed. */ /*! No memory to perform the required /*! The library is in the wrong state to perform the operation. */ a2dp_no_signalling_connection, /*! No signaling connection. */ a2dp_no_media_connection, /*! No media connection.
i480e&i480e-MD2 Programming Manual bd Note Remote Bluetooth device address N/A 8.4A2DPSVGS The A2DPSVGS command is used to change the speaker gain. AT+B A2DPSVGS [gain] Response Succeeded: AT-B A2DPSVGS 0 Failed: AT-B A2DPSVGS 1 Parameters gain Note N/A l Command 8.5A2DPGVGS nf id en tia Speaker gain, where ranges from 0 to 15. The A2DPGVGS command is used to get the speaker gain. AT+B A2DPGVGS Response AT-B A2DPGVGS [gain] Parameters gain ot Speaker gain, where ranges from 0 to 15.
i480e&i480e-MD2 Programming Manual Parameters state A2DP connection status, where 1: a2dpReady; 2: a2dpConnecting; 3: a2dpConnected; 4: a2dpStreaming. Note N/A l 9.2A2DPCONN en tia The A2DPCONN indication is used to inform the host unit when it initializes a AVRCP connection with the local device. AT-B A2DPCONN [status], [bd] Parameters status Values in the chapter 8.1. bd Remote Bluetooth device address. bd is comprised of 12 bytes hexadecimal characters. ot 9.
i480e&i480e-MD2 Programming Manual Indication AT-B A2DPCODEC [codec_id],[channel],[rate] Parameters codec_id 1, SBC 2, MP3 3, AAC 5, APTX 6, APTX_LL channel Channel mode for the audio being streamed; 0,mono 3, joint stereo Note Sample rate for internal codec, 44.
i480e&i480e-MD2 Programming Manual */ avrcp_invalid_sink, /*! Sink supplied was invalid. */ avrcp_link_loss, /*! Link loss occurred. */ avrcp_rejected=0x0A, /*! The operation was rejected. */ avrcp_interim_success=0x0F, /*! Operation was successful, but have only received an interim response.*/ Ba rr ot Co nf id en t ia l /* Below status codes depends on the error status code received from the remote device.
i480e&i480e-MD2 Programming Manual /*! This command has been rejected with reason - Invalid Player ID.*/ avrcp_rejected_player_not_browsable, /*! This command has been rejected with reason - Player Not Browsable.*/ avrcp_rejected_player_not_addressed, /*! This command has been rejected with reason - Player Not Addressed.*/ avrcp_rejected_no_valid_search_results, /*! This command has been rejected with reason - No valid Search Results.
i480e&i480e-MD2 Programming Manual Note N/A 10.4 AVRCPSTOP The AVRCPSTOP command is used to send “Stop” command to stop playing. Command AT+B AVRCPSTOP Response AT-B AVRCPSTOP [status] Parameters status Note N/A en t ia l Values in the chapter 10.1. 10.5 AVRCPFORWARD Command AT+B AVRCPFORWARD Response AT-B AVRCPFORWARD [status] Parameters status Note ot Co nf id The AVRCPFORWARD command is used to send “Forward” command to play the next track. Values in the chapter 10.1.
i480e&i480e-MD2 Programming Manual 10.7 AVRCPVOLUMEUP The AVRCPVOLUMEUP command is used to send the Category 2 Pass through command of volume-up. Command AT+B AVRCPVOLUMEUP Response AT-B AVRCPVOLUMEUP [status] Parameters status Note This command is only used for Category 2 device. ia l Values in the chapter 10.1 en t 10.8 AVRCPVOLUMEDOWN id The AVRCPBACKWARD command is used to end the Category 2 Pass through command of volume-down.
i480e&i480e-MD2 Programming Manual 10.10 AVRCPFF The AVRCPFF command is used by the CT (Category 2) to fast forward. Command AT+B AVRCPFF [op] Response AT-B AVRCPFF [status] Parameters op 1: start; 0: stop. This command is only used for Category 2 device. en t Note Values in the chapter 10.1 ia l status id 10.11 AVRCPFB Co nf The AVRCPFB command is used by the CT (Category 2) to fast backward.
i480e&i480e-MD2 Programming Manual Indication AT-B AVRCPSTAT [state] Parameters status AVRCP connection status, where, 1: avrcpReady; 2: avrcpConnecting; 3: avrcpConnected. Note N/A ia l 11.2 AVRCPCONN en t The AVRCPCONN indication happens when local or remote device creates the A2DP connection. AT-B AVRCPCONN [status],[bd] Parameters status Values in the chapter 10.1. bd Remote Bluetooth device address.
i480e&i480e-MD2 Programming Manual Indication AT-B AVRCPTITLE [title] Parameters title Note N/A Title of media, the maximum length is 128 bytes. 11.5 AVRCPARTIST Indication AT-B AVRCPARTIST [artist] Parameters artist Note N/A ia l The AVRCPARTIST indication is used to tell host the artist of current playing media. en t Artist of media, the maximum length is 128 bytes. Co nf id 11.6 AVRCPALBUM The AVRCPALBUM indication is used to inform the album of current playing media.
i480e&i480e-MD2 Programming Manual 0xFF: play_status_error. Note N/A 11.8 AVRCPFEATURE The AVRCPFEATURE indication is used to tell host the features that the remote TG supports. Indication AT-B AVRCPFEATURE [metadata],[feature] Parameters metadata ia l 0: disable, AVRCP V1.0; feature en t 1: enable, AVRCP V1.3 or later.
i480e&i480e-MD2 Programming Manual Parameters time Note N/A Time. ASCII code. Unit: ms 11.10 AVRCPPOS AT-B AVRCPPOS [position] Parameters position Playback progress Note N/A en t Indication ia l The AVRCPPOS indication is used to inform the playback progress of current playing media. id 12 PBAP Client AT Command Definition 12.
i480e&i480e-MD2 Programming Manual Ba rr ot Co nf id en t ia l repository */ pbapc_spb_not_found, /*! Phonebook does not exist */ pbapc_vcl_no_param_resources = 0x20, /*! No resources to generate application specific parameters header for PullvCardList. */ pbapc_vcl_no_pbook_folder, /*! A phonebook folder was specified for PullvCardList where there are no sub-folders (i.e. in pb).
i480e&i480e-MD2 Programming Manual Response AT-B PBCCONN [status],[bd] Parameters bd Remote Bluetooth device address. status Values in the chapter 12.1. Note HFP connection must have already been established before establishing PBAP connection. 12.3 PBCDISC ia l The PBCDISC command is used to release the PBAP connection with a remote device. AT+B PBCDISC [bd] Response AT-B PBCDISC [status], [bd] Parameters bd Remote Bluetooth device address. status Values in the chapter 12.1.
i480e&i480e-MD2 Programming Manual 4: mch,missed calls; 5: cch,combination of ich, och and mch. startOffset Offset of first entry to pull pbSize Number of entries interested moreData More data to receive or not. More(TRUE) or not(FALSE) length Length of the packet. packet Data of packet. ia l Maximum number of entries that PCE can handle. 1. when maxList = 0, it can be used to get the maximum index that are actually used.
i480e&i480e-MD2 Programming Manual at+b pbcpullcmt\CRAT-B PBCPULLCMTIND\CR Example If set the module to parse vCard format phonebook, the contact’s name will be parsed with UTF-8 format. AT+B PBCPULLPB 1,1,65535,0\CR AT-B PBCSTAT 4\CR AT-B PBCPARSEDATAIND 0,\xE9\xA9\xAC\xE5\xA7\x90,0,18610865026\CR AT-B PBCPARSEDATAIND 0,\xE7\x88\xB9,0,13784070664\CR ……(more records) ia l AT-B PBCSTAT 3\CRAT-B PBCPULLCMTIND\CR en t 12.
i480e&i480e-MD2 Programming Manual Command AT+B PBCPULLCRT Response Succeeded: AT-B PBCPULLDATAIND [pbSize], [moreData], [length],[packet]0xFF Failed: AT-B PBCPULLCRT 1 moreData More data to receive or not. More(TRUE) or not(FALSE) length Length of the packet packet Data of packet ia l Ignored 1. If the [length] field of the PBCPULLDATAIND indication is not equal to the real packet received by MCU, it is possible that packet loss has occurred on UART.
i480e&i480e-MD2 Programming Manual Failed: AT-B PBCSETPARSE 1 Parameters para 1: Parse vCard data 0: Don’t parse vCard data. Default setting. Note N/A 12.9 PBCGETPARSE AT+B PBCGETPARSE Response AT-B PBCGETPARSE [para] Parameters para en t Command ia l The PBCGETPARSE command is used to inquiry if parsing phonebook vCard data.
i480e&i480e-MD2 Programming Manual Note N/A 13.2 PBPULLDATAIND The PBPULLDATAIND indication is used to inform the host unit that packet pulled arrives. Indication AT-B PBPULLDATAIND [pbSize], [moreData], [length],[packet]0xFF Parameters pbSize Number of entries interested packet Data of packet id en t Length of the packet End of packet is 0xFF, not \r (0x0d). Co nf Note length ia l moreData More data to receive or not. More(TRUE) or not(FALSE) 13.
i480e&i480e-MD2 Programming Manual 1:Cell Number, 2:Home Number, 3:Work Number, 4:Preference Number 5:Fax Number For Call History 16:Received call 17:Dialed call 18:Missed call time When syncing call log, it will return call time name Contacts name ia l Contacts phone number en t Note number N/A Co nf id 14 MAP Client AT Command Definition This chapter introduces MAP (Message Client Equipment Role) relevant AT commands’ definition, including a brief description of commands’ syntax, responses an
i480e&i480e-MD2 Programming Manual mapc_command_rejected, /*!< Remote rejected the command */ mapc_invalid_parameter /*!< Remote send corrupt or invalid response */ } MapcStatus; 14.1.
i480e&i480e-MD2 Programming Manual Parameters Note status Values in the chapter 14.1.1 bd Remote Bluetooth device address If MAP client is in UPLOAD/DOWNLOAD operation, the MAPCCMT command shall be used to terminate the current operation before using MAPCDISC to disconnect the existing MAP connection. 14.4 MAPCGETML ia l This command is used by the MAP Client to get message listing objects from the MAP Server.
i480e&i480e-MD2 Programming Manual 3: sent; 4: deleted; 5: draft. Note If MAP client is in UPLOAD/DOWNLOAD operation, the MAPCCMT command shall be used to terminate the current operation before using the MAPCDISC command to disconnect the existing MAP connection. ia l 14.5 MAPCGETCONT Command AT+B MAPCGETCONT Response Succeeded: en t The MAPCGETCONT command is used to get more dada for the ongoing get operation.
i480e&i480e-MD2 Programming Manual Failed: AT-B MAPCGETMSG 1 Note handle You should get this parameter by parsing the Message Listing object moreData More data to be received or sent. More(TRUE) or not(FALSE) length The length of the packet field packet The partial or complete packet of an object, cannot be NULL, cannot include ‘\r’. N/A ia l Parameters en t 14.
i480e&i480e-MD2 Programming Manual 14.8 MAPCPUSHMSG The MAPCPUSHMSG command is used by the client host to put a message to remote MAP server. Command AT+B MAPCPUTMSG [moreData],[packetSize],[packet] Response If this is the only packet to be sent, the response will be: AT-B MAPCPUTCMTIND [status] If there are more packets to be sent, the response will be: AT-B MAPCPUTMSGIND Note More data to be received or sent.
i480e&i480e-MD2 Programming Manual 15 MAP Client Indication Definition This chapter introduces the MAP(Message Client Equipment Role) relevant indications’ definition. 15.1 MAPCINIT Indication AT-B MAPCINIT [status] Parameters status Note N/A en t Values in the chapter 14.1.1. ia l The MAPCINIT indication is used to inform the client host the result of the MAPC(Message Notification Service) initialization. id 15.
i480e&i480e-MD2 Programming Manual packet Note The partial or complete packet of an object, cannot be NULL, cannot include ‘\r’. N/A 15.4 MAPCGETCMTIND The MAPCGETCMTIND indication is used to inform the client host that the current pull process is over. AT-B MAPCGETCMTIND Parameters N/A Note The client host shall use the MAPCGETCMT command to complete the current UPLOAD operation every time when the [moreData] field of the MAPCGETDATATIND indication equals to zero. id Co nf 15.
i480e&i480e-MD2 Programming Manual 15.7 MAPCEVTIND The MAPCEVTIND indication is used to inform the client host that there are new SMS alerts. Indication AT-B MAPCEVTIND [moreData],[length],[packet] moreData More data to be received or sent. 1: More(TRUE) o: 0: not(FALSE) packet Received short message notification data. ia l The length of the packet field en t Note Length N/A id 16 SPP AT Command Definition ot 16.
i480e&i480e-MD2 Programming Manual ia l spp_connect_normal_disconnect, /*! The remote device terminated the connection. */ spp_connect_abnormal_disconnect, /*! Unsuccessful due to an abnormal disconnect while establishing the RFCOMM connection. */ spp_connect_rfcomm_channel_already_open, /*! The connection attempt failed because there is already a connection to that remote device on the requested RFCOMM channel.
i480e&i480e-MD2 Programming Manual 16.3 SPPDISC The SPPDISC command is used to release the SPP connection with the remote device. Command AT+B SPPDISC Response AT-B SPPDISC [status],[bd] Parameters status Values in the chapter 16.1.2. bd Remote Bluetooth device address. ia l N/A en t Note 16.4 SPPDATA id The SPPDATA command is used to transfer data with the remote device.
i480e&i480e-MD2 Programming Manual Indication AT-B SPPSTAT [state] Parameters state SPP connection status, where 1: sppReady; 2: sppConnecting; 3: sppConnected. Note N/A ia l 17.2 SPPDATAIND en t The SPPDATAIND indication is used to inform the host unit that SPP data is received from the remote device. AT-B SPPDATAIND [length],[data] Parameters length Length of received data data Received data N/A Co nf Note id Indication ot 18 HID Device AT Command Definition Ba rr 18.
i480e&i480e-MD2 Programming Manual 18.1.2HID Disconnect Status en t ia l typedef enum { hid_disconnect_success, /*!< Successful disconnection.*/ hid_disconnect_link_loss, /*!< Unsuccessful due to the link being lost.*/ hid_disconnect_timeout, /*!< Unsuccessful due to time out.*/ hid_disconnect_violation, /*!< Disconnection due to protocol violation */ hid_disconnect_error, /*!< Unsuccessful for some other reason.
i480e&i480e-MD2 Programming Manual 18.4 PINRES Command AT+B PINRES[pin_code] Response AT-B PINRES [result_code] Parameters pin_code PIN code result_code 0 : success; 1: command disallowed; 2: parameter error; If HID keyboard is enabled, when the module is pairing with the HID host, it should call the PINRES command to input PIN code or passkey id Note en t 3: authencation failed; ia l The PINRES command is input paring PIN code or passkey when HID profile is enabled.
i480e&i480e-MD2 Programming Manual Repor 8-bit 8-bit Ke Ke Key Key Key Key t ID (Keyc ode-2 24-23 1) (Reser y1 y2 3 (Fixed as ved) 5 66 (8bit 0x01) ) 1. When the module is in report mode, this command is used to send an input report to the host. The first field’ length is 8 bit, every bit refers to Usage ID 224~231 statuses in HID Keyboard Usage Page. Key1~Key6 respectively represents the pressed key’s Usage ID. The range of Usage ID is 0~101. ia l Note 4 en t 2.
i480e&i480e-MD2 Programming Manual Failed: AT-B HIDBIRPT 1 Parameter len Data length raw_data Format definition as follows: 8-bit 8-bit Key1 Ke Ke Ke Ke Ke (Keycode (Rese (8-bit y2 y3 y4 y5 y6 -224-231) rved) 1. When the module is in boot mode, this command is used to send an input report to the host. The first field’ length is 8 bit, every bit refers to Usage ID 224-331statuses in HID Keyboard Usage Page. Key1~Key6 respectively represents the pressed key’s Usage ID.
i480e&i480e-MD2 Programming Manual Command AT+B HIDIRPT [len], [(raw_data)] Indication Succeeded: AT-B HIDIRPT 0 Failed: AT-B HIDIRPT 1 Parameter len Data length, equals to 7. raw_data Input X/Y coordinates, mouse wheel, press. Little endian. Format definition as follows: ia l Report Button1-3(bit0-2),(bit3-bit7 X YWheel ID is 0) 16bit 16bit - 8bit en t (Fixed as 0x02) id Home, back, volume+, volume- buttons. Co nf Format definition as follows.
i480e&i480e-MD2 Programming Manual Mouse left key released: AT+B HIDIRPT 07,\X02\X00\X00\X00\X00\X00\X00\r Mouse right key pressed down: AT+B HIDIRPT 07,\X02\X02\X00\X00\X00\X00\X00\r 2. If CBSTARTEX is sent after the HID connection is established, the HID mouse X, Y values are absolute positions. It represents to where it moves. If CBSTARTEX isn’t sent after the HID connection is established, the HID mouse X, Y values are relative positions. It represents to where it drifts. ia l 3.
i480e&i480e-MD2 Programming Manual Home, back, volume+, volume- buttons. Format definition as follows. Repor t ID Control (01: volume + (0x03) 02: volume 04: back 08: home) 1. When the module is in boot mode, MCU uses this command to send mouse input information. ia l Note en t 2. When sending control commands (volume, back, home), it needs to send the control command and the release command. id Volume+: AT+B HIDIRPT 02,\x03\x01\rAT+B HIDIRPT 02,\x03\x00\r Volume-: AT+B HIDIRPT 02,\x03\x02\rAT+B
i480e&i480e-MD2 Programming Manual status 1: ready to calibrate screen 4: screen calibration succeeds. Note When it returns AT-B CBSTARTEX 1, it represents either SPP or HID connection doesn’t exist. When the mouse is lifted up, the cursor will be moved to the left upper corner of the mobile phone screen. 18.8 CBSTOP Command AT+B CBSTOP Response Succeeded: AT-B CBSTAT 1 id Failed: AT-B CBSTOP 1 en t ia l The CBSTOP command is used to stop mobile phone screen calibration.
i480e&i480e-MD2 Programming Manual Indication AT-B MOUSEINIT 0 Parameters N/A Note N/A 19.2 PININD The PININD indication is used to indicate the client host requires the module to input PIN code or passkey. AT-B PININD Parameters N/A Note When HID keyboard is enabled, this event is returned to require calling the PINRES command to input PIN code or passkey. en t ia l Indication Co nf id 19.3 HIDSUSPEND The HIDSUSPEND indication is used to indicate the client host is suspended.
i480e&i480e-MD2 Programming Manual Note After the HID connection is established, the default protocol mode is report protocol mode. the module will return this indication when the protocol mode is updated. 20 HFP AG AT Command Definition This chapter introduces the HFP (AG Role) relevant AT commands’ definition, including a brief description of commands’ syntax, responses and examples. This chapter introduces the defined HFP status. id /*!< Success. */ /*!< Failure.
i480e&i480e-MD2 Programming Manual aghfp_connect_rejected, aghfp_connect_normal_disconnect, aghfp_connect_abnormal_disconnect /*!< Unsuccessful due to remote device rejecting connection. */ /*!< Unsuccessful due to remote device terminating the connection. */ /*!< Unsuccessful due to an abnormal disconnect while establishing an rfcomm connection. */ ia l aghfp_connect_rejected_key_missing, aghfp_connect_rejected_key_security } aghfp_connect_status; id /*!< Successful disconnection.
i480e&i480e-MD2 Programming Manual parameters specified being invalid.*/ aghfp_audio_connect_call_manager_active, /*! Unsuccessful due to Call Manager setting up/shutting down a call (and hence audio).*/ aghfp_audio_connect_error, /*! Unsuccessful due to library being in incorrect state.*/ aghfp_audio_connect_wbs_fail /*! Unsuccessful due to a Wide Band Speech Error. */ } aghfp_audio_connect_status; ia l 20.1.
i480e&i480e-MD2 Programming Manual profile Profile type, where 0: Not HSP/HFP; 1: Headset Profile; 2: Hands-free Profile. Note bd is comprised of 12 bytes hexadecimal characters. 20.3 AGDISC ia l The AGDISC command is used to disconnect the service level connection with the remote device. AT+B AGDISC Response AT-B AGDISC [status],[bd] Parameters status Values in the chapter 20.1.3. bd Remote Bluetooth device address N/A id Co nf Note en t Command ot 20.
i480e&i480e-MD2 Programming Manual Response AT-B AGAUDIODISC [status] Parameters status Note N/A Values in the chapter 20.1.5. 20.6 AGAUDIOTRANS AT+B AGAUDIOTRANS Response If audio is transferred to HF, response is: AT-B AGAUDIOCONN [status] en t Command ia l The AGAUDIOTRANS command is used to transfer audio from/to remote device. If audio is transferred to AG, response is: status Note N/A HFP. ot 20.7 AGCIEVSVC Values in the chapter 20.1.1.
i480e&i480e-MD2 Programming Manual only for HFP. Command AT+B AGCIEVSIG [signal] Response AT-B AGCIEVSIG [status] Parameters signal Ranges from 0 to 5. status Values in the chapter 20.1.1. Note N/A ia l 20.9 AGCIEVBAT AT+B AGCIEVBAT [battery] Response AT-B AGCIEVBAT [status] Parameters battery N/A Values in the chapter 20.1.1 ot Note Ranges from 0 to 5. Co nf status id Command en t The AGCIEVBAT command is used to send a battery charge indicator to HF, only for HFP. Ba rr 20.
i480e&i480e-MD2 Programming Manual 20.11 AGCALL The AGCALL command is used to send a call indicator to HF, only for HFP. Command AT+B AGCALL [call] Response AT-B AGCALL [status] Parameters call 0: there are no calls in progress; 1: at least one call in progress. N/A en t Note Values in the chapter 20.1.1 ia l status 20.12 AGCALLSETUP Co nf id The AGCALLSETUP command is used to send a call setup indicator to HF, only for HFP.
i480e&i480e-MD2 Programming Manual Parameters callheld 0:No calls held; 1: Call is placed on hold or active/held calls swapped (The AG has both an active AND a held call); 2: Call on hold, no active call. status Note Values in the chapter 20.1.1. N/A ia l 20.14 AGCOPS The AGCOPS command is used to send network operator to HF, only for HFP.
i480e&i480e-MD2 Programming Manual en t ia l 10: SIM not inserted; 11: SIM pin required; 12: SIM PUK required; 13: SIM failure; 14: SIM busy; 16: incorrect password = 16; 17: SIM PIN2 required; 18: SIM PUK2 required; 20: memory full; 21: invalid index; 23: memory failure; 24: text string too long; 25: invalid chars in text string; 26: dial string too long; 27: invalid chars in dial string; 30: no network service; 32: network not allowed.
i480e&i480e-MD2 Programming Manual Note number Phone number, a text string. status Values in the chapter 20.1.1 N/A 20.17 AGSPKVOL The AGSPKVOL command is used to set speaker volume on the HF or HS. AT+B AGSPKVOL [volume] Response AT-B AGSPKVOL [status] Parameters volume The speaker volume, ranges from 0 to 15. status Values in the chapter 20.1.1. 20.
i480e&i480e-MD2 Programming Manual Parameters type Values 128-143: The phone number format may be a national or international format, and may contain prefix and/or escape digits. No changes on the number presentation are required. Values 144-159: The phone number format is an international number, including the country code prefix. If the plus sign ("+") is not included as part of the number and shall be added by the AG as needed. Values 160-175: National number. No prefix nor escape digits included.
i480e&i480e-MD2 Programming Manual dir 0: outgoing; 1: incoming. status 0: Active; 1: Held; 2: Dialing (outgoing calls only); 3: Alerting (outgoing calls only); 4: Incoming (incoming calls only); 5: Waiting (incoming calls only); 0: Voice; en t mode ia l 6: Call held by Response and Hold. 1: Data; 2: FAX. 0: this call is NOT a member of a multi-party (conference) cal; Co nf id mpty 1: this call IS a member of a multi-party (conference) call.
i480e&i480e-MD2 Programming Manual respstatus Note Values in the chapter 20.1.1 N/A 20.21 AGRING The AGRING command is used to send a ring alert to HF or HS. Command AT+B AGRING Response AT-B AGRING [status], Parameters status Note N/A en t ia l Values in the chapter 20.1.1. id 20.22 AGCCWA Co nf The AGCCWA command is used to tell the HF that an incoming call is waiting while another call is ongoing, only for HFP.
i480e&i480e-MD2 Programming Manual 20.23 AGMUTE The AGMUTE command is used to mute on/off microphone or speaker when a call is ongoing. AT+B AGMUTE [op] Response AT-B AGMUTE [status] Parameters op 0: mute off; 1: mute microphone on, mute speaker off; 2: mute speaker on, mute microphone off; 3: mute both speaker and microphone on. status Values in the chapter 20.1.1. N/A en t Note ia l Command id 20.
i480e&i480e-MD2 Programming Manual (The AG has both an active AND a held call); 2: Call on hold, no active call. signal Ranges from 0 to 5. roam 0: roaming is not active; 1: roaming is active. Ranges from 0 to 5. status Values in the chapter 20.1.1. This command shall be sent after received the AGINDICATORSIND indication. en t ia l Note battery 20.25 AGOK id The AGOK command is used to send the OK command to the remote HF side.
i480e&i480e-MD2 Programming Manual 21.1 AGCONN The AGCONN indication happens when remote device creates the service level connection with the module. AT-B AGCONN [status],[bd], [profile] Parameters status Values in the chapter 20.1.2. bd Remote Bluetooth device address profile Profile type, where 0: Not HSP/HFP; 1: Headset Profile; 21.2 AGDISC id N/A Co nf Note en t 2: Hands-free Profile.
i480e&i480e-MD2 Programming Manual number Note Phone number to dial, if type =2, this parameter is ignored. After received this indication, AT+B AGOK or AT+B AGERROR should be used as a response. 21.4 AGCLIPIND The AGCLIPIND indication is used to tell the host the HF wants to enable/disable caller ID notifications, only for HFP. AT-B AGCLIPIND [enable] Parameters enable ia l Indication Whether to enable or disable caller ID notifications. en t 0: disable; 1: enable. id N/A Co nf Note 21.
i480e&i480e-MD2 Programming Manual 0-9, A-D, # or * Note N/A 21.7 AGMICVOLIND The AGMICVOLIND indication is used to tell the host the HF has sent a microphone gain synchronization message. Indication AT-B AGMICVOLIND [gain] Parameters gain Note N/A en t ia l The gain value received from the HF, ranges from 0 to 15. id 21.
i480e&i480e-MD2 Programming Manual 21.10 AGCNUMIND The AGCNUMIND indication is used to tell the host the HF has sent a command to get subscriber number information, only for HFP. Indication AT-B AGCNUMIND Parameters N/A Note AT+B AGCNUM shall be sent as responses. ia l 21.11 AGCLCCIND en t The AGCLCCIND indication is used to tell the host the HF has sent a command to get current calls list of AG, only for HFP. AT-B AGCLCCIND Parameters N/A Note AT+B AGCLCC shall be sent as responses.
i480e&i480e-MD2 Programming Manual 21.13 AGANSWERIND The AGANSWERIND indication is used to tell the host the HF has answered the call, only for HFP. Indication AT-B AGANSWERIND Parameters N/A Note N/A ia l 21.14 AGHANGUPIND AT-B AGHANGUPIND Parameters N/A Note N/A Co nf 21.15 AGCOPSIND id Indication en t The AGHANGUPIND indication is used to tell the host the HF has rejected or hang up the call, only for HFP.
i480e&i480e-MD2 Programming Manual Note N/A 21.17 AGINDICATORSIND The AGINDICATORSIND indication is used to tell the host the HF is requesting current status of the AG indicators. AT-B AGINDICATORSIND Parameters N/A Note N/A ia l Indication en t 21.18 AGCODEC id The AGCODEC indication is used to inform the host codec negotiated with the remote HF. AT-B AGCODEC [codec_id] Parameters codec_id Co nf Indication 1, NBS. 2, WBS.
i480e&i480e-MD2 Programming Manual a2dp_operation_fail, a2dp_insufficient_memory, task. */ a2dp_wrong_state, /*! The operation has failed. */ /*! No memory to perform the required /*! The library is in the wrong state to perform the operation. */ a2dp_no_signalling_connection, /*! No signaling connection. */ a2dp_no_media_connection, /*! No media connection. */ a2dp_rejected_by_remote_device, /*! Was rejected by the remote device. */ en t ia l a2dp_disconnect_link_loss, /*! Link loss occurred.
i480e&i480e-MD2 Programming Manual Response AT-B A2DPDISC [status],[bd] Parameters bd Remote Bluetooth device address. status Values in the chapter 22.1. Note bd is comprised of 12 bytes hexadecimal characters. 22.4 A2DPSTART AT+B A2DPSTART Response Succeeded: AT-B A2DPSTART 0 Failed: AT-B A2DPSTART 1 Parameters N/A Note N/A Co nf id en t Command ia l The A2DPSTART command is used to start steaming audio data over a Media channel. 22.
i480e&i480e-MD2 Programming Manual Parameters N/A Note N/A 23 A2DP Source Indication Definition This chapter introduces the A2DP (Source Role) relevant indications’ definition. 23.1 A2DPSTAT AT-B A2DPSTAT [state] Parameters state en t Indication ia l The A2DPSTAT indication is used to inform the host unit when the A2DP source’s status is changed. A2DP connection status, where id 1: a2dpReady; 2: a2dpConnecting; Co nf 3: a2dpConnected; 4: a2dpStreaming. N/A ot Note Ba rr 23.
i480e&i480e-MD2 Programming Manual Indication AT-B A2DPAUDIO [op] Parameters op 0: the A2DP audio connection is off; 1: the A2DP audio connection is on. Note N/A 24 AVRCP Target AT Command Definition en t 24.1 AVRCP Status ia l This chapter introduces the AVRCP (Target Role) relevant AT commands’ definition, including a brief description of commands’ syntax, responses and examples. Commands that are defined in this chapter is used for Category 1 device.
i480e&i480e-MD2 Programming Manual Ba rr ot Co nf id en t ia l reason - invalid content. */ avrcp_rejected_internal_error, /*! The operation was rejected with reason - internal error. */ avrcp_rejected_uid_changed = 0x85, /*! The operation was rejected with reason - UID Changed. */ avrcp_rejected_invalid_direction = 0x87, /*! The command has been rejected with reason -Invalid Direction.*/ avrcp_rejected_not_directory, /*! The command has been rejected with reason -Not a Directory.
i480e&i480e-MD2 Programming Manual Addressed Player Changed.*/ avrcp_status_guard_reserverd = 0xFF /* Dummy Place Holder */ 24.2 AVRCPCONN The AVRCPCONN command is used to establish a AVRCP connection with the remote device. AT+B AVRCPCONN [bd] Response AT-B AVRCPCONN [status],[bd] Parameters bd Remote Bluetooth device address. status Values in the chapter 24.1. en t Note ia l Command bd is comprised of 12 bytes hexadecimal characters. Co nf id 24.
i480e&i480e-MD2 Programming Manual 5, APTX 6, APTX_LL Note N/A 25 AVRCP Target Indication Definition This chapter introduces the AVRCP (Target Role) relevant indications’ definition. Indication that are defined in this chapter is used for category 1 device. ia l 25.1 AVRCPSTAT Indication AT-B AVRCPSTAT [state] Parameters status en t The AVRCPSTAT indication is used to inform the host unit when the AVRCP Controller’s is changed.
i480e&i480e-MD2 Programming Manual 25.3 AVRCPDISC The AVRCPDISC indication happens when the local or remote device disconnects the AVRCP connection. Indication AT-B AVRCPDISC [status],[bd] Parameters status Values in the chapter 24.1. bd Remote Bluetooth device address. 25.
i480e&i480e-MD2 Programming Manual Parameters N/A Note N/A 25.7 AVRCPFORWARDIND The AVRCPFORWARDIND indication is used to tell host the remote AVRCP CT has sent a Pass through command of forward. AT-B AVRCPFORWARDIND Parameters N/A Note N/A en t ia l Indication id 25.8 AVRCPBACKWARDIND Co nf The AVRCPBACKWARDIND indication is used to tell host the remote AVRCP CT has sent a Pass through command of backward.
i480e&i480e-MD2 Programming Manual Pair result: AT-B BLEPAIR [sys_status] Parameters PASSKEY The pin code of remote device required sys_status 0: pair succeeded; Other values: pair failed. Note N/A 26.2 BLESTATE AT-B BLESTAT [state] Parameters state en t Indication ia l The BLESTAT indication is used to inform the host unit when the local device’s GATT status is changed.
i480e&i480e-MD2 Programming Manual 26.4 ERR_CODE Ba rr ot Co nf id en t ia l This ERR_CODE is Enumeration of gatt_status_t, and is suitable for all ERR_CODE below. typedef enum { /*! The operation was successful.
i480e&i480e-MD2 Programming Manual /*! The attribute requires encryption before it can be read or written */ gatt_status_insufficient_encryption, /*! The attribute type is not a supported grouping attribute as defined by a higher layer specification. */ gatt_status_unsupported_group_type, /*! Insufficient Resources to complete the request.
i480e&i480e-MD2 Programming Manual /*! Peer aborted the connection */ gatt_status_peer_aborted, Ba rr ot Co nf id en t ia l /*! Error to indicate that request to DM can not be completed because device ACL entity is not found */ gatt_status_device_not_found = 0x7f73, /*! Attribute signing failed. */ gatt_status_sign_failed, /*! Operation can't be done now. */ gatt_status_busy, /*! Current operation timed out.
i480e&i480e-MD2 Programming Manual 27.1 BLEADV The BLEADV command is used to make the module advertise. Command AT+B BLEADV [op] Response Succeeded: AT-B BLEADV 0 Failed: AT-B BLEADV 1 0: stop advertising. i480e can be searched and connected by a central device when it is in the advertising status. ia l Note 1: start advertising; op en t Parameters id 27.2 BLEDATA The BLEDATA command is used to send data over GATT.
i480e&i480e-MD2 Programming Manual Indication AT-B BLEDATAIND [length],[data] Parameters length Length of received data data Received data Note N/A 29 GATT Central AT Command Definition ia l 29.1 BLESCAN This command is used to start or stop scanning devices. AT+B BLESCAN [1/0]\r Response AT-B BLEADVIND [addr_type],[addr],[ad type]:[ad data]...\CR Parameters [1/0] id en t Command 1: start scanning: AT+B BLESCAN 0\r Co nf 0: stop scanning: AT+B BLESCAN 1\r addr_type 0:PUBLIC ADDR 1:RA
i480e&i480e-MD2 Programming Manual 29.2 BLECONN The command is used to connect the advertising device. Command AT+B BLECONN [addr_type],[addr]\r Response AT-B BLECONN 0,[cid]\r AT-B BLECONN 1,[cid] \r The address type of the device want to connect. Addr_type 0:PUBLIC ADDR; 1:RANDOM ADDR; The address of the device want to connect [cid] The channel ID of this connection. id addr N/A 29.
i480e&i480e-MD2 Programming Manual Note N/A 29.4 BLEDACR The command is used to discover all Characteristics of a service Command AT+B BLEDACR [cid],[start_handle],[end_handle]\r Response AT-B BLEDACR [cid],[handle],[properties],[uuid_type],[uuid],[more]\r handle The handle of Characteristic 0x02: Read; en t 0x01: Broadcast; ia l The properties[hex] of Characteristic: 0x04: Write without Reponses; 0x08: Write; id properties 0x10: Notify; Co nf 0x20: Indicate; Parameters 0x40: Authenticate
i480e&i480e-MD2 Programming Manual handle The handle of Characteristic 0: UUID not present; Parameters uuid_type 1: 16-bit UUID; 2: 128-bit UUID; 1: more Characteristic; 0: no more; more Note N/A ia l 29.6 BLERCVR Command en t The command is used to read a Characteristic value by read characteristic value. AT+B BLERCVR [cid],[handle] \r id Success: AT-B BLERCVR 0\r Co nf Response Failed: AT-B BLERCVR 0\r (this mean no this cid or not support BLE Central) AT-B BLERCVR [CID],[HANDLE],[ ERR_COD
i480e&i480e-MD2 Programming Manual Note Failed: AT-B BLEWCVR [CID],[HANDLE],[ERR_CODE]\r cid The channel ID of connection handle The handle of characteristic Size_value The size of value write to the characteristic value The value write to the characteristic ERR_CODE Gatt Error Code N/A ia l Parameters Success: AT-B BLEWCVR 0\r en t Response 29.8 BLEWWRR Success: AT-B BLEWCVR 0\r Failed: AT-B BLEWCVR [CID],[HANDLE],[ERR STATUS]\r cid The channel ID of connection handle The handle of c
i480e&i480e-MD2 Programming Manual GATT status is changed. Indication AT-B BLESTATE [state] Parameters state 0: Initial status; 1: advertising status; 3: Connected status; 4:gattconnected_and_scanning 5: gattDisconnecting; 6: Idle. N/A en t Note ia l 7:scanning id 30.2 PSKREQ Co nf The PSKREQ is used to inform the host the remote need to input pin code by AT command AT+B BLEPSKEY [PASSKEY]. Indication AT-B PSKREQ 1\r Note N/A ot 30.
i480e&i480e-MD2 Programming Manual 30.4 BLEINDIIND The BLE indication is used to inform the host unit that GATT data is received from the peripheral, the difference between notification and indication is indication need response,I480e will response automatic when received indication. AT-B BLEINDIIND [cid],[handle],[length],[data]\r Parameters cid The connected channel ID handle The handle of the Characteristic that send indication length The length of the indication data data The indication data
i480e&i480e-MD2 Programming Manual 32 Bluetooth Technology Best Developed Together id en t ia l IVT Wireless Limited is one of Bluetooth® technology BEST developed together which is authenticated by The Bluetooth SIG. See Figure below. IVT Wireless ecosystem is one completed Bluetooth productions including Bluetooth software, modules and end productions. Co nf Figure 1 IVTW is One of Bluetooth Technology BEST Developed Together 33 Contact Information ot 33.
i480e&i480e-MD2 Programming Manual 34 Copyright Copyright © 1999-2018 IVT Wireless Limited All rights reserved. 35 FCC ID FCC ID:2AOXV-I480EI480EMD2 ia l 36 FCC warning Ba rr ot Co nf id en t FCC Compliance Information: This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: 1. This device may not cause harmful interference, 2. This device must accept any interference received, including interference that may cause undesired operation.
i480e&i480e-MD2 Programming Manual Ba rr ot Co nf id en t ia l for access to remove the module so that the FCC ID of the module is visible; then an additional permanent label referring to the enclosed module: “Contains Transmitter Module FCC ID: 2AOXV-I480EI480EMD2” or “Contains FCC ID: 2AOXVI480EI480EMD2” must be used.