• AVR Freaks

WILC3000 Bluetooth Issue

New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2020/04/28 01:05:22
  • Location: 0
  • Status: offline
2020/05/28 00:39:04 (permalink)

WILC3000 Bluetooth Issue

Hi Team,
I am using WILC3000 WiFi/Bluetooth chip in my custom board.
I am using iMX6 processor with linux version 4.1.15.
I have downloaded the latest version of the wilc3000 driver from the microchip site and able to port it to my Linux kernel successfully.
I have tested the WiFi features and it is working fine.
When I started testing the bluetooth I  am facing issues.
I have given below commands :
[<font]echo BT_POWER_UP > /dev/wilc_bt
[<font]echo BT_FW_CHIP_WAKEUP > /dev/wilc_bt
[<font]echo BT_DOWNLOAD_FW > /dev/wilc_bt
[<font]echo BT_FW_CHIP_ALLOW_SLEEP > /dev/wilc_bt
[<font]hciattach ttymxc0 any 115200 noflow 
[<font]hciconfig -a
[<font]hciconfig hci0 up
[<font]ln -svf /usr/libexec/bluetooth/bluetoothd /usr/sbin
[<font]bluetoothd -n &
[<font]hciconfig hci0 leadv
[<font]bluetoothctl for scan and connect.
Below is the output of these commands:
echo BT_POWER_UP > /dev/wilc_bt
at_pwr_dev: open()
AT PWR: bt_power_up
Device already up. request source is BT
o BT_at_pwr_dev: close()
Froot@iWave-G15:~# echo BT_FW_CHIP_WAKEUP > /dev/wilc_bt
at_pwr_dev: open()
at_pwr_dev: close()
Troot@iWave-G15:~# echo BT_DOWNLOAD_FW > /dev/wilc_bt
at_pwr_dev: open()
AT PWR: bt_download_fw
Bluetooth firmware: mchp/wilc3000_ble_firmware.bin
BT_FW_Downloading BT firmware size = 58784 ...
CHIP_ALLOW_SLEEP > /dev/wilc_bt
hciattach ttymxc0 any 115200 noflow 
hciconfig -a
hciconfig hci0 up
ln -svf /usr/libexec/bluetooth/bluetoothd /usr/sbin
bluetoothd -n &
hcicoStarting BT firmware
nfig hci0 leadvBT Start Succeeded
at_pwr_dev: close()
root@iWave-G15:~# echo BT_FW_CHIP_ALLOW_SLEEP > /dev/wilc_bt
at_pwr_dev: open()
at_pwr_dev: close()
root@iWave-G15:~# hciattach ttymxc0 any 115200 noflow 
Device setup complete
root@iWave-G15:~# hciconfig -a
hci0: Type: BR/EDR Bus: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:4 acl:0 sco:0 commands:1 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1 
Link policy: 
root@iWave-G15:~# hciconfig hci0 up
root@iWave-G15:~# ln -svf /usr/libexec/bluetooth/bluetoothd /usr/sbin
'/usr/sbin/bluetoothd' -> '/usr/libexec/bluetooth/bluetoothd'
root@iWave-G15:~# bluetoothd -n &
[1] 841
root@iWave-G15:~# hciconfig hci0 leadvbluetoothd[841]: Bluetooth daemon 5.37
bluetoothd[841]: Starting SDP server
bluetoothd[841]: Failed to open RFKILL control device
bluetoothd[841]: Bluetooth management interface 1.9 initialized
bluetoothd[841]: Failed to obtain handles for "Service Changed" characteristic
root@iWave-G15:~# bluetoothctl 
[NEW] Controller F8:F0:05:DA:DA:1F BlueZ 5.37 [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller F8:F0:05:DA:DA:1F Discovering: yes
But it is not showing any near by device.
[<font]I tried to use hcitool to scan and connect and below is the log for hcitool
hcitool scan
[<font]Scanning ...
[<font]Inquiry failed: Operation not supported
[<font]root@iWave-G15:~# hcitool lescan
[<font]Enable scan failed: Input/output error
When I gave hciconfig hci0 -a I am getting input/output error like below:
hciconfig hci0 -a
hci0: Type: BR/EDR Bus: UART
BD Address: F8:F0:05:DA:DA:1F ACL MTU: 27:30 SCO MTU: 0:0
RX bytes:212 acl:0 sco:0 events:15 errors:0
TX bytes:124 acl:0 sco:0 commands:15 errors:0
Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
Packet type: DM1 DH1 HV1 
Link policy: 
Link mode: SLAVE ACCEPT 
[<font]Can't read local name on hci0: Input/output error (5)
Please help me with this. I am using latest version of firmware.
Mahima Shanbag

0 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5