Raspberry Pi & Bluetooth LE part 1 with Tony D! @adafruit

  Рет қаралды 61,795

Adafruit Industries

Adafruit Industries

8 жыл бұрын

Live stream to / adafruit introducing Bluetooth Low Energy and how to compile and use bluez on the Raspberry Pi. Part 1 in a multiple part series diving into BLE & Raspberry Pi.
Resources mentioned in the video:
- Smart Bulb Colorific: www.amazon.com/Colorific-Contr...
- BLE intro slides (PDF): www.dropbox.com/s/du7udbk231p...
- Getting Started with Bluetooth Low Energy (book): www.adafruit.com/products/197...
- Bluetooth Special Interest Group homepage: www.bluetooth.com/
- Nordic nRF Master Control Panel app: www.nordicsemi.com/eng/Produc...
- Reverse Engineering a Bluetooth Low Energy Lightbulb guide: learn.adafruit.com/reverse-en...
- Introduction to Bluetooth Low Energy guide: learn.adafruit.com/introducti...
- Bluetooth 4.0 USB dongle (Pi friendly): www.adafruit.com/product/1327...
- Bluez Homepage: www.bluez.org/
- PiBeacon guide: learn.adafruit.com/pibeacon-i...
Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix
-----------------------------------------
Visit the Adafruit shop online - www.adafruit.com
Subscribe to Adafruit on KZbin: adafru.it/subscribe
Join our weekly Show & Tell on G+ Hangouts On Air: adafru.it/showtell
Watch our latest project videos: adafru.it/latest
New tutorials on the Adafruit Learning System: learn.adafruit.com/
Music by bartlebeats: / bartlebeats
-----------------------------------------

