BLE HTTP questions

Posted on
  • Some questions around BLE HTTP:

    • I found a discussion about the URL length limit and that this should be solved with BLE5. Is this (or will this) be available on the Bangle.js?
    • Has somebody code to have an Android app running in the background and act as a BLE HTTP proxy?
    • What other BLE means are available for an Bangle.js app to connect to an Android app running in the background?

    Thanks in advance for some hints!

    Use case: I imagine a app which would take the current GPS position and north direction and uses a app on the Android Device (or running in the cloud and being reachabe via the BLE HTTP Proxy on the Android Device) and show me a oriented (OSM) map of my surroundings (eg from https://www.wanderreitkarte.de/), so I don't have to take the phone out to take a quick look at the map.

  • I found a discussion about the URL length limit and that this should be solved with BLE5. Is this (or will this) be available on the Bangle.js?

    It may be in the future, but it isn't at the moment I'm afraid.

    Has somebody code to have an Android app running in the background and act as a BLE HTTP proxy?

    Not that I have come across.

    IMO you're probably better having something that does all the heavy lifting on the phone and then just sends commands down the BLE UART connection. You can do that with DroidScript if you want something simple (http://forum.espruino.com/conversations/­297507/).

    Dave from Droidscript did an example where he grabbed the current KickStarter funding off the website - I've dropped him a message to see if we can post that up.

    What other BLE means are available for an Bangle.js app to connect to an Android app running in the background?

    It's just a standard 'Nordic UART' connection so you can use Nordic's own example app at https://github.com/NordicPlayground/Andr­oid-nRF-UART

    I'll maybe see what we can do about GadgetBridge - apparently there's some scripting in there for Pebble compatibility. I wonder if I could just open a local TCP/Websocket port on the phone and then maybe a service worker could access it?

  • My idea is to upload GPX files, heart rate data and step data to a website.
    To build something like Google Fit or Garmin Connect.

  • @Gordon

    IMO you're probably better having something that does all the heavy lifting on the phone

    Yes, but this is what I want to avoid, users would have to update the app on the Bangle.js and the Android app for each change. When the heavy lifting is done in a cloud service or in a private server at home and you just use the Android App as a simple proxy, the proxy could stay like it is on updates.

    Nordic's own example app

    yuk, five years old... lets see...

  • A link to the DroidScript code is here for anyone that's interested: https://www.instagram.com/p/B5FnL1rHqlW/­?igshid=1qciyvxp5zy41

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

BLE HTTP questions

Posted by Avatar for DerGuteWolf @DerGuteWolf

Actions