Developing Bluetooth Smart Applications for Android Tutorial

แชร์
ฝัง

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

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

    Dave Smith again to the rescue! Thank you so much for this Dave.

  • @DebaterOfMath
    @DebaterOfMath 10 ปีที่แล้ว +1

    One of the best android tutorials I've seen

    • @raheelhamid
      @raheelhamid 9 ปีที่แล้ว

      hey i need your help
      its too important related to study and work
      so kindly contact me ASAP

  • @crklopotic
    @crklopotic 6 ปีที่แล้ว

    Very well done. Trying to follow the Android developer examples are very confusing due to the code being split across many classes. The examples you provided are well organized and easy to follow. The state machine that is used to register different gatt notifications was huge. I was having a hard time getting more than one gatt notification to work. Thank you for posting this.

  • @fifaham
    @fifaham 4 ปีที่แล้ว

    @27:30 and since the Temp Sensor is placed inside the refrigerator then the refrigerator metal walls may slightly attenuate the BLE propagating signal and thus weakens the Signal Level, and this may explain why the SSI is reading the lowest (-79 dBm) at 9.0 C . Very well detailed explanation of BLE Advertising and Beacon methods - many thanks - tons of applications for those methods.

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

    Working with 2 Ion sensors and trying to display the temps. This was very helpful!

  • @seanreilly6446
    @seanreilly6446 10 ปีที่แล้ว

    Thank you very much for this tutorial. You helped me get my Bluetooth app working at long last!

  • @levzoosmanovskiy4812
    @levzoosmanovskiy4812 10 ปีที่แล้ว +2

    Budda bless you for this TUT.
    Thank you!

  • @bogdanalexandru5071
    @bogdanalexandru5071 10 ปีที่แล้ว

    Such beautiful code organization... very inspiring! Thanks :D

  • @jiankunli7148
    @jiankunli7148 10 ปีที่แล้ว

    Very good stuff. Thanks a lot for teaching and sharing.

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

    thanks dave, its pretty helpful to understanding Bluetooth manager but need some clarification how to find uuid and to read services of any other custom heath monitoring devices

  • @deepakevgoogle
    @deepakevgoogle 5 ปีที่แล้ว

    Thank you for this excellent tutorial.

  • @ashishmchauhan1
    @ashishmchauhan1 10 ปีที่แล้ว +1

    Hi,
    It is really a nice video and that helped me in my development of the BLE application.
    In our application, we are using smart android phone and BLE watch, now, i want to pass command from the watch by pressing "command" button to smart phone and based on that i want to do some activities to be opened up on mobile phones. so can you please guide me how my application will trace the command to be fired by BLE watch.
    thanks in advance.

  • @SRIKANTH-ls9bm
    @SRIKANTH-ls9bm 5 ปีที่แล้ว

    Excellent video

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

    PLz tell us about the UUID and necessary things we need to connect to our sensor.

  • @greenspand
    @greenspand 11 ปีที่แล้ว

    Great tutorial. Thank you so much.

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

    This is so helpful! Thank you so much!

  • @sdplusm3
    @sdplusm3 9 ปีที่แล้ว

    Thank you very much for the video.

  • @diksharajguru4283
    @diksharajguru4283 4 ปีที่แล้ว

    How can i discover bluetooth device in the background

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

    It is a good tutorials,
    Is it possible to make Bluetooth Le services as started services so we can run in background indefinitely.

  • @tomaszkwiatkowski5219
    @tomaszkwiatkowski5219 10 ปีที่แล้ว

    Great Tutorial Very useful

  • @sameerahamad5867
    @sameerahamad5867 5 ปีที่แล้ว

    Can you please tell me the which heart rate monitor support the GATT profile ,The first type is a short 16-bit UUID. The predefined Heart rate service, e.g., has the UUID 0x180D and one of its enclosed characteristics, the Heart Rate Measurement characteristic, has the UUID 0x2A37. which heart rate monitor is now available in market

  • @BikashDebnath
    @BikashDebnath 10 ปีที่แล้ว

    Hello, I am using the nrf8001 chip. How can I find the UUID for the proximity services. Can any one help please?

  • @beegood123
    @beegood123 5 ปีที่แล้ว

    Shouldn't there invalidateOptionsMenu being called? In onOptionsItemSelected for action_scan, after mDevices was clear

  • @SamathNorng
    @SamathNorng 9 ปีที่แล้ว

    Dear sir, Could you tell me, "get distance from my android device to ibeacon" ?

  • @FranciscoMunoz-tu4oy
    @FranciscoMunoz-tu4oy 10 ปีที่แล้ว +1

    Hello, first say thatyour video its really interesting and secondly, I have a sensor tag and I would like to know if you have any application where you use the accelerometer of sensor tag to view data in your App. Thanks

  • @SriRam-bj6gc
    @SriRam-bj6gc 7 ปีที่แล้ว

    Hi how to send the data from characteristic changed to the activity to display in the ui?

  • @tusharsinghal686
    @tusharsinghal686 10 ปีที่แล้ว

    Hi Dave, Great demo.. I am developing an application to communicate to OBD2 - ELM327 device for reading car data(rpm, speed.. etc). Can you guide me how to do this ?.. I am able to connect via bluetooth.. but facing problem in communicating...

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

    I try to make my own code and adopt your code to read and write characteristic, but i found that my writecharacteristic method return false. Can u help me why it return false?

  • @md.shadekurrahman6356
    @md.shadekurrahman6356 9 ปีที่แล้ว

    I want to write in a characteristic that is not belong to a device information. I also want to write protect that characteristic with a password. Is it possible?

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

    Maybe my mistake is related to the function "invalidateOptionMenu", because it says "Cannot resolve Symbols". Then It cannot connect to the device because the option menu does not appear after the scan. Do I have to declare in the file xml for the menu the "option menu" button? thanks

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

    Hi i want to develop a multimeter app that is connected via wifi can you please give me some idea to create it? Thankyou

  • @yasinshah4343
    @yasinshah4343 6 ปีที่แล้ว

    sir how i make offline android bluetooth assistent for artificial intelligence mode .like a google assistant

  • @BikashDebnath
    @BikashDebnath 10 ปีที่แล้ว +2

    After API 21, the bluetoothAdapter.startLeScan(callback) is deprecated. Could you please suggest what is to be used instead. It seems we cannot use this "Activity implements BluetoothAdapter".

    • @akshayaappaswamy5205
      @akshayaappaswamy5205 10 ปีที่แล้ว

      you can use deprecated methods however it is not recommended in the long run

    • @BikashDebnath
      @BikashDebnath 10 ปีที่แล้ว

      Akshaya Appaswamy ....hello Akshaya....I am not sure how to do that. Can you please guide or direct. I tried using those methods, but somehow they are not working. By the way, do you know any one in the Pune, India area. I am here these days, may be we can collaborate and complete the project. Let me know. Thanks again.

    • @Aliveni3
      @Aliveni3 9 ปีที่แล้ว

      Jkp

    • @BikashDebnath
      @BikashDebnath 9 ปีที่แล้ว

      whats JKP?

    • @Sirikid
      @Sirikid 9 ปีที่แล้ว +1

      Your should use BluetoothLeScanner

  • @youcef4504
    @youcef4504 9 ปีที่แล้ว

    Hi,
    I want to develop the same app in my watch. can you help me please ?

  • @שבירובל
    @שבירובל 4 ปีที่แล้ว

    were is a link to your code?

  • @sj82516
    @sj82516 9 ปีที่แล้ว

    Hi, I wana ask how to modify the code to connect universal sensor?
    like common BLE scanner

  • @geoaxis
    @geoaxis 11 ปีที่แล้ว

    Great demo and tutorial Dave I am curious how you recorded/streamed the android screen?

    • @devunwired
      @devunwired 11 ปีที่แล้ว

      Shahzada, we have an HDMI adapter for the Nexus 7 that mirrors the display on the external output.

    • @geoaxis
      @geoaxis 11 ปีที่แล้ว

      thanks, I have been using BBQScreen for live demos (which need to be streamed), but I guess HDMI in should also work.

  • @catherineharrison5224
    @catherineharrison5224 9 ปีที่แล้ว +23

    i'm confused.

  • @shabarishbk
    @shabarishbk 10 ปีที่แล้ว

    Great tutorial, thanks a ton Dave, i have a specific requirement based on PROXIMITY, can you please tell me why isnt PROXIMITY included in the Profile/Services? CC2541 doesnot support Proximity? it would be a great help.

  • @dmdm9269
    @dmdm9269 10 ปีที่แล้ว +1

    how to find UUID for a device?

  • @AmrMohsen
    @AmrMohsen 11 ปีที่แล้ว +1

    This is very interesting.....

  • @abrutsze
    @abrutsze 7 ปีที่แล้ว +3

    Hi all, can anyone provide a source code, please ? You see couldnt find it at the link under the video.

    • @abdellahmouhcine8695
      @abdellahmouhcine8695 2 ปีที่แล้ว

      Hi have you found the source code or not, if you are found share with me the link please

  • @tonu001
    @tonu001 11 ปีที่แล้ว

    Hi Great demo, i have developed an android application for one BLE sensor.
    And the application connect to the sensor successfully, while calling the mBluetoothGatt.discoverServices() function, getting an exception. I have checked different application in Nexus7 tablet, but not solved this issue.
    Any solution for this issue.
    -tony-

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

    Thank u very much for your help with this tutorial. If I have one service with two characteristic (I'm using Environmental Sensing with Temperature and Humidity characteristics), is the same approach? I'm using your code and the app is able to discover my device, but after scan, it stops the scan! have you any idea about the possible mistake?

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

      did u find the solution ??

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

      esci il codice x)

  • @sinak7585
    @sinak7585 10 ปีที่แล้ว

    Hi Dave,
    I have a question regarding your code. Each time you receive a callback in OnCharactericChange, you post the reference to the characteristic inside a message to the main thread. However, OnCharactericChange is a callback from another thread. How do we know that the reference to the characteristic object is still valid once the main thread receives the message (since the callback is already over once the message is received)?
    Thanks!

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

    Hi, does it work smoothly with HM-10 BLE modules ?

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

    I keep getting an error in the gradle every time I try to run the code!

  • @nishanthtelukunta
    @nishanthtelukunta 9 ปีที่แล้ว

    I see that lambda expressions are not supported in Android Studio, can you please let me know how did you implement them...

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

      Android Studio is pretty printing the anonymous inner class.
      Java's anonymous inner class is a clunky way to write a lambda.

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

      Use retrolambda

  • @nomandcrystal4297
    @nomandcrystal4297 9 ปีที่แล้ว +1

    Thank You for tutorial. I want to develop accelerometer in sensortag to my app. How can i do it ?

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

      did you find anything helpful? i want to implement accelerometer and gyroscope as well. please if you found anything let me know.!

  • @marianpazdzioch5437
    @marianpazdzioch5437 10 ปีที่แล้ว

    What SW do you use to cast Android device screen to PC (?) with clicks feedback visible?

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

      i think he was using bluestacks.....

  • @anarion28
    @anarion28 6 ปีที่แล้ว +5

    I found the source code for this tutorial, maybe someone needs github.com/devunwired/accessory-samples/tree/master/BluetoothGatt

    • @cheddargt
      @cheddargt 4 ปีที่แล้ว +1

      You're the best

  • @larenmarkdcruz7074
    @larenmarkdcruz7074 4 ปีที่แล้ว

    Could you provide link to github?

  • @lorda97
    @lorda97 9 ปีที่แล้ว

    What font are you using ?

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

    Can i get the source code of the app ?

  • @maxnovikov51
    @maxnovikov51 6 ปีที่แล้ว

    thank you very much, i was stuck on :
    BluetoothGattDescriptor d = readCharacteristic.getDescriptor(UUID.fromString("XX-XXXX-XXXX"));
    d.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
    mGatt.writeDescriptor(d);

    • @abdellahmouhcine8695
      @abdellahmouhcine8695 2 ปีที่แล้ว

      Hi have you found the source code or not, if you are found share with me the link please

  • @hbaocr
    @hbaocr 11 ปีที่แล้ว

    thanks a lot

    • @hieucdtspk
      @hieucdtspk 10 ปีที่แล้ว

      so excited!

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

    thank you!!!!

  • @SciHeartJourney
    @SciHeartJourney 10 ปีที่แล้ว +1

    He's making this harder than it has to be. This is part of Apple's plan.

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

    can i get the code?

  • @SulavTimsina
    @SulavTimsina 5 ปีที่แล้ว

    Are you reading any specific book?

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

    Can anyone mail me the source code of this tutorials

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

    why dont u show uuid?

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

    You need to think about me watching the video on a tv or a handheld device and not being able to see the code.

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

    i want to get the code

  • @SciHeartJourney
    @SciHeartJourney 10 ปีที่แล้ว

    Yet his Apple computer is right in front of us. I think this guy is an "insider" trying to discourage people from competing with Apple.

  • @parsec5366
    @parsec5366 4 ปีที่แล้ว

    DON'T WORK

  • @gokaogak905
    @gokaogak905 5 ปีที่แล้ว

    crcl.to/smart LINK NO WORKING

  • @konstantinkotsev
    @konstantinkotsev 10 ปีที่แล้ว

    Great tutorial! Thank you.