Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. ble
    Log in to post

    • T

      [SOLVED] Need Help with GATTC services
      Discussion • ble gatt characteristics formats • • TCB  

      3
      0
      Votes
      3
      Posts
      1117
      Views

      T

      @jmarcelino SOLVED Thanks for the help. Was able to adapt the example to connect to my Lopy and get a specific service with no issues. Some tips for anybody else trying to do access a GATT service. If you use the Pycom example it will print out a services.uuid like this b'\xdet-\xf0p\x13\x12\xb5DK\xb1\xc5 \xff\x95\xa4' . But if you are trying to access the service using the UUID as it appears it will not work. So what I did (as suggested by jmarcelino) was use binascii.hexlify to get a hex value. Which in this case was -----de742df0701312b5444bb1c520ff95a4' ,then use that as the value with binascci.unhexlify as the uuid input like this service.uuid()==binascii.unhexlify(b'de742df0701312b5444bb1c520ff95a4'): Another way to get the uuid is to use the Android Nordic Semiconductor nRF Connect app (or similar) to get the hex value for the UUID and then use unhexlify as above.
    • P

      Bluetooth LE set_advertisement with flag and service_data
      MicroPython • ble bluetooth setadvertiseme servicedata • • PhS  

      1
      0
      Votes
      1
      Posts
      1109
      Views

      No one has replied

    • J

      Multiple devices bluetooth.get_adv()
      LoPy • ble advertising ble radbeacon • • juansezoh  

      1
      0
      Votes
      1
      Posts
      750
      Views

      No one has replied

    • P

      BLE and Wifi interference?
      WiPy 2&3 • wifi ble wipy 2.0 • • Paco88  

      7
      2
      Votes
      7
      Posts
      2656
      Views

      R

      Even with an External Antenna the BLE seems to have quite some problems. Sometimes it doesnt find anyhting at all.
    • S

      Support for Bluetooth LE notifications?
      Discussion • ble bluetooth android ios • • scott  

      10
      0
      Votes
      10
      Posts
      3608
      Views

      F

      @wituwitu Did you find a way to solve this problem ? I'm having the same issue, I'm pretty sure I'm doing something wrong but I cannot find a solution
    • Innocenzo

      GATTCCharacteristics.write('value') doesn't work!
      WiPy 2&3 • ble wipy2.0 • • Innocenzo  

      6
      0
      Votes
      6
      Posts
      1683
      Views

      bucknall

      @kutysam Hmm ok! One of our engineers is having a look at it today so I'll keep you posted!
    • K

      Reading descriptors of BLE Client GATTc device
      Getting Started • ble • • kutysam  

      2
      0
      Votes
      2
      Posts
      941
      Views

      K

      Have started on issue on this in github https://github.com/pycom/pycom-micropython-sigfox/issues/37
    • P

      Apple HomeKit
      Discussion • ble homekit apple • • poebler  

      5
      0
      Votes
      5
      Posts
      1583
      Views

      S

      Any news to HomeKit Integration?
    • C

      LoPy crashes while running BLE example code
      LoPy • lopy ble ble lo • • cylex  

      3
      0
      Votes
      3
      Posts
      1155
      Views

      bucknall

      Hi @cylex, Could you please update to the latest firmware? Version 1.7.0b1 introduced a number of fixes for the BLE code examples. You can check what version of firmware that your device is currently running by using the commands from the REPL import os os.uname() Thanks! Alex
    • H

      Bluetooth characteristic notifications
      Discussion • ble bluetooth android android app ionic • • hardware_freak  

      4
      1
      Votes
      4
      Posts
      1476
      Views

      H

      @scott Thank you for you reply. I tested the server side notifications yesterday and my first tests worked so it looks good so far.
    • E

      Callback method
      LoPy • lopy ble • • eternalphoenix  

      1
      0
      Votes
      1
      Posts
      799
      Views

      No one has replied

    • B

      `eval` in BLE callback resets board
      WiPy 2&3 • ble wipy2.0 eval • • bm  

      5
      0
      Votes
      5
      Posts
      1356
      Views

      B

      Yes. I disable the heartbeat and set a color as part of the BLE initialization.
    • T

      Bluetooth range for outdoor use
      Discussion • ble bluetooth range • • tainanfish  

      12
      0
      Votes
      12
      Posts
      6238
      Views

      jmarcelino

      @tainanfish You might be surprised what LoRa can do (and remember in LoRa you CAN set the TX power) but if the question is just cost, then the GPS will be about the same ($8 for a GPS module, same as a LoRa module) To me the problem with GPS is it's even higher power consumption than WiFi.
    • iber

      Bluetooth communication with smartphone
      Discussion • ble bluetooth serial • • iber  

      2
      1
      Votes
      2
      Posts
      1227
      Views

      jmarcelino

      @iber LoPy currently only supports Bluetooth LE GATT protocol which in simple terms is a key/value read+write protocol (like a simple database) and ill suited for streaming serialized data like JSON. You should however be able to make your mobile app write to Bluetooth LE characteristics on the LoPy which then set the WiFi and password. The GATTS example should give you the right idea: https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html#network.characteristic.events
    • A

      Send data from WiPy to LoPy with BLE
      WiPy 2&3 • wipy ble bluetooth • • amartinez  

      8
      0
      Votes
      8
      Posts
      4228
      Views

      S

      @nagarjuna-reddy same here
    • R

      Enhancing the readout speed of BLE devices around the PyCom
      WiPy 2&3 • wipy ble time data rate performance • • redimo  

      1
      0
      Votes
      1
      Posts
      810
      Views

      No one has replied

    • papasmurph

      LoPy stops detecting BLE advertisements
      Issues & Bugs • lopy ble bluetooth beacon ibeacon • • papasmurph  

      123
      0
      Votes
      123
      Posts
      84076
      Views

      T

      My lopy4 arrived and i tested with it, too, although i was pretty sure it wouldn't make a difference. It didn't, it does the same thing. I left my lopy running since yesterday noon and from 270 readings, 223 were correct. So that's around 17-18% loss.
    • F

      How to extend the BLE range in the Wipy settings?
      Firmware • wipy ble bluetooth • • fish82  

      8
      0
      Votes
      8
      Posts
      2547
      Views

      R

      @redimo Good luck. Thanks for the update. We scan BLE for 10 seconds then delete/restart the ble object. I'm noting there are maybe 3 updates we've not tried yet for BLE reliability. Maybe they are better? Very interested in how it works for you.
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5