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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • 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/...
    - BLE intro slides (PDF): www.dropbox.co...
    - Getting Started with Bluetooth Low Energy (book): www.adafruit.c...
    - Bluetooth Special Interest Group homepage: www.bluetooth....
    - Nordic nRF Master Control Panel app: www.nordicsemi...
    - Reverse Engineering a Bluetooth Low Energy Lightbulb guide: learn.adafruit...
    - Introduction to Bluetooth Low Energy guide: learn.adafruit...
    - Bluetooth 4.0 USB dongle (Pi friendly): www.adafruit.c...
    - Bluez Homepage: www.bluez.org/
    - PiBeacon guide: learn.adafruit...
    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 TH-cam: adafru.it/subsc...
    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....
    Music by bartlebeats: / bartlebeats
    -----------------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 52

  • @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 4 ปีที่แล้ว

    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 :))

  • @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' !

  • @michaelkeymont501
    @michaelkeymont501 5 ปีที่แล้ว +2

    Awesome video! Still basically valid in 2019. Great work!

  • @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.

  • @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 :)

  • @redsarg99
    @redsarg99 8 ปีที่แล้ว +1

    Very Educational. Learnt something about Bluetooth LE and Linux compiling :)

  • @ChrisLindbergh
    @ChrisLindbergh 8 ปีที่แล้ว +1

    Nostalgia intro FTW!

  • @ToddLizambri
    @ToddLizambri 7 ปีที่แล้ว

    Tony, Great video. Thanks for putting this together.

  • @tknuwan
    @tknuwan 8 ปีที่แล้ว

    Well I am writing some code with Estimote using Raspberry PI. The video is very helpful. Thanks a lot.

  • @arreak
    @arreak 3 ปีที่แล้ว

    great video dude!

  • @user-vq5ik9lr7t
    @user-vq5ik9lr7t 6 ปีที่แล้ว

    Pure gold, esp that 0x thing). Thanks a lot!

  • @julianzuluaga3952
    @julianzuluaga3952 7 ปีที่แล้ว

    This is very awesome thank you Tony D!

  • @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 8 ปีที่แล้ว +4

    Get help! Small note for us older fokes with glasses: increase the font size on your RaspberryPi terminal.

  • @Chloe-yc4eo
    @Chloe-yc4eo 8 ปีที่แล้ว

    This was very helpful. Thanks so much

  • @ravirajkamalakar2414
    @ravirajkamalakar2414 5 หลายเดือนก่อน

    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

  • @minkuyeo3024
    @minkuyeo3024 8 ปีที่แล้ว +1

    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?

  • @marciokoko123
    @marciokoko123 6 ปีที่แล้ว +1

    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?

  • @BiecherBender
    @BiecherBender 7 ปีที่แล้ว

    this is so great, thank you very much

  • @luisavalderrama6365
    @luisavalderrama6365 7 ปีที่แล้ว

    Why would you need the Bluetooth dongle? Doesn't raspberry pi 3 already have Bluetooth incorporated?

  • @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.

  • @joanarigbi6258
    @joanarigbi6258 8 ปีที่แล้ว +3

    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.

  • @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

  • @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….

  • @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 6 ปีที่แล้ว

    Thanks Sir for this detailed video. Really very helpful.! (funny game :) )

  • @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

  • @davidstovall7646
    @davidstovall7646 8 ปีที่แล้ว +1

    Can you help with a Raspberry Pi/Bluetooth project?

  • @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

  • @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

  • @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.

  • @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

  • @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?

  • @aryansethi5508
    @aryansethi5508 3 ปีที่แล้ว

    what is CSR ?

  • @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).

  • @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.