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

    Pymakr 1.0.0.5b does not connect to LoPy via WiFi

    Scheduled Pinned Locked Moved LoPy
    lopypymakr
    12 Posts 6 Posters 4.7k Views 6 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.
    • B Offline
      bartvrancken
      last edited by

      Do you have ANY other ardiono device connected? I had a TTN Uno connected to it borks the IDE

      also try using the standalone FW updater to get up to date first.

      1 Reply Last reply Reply Quote 0
      • P Offline
        peter
        last edited by peter

        Thank you for trying to help.
        As I've mentioned, I did manage to update the firmware with the standalone updater. That is not the issue.
        I also do not have another Arduino like device connected via any ttyUSB. In fact, the LoPy is not connected by USB at all. That is also not the issue.
        I can connect to it via WiFi. It gets an IP adress by my DHCP server. I can ping it, telnet to it and ftp to it. PyMakr however tries to connect but fails. That is my problem.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DarkHawk @peter
          last edited by

          same her pymakr (on mac) is not able to connect to the lopy via usb, not the old pymakr and als not the new version.

          1 Reply Last reply Reply Quote 0
          • P Offline
            peter
            last edited by peter

            Please note that my request did not raise an issue about connecting the LoPy via USB at all. I did not even try to connect it via ttyUSB, so I can not say if this would work or not. There is no physical connection between my PC and the LoPy.

            My question exclusively pertains to the problem that PyMakr 1.0.0.5b is unable to connect via WiFi to the LoPy while I can reach it via telnet and ftp from the exact same machine without any problems.

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

              The telnet server only allows one connection at a time. Did you disconnect any other Telnet clients before trying with Pymakr?

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

                Pymakr 1.0.0.b5 connects to LoPy as expected if no other sessions opened.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  peter
                  last edited by peter

                  There are no other sessions open. In fact I try to connect to the LoPy with PyMakr first. Only when this has failed, I checked it by using telnet or ftp.

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarkHawk @peter
                    last edited by

                    @peter ahh, sorry I missed the part with "wifi", but it's also the same here. using pymakr I cannot connect via usb or wifi (AP mode). but telnet/ftp via wifi works, direct connect on terminal via usb also works fine. it's just pymakr that didn't want to connect.

                    but regarding wifi, wifi is only working in AP mode, If I use the example to connect to my own wifi, the lopy tells me it succeeded, but I can't connect or even ping it.
                    @peter could you share your boot.py example? I'm also curious how to set it up to use dhcp.

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

                      @DarkHawk This post helped me getting the LoPy connect to my WiFi
                      /paul

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        peter
                        last edited by

                        @DarkHawk, I am using this booty.py to connect to my local WLAN:

                        import machine
                        from network import WLAN
                        
                        wlan = WLAN(mode=WLAN.STA)
                        nets = wlan.scan()
                        
                        for net in nets:
                            if net.ssid == 'MYSSID':
                                wlan.connect(net.ssid, auth=(net.sec, 'my-wlan-key'), timeout=5000)
                                while not wlan.isconnected():
                                    machine.idle()
                                break
                        

                        It is pretty standard as I've just adapted an example I've found somewhere around here.

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          DarkHawk @peter
                          last edited by

                          @peter thx this also worked for me now, the other example from the lopy documentation somehow did not work for me, so thx for sharing.

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

                          Pycom on Twitter

                          Pycom