Пікірлер: 52
@jdubdev
@jdubdev 8 жыл бұрын
Extremely helpful. I've been fighting to get Bluez configured correctly for a while. Your explanation and tips showed me where my problem was and where the docs were out of date. Looking forward to part 2.
@graysonschlichting6435
@graysonschlichting6435 8 жыл бұрын
Tony - VERY helpful. Looking forward to the next one, and more about D-BUS vs. trying to 'script' BlueZ. I would have never gotten as far as I did w/o having watched your video; I paused it and took my RPi through the steps with you and that was GREAT! Keep it comin' !
@myblackhatch
@myblackhatch 7 жыл бұрын
thank you for this video. I have been trying to figure out bluez for a while now and it has been a headache. I learned allot more from this video than I was expecting. please, more videos on bluez.
@michaelkeymont501
@michaelkeymont501 5 жыл бұрын
Awesome video! Still basically valid in 2019. Great work!
@ToddLizambri
@ToddLizambri 7 жыл бұрын
Tony, Great video. Thanks for putting this together.
@redsarg99
@redsarg99 8 жыл бұрын
Very Educational. Learnt something about Bluetooth LE and Linux compiling :)
@julianzuluaga3952
@julianzuluaga3952 7 жыл бұрын
This is very awesome thank you Tony D!
@Chloe-yc4eo
@Chloe-yc4eo 8 жыл бұрын
This was very helpful. Thanks so much
@user-vq5ik9lr7t
@user-vq5ik9lr7t 6 жыл бұрын
Pure gold, esp that 0x thing). Thanks a lot!
@muneshraghurajvarma9937
@muneshraghurajvarma9937 3 жыл бұрын
Thanks a ton. I have been trying to connect to my miband4 for days. After seeing your video I finally got the data. Thanks again.
@erenkarahasan6834
@erenkarahasan6834 3 жыл бұрын
This was so helpful getting an understanding of how BLE works. I decided to let go off the stupid NodeJS BLE modules that only return errors and try to directly access bluez via D-Bus :))
@BiecherBender
@BiecherBender 7 жыл бұрын
this is so great, thank you very much
@daixtr
@daixtr 8 жыл бұрын
just when my raspi3 arrived last week, i immediately configured ssh via bluetooth into it. The idea is, once i bring my raspi3 outside, then i ssh via bluetooth into it, and from the ssh shell i then configure wlan0 to the correct ESSID and from there i can connect into my raspi3 over wifi. Bluetooth is the only easiest way to make this happen for raspi3. No klunky keyboard/hdmi/mouse needed to attach to raspi3. Just enable tightvncserver, and vnc connect to view the GUI. i was a core Bluetooth stack developer back in 2007 and intimately familiar with BT spec particularly the SDP and its cool data types. We had our own core stack in multithreaded C (from hci,rfcomm,l2cap,profiles*) buried deep into an RTOS kernel. But then, i have always remembered how BlueZ earliest versions was very useful during those time to inquire/check our implementations. We debug OTA packets using Merlin hardware sniffer and another USB-based sniffer i forgot the name. I just revisit Bluetooth this month and notice 'pand' is no longer in latest BlueZ. But I see, the nice bluetoothctl tool. Anyway, to enable ssh login over Bluetooth I do it very roughly by creating a startup script in raspi3 that BT connects (test-network xxxx) into my laptop and this results bnep0 interfaces to get created in both ends. The raspi3 script then `ifconfig bnep0 xxxx/24` and from my laptop i do the same. From there, i ssh into raspi3.
@tknuwan
@tknuwan 8 жыл бұрын
Well I am writing some code with Estimote using Raspberry PI. The video is very helpful. Thanks a lot.
@ChrisLindbergh
@ChrisLindbergh 8 жыл бұрын
Nostalgia intro FTW!
@MrSoribus
@MrSoribus 4 жыл бұрын
I came for the bluetooth tutorial and he sold me the game "Another world". This man should do lets plays :)
@nguyenanhdanh5286
@nguyenanhdanh5286 5 жыл бұрын
Thanks Sir for this detailed video. Really very helpful.! (funny game :) )
@arreak
@arreak 3 жыл бұрын
great video dude!
@marciokoko123
@marciokoko123 6 жыл бұрын
Hi! Ever run across the issue where rpi3 connects to a blessing device and lists it's services via bluetoothctl but is unable to connect to a service via Bluepy because it can't "find" the service?
@ranganroy8494
@ranganroy8494 7 жыл бұрын
I was doing for the ble-beacon but it after connecting when I'm using "list-attributes" it is not giving me anything .
@cr7supreme
@cr7supreme 7 жыл бұрын
whenever I try searching the status of the Bluetooth it gives me a failed to dbus: no connection to service what should I do
@minkuyeo3024
@minkuyeo3024 8 жыл бұрын
Nice tutorial. While following your instructions, I don't receive the same result in 1:07:38. I use RPi 3 (Raspbian Jessie 4.4 installed) and configured the experimental mode. However, when I type help command after "$ sudo bluetoothctl", there is no command such as "list -attributes" or "select -attributes". Can you help me out with this?
@AndichoHaryusWirasapta
@AndichoHaryusWirasapta 6 жыл бұрын
Hello Sir, can you help mehow to make notice or sentence in BlueTerm’s layer. For the example “Klik 1 to Turn On LED or Klik 2 to Turn Off LED” Hopely you can help me. Thank you….
@flu7151
@flu7151 5 жыл бұрын
Can you please help me? After rebooting my pi bluetooth does not work anymore. Bluetooth service seems to be enabled but not active.
@oneconfusedbeing2027
@oneconfusedbeing2027 8 жыл бұрын
Tony after I install and run the Bluetooth status command it say masked instead of loaded
@luisavalderrama6365
@luisavalderrama6365 7 жыл бұрын
Why would you need the Bluetooth dongle? Doesn't raspberry pi 3 already have Bluetooth incorporated?
@prabhatjindal9645
@prabhatjindal9645 5 жыл бұрын
please help me in checking battery of my bluetooth headset when running bdus bluez i'm getting error that it is not built with -rdynamic and cannot backtrace.currently thanks using linux mint cinnamon
@marciokoko1
@marciokoko1 8 жыл бұрын
Can I write a python script to control an hm10 connection to another bt device in order to send it ascii commands?
@das250250
@das250250 5 жыл бұрын
What is interesting to me is how disorganized software is , that there is a maze of gates you need to go through before you can get anything to work. Why isn't the installation process more complete where it automatically grabs all the necessary files required automatically. Your trail for getting this all set up is interesting and how did you know which glib option to choose? How do you get to know what you don't know without spending days reading to find out?
@joanarigbi6258
@joanarigbi6258 8 жыл бұрын
Hey tony, Do we need to uninstall default bluez 5.23 before installing latest version? After following your guide, hciconfig shows nothing. I also googled this issue and came to know that some users had this problem. Any suggestions? Thanks for the great tutorial
@herminemaurer4494
@herminemaurer4494 7 жыл бұрын
I´m also googeling for this, did you find an answer?
@joanarigbi6258
@joanarigbi6258 7 жыл бұрын
No, Didnt find solution.
@joshua.hintze
@joshua.hintze 4 жыл бұрын
It would be great to see an updated video where you setup the PI as a BLE Peripheral. Using things like menu gatt. etc. bluetoothctl is a nice app, however it is sooo horribly documented.
@davidstovall7646
@davidstovall7646 8 жыл бұрын
Can you help with a Raspberry Pi/Bluetooth project?
@ravirajkamalakar2414
@ravirajkamalakar2414 3 ай бұрын
i have working some small stuff , i am beginner in bluetooth BLE i try to read data from beacons how to read ACC data from beacons
@davidstovall7646
@davidstovall7646 8 жыл бұрын
Get help! Small note for us older fokes with glasses: increase the font size on your RaspberryPi terminal.
@JediHagrid
@JediHagrid 8 жыл бұрын
I watched a few BLE videos and from what I've gathered it doesn't sound like BLE has a lot of security. I'm trying to control my BB-8 from a Raspberry Pi but when I run the connect command I get an error (can't connect). Any idea why? I thought I was using Bluez but I'm going to compile and try again. I bought the BLE Sniffer and can see commands between my phone and BB-8 just can't connect to BB-8 from my Pi.
@TonyDiCola
@TonyDiCola 8 жыл бұрын
+dustin evans It could be that the BB-8 pairs with your phone and will only listen to it. See if there's a way to reset or unpair the BB-8 and then try connecting to it with a BLE tool. Yeah there are some security extensions to BLE from what I understand, but I don't think they've gotten support for them into bluez yet (but could be wrong--it's a little hard to tell exactly what bluez supports).
@rickrandazzo
@rickrandazzo 7 жыл бұрын
Raspberry pi 3 B - Bluez-5.43. I had to rfkill unblock the device to power on. So far the only real issue. - - so far
@rokasklemaitis4958
@rokasklemaitis4958 3 жыл бұрын
Is BLE suitable for sending large amounts of data, i.e. pictures of a couple of megabytes?
@bens1058
@bens1058 3 жыл бұрын
Did you watch the video?? Your question is clearly addressed - even fairly early into the video.
@hsavr
@hsavr 8 жыл бұрын
Looks attractive, but yes, I still need the following: Is it possible to use a single Rpi as a server for 2 to 10 clients (sensors and activators, wired to dedicated - one per a client - local RpiZeroes )? That is just simple star connection. Relatively low bandwidth is OK. Thank you
@TonyDiCola
@TonyDiCola 8 жыл бұрын
+hsavr Bluetooth LE could work but you'll need to connect to each device periodically and send/receive data. From what I understand right now on the Pi you can only connect to one Bluetooth LE device at a time (later BLE spec changes I think allow multiple connections, but I don't think that's trickled down to bluez and the Pi yet). So you'd want to do something like round robin connecting around to each device at some frequency to check if there's any new data from the device. Alternatively you might look at something that's wifi and TCP/IP-based. You could definitely do much more advanced network configurations and have multiple connections to devices open at the same time. The tradeoff is that wifi is usually more power hungry (but if your devices are plugged in it might not matter as much). Good luck!
@waynekeenansvideos
@waynekeenansvideos 8 жыл бұрын
+Tony DiCola Hiya, I just wanted to share that connecting to more than 1 BLE peripheral on the Pi is possible. I've done it by spawning multiple gatttool processes from Python and also using NoBLE in NodeRED (tested up to 3 or 4 connections) via WebSocket calls from Ruby (Sonic Pi). For example some dancing robots of mine vine.co/v/eMe1O3wnW0H. I seem to recall the spec says a Central should support up to 8 devices, but software, hardware and my memory varies :) All the best Wayne
@aryansethi5508
@aryansethi5508 3 жыл бұрын
what is CSR ?
@timf.5738
@timf.5738 6 жыл бұрын
Why using a Bluetooth dongle? Isnt this unecessary since raspi3 has one onboard?
@Subbaarun
@Subbaarun 6 жыл бұрын
yup true
@das250250
@das250250 5 жыл бұрын
Your voice is identical to joe satriani
@blanchehermine8931
@blanchehermine8931 5 жыл бұрын
You look like Anders Breivik.
Raspberry Pi Talking to WiFi 'Things' pt. 1 with Tony D! @adafruit #LIVE
55:53
Master BLE Basics in Just 10 Minutes: The Ultimate Guide!
9:15
Novel Bits
Рет қаралды 96 М.
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 40 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 41 МЛН
Raspberry Pi & Bluetooth LE pt. 3 with Tony D! @adafruit #LIVE
52:36
Adafruit Industries
Рет қаралды 14 М.
Raspberry Pi 3 & Bluetooth LE pt. 2 with Tony D! @adafruit #LIVE
58:43
Adafruit Industries
Рет қаралды 21 М.
This Raspberry Pi sees in the dark
18:05
Level 2 Jeff
Рет қаралды 53 М.
Bluetooth Low Energy - Protocol Stack (Part 1)
8:39
Bina Bhatt
Рет қаралды 56 М.
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2 МЛН
Can The SLOWEST GPU Run Minecraft?
11:57
Guiny
Рет қаралды 37 М.
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
Bluetooth Peripheral GATT setup on embedded linux
12:45
Joshua Hintze
Рет қаралды 2,9 М.
Doing Bluetooth Low Energy on Linux
43:32
The Linux Foundation
Рет қаралды 18 М.
How to use Bluetooth Controllers with Python on Raspberry Pi
16:36
Core Electronics
Рет қаралды 53 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 420 М.
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 2 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 1,8 МЛН