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

    Simple Windows installation

    Scheduled Pinned Locked Moved Discussion
    installation
    24 Posts 6 Posters 9.1k Views 7 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
      pmulvey
      last edited by pmulvey

      Is there any such thing as a windows installation that will install PyMakr. I'm just new to this and am wondering where PyQt fits in with PyMakr. Looks like the installation process is perfect for command line Linux heads! Can I just Notepad++ and FTP to the pycom. I have connected via usb and am on Com 17 at 115200. I have PuTTY working and can work the REPL. Should I be able to use FTP and how?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @pmulvey
        last edited by

        @pmulvey Better do not try to use pymakr, since that is an abandoned product. On windows, use for instance Putty as Terminal console, and Filezilla or FireFTP for file transfer.
        Windows command line FTP will not work, since it is very restricted and outdated, but Windows Telnet can be used. But Putty is more convenient, since it supports both serial and telnet connections.

        P 2 Replies Last reply Reply Quote 0
        • P Offline
          pmulvey
          last edited by

          Should I be able to run FTP over the usb connection and if so what IP address do I use? I am using WinSCP for FTP which worked with the linkit smart 7688 duo module.

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

            @pmulvey
            You mix up protocols
            Ftp is TCP/IP protocol - you need Wifi conncetion established
            default address is 192.168.1.4 user: micro pass: python

            think about people first, then computers

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              pmulvey @livius
              last edited by

              How do I get the SiPy to become a station on my WiFi network?

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

                @pmulvey said in Simple Windows installation:

                station

                It as default work in AP(access point) mode
                Look on avaiable networks and you will see it on the list

                think about people first, then computers

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

                  I see it now! What password do I use?

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

                    @pmulvey
                    www.pycom.io

                    think about people first, then computers

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pmulvey @robert-hh
                      last edited by

                      What is the password for sipy-wlan?

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pmulvey @robert-hh
                        last edited by

                        @robert-hh What is the password for sipy-wlan?

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mmarkvoort @pmulvey
                          last edited by

                          @pmulvey

                          I am not sure it is the same as LoPy.

                          But on the LoPy the password = www.pycom.io

                          Like @livius said.

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

                            @ashleythomas We're talking here about installing Pymakr under Windows. Are you sure you answer is about this topic?

                            P 1 Reply Last reply Reply Quote 0
                            • P Offline
                              pmulvey @robert-hh
                              last edited by

                              @robert-hh I was asking if there was an installation exe for PyMakr but I'm now not going to install it as it is abandoned. I am using Notepad++. I could not get the NppFTP plugin to work, WinSCP and FTP command line in windows work intermittently and FileZilla will not work at all. I am suspecting that for some reason the SiPy responds to FTP requests only sometimes. I have currently it in AP mode and I think (though not sure) that when I disconnect and reconnect to sipy-wlan the FTP comes alive again. However if SiPy is only intermittently responding to FTP then all of these theories go out the window. PyCom need to clear up these silly teething issues as I'm tempted to throw it out! No fun at all!

                              robert-hhR B 3 Replies Last reply Reply Quote 0
                              • robert-hhR Offline
                                robert-hh @pmulvey
                                last edited by

                                @pmulvey The FTP server of the Pycom devices supports passive mode only, with just 1 session.
                                Filezilla supports passive mode/1 session, but only when you configure a server. The quick connect option uses active mode.
                                Windows command line FTP supports active mode only. That means, you can do simple commands like cd, pwd, but not dir or file transfers.
                                WinSCP works nice, but has to be adequately configured (passive mode, 1 session)
                                I never tried NppFTP, but will do so. But besides that FTP on Pycom devices works very reliably. It's more the fact that Windows has a poor support of FTP. My preferred FTP client is the FTP plugin for Firefox, FireFTP, which works on all platforms I use (Linux, Windows, OS X)

                                1 Reply Last reply Reply Quote 1
                                • B Offline
                                  bucknall @pmulvey
                                  last edited by

                                  Hi @pmulvey, sorry you've having these problems!

                                  Have you followed the specific settings required for FileZilla to work? If you do not set these, then the FTP clients will have issues with connecting to your device (SiPy).

                                  Have a look here for instructions on how to do so - https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html?highlight=ftp#pycom-filesystem

                                  You need to ensure the transfer mode is passive and that you limit the number of simultaneous connections, this is important!

                                  Let me know how you get on!

                                  Cheers,

                                  Alex

                                  Developer Evangelist - Pycom

                                  P 1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pmulvey @bucknall
                                    last edited by

                                    @bucknall Alex,
                                    I have FileZilla working. On the local site I just double click the file and it transfers to SiPy. However when I do a soft reboot (CTRL+D) in order to run main.py I lose the FTP connection. To get the FTP connection back I must press the reset button on SiPy and disconnect/reconnect sipy-wlan. I think that a disconnect/reconnect of sipy-wlan is required after a hard reset. Can FileZilla auto sync the local site with SiPy because if it did the file would get transferred over as soon as I save it in Notepad++.

                                    robert-hhR 1 Reply Last reply Reply Quote 0
                                    • robert-hhR Offline
                                      robert-hh @pmulvey
                                      last edited by

                                      @pmulvey I made a test with NppFTP. That Plugin has the habit of disconnecting between every two actions. That seems to confuse the FTP server of my LoPy and most likely your SiPy too. Other servers are more stoic.
                                      FileZilla Windows works with LoPy. You have to define it in the server manager (File->Server Manager). Use password, unencrypted session, and in the transfer settings set passive mode and limit the number of simultaneous connections to 1.

                                      1 Reply Last reply Reply Quote 0
                                      • robert-hhR Offline
                                        robert-hh @pmulvey
                                        last edited by robert-hh

                                        @pmulvey I have re-configured my LoPy to use station mode. Doing this, I do not have to re-connect my PC every time. The script I use is:

                                        import network
                                        import time
                                        # setup as a station
                                        wlan = network.WLAN(mode=network.WLAN.STA)
                                        wlan.connect(ssid="my_ssid", auth=(network.WLAN.WPA2, "my_password"))
                                        while not wlan.isconnected():
                                            time.sleep_ms(50)
                                        wlan.ifconfig(config=("my_static_ip", "255.255.255.0", "my_gateway",  "my_gateway"))
                                        

                                        I use a static IP address, because that is more convenient in testing.
                                        print(wlan.ifconfig())
                                        And as a hint: Before adding this change, be sure to have REPL on USB enabled, so you have a fall-back if that script fails, while you set it up, or use WLAN.STA_AP as mode, which keeps AP mode.

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pmulvey @robert-hh
                                          last edited by

                                          Robert,
                                          This is my boot.py

                                          boot.py -- run on boot-up

                                          test

                                          import os

                                          import network
                                          import time
                                          from machine import UART
                                          uart = UART(0, 115200)
                                          os.dupterm(uart)

                                          setup as a station

                                          wlan = network.WLAN(mode=network.WLAN.STA)

                                          wlan.connect(ssid="SKYFXXXX", auth=(network.WLAN.WPA2, "XXXXXXXX"))

                                          while not wlan.isconnected():

                                          time.sleep_ms(50)
                                          

                                          wlan.ifconfig(config=("192.168.0.29", "255.255.255.0", "192.168.0.1", "192.168.0.1"))

                                          print ("Booted in STA mode")

                                          When I do CTRL+D I get:

                                          PYB: soft reboot
                                          ÿ
                                          and no REPL. It works OK with the reset button.
                                          How do I get the fancy code window in my post?

                                          robert-hhR 1 Reply Last reply Reply Quote 0
                                          • robert-hhR Offline
                                            robert-hh @pmulvey
                                            last edited by

                                            @pmulvey You get code windows by inserting lines with three backticks before and after your code.

                                            P 2 Replies 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