Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    abhibhatia98
    @abhibhatia98
    Thanks @DrBomb , it works after restart.
    Jan
    @janko.valiska:matrix.org
    [m]
    Hi, is there some documentation how to implement OTA over BT SPP? Or particulary how to use ota-common mongoose module to flash data to next partition and set next partition as boot partition. Thanks.
    DrBomb
    @DrBomb
    Hi @janko.valiska:matrix.org I don't know if you're aware. But while most mongoose-os is open source. The OTA sections of it is cesanta's paid product. Their OTA package is only distributed as binaries with restrictions on where the updates can be applied from unless you have the paid versions
    So using the ota-common libraries I think might be a moot point for you
    That said. I believe the method OTA.Write is not locked on the binaries, and you could potentially use it to write into the second partition with the loopback RPC
    Deomid Ryabkov
    @rojer
    yes, OTA.* methods are provided by rpc-service-ota and are not limited
    you can use them over BLE GATTS through rpc-gatts library
    the approach is simple - OTA.Begin, OTA.Write the zip data (in chunks, of course), OTA.End
    Jan
    @janko.valiska:matrix.org
    [m]
    Thanks for reply and useful information. I'm curious... is it possible to invoke RPC call directly from code? I want use BT SPP protocol to transfer FW image/zip. So i need somehow execute rpc-service-otas serice calls (OTA.Begin/Write/End) when the data is received from SPP serial interface.
    Aaa, probably I should use: rpc-loopback. Am I right?
    abhibhatia98
    @abhibhatia98

    @DrBomb

    @abhibhatia98 The device will need to be rebooted after the setting is changed. The address is bound to the URI at boot time, so changing the config value will not take effect until you restart the device

    I have doing something to overcome manual reboot

    -  ["restart.pending", "b", true, {"title": "First time restart done or not"}]
    if(mgos_sys_config_get_restart_pending())
    {    
        mgos_sys_config_set_restart_pending(false);
        mgos_system_restart();    
    }

    this cause device continuously rebooting. Do you have ideawhats the issue. I have checked condition works fine when I comment restart method

    DrBomb
    @DrBomb
    you're not saving the config
    abhibhatia98
    @abhibhatia98
    Oops ,thanks for response
    Jan
    @janko.valiska:matrix.org
    [m]
    @rojer: Hi, I'm trying to use rpc-service-ota to perform OTA over BT. After couple of chunks I receive Request queue overflow from mg_rpc_callf handler. I'm sending chunks of size 256bytes every 2 seconds. What can be the problem?
    Jan
    @janko.valiska:matrix.org
    [m]
    Problem solved... we called RPC methods from ISR. Somehow it didn't work... :)
    cnhyades
    @cnhyades

    @rojer , We facing a crash issue after running for many hours. Hardware is ESP32 and OS version 2.19

    Test Setup:

    1. Receiving Bluetooth Notifications every 5seconds and posting them to an HTTP end point via "mgos_invoke_cb"
    2. RPC Methods(over http) are invoked from 3/4 different clients every 5seconds.

    Coredump pastebin link: https://pastebin.com/SViMe0RM

    Do you think it is related to dynamic memory (de)allocation?
    Harsh Bhikadia
    @daadu_gitlab

    Some of our field ESP32 were not working(radnomly disconnecting and not connecting back - even after reboot) with Deco WIfi-Mesh system, turns out that Deco uses "Fast Roaming" feature (IEEE 802.11k and v)

    ESP-IDF have already implemented it and released in v4.3 (commit - espressif/esp-idf@27101f9 and example - https://github.com/espressif/esp-idf/tree/master/examples/wifi/roaming)

    These is behind a flag (CONFIG_WPA_11KV_SUPPORT, CONFIG_WPA_SCAN_CACHE)- which is off by default. Looks like experimental as of now.

    I want this "fast roaming" support in Mongoose.
    Is it trivial to upgrade to ESP-IDFv4.3? as of now mongoose (master) is pointing to v4.2 ?
    @rojer @cpq Any plan for having this in mongoose as well? or will wait for proper (i am assuming it is not because it is behind a flag in menuconfig) implementation?
    abhibhatia98
    @abhibhatia98
    Hi All, I am just trying to research around mongoose-os usability in production like how much percentage devices are running on mongoose os . something related to statistics. I found many of report but doesn't found any thing about mongoose os. Do any one can share thoughts or relevant info/resource like where does it stand in below graph?
    image.png
    Deomid Ryabkov
    @rojer
    @daadu_gitlab i do plan to update the IDF
    unfortunately, it is not trivial to upgrade yourself, as there are a number of patches on top of the upstream that need to be rebased
    @abhibhatia98 i don't think we'd make that graph, our usage is certainly below 1%
    Harsh Bhikadia
    @daadu_gitlab
    @rojer any expected date/month for the upgrade?
    David Cruchon
    @Enophi
    Hi! Do you know if it is possible to customize the provisioning command mos aws-iot-setup? Have a nice day
    Deomid Ryabkov
    @rojer

    @rojer any expected date/month for the upgrade?

    "soon". no ETA, though

    Hi! Do you know if it is possible to customize the provisioning command mos aws-iot-setup? Have a nice day

    https://github.com/mongoose-os/mos/blob/master/cli/aws/aws.go

    gadget-man
    @gadget-man

    Hi! Do you know if it is possible to customize the provisioning command mos aws-iot-setup? Have a nice day

    https://github.com/mongoose-os/mos/blob/master/cli/aws/aws.go

    This reminded me that whenever I provision using aws-iot-setup it returns a AttachPrincipalPolicy is deprecated error. I’ve forked an update and am ready to post a proposed PR to migrate to AttachPolicy, but not sure how to test it locally first?

    1 reply
    Deomid Ryabkov
    @rojer
    run make on a machine that has Go toolchain, you'll get a mos binary
    then use ./mos to test
    gadget-man
    @gadget-man
    Thanks. I’ve tested and all seems OK so have submitted a PR
    Liviu
    @nliviu
    @rojer Is there a way to find out which library issues
    Error: /src/cli/build_local.go:204: can't build for the platform ubuntu; supported platforms are: [esp32] (use --no-platform-check to override)
    Deomid Ryabkov
    @rojer
    not easily, unfortunately
    Liviu
    @nliviu
    Thanks.
    Marcus Hoffmann
    @hoffmann-m
    @rojer The library mongoose-os-libs/gcp reconfigures MQTT. My question is if this will keep MQTT1 working as a fallback?
    gadget-man
    @gadget-man
    Is there a way to get email notifications of watched threads turned back on for the forums?
    Jorge Mesquita
    @jorge4_gitlab

    Hi , Im unable to build esp32 firmware at the moment,
    Ive tested with a progressively more clean mos.yml,
    but cant, even with an empty main.c, empty fs.
    my libs:

    libs:
      - origin: https://github.com/mongoose-os-libs/boards
      - origin: https://github.com/mongoose-os-libs/dns-sd
      - origin: https://github.com/mongoose-os-libs/i2c
      - origin: https://github.com/mongoose-os-libs/rpc-loopback
      - origin: https://github.com/mongoose-os-libs/rpc-mqtt
      - origin: https://github.com/mongoose-os-libs/spi
      - origin: https://github.com/mongoose-os-libs/wifi
      - origin: https://github.com/mongoose-os-libs/ca-bundle
      - origin: https://github.com/mongoose-os-libs/core
      - origin: https://github.com/mongoose-os-libs/http-server
      - origin: https://github.com/mongoose-os-libs/rpc-service-config
      - origin: https://github.com/mongoose-os-libs/rpc-service-fs
      - origin: https://github.com/mongoose-os-libs/rpc-ws

    i see now that the image for the build is recent (4hours ago) tag 4.2-r2

    the error is:

    ... deps/wifi/src/esp32/esp32_wifi.c:36:10: fatal error: mgos_lwip.h: No such file or directory

    i think is an issue with the rc2, because i cant build even in the cloud.
    any help will be appreciated. regards.

    Deomid Ryabkov
    @rojer
    @jorge4_gitlab you need to update all the dependencies, not just mongoose-os
    it was a multi-library change, full context is mongoose-os-libs/ethernet#7
    Jorge Mesquita
    @jorge4_gitlab
    If I delete the deps and build folders, wont everything update automatically? Thanks for the reply btw
    Deomid Ryabkov
    @rojer
    @jorge4_gitlab ok, i see the problem. pushed a fix to the wifi lib (we need to depend on lwip now)
    d4rkmen
    @d4rkmen
    hi guys. can someone point me on a debian mongoose-os sample with homekit adk?
    iops. i mean ubuntu. i know its supported by mos
    Deomid Ryabkov
    @rojer
    shelly-homekit has ShellyU target
    https://github.com/mongoose-os-apps/example-homekit should also build for ubuntu with no changes