Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    New Firmware Release Candidate v1.20.0

    Scheduled Pinned Locked Moved Announcements & News
    firmware
    81 Posts 17 Posters 23.0k Views 18 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      Xykon administrators @crumble
      last edited by

      @crumble said in New Firmware Release Candidate v1.20.0.rc0:

      Have you changed someting in _thread or i2c as well?

      Maybe it's the updated IDF libraries... I haven't changed anything in the source code related to that functionality.

      Christian Ehlers

      1 Reply Last reply Reply Quote 0
      • C Offline
        crumble @Xykon
        last edited by

        I move back to FAT file system. LittleFS worked fine for some time, but suddenly it was not possible to upload files with the ATOM plugin running Windows 10.

        >>>
        >>>
        Uploading project (main folder)...
        Not safe booting, disabled in settings
        
        Reading file status
        Failed to read project status, uploading all files
        Creating dir lib
        [1/5] Writing file lib/dth.mpy (2kb)
        [2/5] Writing file lib/pycoproc.mpy (6kb)
        Failed to write file, trying again...
        Failed to write file, trying again...
        timeout
        [3/5] Writing file lib/pytrack.mpy (0kb)
        Failed to write file, trying again...
        Failed to write file, trying again...
        timeout
        [4/5] Writing file lib/sfGPS.mpy (7kb)
        Failed to write file, trying again...
        Failed to write file, trying again...
        timeout
        [5/5] Writing file main.py (4kb)
        Failed to write file, trying again...
        Failed to write file, trying again...
        Upload failed.: timeout Please reboot your device manually.
        
        

        The failed to write messages do not pop up always after two files. Sometimes after main.py

        I flashed the firmware with erasing the file system flag, it failed.
        I flashed again with FAT and it worked.
        Flashed 3rd time with LittleFS and failed again.

        Maybe a timestamp problem? I had no problems during the afternoon. Time zone is Berlin. Problem started around 20:00 local time.

        FTP worked well.

        1 Reply Last reply Reply Quote 0
        • R Offline
          rogerrr
          last edited by

          Hi,

          When will be able to use macfilter and/or commissioner in cli function ?
          Else, is there a way to secure the mesh networks ?

          Thanks

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            Paul Thornton @rogerrr
            last edited by

            @rogerrr Hi, whilst I can confirm Macfilter/commissioner is on our roadmap but I dont have a timeframe for delivery at the moment.

            re current security methods. All mesh traffic is currently encrypted with a pre shared key that matches across all nodes.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rogerrr @Paul Thornton
              last edited by

              @paul-thornton thanks for your answer,
              Can i set this value ?

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                Paul Thornton @rogerrr
                last edited by

                @rogerrr @Xykon Could you answer this?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  serafimsaudade
                  last edited by

                  I'm testing this new fw v1.20.0.rc4 release with GPY with lasted NB modem fw.
                  Resume:
                  1 - I'm able to connect and send data over NB (Portugal - MEO operator)
                  2 - rtc.ntp_sync() is working over NB and WIFI
                  3 - rtc.synced() is working over NB and WIFI
                  4 - I notice that sometimes the usocket.read() don't timeout, I will continue doing more tests.

                  keep the good work.

                  1 Reply Last reply Reply Quote 3
                  • C Offline
                    crumble @crumble
                    last edited by

                    Bad luck today run into the i2c issue on init of pytrack:

                      File "main.py", line 62, in <module>
                      File "lib\pytrack.py", line 8, in __init__
                      File "lib\pycoproc.py", line 102, in __init__
                      File "lib\pycoproc.py", line 164, in set_bits_in_memory
                      File "lib\pycoproc.py", line 155, in magic_write_read
                      File "lib\pycoproc.py", line 117, in _read
                    OSError: I2C bus error
                    

                    It will be nice, if this message has more details inside the development firmware. It is the same when reading or writing on the python level. But maybe a "doesn't work on my machine" is helpful, too ;)

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      crumble @Xykon
                      last edited by

                      @xykon

                      Update IDF libraries to pycom-esp-idf/idf_v3.1 ebff2ed

                      I tried to compile debian submodule on win10. But fail with a lot of the idf_v3.1* branches.
                      It misses include files from the folder mbedtls

                      mods/modussl.h:19:25: fatal error: mbedtls/net.h: No such file or directory
                      compilation terminated.
                      mods/moduhashlib.c:26:26: fatal error: mbedtls/sha1.h: No such file or directory
                      compilation terminated.
                      In file included from mods/modussl.c:28:0:
                      mods/modussl.h:19:25: fatal error: mbedtls/net.h: No such file or directory
                      compilation terminated.
                      In file included from mods/lwipsocket.c:31:0:
                      mods/modussl.h:19:25: fatal error: mbedtls/net.h: No such file or directory
                      compilation terminated.
                      

                      origin/master compiles without problems.

                      Can I give the original idf v3.1.2 a try or do I need your changes?
                      Hey, there is a change for i2c. I have no clue what this means, but i had to have it. Just too scared to brick the device without your go ;)

                      robert-hhR 1 Reply Last reply Reply Quote 0
                      • robert-hhR Offline
                        robert-hh @crumble
                        last edited by

                        @crumble Dis you issue in the esp-idf folder the command:

                        git submodule update --init

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          crumble @robert-hh
                          last edited by

                          @robert-hh
                          Thanks a lot Robert. I had done this in master branch only or it failed for some reason.

                          Was not able to link it with idf_v3.1 but idf_v3.1.1 works.

                          robert-hhR 1 Reply Last reply Reply Quote 0
                          • robert-hhR Offline
                            robert-hh @crumble
                            last edited by

                            @crumble You have to do that after any checkout in the esp-idf repository. So if you change to v3.1, you have to repeat that. And in the Micropython subdirectory you have to rebuild mpy-cross.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              Sympatron
                              last edited by

                              @iwahdan @Xykon
                              What happend to the development branch and version 1.19 (which is still in beta)?
                              Was it abandoned? As far as I can see they both branched from 1.18, but with similar changes, especially regarding the new directory structure.
                              Is everything that was new/fixed in 1.19 also in 1.20?

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                brotherdust
                                last edited by brotherdust

                                @iwahdan
                                May I suggest enabling OrderedDict in collections?

                                #define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
                                
                                1 Reply Last reply Reply Quote 2
                                • B Offline
                                  brotherdust
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    brotherdust
                                    last edited by

                                    @iwahdan
                                    Getting build errors on release-candidate:HEAD (2/27/19):

                                    LINK build/WIPY/release/application.elf
                                    lib/libbt.a(bt.o):(.literal.btdm_check_and_init_bb+0x4): undefined reference to `btdm_rf_bb_init_phase2'
                                    lib/libbt.a(bt.o): In function `btdm_check_and_init_bb':
                                    /Users/iwahdan/esp/pycom-esp-idf/components/bt/bt.c:1165: undefined reference to `btdm_rf_bb_init_phase2'
                                    collect2: error: ld returned 1 exit status
                                    make: *** [application.mk:632: build/WIPY/release/application.elf] Error 1
                                    

                                    Any thoughts here?
                                    Thanks!

                                    C X 2 Replies Last reply Reply Quote 0
                                    • C Offline
                                      crumble @brotherdust
                                      last edited by

                                      @brotherdust

                                      Any thoughts here?

                                      Do you use an old esp-idf branch? The pycom-esp-idf master is an old version used by the stable firmware. If you want to compile 1.20 you have to switch to v3.1.something. I am on the 3.1.1 branch.

                                      1 Reply Last reply Reply Quote 0
                                      • X Offline
                                        Xykon administrators @brotherdust
                                        last edited by

                                        @brotherdust The official IDF version for release-candidate branch is idf_v3.1 (see Jenkinsfile)

                                        Also make sure to update submodules in both the IDF and the firmware repo (see README.md)

                                        Christian Ehlers

                                        robert-hhR 1 Reply Last reply Reply Quote 0
                                        • robert-hhR Offline
                                          robert-hh @Xykon
                                          last edited by

                                          @xykon When switching between master and release-candidate branch, one not only has to change the branches in esp-idf (and not forget to do the submodule update), but also mpy-cross has to be rebuilt.
                                          What I do:

                                          • start with cleaning both the esp32 target and the mpy-cross target,
                                          • then switch branches & update submodules,
                                          • build mpy-cross
                                          • build the ESP32 binary

                                          This is all a little bit tedious, so I avoid to do it.

                                          X 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            brotherdust
                                            last edited by

                                            @robert-hh, @Xykon : Thanks for the tips! Changing from idf v3.1.1 to 3.1 did the trick!

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 3 / 5
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom