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

    Deploy release via pybytes

    Scheduled Pinned Locked Moved Pybytes IoT platform
    8 Posts 2 Posters 89 Views 2 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.
    • F Offline
      Frank Westerhof
      last edited by Frank Westerhof

      I am relatively new to the pybytes platform. I have tried deploying a release via pybytes but after the 'your release has been deployed' confirmation message nothing happens. Is there anywhere I can see what is going wrong?

      One complication might be that I have created a number of subdirectories?

      I tried this on both a lopy4 and a Wipy 3.0 both on firmware 1.20.2.R4

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        On your device, could you set the following:

        import pycom; pycom.nvs_set('pybytes_debug', 99)
        

        This should give more insight in whether and what data reaches the devices.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          Frank Westerhof @Gijs
          last edited by

          @Gijs Thx for your reply; have inserted that line. Where should I now look for the debug info?

          1 Reply Last reply Reply Quote 0
          • F Offline
            Frank Westerhof
            last edited by

            I managed to deploy one release. Problem was the file structure.

            Feature requests:

            • can the file structure of the my-release.zip file be validated at the moment of uploading the file
            • can the debug log of a deployment attempt of a device be made visible in the pybytes deploy overview

            Documentation enhancement request:

            • would like to understand better if the pybytes.configuratio. file is unique to the device or if it should be overwritten in de release deployment proces
            1 Reply Last reply Reply Quote 1
            • F Offline
              Frank Westerhof
              last edited by

              Also notice that if the main file does not change in a new release (but e.g. only a module in a subdirectory) then the release is not deployed

              1 Reply Last reply Reply Quote 0
              • F Offline
                Frank Westerhof
                last edited by Frank Westerhof

                Ok after investing considerable time today on this starting from a completely empty project I can now confirm that the deployment release functionality works to some extend but definitely is not robust.
                At some point in time devices do not pick up a new release anymore. You have to completely reinstall them before they pick up the release which is then installed properly so there is nothing wrong with the release itself.
                I realise this is still a beta but it will need to become a lot more robust before this can be applied as a robust mechanism applied at scale in my humble view.

                1 Reply Last reply Reply Quote 0
                • F Offline
                  Frank Westerhof
                  last edited by

                  Discovered that if I connect the device using the expansion board and then do a safe reboot and start up pybytes manually using code below and then deploy the release to the device it always works (so far). Hope that helps dev team to find out why it is not always working for 'live' devices.

                  from _pybytes import Pybytes
                  from _pybytes_config import PybytesConfig
                  conf = PybytesConfig().read_config()
                  pybytes = Pybytes(conf)

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gijs
                    last edited by

                    Hi,
                    Thanks for the suggestions / testing. I'll add it to the bugs list. I understand the feature is not quite as robust as you'd like.
                    The Pybytes.conf file is unique to each device (it contains the unique id etc.), though Im not sure how that ties into the whole release process and if you have to include it.

                    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 / 1
                    • First post
                      Last post

                    Pycom on Twitter

                    Pycom