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 17.4k 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.
    • D Offline
      daniel
      last edited by

      Hello everyone,

      Firmware 1.0.0.b1 has just been released. These are the notes from the change log:

      • Add bind method to LoRa sockets.
        This allows to specify a port number different than the default of 2.
      • Add the Bluetooth network class with WiFi co-existence.
      • Refactor the LoRa module to use event groups.
      • Update to the latest IDF from Espressif
      • Only try to send via LoRaWAN if the network is joined.
      • Avoid glitches when configuring pins.
      • Add support for SHA-224
      • Allow to pass a manual DEV_EUI during LoRa OTAA join.

      The most important feature here is that we have added BLE support, it's very basic for now, but we will now be able to start adding more features in the next releases. For details check the docs:

      https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html

      As usual the updater tools for the new firmware can be downloaded from:

      https://www.pycom.io/support/supportdownloads/ (Under Firmware Updates)

      Cheers,
      Daniel

      J P 3 Replies Last reply Reply Quote 1
      • L Offline
        livius
        last edited by

        >>> os.uname()
        (sysname='WiPy', nodename='WiPy', release='1.0.0.b1', version='v1.8.6-251-g2fb950d on 2016-12-16', machine='WiPy with ESP32')
        

        but still 2 WiPy2 cannot connect each other :(

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • A Offline
          arista
          last edited by

          BLE peripheral functionality would be super cool next feature in the near future.

          In clear text: I want to read sensors with LoPy and send the data to a mobile phone using bluetooth. :)

          1 Reply Last reply Reply Quote 1
          • J Offline
            jasonriedy @daniel
            last edited by

            @daniel said in New firmware release 1.0.0.b1:

            The most important feature here is that we have added BLE support, it's very basic for now, but we will now be able to start adding more features in the next releases.

            If it helps guiding, my use is gathering data sensors are sending through BLE advertisements every ~15 minutes and forwarding them over LoRaWAN. This will run on battery / solar, so power is crucial.

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

              we have added BLE support, it's very basic for now
              

              do you mean that we can only scan? No communication between devices?

              from network import Bluetooth
              bluetooth = Bluetooth()
              bluetooth.scan()   
              

              think about people first, then computers

              J R 3 Replies Last reply Reply Quote 0
              • J Offline
                jasonriedy @livius
                last edited by

                @livius It's a promising demonstration that it works. Dealing with the other packets and fixing the scan interface to be threaded is a simple matter of programming. ;)

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jasonriedy @daniel
                  last edited by

                  @daniel Oh, and I should note that my students have been fairly happy with the bluepy library's interface. The timeout-based system may be simpler to manage for reduced duty cycles than canceling some scanning thread that's sending advertisements to a parsing thread, but the latter feels nicer to me. (Not the students, mind you.)

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

                    @livius I'll update my LoPys' later but I hope that "Add the Bluetooth network class with WiFi co-existence" statement covers more than just scan function.

                    The machine is working as good as it's code.

                    1 Reply Last reply Reply Quote 1
                    • J Offline
                      jasonriedy
                      last edited by

                      Perhaps I was suffering from an exuberance of hopefulness. The 10s BLE scan from the LoPy is occasionally returning one entry. The Raspberry Pi3 to which it's attached returns an almost continual output from "hcitool -i hci0 lescan --duplicates". There is only one peripheral within a meter of the LoPy (AFAIK), and wifi is active. I haven't decoded the MAC yet to check if it's the same device.

                      (I do wish this were a mailing list available via gmane's NNTP interface, but I'm old.)

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

                        Wow! So much hype just for scan?! Is there any timeline for a fuller set of functionality? I mean it's almost end of the year, are we going to get anything further before this year is finished?!

                        P.S.: It seems kind of hopeless to wait for you to provide us with better functionality. It really is. I wish you seriously consider even abandon this path and announce we might as well start programming with IDF, or, a better solution IMHO, use the power of open source community and you take the role of an administrator and let people who need the functionality, implement it themselves. And please stop with the Kickstarter alibi, I'm not buying it anymore, it's no excuse.

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          jasonriedy @mohpor
                          last edited by

                          @mohpor It's not hopeless, it's manpower. That is the crux of your message. I need to parse BLE advertisements and forward them over LoRaWAN. The LoPy seems to fit the budget once we include powering it and software development. That gives us an incentive to help with development. Free software makes that much easier.

                          I'm balancing this against longer-term issues. The current RISC-V dev boards do not match our needs, but future ones will. The development path will be different. But I have to deploy soon (once bees are available in our area, which is kinda unpredictable in the current physical climate) and in an academic environment.

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

                            @livius I've just made an upgrade and sadly all BLE functionality is scan. So disappointed. :/

                            The machine is working as good as it's code.

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

                              Hello,

                              Next Friday release will introduce the functionality to connect, discover services, and open BLE sockets to send and receive data.
                              We will also add options to specify timeouts and make the scan non-blocking.

                              Cheers,
                              Daniel

                              P J 2 Replies Last reply Reply Quote 1
                              • P Offline
                                pwest @daniel
                                last edited by

                                @daniel

                                Will we get the ability to read BLE beacon advertisements w/that rev?

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

                                  @daniel thank you and everyone at pycom for working so hard to get this release out the door! May I ask what the ETA is for updating the associated GitHub repos?
                                  Thanks!

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

                                    Thanks to Pycom team for hard work!

                                    It is good to start with basic functionality and provide the feedback and help in maturing the stack.

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

                                      @daniel
                                      Can we have more details of the planned Bluetooth API? To be honest
                                      "open BLE sockets to send and receive data" doesn't sound very Bluetooth LE-like thing to do at all, a protocol focused on ultra short interactions/notifications around data attributes.

                                      Please don't just rush into an BLE API that'll be useless in a few weeks just to tick "BLE" feature box. It's easier/better to spend a bit of time and do a bit of planning now rather than changing an implemented mess later.

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

                                        AVAST antivirus reports installer as malware and do not let it install. I can disable it, but it is imposing a security risk in my WIN10 desktop.

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

                                          @jmarcelino
                                          Agreed 100%! BLE is not about transmitting data but more like advertising and patterns like publish/subscribe. I hope they'll implement true BLE stack the way it's supposed to be.

                                          I wish Pycom updates their marketing material and in their documentation suggest that not all functionalities are implemented at the moment (more like 30% is implemented now) to help firms like mine that are going to place orders for large quantities of their devices know better! It is ridiculous to buy these gorgeous boards and not be able to at least determine a release date for your product because of the firmware not being ready for prime time! Because right now when you see their marketing material it is based on promises that don't even have a definitive schedule of release! I can't believe it!

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

                                            @jasonriedy thanks for your feedback. Receiving and sending is the next feature that will be implemented. Regarding your application... how often are your BLE sensors sending data? Every 15 minutes as well or more frequently?

                                            Cheers,
                                            Daniel

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

                                            Pycom on Twitter

                                            Pycom