Avatar for user113695

user113695

Member since Jun 2020 • Last active Mar 2023
  • 12 conversations
  • 49 comments

JavaScript novice and tinkerer.

Most recent activity

  • in Bangle.js
    Avatar for user113695

    Thanks, I appreciate that. The watch was purchased last April.

  • in Bangle.js
    Avatar for user113695

    Sadly my (previously working) Bangle 2 seems to have succumbed to the same issue - I can no longer connect to it via Bluetooth. In particular, it is no longer discoverable on any other device (tried 3 smart phones, a laptop and a desktop, all of which see my other 2 Bangles without issues; made sure it is programmable in settings, also performed a factor reset);
    does not show up as Dfutarg in DFU mode, either; nor does the pinch trick mentioned above seem to have any effect. Curiously, this is the newest of 3 Bangle 2s I own (the first 2 were Kickstarters). It did not get wet (beyond wearing it regularly).
    Any advise?

  • in Bangle.js
    Avatar for user113695

    Hi,
    I wrote a small proof-of-concept app a while ago that uses the textinput and ble_uart modules to implement a minimalist chat app. It is quite hackish as it literally executes JS on a nearby Bangle to print a message (this also highlights one of the security issues with a Bangle with BLE enabled in general). The range is quite limited, 2m doesn't sound too far off...

    function send_text(a) {
      NRF.requestDevice({filters:[{ namePrefix: 'Bangle.js' }], timeout:3000}).then(function(device) {
        return require("ble_uart").connect(device);
      }).then(
        function(uart) {
    uart.write("if(typeof(_oldg)!='undefined­')g=_oldg;g.clear();E.showMessage('"+a+"­');g.flip();Bangle.buzz(300);_oldg=g;g=G­raphics.createArrayBuffer(8,8,1);\n").th­en(()=>{uart.disconnect(); load(); }, (error)=>{E.showAlert(error).then(()=>{l­oad()});});
        },
        function(error) {
          E.showAlert(error).then(()=>{load()});
        });
    }
    require("textinput").input().then((a)=>s­end_text(a));
    
  • in Bangle.js
    Avatar for user113695

    Great. I will give it a try.

  • in Bangle.js
    Avatar for user113695

    Yes, this was with an XL map.

  • in Bangle.js
    Avatar for user113695

    It seems that the current GPS position marker is offset from the correct position in OpenStreetMap, too.

  • in Bangle.js
    Avatar for user113695

    Possibly a file system corruption, specifically of .boot0 or .bootcde ?
    Can you connect to the web ide to get console output?

  • in Bangle.js
    Avatar for user113695

    Excellent!
    What exactly makes this a long distance transmission? The call to setTxPower or the specifics of the setAdvertising invocation?
    If it is the former, the Show Nearby app does not seem to contain a call to setTxPower...

  • in Bangle.js
    Avatar for user113695

    Sacrificing a little memory to align to 4 bit sounds like a good compromise.

Actions