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

    Exp Board 2.0 serial communication problem

    Scheduled Pinned Locked Moved Expansion Board
    expansion boardcom portftdi
    45 Posts 3 Posters 8.3k Views 3 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.
    • S Offline
      szyba91 @robert-hh
      last edited by szyba91

      @robert-hh Its WPA2 Personal (I've read this from WIndows netowrk properties) Should I change it ?

      As for redo: You mean instead of using wlan.connect('vnet-47DA1E', auth=(WLAN.WPA2, '89050914123'), timeout=5000)

      use this : wlan.isconnected() ?

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

        @szyba91 Then WPA2 is OK. No. Do not change the commands. wlan.isconnected() just checks, whether a connection exists. Making the connection can sometimes take some time, longer than the 5 seconds. You may also just issue the command
        wlan.connect('vnet-47DA1E', auth=(WLAN.WPA2, '89050914123'))
        and then after some time check with wlan.isconnected(), whether the connection was made.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          szyba91 @robert-hh
          last edited by

          @robert-hh Result of wlan.isconnected() is "True"

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

            @szyba91 Then you should be able to connect. The ip address of the FiPy is shown with:
            wlan.ifconfig()
            (maybe it's wlan.ifconfig(id=0))

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              szyba91 @robert-hh
              last edited by

              @robert-hh Ok - using the wlan.ifconfig() if got this:
              ('192.168.0.14', '255.255.255.0', '192.168.0.1', '37.8.214.2')

              So 192.168.0.14 is the IP that i have to write to FilleZilla configrator?
              I've already do so and there is a progress beacuse i have following serwer answer

              Status: Connecting to 192.168.0.14:21...
              Status: Connection established, waiting for welcome message...
              Status: Initializing TLS...
              Error: GnuTLS error -15: An unexpected TLS packet was received.
              Error: Could not connect to server
              Status: Waiting to retry...
              Status: Connecting to 192.168.0.14:21...
              Status: Connection established, waiting for welcome message...
              Response: 220 Micropython FTP Server
              Command: AUTH TLS
              Response: 332
              Status: Initializing TLS...
              Error: GnuTLS error -15: An unexpected TLS packet was received.
              Error: Could not connect to server

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

                @szyba91 Please follow the instructions from the documentation: https://docs.pycom.io/chapter/gettingstarted/programming/FTP.html

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  szyba91 @robert-hh
                  last edited by

                  @robert-hh Looks like i had to reset program Filezilla. Now I'm finlly connted via FTP.

                  0_1534343234240_resut.png

                  Could you explain me how to upload the code via FTP ?

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

                    @szyba91 You can drag files between the two panes. Just maneuver on the left pane to your project directory and move files to the right side. Source files can be placed in /flash or /flash/lib, to be found by the import statement. Within the filezilla settings, section "modify files" (or so) you can define your favorite editor. If then in a file pane, right click, you chose view/edit, you can directly edit the file.
                    Edit: it is important that in the setting you have set passive mode/1 connection only. It is also convenient to add your device to the server list under file->server manager
                    Edit2: You can create bookmarks in Filezilla, which include directory settings and device connections.
                    Edit 3: If you are by chance a Firefox user, you might like FireFTP as ftp client, which in my opinion is easier to use than FileZilla. There is no similar too for Google Chrome.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      szyba91 @robert-hh
                      last edited by

                      @robert-hh said in Exp Board 2.0 serial communication problem:

                      @szyba91 You can drag files between the two panes. Just maneuver on the left pane to your project directory and move files to the right side. Source files can be placed in /flash or /flash/lib, to be found by the import statement. Within the filezilla settings, section "modify files" (or so) you can define your favorite editor. If then in a file pane, right click, you chose view/edit, you can directly edit the file.
                      Edit: it is important that in the setting you have set passive mode/1 connection only. It is also convenient to add your device to the server list under file->server manager
                      Edit2: You can create bookmarks in Filezilla, which include directory settings and device connections.
                      Edit 3: If you are by chance a Firefox user, you might like FireFTP as ftp client, which in my opinion is easier to use than FileZilla. There is no similar too for Google Chrome.

                      OK.I've dragged files form computer(defult left window) to flah -> lib (default right side).
                      First I've do so with simple RGB led and it works and i was also able to see REPL prompt .

                      I thought myself "yes finally I go further with IoT project". So - again I uploded simple LoRa raw ping code between A and B device and.... doesn't work :(
                      Maybe i will create another subject? This one is actaully solvde becasue with Your help i was able to fix communication problem - now it seams that this is different kid of problem.

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

                        @szyba91 What do you mean with: does not work? The copying or the script?
                        For copying Filezilla also support a upload option with the right cick on the file. SImple Double-Click also copies. Did you set the number of transfers to 1 in the settings? The ftp server in the xxPy devices is pretty limited.
                        I had never problems using ftp for file transfer, but I'm using FireFTP, which is a Firefox plugin. That is convenient because I have firefox open anyhow almost all the time.

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

                        Pycom on Twitter

                        Pycom