-
Notifications
You must be signed in to change notification settings - Fork 1
BLE Configure
Navigate to the folder where Bluez was installed (in my case /usr/lib/bluez-5.30/)
Run:
tools/hciconfig
This should show something like
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:0A ACL MTU: 310:10 SCO MTU: 64:8
DOWN
RX bytes:48436 acl:121 sco:0 events:1615 errors:0
TX bytes:2371 acl:98 sco:0 commands:84 errors:0
As you can see above the the BLE is DOWN, so to enable it we run.
tools/hciconfig hci0 up
Now, when we run the hcifonfig the BLE will be UP.
root@raspberrypi:/bluez/bluez-5.28# tools/hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:0A ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:49000 acl:121 sco:0 events:1644 errors:0
TX bytes:2729 acl:98 sco:0 commands:113 errors:0
-
Edit crontab
crontab -e
-
Add the line
@reboot sudo hciconfig hci0 up
Home
##Pre-Req
Software
Hardware
##Protocols
XMPP
AMQP
MQTT
WebSockets
Custom
##Raspberry Pi
Connecting
Configuration
WiFi
Update
###BLE
About
Support
GAP
Broadcast Topology
Connected Topology
GATT
Install
Configure
Connect
Read/Write
###NODEJS
Install
Install
Test
##XSockets
###Hosting
Self-hosted
Configuration
Azure worker role
###Let's build a location based chat
Chat controller
Add name & location
Target specific clients
Install
Test
###Sensor Controller
Basic
Adding state
Broadcast to all
Target specific clients
Confirm enable/disable
Complete
###Monitor Controller
Basic
OnOpened
Adding state
Turn sensor on/off
Complete
###Testing With Putty
Custom protocol
Connecting
Impersonate sensor
Impersonate monitor
###Scale Out
Azure Service Bus
##Suggested Clients
Overview
Web JavaScript
Putty
C-Sharp
TCP-IP
###MQTT
client
publish
##Azure
Hosting & scaling
##Links/Resources
Adafruit
Wikipedia