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 release New firmware release 1.2.2.b1

    Scheduled Pinned Locked Moved Announcements & News
    36 Posts 10 Posters 13.4k Views 10 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
      mohpor
      last edited by

      @daniel

      Wonderful update I gotta admit. Fixed a lot of memory problems! One problem that has been fixed and I haven't see anybody reporting was that you could run your code 2 times and then it would crash on the 3rd try. It is now fixed and I can upload my code as many time as I want to! Fantastic.

      Cheers,
      M.

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

        @mohpor cool :-) thanks for the feedback!

        Cheers,
        Daniel

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

          @pdp8user it's automatic.

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            pdp8user @daniel
            last edited by

            @daniel Thanks for that and the prompt reply.

            Keep up the good work! The memory issues have been frustrating, because as @mohpor says, something would work some times and not others.

            I'm still having some issues in that respect, which is why the question about the finalizer. I've still to clarify the details, then I'll report it to you.

            Cheers,
            Brian

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

              @pdp8user thanks. Yes, please let us know the details about the issues that you are experiencing so that we can analyze the problem.

              1 Reply Last reply Reply Quote 0
              • bmarkusB Offline
                bmarkus
                last edited by

                On the download page current firmware version is 1.2.0.b1 see

                https://www.pycom.io/support/supportdownloads/

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

                  @bmarkus
                  this is only not updated web page label
                  updater tool update to version expected 1.2.2.b1

                  think about people first, then computers

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

                    @daniel
                    Hi again,
                    Are we still up for today's update? (despite of the early 1.2.2.b1 update)

                    D 1 Reply Last reply Reply Quote 1
                    • D Offline
                      daniel @mohpor
                      last edited by daniel

                      @mohpor the release is going to be out tomorrow (Friday 13), we still need one more day to complete all the features that we are targeting for this next release. Apologies for the delay...

                      Cheers,
                      Daniel

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

                        @daniel
                        sorry for spam but good date "Friday 13" :)

                        think about people first, then computers

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

                          @livius haha :-)

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

                            I think the latest firmware for Linux is borked :) It's my first hands-on with the wipy2 and the upater failed. Digging around I noticed there are no firmware files in the tgz.

                            There is no firmware directory as per the previous v 0.9.7.. version. I used this link https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=unix&redirect=true

                            Here are the extracts so you can see what I am talking about.

                            tar -tvzf pycom_update_1.0.0.b2.tar.gz
                            -rw-r--r-- abiliojr/staff 247 2016-12-17 04:17 pyupgrade/README
                            drwxr-xr-x abiliojr/staff 0 2016-12-19 12:38 pyupgrade/bin/
                            -rw-r--r-- abiliojr/staff 0 2016-12-17 04:17 pyupgrade/bin/init.py
                            -rw-r--r-- abiliojr/staff 92013 2016-12-17 04:17 pyupgrade/bin/esptool.py
                            -rwxr-xr-x abiliojr/staff 4046 2016-12-17 04:17 pyupgrade/bin/updater.py
                            -rw-r--r-- abiliojr/staff 22135 2016-12-17 04:17 pyupgrade/lopyupdate.py
                            -rw-r--r-- abiliojr/staff 44124 2016-12-17 04:17 pyupgrade/spinner.gif
                            -rwxr-xr-x abiliojr/staff 7316 2016-12-19 19:14 pyupgrade/update

                            tar -tvzf pycom_update_0.9.7.b1.tar.gz
                            drwxr-xr-x abiliojr/staff 0 2016-11-26 08:44 pyupgrade/bin/
                            -rw-r--r-- abiliojr/staff 0 2016-10-27 20:13 pyupgrade/bin/init.py
                            -rw-r--r-- abiliojr/staff 92032 2016-11-26 08:19 pyupgrade/bin/esptool.py
                            -rwxr-xr-x abiliojr/staff 2408 2016-11-26 08:44 pyupgrade/bin/updater.py
                            -rwxr-xr-x abiliojr/staff 210 2016-12-03 05:12 pyupgrade/._firmware
                            drwxr-xr-x abiliojr/staff 0 2016-12-03 05:12 pyupgrade/firmware/
                            -rw-r--r-- abiliojr/staff 210 2016-12-03 04:31 pyupgrade/firmware/._bootloader.bin
                            -rw-r--r-- abiliojr/staff 5520 2016-12-03 04:31 pyupgrade/firmware/bootloader.bin
                            -rw-r--r-- abiliojr/staff 210 2016-12-03 04:44 pyupgrade/firmware/._lopy_0.9.7.b1_868.bin
                            -rw-r--r-- abiliojr/staff 828448 2016-12-03 04:44 pyupgrade/firmware/lopy_0.9.7.b1_868.bin
                            -rw-r--r-- abiliojr/staff 210 2016-12-03 04:43 pyupgrade/firmware/._lopy_0.9.7.b1_915.bin
                            -rw-r--r-- abiliojr/staff 828272 2016-12-03 04:43 pyupgrade/firmware/lopy_0.9.7.b1_915.bin
                            -rw-r--r-- abiliojr/staff 210 2016-12-03 04:32 pyupgrade/firmware/._partitions.bin
                            -rw-r--r-- abiliojr/staff 3072 2016-12-03 04:32 pyupgrade/firmware/partitions.bin
                            -rw-r--r-- abiliojr/staff 210 2016-12-03 04:46 pyupgrade/firmware/._wipy_0.9.7.b1.bin
                            -rw-r--r-- abiliojr/staff 820400 2016-12-03 04:46 pyupgrade/firmware/wipy_0.9.7.b1.bin
                            -rw-r--r-- abiliojr/staff 14383 2016-11-26 08:43 pyupgrade/lopyupdate.py
                            -rwxr-xr-x abiliojr/staff 5765 2016-11-06 03:32 pyupgrade/update

                            Or am I mistaken :)

                            Thanks guys

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

                              @minkley the updater now connects to the internet every time to get the latest files. Normally the updater prints an error message with the reason of the failure. Could you try again and copy paste the message here? Thanks.

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

                                Traceback (most recent call last):
                                File "./bin/updater.py", line 3, in <module>
                                from esptool import ESP32ROM
                                File "/home/mink/pyupgrade/bin/esptool.py", line 25, in <module>
                                import serial
                                ImportError: No module named serial

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

                                  Ok, it looks like only the Windows and OS X updater tools come with pyserial bundled. Please install pyserial manually and run the updater again:

                                  http://pyserial.readthedocs.io/en/latest/pyserial.html#installation

                                  We will add this to the docs. Thanks.

                                  Cheers,
                                  Daniel

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

                                    @daniel
                                    Thanks Daniel
                                    I installed pyserial it's getting past that now but failing with the following message

                                    Namespace(file=None, port='/dev/ttyUSB0', speed=115200, tar='/tmp/tmp.nBBvLQ6mbC/update.tar.gz')
                                    Connecting...
                                    Exception: Failed to connect to ESP32: Timed out waiting for packet header, on line 121
                                    root@pecan:/home/mink/pyupgrade#

                                    So I guess the ESP32 is not live , perhaps you clarify something for about the firmware upgrade process. As I don't have an expansion but am using a USB serial cable, where does wipy2 get it's power from?

                                    As an FYI, I'm using the same USB serial cable I connect to various other devices eg my CubieTruck3, so I know it works

                                    Any guidance would be appreciated.

                                    thanks

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

                                      @minkley have a look here: https://www.pycom.io/wp-content/uploads/2016/11/wipy_pinout.pdf

                                      You should connect 5V from the USB and GND. You also need to connect Rx and Tx on the program port. Don't forget to wire P2 to GND and reset to enter flashing mode as instructed by the updater tool.

                                      Cheers,
                                      Daniel

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

                                        Nano Gateway example doesn't work anymore https://forum.pycom.io/post/1210

                                        It seems that calling lora_sock.recv(256) after lora_sock.send(pkg) is blocking the lora_sock.send function. The package is only send after the receive function is timed out. This kind of defeats the purpose of sending an ACK package. Does anyone have a solution?

                                        Keep up the good work!

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

                                          @Feiko have you by chance made the socket blocking?

                                          lora_sock.setblocking(True)
                                          
                                          F 1 Reply Last reply Reply Quote 0
                                          • F Offline
                                            Feiko @daniel
                                            last edited by

                                            @daniel Here's my code. It's the same as in the example I added a timeout.

                                            import os
                                            import socket
                                            import time
                                            import struct
                                            from network import LoRa
                                            
                                            # A basic package header, B: 1 byte for the deviceId, B: 1 bytes for the pkg size
                                            _LORA_PKG_FORMAT = "BB%ds"
                                            _LORA_PKG_ACK_FORMAT = "BBB"
                                            DEVICE_ID = 0x01
                                            
                                            
                                            # Open a Lora Socket, use tx_iq to avoid listening to our own messages
                                            lora = LoRa(mode=LoRa.LORA, tx_iq=True)
                                            lora_sock = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
                                            lora_sock.setblocking(False)
                                            
                                            while(True):
                                                # Package send containing a simple string
                                                msg = "Device 1 Here"
                                                pkg = struct.pack(_LORA_PKG_FORMAT % len(msg), DEVICE_ID, len(msg), msg)
                                                lora_sock.send(pkg)
                                                
                                                # Wait for the response from the gateway. NOTE: For this demo the device does an infinite loop for while waiting the response. Introduce a max_time_waiting for you application
                                                waiting_ack = True
                                                timeout = time.time() +20
                                                while(waiting_ack and timeout < time.time()):
                                                    recv_ack = lora_sock.recv(256)
                                                
                                                    if (len(recv_ack) > 0):
                                                        device_id, pkg_len, ack = struct.unpack(_LORA_PKG_ACK_FORMAT, recv_ack)
                                                        if (device_id == DEVICE_ID):
                                                            if (ack == 200):
                                                                waiting_ack = False
                                                                # If the uart = machine.UART(0, 115200) and os.dupterm(uart) are set in the boot.py this print should appear in the serial port
                                                                print("ACK")
                                                            else:
                                                                waiting_ack = False
                                                                # If the uart = machine.UART(0, 115200) and os.dupterm(uart) are set in the boot.py this print should appear in the serial port
                                                                print("Message Failed")
                                            
                                                time.sleep(5)
                                            

                                            The socket is not blocking.

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

                                            Pycom on Twitter

                                            Pycom