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

  Переглядів 61,518

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 UKposts: 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.
@michaelkeymont501
@michaelkeymont501 5 років тому
Awesome video! Still basically valid in 2019. Great work!
@julianzuluaga3952
@julianzuluaga3952 7 років тому
This is very awesome thank you Tony D!
@ToddLizambri
@ToddLizambri 7 років тому
Tony, Great video. Thanks for putting this together.
@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.
@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' !
@redsarg99
@redsarg99 8 років тому
Very Educational. Learnt something about Bluetooth LE and Linux compiling :)
@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 2 роки тому
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 :))
@ChrisLindbergh
@ChrisLindbergh 8 років тому
Nostalgia intro FTW!
@BiecherBender
@BiecherBender 6 років тому
this is so great, thank you very much
@tknuwan
@tknuwan 8 років тому
Well I am writing some code with Estimote using Raspberry PI. The video is very helpful. Thanks a lot.
@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.
@MrSoribus
@MrSoribus 4 роки тому
I came for the bluetooth tutorial and he sold me the game "Another world". This man should do lets plays :)
@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?
@minkuyeo3024
@minkuyeo3024 7 років тому
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?
@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 .
@nguyenanhdanh5286
@nguyenanhdanh5286 5 років тому
Thanks Sir for this detailed video. Really very helpful.! (funny game :) )
@oneconfusedbeing2027
@oneconfusedbeing2027 7 років тому
Tony after I install and run the Bluetooth status command it say masked instead of loaded
@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
@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.
@prabhatjindal9645
@prabhatjindal9645 4 роки тому
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 7 років тому
Can I write a python script to control an hm10 connection to another bt device in order to send it ascii commands?
@luisavalderrama6365
@luisavalderrama6365 7 років тому
Why would you need the Bluetooth dongle? Doesn't raspberry pi 3 already have Bluetooth incorporated?
@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….
@davidstovall7646
@davidstovall7646 7 років тому
Can you help with a Raspberry Pi/Bluetooth project?
@arreak
@arreak 3 роки тому
great video dude!
@joanarigbi6258
@joanarigbi6258 7 років тому
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.
@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?
@davidstovall7646
@davidstovall7646 7 років тому
Get help! Small note for us older fokes with glasses: increase the font size on your RaspberryPi terminal.
@gimp3695
@gimp3695 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.
@ravirajkamalakar2414
@ravirajkamalakar2414 23 дні тому
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
@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).
@rokasklemaitis4958
@rokasklemaitis4958 3 роки тому
Is BLE suitable for sending large amounts of data, i.e. pictures of a couple of megabytes?
@bens1058
@bens1058 2 роки тому
Did you watch the video?? Your question is clearly addressed - even fairly early into the video.
@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
@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 2 роки тому
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 3 & Bluetooth LE pt. 2 with Tony D! @adafruit #LIVE
58:43
Adafruit Industries
Переглядів 21 тис.
ESP32 Bluetooth Low Energy (BLE) in 15 Minuten [DEUTSCH]
15:21
Digitale Dinge
Переглядів 6 тис.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Переглядів 2,6 млн
AI Leader Reveals The Future of AI AGENTS (LangChain CEO)
16:22
Matthew Berman
Переглядів 24 тис.
Master BLE Basics in Just 10 Minutes: The Ultimate Guide!
9:15
Novel Bits
Переглядів 86 тис.
Single Board Computers are lame
9:29
Raid Owl
Переглядів 21 тис.
PiVPN : How to Run a VPN Server on a $35 Raspberry Pi!
35:06
Lon.TV
Переглядів 919 тис.
Raspberry Pi & Bluetooth LE pt. 3 with Tony D! @adafruit #LIVE
52:36
Adafruit Industries
Переглядів 14 тис.
Adafruit Top Secret for May 1, 2024
5:50
Adafruit Industries
Переглядів 667
Control Your Raspberry Pi Remotely Using Your Phone | RaspController
8:22
Core Electronics
Переглядів 116 тис.
Bluetooth Low Energy - Protocol Stack (Part 1)
8:39
Bina Bhatt
Переглядів 54 тис.
Компьютерная мышь за 50 рублей
0:28
dizzi
Переглядів 1,4 млн
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Переглядів 987 тис.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 896 тис.