Last active
August 29, 2015 13:56
-
-
Save 5v3n/9023156 to your computer and use it in GitHub Desktop.
Bluetooth for the YUN for devices not listed automatically via hciconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@gretelomat:~# lsusb | |
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 001 Device 005: ID 0b05:17cb ASUSTek Computer, Inc. | |
Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader | |
root@gretelomat:~# echo 0b05 17cb > /sys/bus/usb/drivers/btusb/new_id | |
root@gretelomat:~# hciconfig | |
hci0: Type: BR/EDR Bus: USB | |
BD Address: 00:02:72:C9:0E:AA ACL MTU: 1021:8 SCO MTU: 64:1 | |
DOWN | |
RX bytes:495 acl:0 sco:0 events:22 errors:0 | |
TX bytes:369 acl:0 sco:0 commands:22 errors:0 | |
root@gretelomat:~# hciconfig hci0 up | |
root@gretelomat:~# hciconfig | |
hci0: Type: BR/EDR Bus: USB | |
BD Address: 00:02:72:C9:0E:AA ACL MTU: 1021:8 SCO MTU: 64:1 | |
UP RUNNING | |
RX bytes:990 acl:0 sco:0 events:44 errors:0 | |
TX bytes:738 acl:0 sco:0 commands:44 errors:0 | |
root@gretelomat:~# hcitool dev | |
Devices: | |
hci0 00:02:72:C9:0E:AA | |
root@gretelomat:~# hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 5C 11 66 27 7E 73 4F 90 98 53 0B 71 4B 52 9C 4A 00 00 00 00 c5 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
< HCI Command: ogf 0x08, ocf 0x0008, plen 32 | |
1E 02 01 1A 1A FF 4C 00 02 15 B4 F0 F5 45 7B 2C 44 4C 93 C0 | |
E8 07 DE F1 CD FD 00 00 00 00 C9 00 | |
> HCI Event: 0x0e plen 4 | |
01 08 20 00 | |
root@gretelomat:~# hciconfig -a hci0 name yBeacon | |
root@gretelomat:~# hciconfig hci0 noleadv | |
LE set advertise enable on hci0 returned status 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment