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 with PyGos and Pylife

    Scheduled Pinned Locked Moved Pylife
    177 Posts 36 Posters 1.8k Views 38 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.
    • P Offline
      Peter Bankuti @arikb
      last edited by

      @arikb said in Getting started with PyGos and Pylife:

      Also, could you remove the 600 seconds between message limitation here?

      I guess Pycom made that 600 seconds limitation to comply TTN's fair usage policy. However if i get it right, Pycom also offers its own LoRaWan network and i am not aware on similar limitations on that. However this is just i wild guess from my side, as i did not manage as far as you. My boards do not let me provisioning them.

      arikbA 1 Reply Last reply Reply Quote 0
      • B Offline
        Brian Wyld @Pete Allen 0
        last edited by

        @Pete-Allen-0 can you list the functions of the other pins? I assume 2 are tx/rx for the UART?

        p1 - GND
        p2 - ?
        p3 - ?
        p4 - +5V INPUT
        p5 - ?
        p6 -?

        P 1 Reply Last reply Reply Quote 0
        • arikbA Offline
          arikb @Peter Bankuti
          last edited by

          @Peter-Bankuti I meant the 600 seconds delay in replying to forum messages...

          1 Reply Last reply Reply Quote 0
          • P Offline
            Peter Bankuti @Brian Wyld
            last edited by Peter Bankuti

            @Brian-Wyld
            This is a very good question as the datasheet contains a pin table but for sure one can not identify which pins do they mean. This should be fixed in the doc.

            In the webshop i found a picture about the mainboard of the USB cradle, this might help us to get an idea:

            alt text

            However there is a sentence on page 7 of the datasheet. If i get that sentence right, P4 is meant to be +5V OUTPUT only, in which case the only way the PyGo is meant to be powered is the wireless charger. If i get it right also the cradle charges wirelessly and does not apply +5V INPUT to P4... or may be the datasheet is outdated. Am actually waiting to an answer for this question, but that is something only a pycom engineer can answer.

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

              Got my 2 Pygo1 devices yesterday.

              • connection to pylife app eventually worked for device when on the charger
              • after a couple of goes, managed to update the firmware to latest version on both using the app
              • wireless charging makes the device VERY hot, and it never seems to actually charge - the battery animation seems to show it charging but the pylife app never shows more than 0% battery for either unit
              • when not on charge, the device is dead (not visible on bluetooth, disconnected in pylife) very quickly
              • no response to tapping the screen whether on charge or not (both devices are configured in 'performance' mode so should be always on)
              • no wifi AP to connect telnet o get the REPL expect when doing firmware...

              I'm not managing much progress here...

              1 Reply Last reply Reply Quote 0
              • B Offline
                bomtarnes Pycom Ambassadors @Pete Allen 0
                last edited by

                @Pete-Allen-0 at this point I cannot get beyond the "checking for updates" point. If you say there is a way to update over USB then you should either A) offer us the USB cradle as a free/heavily discounted upgrade or B) offer an RMA service to exchange these inadequately tested units for working ones.

                Fed up.

                P R K 3 Replies Last reply Reply Quote 1
                • P Offline
                  Peter Bankuti @bomtarnes
                  last edited by

                  @bomtarnes +1

                  1 Reply Last reply Reply Quote 0
                  • arikbA Offline
                    arikb
                    last edited by

                    Here are my results so far.

                    Out of the 4 devices I have, I managed to upgrade 3. None of them through the app. One of my devices now is completely non-responsive, in the sense that it won't even charge. I'm going to leave it be with the hope that it will somehow go through the battery-depleted-reset process. I hope I didn't fry it with over-heating on the charge plate cum induction oven or otherwise bricked it.

                    My process of upgrading is as follows:

                    • Place on the charger
                    • Go through the app to firmware upgrade
                    • Start the firmware upgrade, all the way to its (for me) inevitable failure
                    • Make sure the phone is disconnected from the wireless network PyCom_AP_Firmware_Update
                    • Using my laptop, generally follow the instructions in https://github.com/pycom/pycom-documentation/blob/pylife/content/pylife/fwupdate/_index.md#manual-firmware-update-from-computer with the following modifications:
                      • Entirely skipping step 2, since the device is already in the upgrade mode, as evident by the existence of the PyCom_AP_Firmware_Update wireless network
                      • The password in step 3 is www.pycom.io and not as written
                      • Sometimes the firmware upload step (step 4, 3rd command) fails with a network error. Repeating this step works.
                      • Sometimes the ota-verify command (step 4, 5th command) fails with an error message (although the HTTP request succeeds, see example below). In this case I started step 4 from the 1st command and it worked.
                      • The ota-reboot command (step 4, 6th command) never returns (i.e. the curl hangs and eventually times out). My guess is that it reboots immediately during the processing of the command and doesn't bother terminating the HTTP request correctly. Nevertheless it does reboot and the process is successful.

                    Here is an example of the command sequence succeeding:

                    1st command - ota-init:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-init"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-init
                    > 
                    * Mark bundle as not supporting multiuse
                    < HTTP/1.1 200 OK
                    < Content-Type: text/html
                    < Content-Length: 6
                    < Status: OK
                    < 
                    * Connection #0 to host 192.168.4.1 left intact
                    Statusarikb@txps:~/Downloads$
                    

                    2nd command - ota-update:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-update"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-update
                    > 
                    * Mark bundle as not supporting multiuse
                    < HTTP/1.1 200 OK
                    < Content-Type: text/html
                    < Content-Length: 6
                    < Status: Pending OTA UPDATE
                    < 
                    * Connection #0 to host 192.168.4.1 left intact
                    Statusarikb@txps:~/Downloads$ 
                    

                    3rd command - firmware upload:

                    arikb@txps:~/Downloads$ curl --request POST --data-binary @firmware_pygo1_1.20.4.r4-pylife.bin http://192.168.4.1/update
                    arikb@txps:~/Downloads$
                    

                    3rd command - example of failure:

                    arikb@txps:~/Downloads$ curl --request POST --data-binary @firmware_pygo1_1.20.4.r4-pylife.bin http://192.168.4.1/update
                    curl: (56) Recv failure: Connection reset by peer
                    arikb@txps:~/Downloads$
                    

                    4th command - ota-finish:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-finish"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-finish
                    > 
                    * Mark bundle as not supporting multiuse
                    < HTTP/1.1 200 OK
                    < Content-Type: text/html
                    < Content-Length: 6
                    < Status: OK
                    < 
                    * Connection #0 to host 192.168.4.1 left intact
                    Statusarikb@txps:~/Downloads$ 
                    

                    5th command - ota-verify:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-verify"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-verify
                    > 
                    * Mark bundle as not supporting multiuse
                    < HTTP/1.1 200 OK
                    < Content-Type: text/html
                    < Content-Length: 6
                    < Status: OK
                    < 
                    * Connection #0 to host 192.168.4.1 left intact
                    Statusarikb@txps:~/Downloads$ 
                    

                    5th command - example of failure:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-verify"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-verify
                    > 
                    * Mark bundle as not supporting multiuse
                    < HTTP/1.1 200 OK
                    < Content-Type: text/html
                    < Content-Length: 6
                    < Status: Error(5)
                    < 
                    * Connection #0 to host 192.168.4.1 left intact
                    Statusarikb@txps:~/Downloads$ 
                    

                    Note the Status: Error(5) message on the 4th line from the bottom.

                    6th command - ota-reboot:

                    arikb@txps:~/Downloads$ curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-reboot"
                    Note: Unnecessary use of -X or --request, GET is already inferred.
                    *   Trying 192.168.4.1:80...
                    * Connected to 192.168.4.1 (192.168.4.1) port 80 (#0)
                    > GET /status HTTP/1.1
                    > Host: 192.168.4.1
                    > User-Agent: curl/7.81.0
                    > Accept: */*
                    > FW-Header-1: ota-reboot
                    > 
                    * Recv failure: Connection timed out
                    * Closing connection 0
                    curl: (56) Recv failure: Connection timed out
                    arikb@txps:~/Downloads$ 
                    

                    Note that the time out error message at the bottom happens after several minutes.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bomtarnes Pycom Ambassadors @arikb
                      last edited by

                      Mine never gets as far as showing the wifi access point.

                      arikbA 1 Reply Last reply Reply Quote 0
                      • arikbA Offline
                        arikb @bomtarnes
                        last edited by

                        @bomtarnes I get it to show the access point by going through the firmware update process in the app. At least for me (Android, PyLife app version 1.0.9) when the firmware update process fails, it leaves the unit in a mode with the access point turned on. Then I disconnect the phone's Wi-Fi (if still connected) and then connect from my computer.

                        P 1 Reply Last reply Reply Quote 0
                        • P Offline
                          Peter Bankuti @arikb
                          last edited by

                          @arikb I can not get to starting the firmware update in the app. I get stuck during the scan process, where i should give the PyGo an alias name. The android app on my phone (Samsung Galaxy S7 with stock Android 8.0.0) does not accept anything no matter what i type there as input. (Tried also any formatting i can just think of). All i get is NOT_VALID_DEVICE response from the app and the PyGo does not turn on as an AP. Can you please tell me on what phone/Android version is working on your side?

                          arikbA 1 Reply Last reply Reply Quote 0
                          • arikbA Offline
                            arikb @Peter Bankuti
                            last edited by

                            @Peter-Bankuti I have a OnePlus 5T with a (rather old) CyanogenMod OS based on Android 9. Had no trouble at all scanning and adding and naming the devices.

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              Ralph Lohse @bomtarnes
                              last edited by

                              @bomtarnes +1

                              H 1 Reply Last reply Reply Quote 0
                              • K Offline
                                Keptenkurk @bomtarnes
                                last edited by

                                @bomtarnes +100 a few more months waiting would have been better than shipping useless bricks. My PyGo1 and 2 are plain dead. Now waiting for a magical revival due to battery discharge. As a backer you choose to go the bumpy road, but this journey has been far beyond expectations in all aspects...

                                1 Reply Last reply Reply Quote 1
                                • S Offline
                                  Stephen Glavin @Pete Allen 0
                                  last edited by

                                  Thanks. I’ve now managed to update both using a PC. However, as other users are finding, they just won’t charge on the charging pad. After 5 hours still 0% on one and 2% on the other. The charging pad itself regularly has a flashing blue light which I assume is its own thermal protection. @Pete-Allen-0

                                  S 1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    henri lepervier @Ralph Lohse
                                    last edited by

                                    @Ralph-Lohse @Pete-Allen-0 @bomtarnes +1 also

                                    1 Reply Last reply Reply Quote 0
                                    • H Offline
                                      henri lepervier @Edouard Abramovich
                                      last edited by

                                      @Edouard-Abramovich @Pete-Allen-0 +1, I am now exactly at the same stage. After the reboot, I get BT, but Wifi-local is no more available.

                                      H 1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        henri lepervier @henri lepervier
                                        last edited by

                                        @henri-lepervier @Pete-Allen-0 @Peter-Bankuti @bomtarnes
                                        Hello Pete, All,
                                        Finally, I have understood (sorry I am slow) that this was possible to use the Wifi Local network to try the Firmware upgrade manual procedure. I did it, and after several attempts, it worked !

                                        Screenshot_20220626-021625_PyLife.jpg

                                        Then I started from scratch. I had difficulties to have a positive scan for the PyGo (dozen of attempts), but eventually, it was recognized by the Android OS Pylife application

                                        Screenshot_20220626-021559_PyLife.jpg

                                        I though I was at the end of the story... but unfortunately no.

                                        1/ The device cannot charge more than 1% (using a QI Wireless Charger)
                                        2/ and more : the location stays wrong : I have a plot in the middle of the blue (without any google map all around)

                                        I have spent a lot of time to reach this point

                                        And now, my question : I received a box with a sticker Pygo2 (so I used the PyGo2 firmware), but when I look to the device, there is no slot for a SIM card as presented into the documentation

                                        Do you have the same ? is there a Sim slot on your devices ? I am wandering if all my issues are not due to a wrong PyGo (1 instead of 2)

                                        For the time being, I am stuck : the device cannot charge, even with the Firmware updated to the latest version.

                                        Any recommendation would be greatly appreciated

                                        Kind regards
                                        H.

                                        A 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          Stephen Glavin @Stephen Glavin
                                          last edited by

                                          Update again. Both now just state 0% battery and only turn on when sitting on the charger. I left one charging overnight ~10 hours and in the morning it was still 0%. My conclusion is that neither will charge and the batteries are completely dead. @Stephen-Glavin @Pete-Allen-0

                                          E 1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            Edouard Abramovich @Stephen Glavin
                                            last edited by

                                            @Stephen-Glavin I noticed the battery percentage is not updated until the device goes to sleep mode. Once it is on again, the app displays the correct value. The overheating issue might still get in the way though. I put my charger in the freezer and managed to charge the battery halfway.

                                            S 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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 4 / 9
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom