Code Monkey home page Code Monkey logo

wilc_demo's People

Contributors

aditya-shankar avatar ajaykathat avatar krushnakumarchaudhary avatar saravanakumar-sundaram avatar sripadbalwadgi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wilc_demo's Issues

Unable to access the bluetooth device

Hi @AdhambAozaeid

I am using ATWILC3000 device and i am trying to access the bluetooth device which is getting scanned in the microchip app .
When i try to connect to the detected device it is showing an error as follows:
NET: Registered protocol family 38
bluetoothd[257]: No cache for 5E:51:CC:01:3B:72
bluetoothd[257]: Can't store services for private addressed device /org/bluez/hci0/dev_5E_51_CC_01_3B_72
bluetoothd[257]: Can't store GATT db for private addressed device /org/bluez/hci0/dev_5E_51_CC_01_3B_72
Bluetooth: SMP security requested but not available

What is the issue
Note : I am using bluez 5.48 utility stack

Unable to get Bluetooth features

I have flashed the latest firmware to the sama5d4 Xplained board using the demo_linux_nandflash_sam_ba_3_2.sh script. However I am getting unexpected output when running hciconfig -a. The features are almost empty, and it gives me the error Can't read local name on hci0

Here is a run from a fresh flash:

Welcome to Buildroot
buildroot login: root
# modprobe wilc-sdio
wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
(unnamed net_device) (uninitialized): INFO [wilc_create_wiphy]Registering wifi device
(unnamed net_device) (uninitialized): INFO [wilc_wfi_cfg_alloc]Allocating wireless device
(unnamed net_device) (uninitialized): INFO [wilc_create_wiphy]Registering wifi device
(unnamed net_device) (uninitialized): INFO [wilc_wfi_cfg_alloc]Allocating wireless device
wifi_pm : 0
wilc_sdio mmc0:0001:1: succesfully got gpio_reset
wilc_sdio mmc0:0001:1: succesfully got gpio_chip_en
wifi_pm : 1
wilc_sdio mmc0:0001:1: succesfully got gpio_reset
wilc_sdio mmc0:0001:1: succesfully got gpio_chip_en
wilc_sdio mmc0:0001:1: Driver Initializing success
# wilc_sdio mmc0:0001:1 wlan0: INFO [wilc_netdev_cleanup]Unregistering netdev d45e4000
wilc_sdio mmc0:0001:1 wlan0 (unregistered): INFO [wilc_netdev_cleanup]Freeing Wiphy...
wilc_sdio mmc0:0001:1 wlan0 (unregistered): INFO [wilc_free_wiphy]Unregistering wiphy
wilc_sdio mmc0:0001:1 wlan0 (unregistered): INFO [wilc_free_wiphy]Freeing wiphy
wilc_sdio mmc0:0001:1 wlan0 (unregistered): INFO [wilc_netdev_cleanup]Freeing netdev...
wilc_sdio mmc0:0001:1 p2p0: INFO [wilc_netdev_cleanup]Unregistering netdev d46d0000
wilc_sdio mmc0:0001:1 p2p0 (unregistered): INFO [wilc_netdev_cleanup]Freeing Wiphy...
wilc_sdio mmc0:0001:1 p2p0 (unregistered): INFO [wilc_free_wiphy]Unregistering wiphy
wilc_sdio mmc0:0001:1 p2p0 (unregistered): INFO [wilc_free_wiphy]Freeing wiphy
wilc_sdio mmc0:0001:1 p2p0 (unregistered): INFO [wilc_netdev_cleanup]Freeing netdev...
Module_exit Done.
at_pwr_dev: deinit
at_pwr_dev: unregistered
mmc0: card 0001 removed
mmc0: new high speed SDIO card at address 0001
(unnamed net_device) (uninitialized): INFO [wilc_create_wiphy]Registering wifi device
(unnamed net_device) (uninitialized): INFO [wilc_wfi_cfg_alloc]Allocating wireless device
(unnamed net_device) (uninitialized): INFO [wilc_create_wiphy]Registering wifi device
(unnamed net_device) (uninitialized): INFO [wilc_wfi_cfg_alloc]Allocating wireless device
wilc_sdio mmc0:0001:1: Driver Initializing success

# echo BT_POWER_UP > /dev/wilc_bt
at_pwr_dev: open()
AT PWR: bt_power_up
wilc_sdio mmc0:0001:1: SDIO speed: 50000000
wilc_sdio mmc0:0001:1: chipid 003000d0
WILC POWER UP
at_pwr_dev: close()
# echo BT_FW_CHIP_WAKEUP > /dev/wilc_bt
at_pwr_dev: open()
at_pwr_dev: close()
# echo BT_DOWNLOAD_FW > /dev/wilc_bt
at_pwr_dev: open()
AT PWR: bt_download_fw
Bluetooth firmware: mchp/wilc3000_ble_firmware.bin
Downloading BT firmware size = 58184 ...
Starting BT firmware
BT Start Succeeded
at_pwr_dev: close()
# echo BT_FW_CHIP_ALLOW_SLEEP > /dev/wilc_bt
at_pwr_dev: open()
at_pwr_dev: close()
# hciattach ttyS1 any 115200 noflow
atmel_usart fc010000.serial: using dma0chan10 for rx DMA transfers
atmel_usart fc010000.serial: using dma0chan11 for tx DMA transfers
Device setup complete
# hciconfig hci0 up
# ln -svf /usr/libexec/bluetooth/bluetoothd /usr/sbin
'/usr/sbin/bluetoothd' -> '/usr/libexec/bluetooth/bluetoothd'
# bluetoothd -p time -n &
# bluetoothd[233]: Bluetooth daemon 5.46
bluetoothd[233]: Starting SDP server
bluetoothd[233]: Ignoring (cli) hostname
bluetoothd[233]: Ignoring (cli) wiimote
bluetoothd[233]: Ignoring (cli) autopair
bluetoothd[233]: Ignoring (cli) policy
bluetoothd[233]: Ignoring (cli) neard
bluetoothd[233]: Ignoring (cli) sap
bluetoothd[233]: Ignoring (cli) a2dp
bluetoothd[233]: Ignoring (cli) avrcp
bluetoothd[233]: Ignoring (cli) network
bluetoothd[233]: Ignoring (cli) input
bluetoothd[233]: Ignoring (cli) hog
bluetoothd[233]: Ignoring (cli) health
bluetoothd[233]: Ignoring (cli) gap
bluetoothd[233]: Ignoring (cli) scanparam
bluetoothd[233]: Ignoring (cli) deviceinfo
bluetoothd[233]: Ignoring (cli) midi
bluetoothd[233]: Bluetooth management interface 1.14 initialized
bluetoothd[233]: Failed to set privacy: Rejected (0x0b)
bluetoothd[233]: Failed to set local name: Failed (0x03)

# hciconfig -a
hci0:   Type: Primary  Bus: UART
        BD Address: F8:F0:05:C0:24:B5  ACL MTU: 27:30  SCO MTU: 0:0
        UP RUNNING
        RX bytes:382 acl:0 sco:0 events:24 errors:0
        TX bytes:128 acl:0 sco:0 commands:24 errors:0
        Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
        Packet type: DM1 DH1 HV1
        Link policy:
        Link mode: SLAVE ACCEPT
Can't read local name on hci0: Input/output error (5)
#

Note the line Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 and Can't read local name on hci0: Input/output error (5)

I had been trying to get wilc3000 BT to work with the sama5d2Xplained board earlier (using jumper wires), but I had been getting the same error there. I just bought the sama5d4Xplained board and plugged the wilc3000 shield on top.

Any suggestions? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.