We are using WL1835MOD in our design, with AM3354 processor.
After boot up, when we try to initialize the Bluetooth, we get the following error:
root@am335x-evm:/home/testApp# hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
root@am335x-evm:/home/testApp# 1 hciconfig hci0 up
[ 62.093950] (stc): chnl_id list empty :4
[ 62.098164] (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 f
[ 62.211629] (stc): st_tty_open rom install
uim:@ st_uart_config
uim: signa(stk) :line discipline installedl received, opening /dev/ttyO2
uim:@ set_baud_rate
uim:set_bau
[ 62.228093] (stk) :TIInit_11.8.32.btsd_rate() done
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) :change remote baud rate command in firmware
[ 62.253307] (stk) :skipping the wait event of change remote baud[ 68.155328] (stc): add_channel_to_table: id 4
[ 68.159990] (stc): add_channel_to_table: id 2
[ 68.164585] (stc): add_channel_to_table: id 3
root@am335x-evm:/home/testApp# hciconfig hci0 up
hci0: Type: BR/EDR Bus: UART
BD Address: 1C:BA:8C:83:B1:39 ACL MTU: 1021:6 SCO MTU: 180:4
UP RUNNING
RX bytes:547 acl:0 sco:0 events:27 errors:0
TX bytes:411 acl:0 sco:0 commands:27 errors:0
We are able to detect other Bluetooth device and get its information using HCI command, the messages we get are as given below:
hcitool info 60:a4:4c:98:65: :88
Requesting information ...
BD Address: 60:a4:4c:98:65:88
Device Name: BT Test Device
LMP Version: 4.0 (0x6) LMP Subversion: 0x4103
Manufacturer: Broadcom Corporation (15)
Features page 0: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <sniff mode> <RSSI>
<channel quality> <SCO link> <HV2 packets> <HV3 packets>
<u-law log> <A-law log> <CVSD> <paging scheme> <power control>
<transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps>
<EDR ACL 3 Mbps> <enhanced iscan> <interlaced iscan>
<interlaced pscan> <inquiry with RSSI> <extended SCO>
<EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <LE support> <3-slot EDR ACL>
<5-slot EDR ACL> <sniff subrating> <pause encryption>
<AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps>
<EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended inquiry>
<LE and BR/EDR> <simple pairing> <encapsulated PDU>
<err. data report> <non-flush flag> <LSTO> <inquiry TX power>
<EPC> <extended features>
Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
When we try to use Linux SPP app to power up the device, we are not able to power up and we get the following error:
SPPM>1 1
BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
SPPM>16
Usage: StartDeviceDiscovery [Duration].
Function Error.
SPPM>16 0
Attempting to Start Discovery (INDEFINITE).
DEVM_StartDeviceDiscovery() Failure: -10035, Local Device is Powered Down.
Function Error.
SPPM>9 1
[ 87.519944] (hci_tty): inside hci_tty_open (ed285200, ed3763c0)
[ 87.526239] (stc): chnl_id 4 already registered
[ 87.530922] (hci_tty): st_register failed -114HCI_OpenDriver:: -4
DEVM_PowerOnDevice() Failure: -14, Unknown Error.
Function Error.
Please help to resolve this issue.