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

    Scheduled Pinned Locked Moved Announcements & News
    41 Posts 14 Posters 18.0k Views 15 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.
    • J Offline
      jmarcelino @brotherdust
      last edited by

      @brotherdust said in New firmware release 1.0.0.b1:

      One thought that occurs to me: what are other MP boards doing for BT (the BBC:micro comes to mind)? Isn't it more pythonic to not reinvent the wheel?

      The particular Nordic part used in the micro:bit didn't have enough RAM (16K) to run both MicroPython and the BLE stack so they never implemented it.

      They only support wired (!) networking and a simple proprietary radio protocol from Nordic.

      So here we have a chance to be true pioneers.

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

        @daniel Hi Daniel, i have just tried to upgrade my 3 LoPy recently received, with the latest firmware here, and after installing the PyMaker (which works with the actual version of the LoPy) and then trying with the PyCom firmware Updade software, on an iMac, connected with USB cable (and selecting the /dev/cu.Bluetooth-Incoming-Port for Serial), i face the sameproblem. Failed.
        It seems there is an issue with the serial / USB driver ?
        I have tried with a MacBookPro also, and i face the same issue.
        I use the same interface and cable to program my Arduino without issues.
        i have tried also to change the speed (9600, 19200) in the .py file related, but no luck.

        thanks for pointing me to a relevant doc or tool.

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

          @pipomolo I have faced the same issue last week. My problem was related to installed FTDI drivers. Have you tried to install FTDI drivers on your mac? if so, you need to remove one of them and leave just one acting driver live.

          You can find more info on related FTDI driver's page info: http://www.ftdichip.com/Drivers/D2XX.htm

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

            @daniel
            In this release note you have mentioned WiFi and BLE Coexistence, I have tried a very simple REPL script to check if that's true and I'm sorry to say I have found it's not!
            I have tried importing BLE first like this:

            from network import Bluetooth
            ble = Bluetooth()
            # Heartbeat LED turns constant blue.
            ble.scan()
            # outputs a few bluetooth devices in 10 secs
            from network import WLAN
            wifi = WLAN(mode = WLAN.STA)
            wifi.scan()
            # REPL won't give back the control and it never finishes the task
            

            This is a little different if the order was reversed:

            from network import WLAN
            wifi = WLAN(mode = WLAN.STA)
            wifi.scan()
            # Outputs list of WiFi devices very fast
            from network import Bluetooth
            ble = Bluetooth()
            ble.scan()
            # Outputs a list of BLE devices in 10 seconds.
            wifi.scan()
            # Won't return the control in ever.
            

            So, in essence, yeah, there is no co existence, even for the simple scan functionality! This means if Bluetooth is imported, WLAN won't work. I have tested the Scan functionality for both but that's bad enough for my scenario.
            Any comments?

            Update:

            It seems vital to mention that from the looks of it, instantiating Bluetooth overwrites memory like this:

            from network import Bluetooh()
            ble = Bluetooth()
            BTDM CONTROLLER VERSION: 010101
            btip start
            copy .data from 4000d890 to 3ffae6e0, len 00001830
            set .bss 0x0 from 3ffb8000 to 3ffbff70, len 00007f70
            BTDM ROM VERSION 0101
            BD_ADDR: ..:..:..:..:..:..
            

            is that a right assessment?

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

              Hello Daniel, this is a big improvement. Would you mind to update the github repository, such that I can enable support of .mpy files?
              Robert

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

                With each firmware update we get less and less free RAM. Now it is only 51k. During KickStarter campaign I got the impression to get much more free RAM. Seems that new features eat up memory. Does it mean that at the end of the road with working LoRa stack, BT and so on there will be no RAM available, or RAM availablity limits the introduction of new or missing features? Hope it is not the case.

                Would appreciate an explanation how RAM is used by the system.

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

                  @bmarkus
                  This is a common question with the ESP32 - see the long discussion at http://esp32.com/viewtopic.php?f=2&t=44&start=10

                  ESP32 specs list RAM as one big block (400KB! 540KB!) however that's not really all available to applications - at least not in a simple way.

                  The ESP-IDF (the "core" SDK of the ESP32) is also not currently optimised for memory. From that thread the "official answer" is:

                  We indeed will be working on minimizing esp-idf RAM usage at a certain ? point in time; for now, we think it's more important to get all features in first.

                  Once the ESP-IDF reaches feature stability and they start look into memory improvements I'd expect those savings will translate into *Py environment as well

                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    jasonriedy @robert-hh
                    last edited by

                    @robert-hh @daniel If we end using LoPy for a project / class, it'd be great to have students build the whole thing, even if just once. Many had never installed an OS before working with a Pi.

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

                      @mohpor

                      Hi Mophor, we'll check this issue immediately and if there's a problem when performing a WiFi scan after a BLE scan then we'll fix it. Coexistence is happening for sure, you can check it by enabling BLE and doing the scan from telnet when being connected to the LoPy in AP mode.

                      The memory being overwritten is OK, that portion of memory is already reserved for BLE usage.

                      Cheers,
                      Daniel

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

                        @livius regarding your problem trying to connect 2 WiPy's together, please check my reply in: https://forum.pycom.io/topic/376/interim-update/6

                        Thanks.

                        Cheers,
                        Daniel

                        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