Avatar for enaon

enaon

Member since Aug 2020 • Last active Feb 2024
  • 4 conversations
  • 52 comments

Most recent activity

  • in Projects
    Avatar for enaon

    thank you fanoush :)

  • in Projects
    Avatar for enaon

    I couldn't resist (again) and got some more.

    nice, I got two more too, for this price it is super.

    this one is ~8 if I clear cookies do not login, yours went to 12euro when I loged in to aliexpress, still very nice. :)

    https://www.aliexpress.com/item/10050059­35723945.html

  • in Projects
    Avatar for enaon

    maybe some delay between connecting and reading data could help, I think there is MTU negotiation running right after device is connected, but it is there too also even for SDK12

    thanks, I think I remember talking about this in the past, adding delays did help, it now allways connects, but only if the interval is 7.5-100, 7.5-7.5ms will not work on the bangle js2 for me, nothing like the p8 or the magic with 6.0.0. Strange, I will play more., thank you for your time.

    Edit: I just used 6.0.0 in the magic with 2.21, it behaves like the bangle, connects if delays are in place but not in 7.5 ms, comms are slow and it disconnects every 5 secs or so, strange, I think I remember that it was related with the feature of multiple connections that was introduced some time back, but I may have it mixed up in my mind.

  • in Projects
    Avatar for enaon

    sory to spam on this thread, last one :)

    This is what I am getting (most of the times, some times it conects) on the bangle2 2.21 when trying to connect to a unicycle using my scripts.

    Uncaught Error: Unhandled promise rejection: Disconnected
    Uncaught InternalError: BLE task completed that wasn't scheduled (SERVICE/NONE)
    Uncaught Error: ERR 0x8 (INVALID_STATE) (:2082)

    is bangle using 6.1.x too?

  • in Projects
    Avatar for enaon

    You mean S140 6.1.1? and you reduced writing block size to 2048?

    I think so, it is the one you have on your github, and I think I managed to reduce the block size to 2048, I am not very sure I did it right though.

    It works, but I am facing some issues when connecting to my unicycle, I think I have seen the same problem in the past, I remeber that I was able to overcome it, but I need to remember how. I have the same problem with the bangleJS2 on 2.21, so it seems that it is not magic3 related, the bangle has very simmilar behaviour ( I am using 7.5ms connection interval) .

    The connection takes some more time, and it feels like there are two of them at the same time, one goes through and one fails, causing my script to restart comms, but it maybe be something else, I will play a bit more.

    also, I did loose the advertising of the magic(2.21 /6.1.1 -and I tested 6.1.0 too, the same as 6.1.1 as far as I can tell) two or three times, I am not sure what caused it, reset()/E.reboot() did not help, I had to use the watchdog to restart, and then it was visible again.

    I have a disable/enable BT switch on the gui, this does not work too, if I disable the BT it will not be visible once enabled, reset()/E.reboot() does not help, only the watchdog works for restoring incomming connections. (this also aplies to the banglejs2, so maybe it is espruino 2.21 related -Edit: disable/enable BT using the bangle os bluetooth connectable menu works, so maybe something has changed and the way I do it is not correct anymore.)

  • in Projects
    Avatar for enaon

    yes I used the older forked loader, I can see the atob was not replaced. I see I have some catching up to do, for now magic3 with 2.21 and 6.1.1 seems to work fine, thanks again.

  • in Projects
    Avatar for enaon

    update: it works :)

    I cannot send the file using the ide, it results in a soft brick, but the loader did it, thank you.

  • in Projects
    Avatar for enaon

    super, thanks a lot, I am still on 6.0.0,because 6.1 was messing up the flash :)

    also, do you remember the version the compiler change happened? I just tried 2.17 and your driver works as it was.

    edit: I tried the inline driver with 2.21 and the changes you mentioned, but it outputs a "Compacting.." message on the ide when I am uploading, and after a while it disconnects, I think it softbricks, I do a reset using the watchdog to connect again.

    Maybe I did something wrong? I just replaced all E.toString with E.toFlatString, and used var bin=E.toFlatString(atob(".....")) ( I also used E.toString, same result)

  • in Projects
    Avatar for enaon

    hello @fanoush, I tried a build of espruino_2v21.9 on p8 and magic, and it seems the inline display driver gets broken. The watch boots, but displays only the last screen that was on before the firmware upgrade. Is there something I could maybe try?

    Actually I just wanted to try the jit feature, just to test if it could speed things up a bit, do you maybe know of a version of espruino with jit that your driver works?

    • 9 comments
    • 521 views
Actions