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

    Getting started?

    Scheduled Pinned Locked Moved LoPy
    12 Posts 3 Posters 3.5k Views 3 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
      last edited by

      Hello,

      I downloaded the latest PyMakr (1.0.0b4) from the website... I managed to get it to connect to my LoPy via Wifi (192.168.4.1) but I don't get prompted to update the firmware.

      On the package it says this is mandatory before the module can be used.

      How do I trigger to firmware upgrade manually?

      Christian Ehlers

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

        Why is it not possible to edit your own posts? (Checking to see if this has been fixed)

        Anyway I wanted to add that I'm using Ubuntu Linux 16.04.

        I did try the Windows firmware updater but since I don't have Wifi on my Windows PC it seems the updater doesn't work.

        How do I update the firmware in Linux?

        Christian Ehlers

        1 Reply Last reply Reply Quote 0
        • L Offline
          leogaggl
          last edited by

          I can confirm this to be the case on my end as well. I also use Ubuntu 16.04LTS. PyMakr is running fine and connects to the board via USB. However I don't get a prompt to update firmware.

          When I download the Linux Firmware updater and boot into safe mode I only get this when running the update script:

          ./update: 24: ./update: dialog: not found
          ./update: 69: ./update: dialog: not found
          ./update: 110: ./update: dialog: not found
          ./update: 129: ./update: dialog: not found

          L 2 Replies Last reply Reply Quote 0
          • L Offline
            leogaggl @leogaggl
            last edited by

            @leogaggl Also tried to update via the python script in /bin/ of the Linux update TAR

            python updater.py --file ../firmware/lopy_0.9.0.b2_915.bin
            Exception: [Errno 111] Connection refused, on line 286

            Is there some kind of editing function in this forum ? Had to use new reply as you can't seem to edit. Which brought up the following error:

            Error
            As a new user, you can only post once every 600 second(s) until you have earned 3 reputation - please wait before posting again

            1 Reply Last reply Reply Quote 0
            • L Offline
              leogaggl @leogaggl
              last edited by

              @leogaggl Tried to update firmware via 3rd method (FTP) and can not successfully upload the firmware file via either Ubuntu FTP command (or Filezilla upload fails as well - upload starts and gets to the end very slowly however fails with error at the end):

              ftp> pwd
              257 /flash/sys
              ftp> put lopy_0.9.0.b2_915.bin
              local: lopy_0.9.0.b2_915.bin remote: lopy_0.9.0.b2_915.bin
              227 (192,168,4,1,7,232)
              150
              netout: Broken pipe
              451
              ftp> put lopy_0.9.0.b2_915.bin
              local: lopy_0.9.0.b2_915.bin remote: lopy_0.9.0.b2_915.bin
              227 (192,168,4,1,7,232)
              150
              netout: Connection reset by peer
              451
              ftp>

              X 1 Reply Last reply Reply Quote 0
              • D Offline
                daniel
                last edited by

                Hello guys,

                Please install dialog first:

                sudo apt-get install dialog

                We'll add this to the instructions. Sorry for the issues.

                Cheers,
                Daniel

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

                  I asked this on the topic in Announcements already but it seems I can no longer reply to the topic there.

                  Where can I find the firmware source code for LoPy?

                  Christian Ehlers

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

                    @leogaggl said in Getting started?:

                    @leogaggl Tried to update firmware via 3rd method (FTP) and can not successfully upload the firmware file via either Ubuntu FTP command (or Filezilla upload fails as well - upload starts and gets to the end very slowly however fails with error at the end):

                    ftp> pwd
                    257 /flash/sys
                    ftp> put lopy_0.9.0.b2_915.bin
                    local: lopy_0.9.0.b2_915.bin remote: lopy_0.9.0.b2_915.bin
                    227 (192,168,4,1,7,232)
                    150
                    netout: Broken pipe
                    451
                    ftp> put lopy_0.9.0.b2_915.bin
                    local: lopy_0.9.0.b2_915.bin remote: lopy_0.9.0.b2_915.bin
                    227 (192,168,4,1,7,232)
                    150
                    netout: Connection reset by peer
                    451
                    ftp>

                    I don't think the command line ftp client works for this. You need to limit the nr. of connections to 1, and I haven't found how to do that in the command line version.

                    In Filezilla, got to transfer settings and set Transfer mode to Active, Check Limit number of simultaneous connections, and set Maximum number of connections to 1.

                    alt text

                    I also tested the Linux firmware updater which worked fine (I already had dialog installed).

                    Christian Ehlers

                    L 1 Reply Last reply Reply Quote 0
                    • L Offline
                      leogaggl @Xykon
                      last edited by

                      @Xykon Thanks for that. I did have Max connections limited as well as passive mode on. It seemed to transfer the file with intermittent breaks. However it failed with an error in the end.

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

                        @leogaggl said in Getting started?:

                        @Xykon Thanks for that. I did have Max connections limited as well as passive mode on. It seemed to transfer the file with intermittent breaks. However it failed with an error in the end.

                        Just wondering, did you rename the firmware file appimg.bin before trying to upload? Also did you set active mode (you mentioned using passive mode)?

                        Did you boot into safeboot mode by connecting a wire between 3.3V and G28 and remove it once the blue heartbeat led starts?

                        Christian Ehlers

                        L 1 Reply Last reply Reply Quote 0
                        • L Offline
                          leogaggl @Xykon
                          last edited by

                          @Xykon I wondered exactly the same after posting. The safemode was on via the jumping of G28.

                          I just tried again with active mode and the transfer worked. Thanks for the tip !

                          The reason I chose passive mode was because of this https://docs.pycom.io/lopy/lopy/general.html:

                          **The FTP server on the LoPy doesn’t support active mode, only passive, therefore, if using the native unix ftp client, just after logging in do:

                          ftp> passive**

                          @daniel - should this be changed ? Or does this only apply to the native FTP client ? In that case it probably should be pointed out in the FileZilla section of this page to

                          Will the documentation and sources be on GitHub soon ? If that is the case I am happy to help out via fork and provide a patch.

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            leogaggl @daniel
                            last edited by

                            @daniel Just confirming the firmware update worked fine after installing the dialog package. Didn't know that this was a Linux package, but after re-reading the error makes sense.

                            Thanks !

                            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