YWX5057 Bluetooth Module Manual Version 1.0 1. Product Introduction YWX5057 is a fully integrated Bluetooth Module used as Car kit or in the Car Audio System or any systems requiring complete embedded Bluetooth connectivity solution. Its a high quality solution with low cost. It will work as a master or slave Bluetooth device, accepting the role switch request of remote device automatically. YWX5057 Shape YWX5057 Support Features:
Embedded Bluetooth 3.0 via EDR Pairing and connection with multiple Bluetooth devices Make calls, Terminate calls, Private mode, 3-way calling Phone book and Call history synchronization Audio Streaming New message notification 2. Common Specification Radio Chip:
CSR BC5MM Power Supply Voltage:
The operating voltage range is D.C. 3.1V-3.6V. Rated voltage is D.C.3.3V. Ambient temperature:
The operating temperature range is 4085 C. Rated temperature is 25 C. Humidity:
The maximum relative humidity is 95 % (Ta=45 C). Rated relative humidity is 65%. Antenna:
Built-in Antenna gain:
The antenna gain value is 4.4dBi. 3. Hardware Integration YWX5057 Pin-out diagram No. symbol explain Description 1 2 3 4 5 6 7 8 9 10 11 12 13 14 UART_RX UART_TX SPI_MISO SPI_MOSI 3V3 RST_BT#
1V8 1V8 1V8_EN GND LINEOUT_L LINEOUT_R MIC2_N MIC2_P UART DATA OUTPUT UART DATA INPUT SPI data output SPI data input power Vcc 3.3V Reset if low.Input debounced so must be low for >5ms to cause a reset power 1.8V power 1.8V 1V8 power supply enable signal --active high GND analog audio output analog audio output Microphone2 minus input Microphone2 plus input 15 16 17 18 19 20 21 22 23 24 MIC_BIAS MIC1_P MIC1_N GND SPI_CBS SPI_CLK PCM_SYNC PCM_CLK PCM_IN PCM_OUT Microphone bias Microphone1 plus input Microphone1 minus input GND Chip select for serial peripheral interface(SPI),active low SPI clock synchronous data sync synchronous data clock synchronous data input synchronous data output YWX5057 Pin-out Description 4. Software Interface Reference The default device name is YWX5057_A700 after module start. User can change it to any other friendly name by using the relative interface command. YWX5057 can send or receive data from remote Bluetooth device. Software Configuration:
Setting Value Baud Rate 115200bps(pre-configurable) Data bit Parity Stop bit 8 data bits, list significant bit transmit first Even Parity 1 stop bit HW Flow Control Optional Interface Example:
Name:
BT_GEN_FID_SET_SCANMODE_REQ functionality:
Set Bluetooth inquiry scan and page scan parameter param 1:
type:
u8 name:
discover_mode meaning:
discoverable mode range:
0x00~0x03 0x00: no scan enable(default) 0x01: Enable inquiry scan Page scan disabled 0x02: Enable page scan inquiry scan disabled 0x03: page and inquiry enable The interface command name is BT_GEN_FID_SET_SCANMODE_REQ. There is one paramer named discover_mode with four valid values and below is the description of all values.User can configure ScanMode of YWX5057 by sending this interface. When Host Controller initiates a REQ, BT Module should always send a corresponding CFM to specify operation result and optional additional information. Example:
BT_GEN_FID_SET_SCANMODE_REQ<discover_mode=0x03>
BT_GEN_FID_SET_SCANMODE_CFM<status=0x00>
Set discover_mode as 0x03, then other Bluetooth device can find YWX5057 and initiate to pairing with YWX5057. Interface Listing No. Interface BT_GEN_FID_RESET_REQ BT_GEN_FID_INQUIRY_REQ BT_GEN_FID_SET_SCANMODE_REQ BT_GEN_FID_SET_SEC_MODE_REQ BT_GEN_FID_GET_REMOTE_NAME_REQ BT_GEN_FID_SET_LOCAL_NAME_REQ BT_GEN_FID_READ_LOCAL_NAME_REQ BT_GEN_FID_PAIRING_DEVICE_REQ BT_GEN_FID_DEL_PAIR_DEV_REQ BT_GEN_FID_GET_PAIR_DEV_LIST_REQ BT_GEN_FID_SERVICE_CON_REQ BT_GEN_FID_SERVICE_DISCON_REQ BT_GEN_FID_GET_LINK_QUALITY_REQ BT_GEN_FID_SEARCH_ATTRIBUTE_REQ BT_GEN_FID_TEST_MODE_REQ BT_GEN_FID_ENTER_DFU_REQ BT_HFP_FID_AUDIO_TRANSFER_REQ BT_HFP_FID_DIAL_REQ BT_HFP_FID_LAST_DIAL_REQ BT_HFP_FID_MEM_DIAL_REQ BT_HFP_FID_CALL_PROCESS_REQ BT_HFP_FID_TERMINATE_CALL_REQ BT_HFP_FID_GET_CURRENT_CALL_LIST_REQ BT_HFP_FID_VOICE_RECOGNIZE_REQ BT_HFP_FID_DTMF_CODE_REQ BT_HFP_FID_CALL_HOLD_REQ BT_HFP_FID_SUBSCRIBER_NUM_REQ BT_HFP_FID_NETWORK_OPERATOR_REQ BT_AVP_FID_MEDIA_START_REQ BT_AVP_FID_MEDIA_PAUSE_REQ BT_AVP_FID_GET_PLAY_STATUS_REQ BT_AVP_FID_GET_ELEMENT_ATTRIBUTES_REQ BT_PBDL_FID_CONFIGURE_REQ BT_PBDL_FID_SYNC_PB_REQ BT_PBDL_FID_SYNC_ABORT_REQ BT_PBDL_FID_GET_PB_BY_INDEX_REQ BT_PBDL_FID_SEARCH_PB_BY_NUMBER_REQ BT_PBDL_FID_SEARCH_PB_BY_KEY_REQ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 System Error Status Value 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F Error Status APP_EVTRES_SUCCESS APP_EVTRES_FAIL APP_EVTRES_UNKNOWN_OPCODE APP_EVTRES_ILLEGAL_PARAM APP_EVTRES_OPERATION_FAIL APP_EVTRES_SYSTEM_BUSY APP_EVTRES_ILLEGAL_OPERATION APP_EVTRES_ILLEGAL_STATE APP_EVTRES_ILLEGAL_FORMAT APP_EVTRES_PAGE_TIMEOUT APP_EVTRES_ABNORMAL APP_EVTRES_ABORTED APP_EVTRES_SDP_ERROR APP_EVTRES_AUTHENTICATION_FAIL APP_EVTRES_OPERATION_TIMEOUT APP_EVTRES_NO_CORRESPONDING_IND 1. Reset Software Name:
BT_GEN_FID_RESET_REQ functionality:
Software reset of the Bluetooth Module. 2, Inquiry Remote Device Name:
BT_GEN_FID_INQUIRY_REQ functionality:
Inquiry Bluetooth device(s) nearby. The detail device information should be report to host application by the indication of BT_GEN_FID_INQ_RESULT_IND. param 1:
type:
u8 name:
mode meaning:
The mode of inquiry Bluetooth device(s) range:
0x00~0x01 0x00: General inquiry 0x01: Limited inquiry param 2:
type:
u24 name:
filter meaning:
Bitwise class of device to be filtered range:
0x000000~0xFFFFFF
. param 3:
type:
u8 name:
duration meaning:
The maximum amount of time used for inquiring in 1.28 second range:
0x02~0x30 param 4:
type:
u8 name:
num meaning:
The maximum number of response from the inquiry range:
0x01~0x20 3. San Mode configure Name:
BT_GEN_FID_SET_SCANMODE_REQ functionality:
Set Bluetooth inquiry scan and page scan parameter param 1:
type:
u8 meaning:
discoverable mode range:
0x00~0x03 0x00: no scan enable(default) 0x01: Enable inquiry scan Page scan disabled 0x02: Enable page scan inquiry scan disabled 0x03: page and inquiry enable 4. Security Mode configure Name:
BT_GEN_FID_SET_SEC_MODE_REQ functionality:
Configure the security mode of local Bluetooth device param 1:
type:
u8 name:
mode meaning:
The Bluetooth security mode range:
0x01~0x04 0x01: non secure 0x02: service level enforced security 0x03: link level enforced security 0x04: service level enhanced security(SSP, default) param 2:
type:
u8 name:
sec meaning:
The Bluetooth encryption mode range:
0x00~0x02 0x00: Encryption off 0x01: Point to point encryption 0x02: Point to point and broadcast encryption (default) 5. Get Remote device name Name:
BT_GEN_FID_GET_REMOTE_NAME_REQ functionality:
Retrieve User-Friendly name of remote Bluetooth device param 1:
type:
bdaddr name:
remote meaning:
the Bluetooth device address of remote range:
N/A 6. Set BT module name Name:
BT_GEN_FID_SET_LOCAL_NAME_REQ functionality:
Set the User-Friendly name for local Bluetooth device param 1:
type:
u16 name:
len meaning:
The length of User-Friendly name range:
0x01~0x1F param 2:
type:
str name:
name meaning:
The User-Friendly name encoded in UTF-8 range:
N/A 7. Read BT Module name Name:
BT_GEN_FID_READ_LOCAL_NAME_REQ functionality:
Issue this command to read local device friendly name. the result will be returned by the confirmation of BT_GEN_FID_READ_LOCAL_NAME_CFM. remark:
N/A 8. Pairing with Remote device Name:
BT_GEN_FID_PAIRING_DEVICE_REQ functionality:
Issue this command to authentication with remote device, when this command is issued local will init a authentication process with remote device. NOTE: This command can not be sent when there is a service connection between local and remote device. param 1:
type:
bdaddr name:
remote meaning:
The Bluetooth device address of remote range:
N/A 9. Delete paired Remote device Name:
BT_GEN_FID_DEL_PAIR_DEV_REQ functionality:
Delete the paired device information according its device id. param 1:
type:
u8 name:
pairId meaning:
The paired device id. range:
0x00~0x02 10. Get paired device list Name:
BT_GEN_FID_GET_PAIR_DEV_LIST_REQ functionality:
Get all paired device list. 11. Initiate Service connection Name:
BT_GEN_FID_SERVICE_CON_REQ functionality:
Setup a Bluetooth profile level connection param 1:
type:
bdaddr name:
remote meaning:
The Bluetooth device address to be connected range:
N/A param 2:
type:
u8 name:
service meaning:
The service to be connected range:
0x00~0x02, 0x04~0x05 0x00: SPP 0x01: HFP 0x02: AVP 0x04:OPPS 0x05:PBAP param 3:
type:
u8 name:
extend meaning:
The extended info the target service range:
0x00~0xFF As for SPP service, it is the instance id;
As for other services, it is reserved and should be always zero. 12. Release Service connection Name:
BT_GEN_FID_SERVICE_DISCON_REQ functionality:
Release an existing profile level connection param 1:
type:
u8 name:
service meaning:
The service to be released range:
0x00~0x02, 0x05 0x00: SPP 0x01: HFP 0x02: AVP 0x05: PBAP param 2:
type:
u8 name:
extend meaning:
The extended info. range:
0x00~0x01 (default is 0) As for SPP service, it is the instance id; As for AVP, it's the device id. 13. Get Link quality with Remote device Name:
BT_GEN_FID_GET_LINK_QUALITY_REQ functionality:
Retrieve link quality of current link param 1:
type:
bdaddr name:
remote meaning:
The Bluetooth device address of remote range:
N/A 14. Get Attribute of Remote device Name:
BT_GEN_FID_SEARCH_ATTRIBUTE_REQ functionality:
Search the attributes for services that supported by Remote device param 1:
type:
bdaddr name:
remote meaning:
The Bluetooth device address of remote range:
N/A param 2:
type:
u8 name:
timeout meaning:
The timeout of service search in seconds range:
0x05~0x3C 15. Enter Test Mode Name:
BT_GEN_FID_TEST_MODE_REQ functionality:
Enable local device under test mode remark:
Request to place the local module into Device Under Test mode. The module automatically becomes discoverable, connectable and security is disabled before entering DUT mode. It is intended that this command be used when connecting the module to a Bluetooth Tester (e.g. Rhode & Schwartz CMU200). To return to normal operation, the module should be reset. This message contains no parameters. 16. Enter DFU Mode Name:
BT_GEN_FID_ENTER_DFU_REQ functionality:
Make the BT Module to enter Device Firmware Upgrade mode remark:
As soon as this message is processed, Bluetooth module will be rebooted automatically and ready for firmware maintenance procedures. There is no parameter for this message. 17. Audio transfer Name:
BT_HFP_FID_AUDIO_TRANSFER_REQ functionality:
By sending this command host can transfer SCO audio out between BT module and remote connected AG device. param 1:
type:
u8 name:
dir meaning:
Which side should output the SCO audio range:
0x00~0x01 0x00 - BT module side 0x01 - AG side 18. Place an outgoing call by number Name:
BT_HFP_FID_DIAL_REQ functionality:
Send a dial request to the remote AG device. Note that the num parameter is limited to 32 bytes in length. param 1:
type:
u16 name:
len meaning:
The length of the dialing number. range:
0x0000~0x0020 param 2:
type:
str name:
num meaning:
Dialing call number range:
N/A 19. Place an outgoing call to last number Name:
BT_HFP_FID_LAST_DIAL_REQ functionality:
Send a last dial request to the remote device. 20. Memory dial Name:
BT_HFP_FID_MEM_DIAL_REQ functionality:
Send a memory dial request to the remote device. param 1:
type:
u16 name:
len meaning:
The length of the dialling number. range:
NA param 2:
type:
0x0000~0x0020 str name:
num meaning:
Dialling call number range:
N/A 21. Accept/Reject incoming call Name:
BT_HFP_FID_CALL_PROCESS_REQ functionality:
This command is used to accept/reject incoming calls. param 1:
type:
u8 name:
action meaning:
The action for the incoming call range:
0x00~0x01 0x00 reject the incoming call 0x01 - accept the incoming call 22. End ongoing call Name:
BT_HFP_FID_TERMINATE_CALL_REQ functionality:
Issue this command to terminate the ongoing call of the remote connected device. 23. Get current call information Name:
BT_HFP_FID_GET_CURRENT_CALL_LIST_REQ functionality:
Issue this command to get current call detail information of connected remote device. 24. Voice Recognition Name:
BT_HFP_FID_VOICE_RECOGNIZE_REQ functionality:
Issue this command BT Module can activate/deactivate voice recognize in Remote device. param 1:
type:
u8 name:
operation meaning:
Enable/disable the function of voice recognize function. range:
0x00~0x01 0x00 deactivate (default) 0x01 activate 25. Transmit DTMF code Name:
BT_HFP_FID_DTMF_CODE_REQ functionality:
Transmit a DTMF code to the remote device. DTMF codes other than those specified below will be rejected as per the Bluetooth specification. param 1:
type:
u8 name:
code meaning:
DTMF code range:
0x30 - 0x39, 'A' - 'D', '#', '*'
0x00 means no error, other values please refer to corresponding spec. 26. 3-way call control Name:
BT_HFP_FID_CALL_HOLD_REQ functionality:
Issue this command to send call held command to connected remote device. param 1:
type:
u8 name:
action meaning:
The action of call hold command range:
0x00 - 0x04 0x00 Release all hold call and reject the waiting calls 0x01 Release active call and accept the waiting calls 0x02 Put active call on hold and accept other waiting/hold calls 0x03 Adds a held call to the conversation 0x04 Connects the two calls and disconnects the subscriber from both calls param 2:
type:
u8 name:
index meaning:
The index of the speciated call range:
0x00 - 0x02
[action = 0x01]
0x00 Release all active calls 0x01- 0x02 Release the speciated call
[action = 0x02]
0x00 Put all active calls on hold 0x01-0x02 Put all call on hold except the speciated call. 27. Subscribe number Name:
BT_HFP_FID_SUBSCRIBER_NUM_REQ functionality:
Issue this command to query AG subscriber number, if subscriber is available then AG will return subscriber number by using the indication of subscriber number event, if multiple subscriber numbers are available then AG will return the result by many use the event of subscriber number indication. 28. Get network operator of Remote device Name:
BT_HFP_FID_NETWORK_OPERATOR_REQ functionality:
Issue this command to get the network operator of remote device. This command not has any parameters. 29. Start Audio Streaming Name:
BT_AVP_FID_MEDIA_START_REQ functionality:
Send a request to start A2DP audio streaming. param 1:
type:
u8 name:
device_id meaning:
The current used device id range:
0x00~0x01 30. Pause Audio Streaming Name:
BT_AVP_FID_MEDIA_PAUSE_REQ functionality:
Suspend an ongoing A2DP audio streaming. param 1:
type:
u8 name:
device_id meaning:
The current used device id range:
0x00~0x01 31. Get current Audio Streaming status Name:
BT_AVP_FID_GET_PLAY_STATUS_REQ functionality:
This command is used to request the status of the currently playing media at the TG. param 1:
type:
u8 name:
device_id meaning:
The current used device id range:
0x00~0x01 32. Get current media information Name:
BT_AVP_FID_GET_ELEMENT_ATTRIBUTES_REQ functionality:
This command is used to request the attributes of the element specified in the parameter. param 1:
type:
u8 name:
device_id meaning:
The current used device id range:
0x00~0x01 param 2:
type:
u8 name:
attributes meaning:
The attributes to be retrieved by setting attribute ID bit mask. range:
0x00 0x7F Bit0 - Title of the media Bit1 - Name of the artist Bit2 - Name of the album Bit3 - Number of the media Bit4 - Total number of the media Bit5 - Genre Bit6 - Playing time in millisecond Bit7 - Reserved Get the attribute content by set the bit mask to 1, or 0 not. None mask set means get all attributes. 33. Phonebook synchronization configure Name:
BT_PBDL_FID_CONFIGURE_REQ functionality:
This message used to configure PBDL service before used it. Host must use this interface to register the wanted service, the service priority and other parameters etc. param 1:
type:
u8 name:
srv_ priority meaning:
Set the priority of the available service to pull phonebook. range:
0~1 0 Priority to use AT+PBDL (default) 1- Priority to use PBAPC param 2:
type:
u8 name:
register_srv meaning:
The service registered to use PBDL. range:
0x00 ~ 0xFF (default is 0x00) bit1: HFP_HF bit4: OPP_SERVER bit5: PBAP_PCE bit0 and others reserved. param 3:
type:
u8 name:
vcard_type meaning:
Wanted VCARD version. range:
0x00, 0x01, 0x02 (default is 0x00) 0x00 Vcard 2.1 0x01 Vcard 3.0 0x02 Vcard Default param 4:
type:
u8 name:
charset_type meaning:
Wanted char set type. range:
0x00~0x0A 0x00: GSM (default) 0x01: ASCII 0x02: UTF-8 0x03: HEX 0x04: IRA 0x05:UCS2 0x0006:PCCP437 0x0007:PCDN 0x0008:8859-1 0x0009:UCS-2 0x000A:UTF8 34. Phonebook synchronization Name:
BT_PBDL_FID_SYNC_PB_REQ functionality:
This message used to sync phonebook from remote phone. Firmware will use the available service as its priority setting by the last configure interface. param 1:
type:
u8 name:
devId meaning:
The request device id. range:
0x00~0x02 param 2:
type:
u8 name:
pbType meaning:
The request phonebook type range:
0x00~0x01 0x00: Phonebook(SIM, ME) (default) 0x01:CallHistory(DC, MC, RC) 35. Abort Phonebook synchronization Name:
BT_PBDL_FID_SYNC_ABORT_REQ functionality:
This message used to abort the PBDL sync operation. 36. Get phonebook information after synchronization Name:
BT_PBDL_FID_GET_PB_BY_INDEX_REQ functionality:
This message used to get the earlier sync phonebook record stored on local flash by its number. param 1:
type:
u8 name:
devId meaning:
The request device id. range:
0x00~0x02 param 2:
type:
u16 name:
index meaning:
The index of the record. range:
0x0000~0x03E8 37. Search phonebook by number after synchronization Name:
BT_PBDL_FID_SEARCH_PB_BY_NUMBER_REQ functionality:
This message used to search the phonebook record by number. param 1:
type:
u8 name:
devId meaning:
The request device id. range:
0x00~0x02 param 2:
type:
u16 name:
numberLen meaning:
The got number length range:
0x0000~0x001F param 3:
type:
str name:
number meaning:
The number string. range:
N/A 38. Search phonebook by key word after synchronization Name:
BT_PBDL_FID_SEARCH_PB_BY_KEY_REQ functionality:
This message used to search the phonebook record by its key word of name. param 1:
type:
u8 name:
devId meaning:
The request device id. range:
0x00~0x02 param 2:
type:
u24 name:
key meaning:
3 bytes UTF-8 Unicode encoding code. range:
N/A E.g: A : 0x000041 interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: Reorient or relocate the receiving antenna; Increase the separation between the equipment and receiver;
Connect the equipment into an outlet on a circuit different from that to which the receiver is connected; Consult the dealer or an experienced radio/TV technician for help. To satisfy FCC RF Exposure requirements for mobile and base station transmission devices, a separation distance of 20 cm or more should be maintained between the antenna of this device and persons during operation. To ensure compliance, operation at closer than this distance is not recommended. The antenna(s) used for this transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. The Host PCB which carries the module must be a multi-layer PCB, with one ground plane and one 3V supply plane. 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, and (2) this device must accept any interference received, including interference that may cause undesired operation. Industry Canada Statement:
This device complies with RSS-210 of the Industry Canada Rules. Operation is subject to the following two conditions:
(1)This device may not cause harmful interference, and
(2)this device must accept any interference received, including interference that may cause undesired operation. Radiation Exposure Statement:
This equipment complies with IC radiation exposure limits set forth for an uncontrolled environment. This equipment should be installed and operated with minimum distance 20cm between the radiator & your body. Professional installation instruction:
1.Installation personal This product is designed for specific application and needs to be installed by a qualified personal who has RF and related rule knowledge. The general user shall not attempt to install or change the setting. 2.Installation location The product shall be installed at a location where the radiating antenna can be kept 20cm from nearby person in normal operation condition to meet regulatory RF exposure requirement. 3. External antenna Use only the antennas which have been approved by the applicant. The non-approved antenna(s) may produce unwanted spurious or excessive RF transmitting power which may lead to the violation of FCC 15 C/E limit and is prohibited. 4. Installation procedure Please refer to users manual for the detail. 5. Warning Please carefully select the installation position and make sure that the final output power does not exceed the limit set force in relevant rules. The violation of the rule could lead to serious federal penalty. Label Instructions:
The outside of final products that contain a YWX5057 device must display a label referring to the enclosed module. This exterior label can use wording such as the following:
Contains FCC ID: AJDK083 IC: 775E-K083 Any similar wording that expresses the same meaning may be used.