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

    Firmware Update Fails

    Scheduled Pinned Locked Moved WiPy 2&3
    wipy 2.0debianupdate failed
    41 Posts 7 Posters 21.0k Views 7 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.
    • M Offline
      mike632t @mike632t
      last edited by

      I did trying to edit this post to delete 'I putitalicised text' but I just get the message
      'Error Post content was flagged as spam by Akismet.com' - sigh...

      Mike T.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mike632t @mike632t
        last edited by mike632t

        The update script appears to be trying to retreive the file using the following command but it doesn't look like it is working - or do I have the latest firmware already?

        curl -sL -w \n%{http_code} -d {"wmac": "240AC4xxxxx", "toolversion": 67633794, "name": "wipy.wipy with esp32", "smac":[{"id": "", "type": "lpwan"}]} -H Content-Type: application/json https://software.pycom.io/device/insert
        n000n000n000n000n000n000n000n000n000#
        

        Mike T.

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

          @mike632t
          No, updater tool did not check if you have version already it is because you can have version already but with some error - and you can reflash it once again with same version "fixed"

          your problem is that you use Linux - i am joking ;-)
          I know that this is not helpful but on Windows there are no problem with this at all.

          think about people first, then computers

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

            Well, I never had any problem when using Linux, with both types of updaters. I would not even consider a second to use Windows for that task.
            @mike632t: Do you use the most recent updater tool, and do you have access to the site, wget tries to get the image from?

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mike632t @robert-hh
              last edited by

              @robert-hh
              I used 'wget' to download the updater last night so I'm reasonably sure it is the current version.

              The problem looks like the 'curl' command (see below). I did try connecting directly to my router (I normally connect from behind a firewall) but it makes no difference. Unfortunately I have no idea what the output means.

              I'll try uninstalling 'curl' later which should force the updater to use 'wget' and see if that makes a difference.

              Mike T.

              Mike T.

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jmarcelino @mike632t
                last edited by jmarcelino

                @mike632t

                In this thread @bucknall was mentioning a problem in the Linux updater, not sure if this related.

                B 1 Reply Last reply Reply Quote 0
                • M Offline
                  mike632t @livius
                  last edited by

                  @livius
                  LOL - I generally find that the problem with windows is windows :-) - unfortunately I have to use it at work.

                  I have not used Windows at home for years, I think I have an old XP box somewhere but drivers for the USB serial interface could be a problem...

                  Mike T.

                  Mike T.

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

                    @mike632t
                    :) :) :)

                    For XP you can fiund drivers too - but on XP (laptop) i have UART TTL -> USB converter and work ok
                    I do not know if the same will be for drivers for expansion board

                    think about people first, then computers

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bucknall @jmarcelino
                      last edited by

                      Thanks @jmarcelino!

                      I believe the Linux Firmware Updater should be working correctly now!

                      @mike632t I'd suggest a couple of things:

                      1. Ensure all the headers on the expansion board are connected
                      2. Try changing USB port on your computer
                      3. Do you have the jumper cable connected across pins GND and G23 on the expansion board? (I know it's been asked but this is normally the cause!)

                      Developer Evangelist - Pycom

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mike632t @bucknall
                        last edited by

                        @bucknall

                        1. Yes they are
                        2. Tried that makes no difference
                        3. Yes and the initial serial communication to detect the type of device works.

                        Serial communication with the 'console' works on all the ports I've tried, and the script is able to communicate with the board to discover what type of device it is but it exits when it checks the contents of the temporary file that it tried to download from the web using curl.

                        Mike T.

                        Mike T.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          bucknall @mike632t
                          last edited by

                          @mike632t Hmm odd, let me check this internally! Will get back to you ASAP!

                          Developer Evangelist - Pycom

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

                            Is it possible to update without the USB? I only have wifi connection to my Wipy and using the iOS app failed..

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

                              @robmarkcole
                              at this time no - only RS232 (or UART TTL -> USB converter)

                              think about people first, then computers

                              R 2 Replies Last reply Reply Quote 0
                              • R Offline
                                robmarkcole @livius
                                last edited by

                                @livius thanks :)

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  robmarkcole @livius
                                  last edited by

                                  @livius I saw a youtube video yesterday where the guy used a nodeMCU to provide the UDB-sserial connection for a Lopy, is there a guide? I have a nodeMCY (bricked), raspberry pi and a particle photon available..

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

                                    I would assume that they simply used the USB/Serial chip on the NondeMCU for that purpose, connecting RX-RX and TX-TX of the two devices. The nodemcu board has to be powered for that purpose. The problem is to get the TX pin of the NodeMCU to high impedance and have the NodeMCU to be silent. One guess would be to keep in in reset (pull reset low).
                                    A similar approach is sometimes told with an Arduino.

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      robmarkcole @robert-hh
                                      last edited by

                                      @robert-hh Thanks for the info, if I get it working I will make a post :)

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

                                        I have the same issue with two WiPy 2.0 boards ,
                                        ( (sysname='WiPy', nodename='WiPy', release='1.6.3.b1', version='v1.8.6-463-g468b9d27 on 2017-02-16', machine='WiPy with ESP32')
                                        and
                                        (sysname='WiPy', nodename='WiPy', release='1.6.3.b1', version='v1.8.6-463-g468b9d27 on 2017-02-16', machine='WiPy with ESP32') ) ,
                                        the the first one I manage to upgrade maybe a month ago !
                                        I can connect to my boards using FTDI , I am a linux user, except this issue everything is OK!

                                        The updater fails to connect and throw an error : "Something failed trying to connect to the device"
                                        Can anybody help ...

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

                                          Hello @szatmari60, if you get an REPL prompt using USB, then the basic communication works. Do you know, which interface is used for the REPL prompt. The same is needed for the update. The updater changed in that it fetches the image directly from the Pycom web site during update. So be sure that a connection is possible. I do not know whether mike632t finally succeeded. The was no response during the last three days. If you look in the board for the downgrade instructions, you'll see a method to upload the file locally. From these instructions you can easily guess the names of the most recent files, which are available too.

                                          S 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mike632t @szatmari60
                                            last edited by

                                            @szatmari60
                                            That seeme like the error I got before I installed the python-serial package.

                                            Mike T.

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

                                            Pycom on Twitter

                                            Pycom