Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Marcus Hoffmann
    @hoffmann-m
    @nliviu Thanks! With esp-idf 4.2, CONFIG_ESP32_COREDUMP_ENABLE_TO_NONE has changed to CONFIG_ESP_COREDUMP_ENABLE_TO_NONE.
    cnhyades
    @cnhyades
    Hi guys, I'm facing OTA reliability issues with some devices in the field. Always one or more devices failed to update. I'm using mDAsh to push the new firmware. After 100% progress the device reboots with the old version. Tried multiple times but no luck. Any idea why? I'm using OS version 2.19.1
    Mark
    @markterrill
    Are you sure the commit timeout isn't timing out ?
    cnhyades
    @cnhyades
    @markterrill I didn't modify the default value. Do you think that's short or could be problem? Any suggestion there?
    Márk Antal Csizmadia
    @mark-antal-csizmadia

    Hi all, any idea what could I check if my OTA via HTTP GET is not working (and it was working 3 weeks ago).

    I use a Google Cloud Storage bucket to store the fw.zip file, and generate a V4 signed key URL to download it, which is passed onto the mgos_ota_http_start function. The mgos_ota_http_start function receives the URL but does not start the OTA process - just seems stuck.

    [Mar 11 10:06:49.741] mgos_ota_http_clien:270 Update URL: https://randomstorage.storage.googleapis.com/fw.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=...
    [Mar 11 10:06:49.869] mg_ssl_if_mbedtls.c:35  0x3fff6354 ciphersuite: TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
    [Mar 11 10:06:50.442] SW ECDSA verify curve 3 hash_len 32 sig_len 71
    [Mar 11 10:06:55.666] SW ECDH curve 3
    [Mar 11 10:07:00.587] mgos_mongoose.c:66      New heap free LWM: 6864

    I am happy to share more of the code, but since it once was reliably working, I firmly believe that the issue is with credentials or something. I would appreciate your help, as I am really confused and disappointed that something that worked is not working after 2 weeks.

    Andy Blackburn
    @andyblac
    I’m not an expert but, I’m pretty sure OTA does not support HTTPS, only HTTP protocol, you could try that ?
    DrBomb
    @DrBomb
    OTA supports https, I've used it no problem as long as you have the correct trust chain and all that
    Deomid Ryabkov
    @rojer
    @mark-antal-csizmadia please increase debug.level and debug.mbedtls_level
    it should work
    johndevereux
    @johndevereux
    Hi All - is it possible to repartion esp32 once flash encryption is enabled? Or will I lose access to it? Thanks, John.
    (repartition)
    Deomid Ryabkov
    @rojer
    no way to do it in the field, i'm afraid
    at least no existing way. possible in theory, if you have enough space to move things arounf
    johndevereux
    @johndevereux
    OK thanks - what about when its in front of me (sorry if it is stupid question)
    Deomid Ryabkov
    @rojer
    then you can reflash it over serial
    assuming you saved the encryption key when setting up encryption, you will always be able to reflash the device
    johndevereux
    @johndevereux
    OK great, thank you very much!
    Jan
    @janko.valiska:matrix.org
    [m]
    Hi! Please is there a way how to use "vanilla" mbedtls with mongoose os? I need to use ssl client certificate authentication and also to configure MBEDTLS_SSL_RENEGOTIATION, but when i define it in cdefs section, the firmware will crash on every call to mg_use_cert() function. Every call fail with: heap integrity broken: free links don't match: 788 -> 868, but 868 -> 0.
    Jan
    @janko.valiska:matrix.org
    [m]
    I tought that this memory issue can be somehow related to "mongoose" changes that are made to vanilla mbedtls library... but i'm no 100% sure.
    Deomid Ryabkov
    @rojer
    renegotiation is not supported in order to save ram
    Jan
    @janko.valiska:matrix.org
    [m]
    Hi, thank you for answer. It makes sense to turn off memory hungry features. But then, how can we connect to application service that is hosted for example on azure cloud, where there is application gateway in the front of the service? The first hanshake is made with application gateway, and then final service is making renegotiation request, since it requires client certification. But second handshake is definitelly rejected by device with alert message.
    Deomid Ryabkov
    @rojer
    i think we can make it possible to enable renegotiation, please file an issue against https://github.com/mongoose-os/mbedtls
    please provide setup to test it (host name, etc)
    Krishna
    @Krishna02788879_twitter
    i am facing a issue while flashing mongoose os to ESP8266-01 Wifi Module
    DrBomb
    @DrBomb
    As far as I understand, the ESP-01 module has 1MB of flash and that is too little for mongoose os
    Liviu
    @nliviu
    Firmware for a ESP8266 with 1MB of flash can be built with the flag --build-var BOARD=esp8266-1M (no OTA update).
    Mike
    @MikeKovarik

    Hello, can anyone help me with converting number to string in mjs?
    I'm concatenating a list of key=val properties for dns-sd but one of my properties is a number. Js automatically converts the type but not in MOS so I tried .toString() or equivalent but I couldn't find anything.

    let mdnsTxt = 'name=' + Cfg.get('ghome.name') + ','
                + 'type=' + Cfg.get('ghome.type') + ','
                + 'heartBeatMillis=' + heartBeatMillis.toString() + ','
                + 'traits=' + JSON.stringify(traits);
    Cfg.set({dns_sd: {txt: mdnsTxt}});

    Thanks

    btw, before anyone asks: yes i tried making object out of all the variables and then JSON.stringify all that, would've been much simpler, but it makes the code crash with Exception 29
    Liviu
    @nliviu
    JSON.stringify(heartBeatMillis) should do.
    Mike
    @MikeKovarik
    Wow :D I didn't even think about it since it's illegal in real javascript. Only objects and arrays. Anyway, it worked. Thank you
    Liviu
    @nliviu
    Did you read this?
    David Cruchon
    @Enophi
    Hello everyone. This is my first time here. I have a question about rpc over uart. Every time I send a command, I get an answer but the device restarts. I have in the log "read err EOF". Maybe it's because of this ? Thanks in advance for your help :)
    David Cruchon
    @Enophi
    It seems to be a hardware reset (from esp8266 doc) :/ >> "esp_exc.c:235 Reset cause: 6 (sys reset)"
    gadget-man
    @gadget-man
    What device are you using? I’ve recently had issued with Mac Big Sur where the serial port works fine but as soon as I use MOS to send a command over UART it reboots
    David Cruchon
    @Enophi
    @gadget-man Its a ESP8266. I'm on linux (manjaro). Did you find a solution/workaround ?
    Liviu
    @nliviu
    Did you try to use --set-control-lines=false?
    David Cruchon
    @Enophi
    @nliviu Yes i did. Same results, the device reboot with reset cause = 6. I also test with other usb cable
    DrBomb
    @DrBomb
    If you see "read err EOF" seems like a problem with the actual USB device. That usually shows up when I jank the USB cable out while in use
    Something could be shorting out, or the cable might be bad. Try changing the cable
    David Cruchon
    @Enophi
    @DrBomb Yes. Sometimes i see the "read err EOF". I already test another USB cable but I don't have another one on hand. I'll get some more to test. Thanks a lot for your answers
    maks-davletchin
    @maks-davletchin
    Hello everybody. I try to flash module ESP-WROOM-32, but have a problem. From ESP Download Tool I see that SPI speed of this module is 40 MHz. Mos flashs my chip with 80MHz. Is there any solutions to flash it with frequency 80MHz in mos?
    maks-davletchin
    @maks-davletchin
    excuse me, made a typo: Is there any solutions to flash it with SPI frequency 40MHz in mos?
    Liviu
    @nliviu
    AFAIK, you can set the flash parameters:
          --esp-flash-params string             Flash chip params. Either a comma-separated string of mode,size,freq or a number. Mode must be one of: qio, qout, dio, dout. Valid values for size are: 2m, 4m, 8m, 16m, 32m, 16m-c1, 32m-c1, 32m-c2. If left empty, an attempt will be made to auto-detect. freq is SPI frequency and can be one of 20m, 26m, 40m, 80m
    mos help --full
    to see all the options
    alishabbir53
    @alishabbir53
    Error: /src/cli/dev/dev_conf.go:81: no config value at path "wifi.ap.enable"
    What is that error mean
    I flashed the doorsensor firmware found from mongoose os github
    when I tried to connect the module with internet so i received this error
    maks-davletchin
    @maks-davletchin

    AFAIK, you can set the flash parameters:

          --esp-flash-params string             Flash chip params. Either a comma-separated string of mode,size,freq or a number. Mode must be one of: qio, qout, dio, dout. Valid values for size are: 2m, 4m, 8m, 16m, 32m, 16m-c1, 32m-c1, 32m-c2. If left empty, an attempt will be made to auto-detect. freq is SPI frequency and can be one of 20m, 26m, 40m, 80m

    Thanks so much!!)

    Sekilsgs2
    @Sekilsgs2

    Hi. can i'm using double in this variant -

      // Set handler for the virtual pin reads / writes.
      // 
      // Example:
      // ```javascript
      // Blynk.setHandler(function(conn, cmd, pin, val, id) {
      //   print(cmd, pin, val);
      // }, null);
      // 
      setHandler: ffi('void blynk_set_handler(void (*)(void *, char *, int, double, int, userdata), userdata)'),

    and later in this -

    Blynk.setHandler(function(conn, cmd, pin, val, id) {