Avatar for Ollie

Ollie

Member since Jul 2014 • Last active Feb 2019
  • 29 conversations
  • 495 comments

Most recent activity

  • in General
    Avatar for Ollie

    Good way to try out is using one of the free online brokers and a browser client- I use iot.eclipse.org for the broker and the chrome app MQTTBox. You can bring Espruino into it and establish two way communication in a just a few minutes without going into the guts of the protocol itself

  • in Interfacing
    Avatar for Ollie

    Looks like it's still on the domain, but on "www" rather than the apex -> http://www.httptohttps.xyz/

    • 12 comments
    • 143 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    Thanks Gordon. You might be able to close that issue - I tried another Puck and that was much faster. So looking into it, though I didn't specifically pair my Mac with the Puck when it was HID, it seems to have a pairing - I'd just been disconnecting it, not realising. Now, I've actually removed the pairing from my Mac, the connection seems fine. Likely a false alarm. Apologies.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    I got some way. It's hard to develop with no console for certain.

    So far:

    1. Connect times from IDE seem longer with 2.0.1. Puck is found quickly, but seems to take an age to connect.
    2. NRF connect and disconnect handlers work as expected - watched on
      LED. And the iPhone reliably reconnects.
    3. My setRSSHandler readings are out of range - all are positives?
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    Superb. Thanks for taking the time Gordon!

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    Thanks Gordon there's loads of info to go on there - appreciated. Can I ask one more thing before cracking on with it, can the Puck drop it's HID connection? And if it does, will the pairing mean it is reestablished, or will it kill the pairing?

    To be able to act on the RSSI info, I had hoped to be able to communicate with a hub of some form over BLE UART, the ideal flow would be: Detects connection of iPhone > Measures RSSI > determines RSSI is within set range as proxy for proximity > disconnect and inform hub > disconnect from hub >iphone device reconnects > repeat the previous steps? I'm very rusty on Espruino and BLE so apologies for all the questions.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    Thanks Gordon. With the new firmware, I still had no joy, which led me to look at "clearing any pairing" as you mentioned above.

    So I saved the code to the Puck (with added with E.on("init")), and reset the Puck . Now I get the pairing dialog and the media example works for me. Wonder if my Mac is at fault - not had problems before.

    I'm now interested in how to detect when this iPhone connects again and if possible grab the RSSI. I've had a look about the forum and can't see how the Puck knows it is now back in control of a device via HID, nor how I can get data back such as RSSI. Are these things feasible?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    Thanks Gordon, I'll upgrade it, I did check the Stepper video for the firmware and that was 1.94 I think. So I thought I was probably recent enough in that regard.

    Also, I should add that if I'm on the Bluetooth settings screen on the iPad then I do see it when doing NRF.findDevices(print) (reporting "manufacturer": 76,, which is 0x004c - apple's ID.

    Ah that's interesting, I'd recently discovered exactly the same for Wireless Networks. On later iOS the Wifi Mac address is exposed when looking for networks in the Wifi networks page, but not generally seen. I should have considered that they masked Bluetooth Mac in the same way.

    Thanks again, I'll post up how I get on.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ollie

    I've been trying to find a way to get a Puck to act as central with iPhone as peripheral. I only want the phone's RSSI, but the iPhone is invisible to my scans for it.

    So I then approached it via LightBlue app which allows you to set up virtual peripherals by advertising services, but didn't have any success scanning for the device/service either.

    I then saw a comment from Gordon in a related post, suggesting that HID may allow a "no software" implementation as Puck will know when peripheral is connected, but I've had absolutely zero success getting any of the HID examples to work - literally just pasting them in.

    I'd concluded maybe HID was Android only - until I saw the stepper machine video which uses Puck/HID with iPad.

    I paste the code, connect to Puck, upload it, disconnect, then attempt to connect from my iPhone. The device is there, it does connect, but never displays any sort of pairing modal message as is seen in the stepper video. Needless to say the functionality, say the media player control, does not work either.

    The puck is running Espruino v1.96.
    The iPhone is on iOS 12.1.2

    Is anybody seeing same, or know what I'm doing incorrectly?

Actions