• FiPy FTP upload in C# returns (451) Local error in processing.

    FiPy ftp
    15
    0 Votes
    15 Posts
    53 Views
    T
    In case someone else comes across this post looking for help: I solved the issue by using a different third party FTP library that was suggested to me on the Stack Overflow post I made: https://stackoverflow.com/questions/67011710/ftpwebrequest-to-microcontroller-always-results-in-451-local-error-in-processi/67079870#67079870 Not exactly sure what the underlying issue was, it might've been that the fipy explicitly wants you to change your working directory to the flash directory before uploading or it might've been something else in the library that handled it better. Either way, my FTP log now more closely matches the one from FileZilla and no more errors! My New Code: FtpClient client = new FtpClient("ftp://192.168.4.1"); client.Credentials = new NetworkCredential(UserId, Password); client.DataConnectionType = FtpDataConnectionType.PASV; client.Connect(); client.SetWorkingDirectory("/flash"); client.UploadFile(appFilepath, "rwis_config.py", FtpRemoteExists.NoCheck); client.Disconnect(); New FTP Log Output: # Connect() Status: Connecting to ***:21 Response: 220 Micropython FTP Server Command: USER *** Response: 331 Command: PASS *** Response: 230 Command: FEAT Response: 211 no-features Status: Text encoding: System.Text.ASCIIEncoding Command: SYST Response: 215 UNIX Type: L8 # SetWorkingDirectory("/flash") Command: CWD /flash Response: 250 # UploadFile("rwis\rwis_config.py", "rwis_config.py", NoCheck, False, None) # OpenWrite("rwis_config.py", Binary) Command: TYPE I Response: 200 # OpenPassiveDataStream(PASV, "STOR rwis_config.py", 0) Command: PASV Response: 227 (192,168,4,1,7,232) Status: Connecting to ***:2024 Command: STOR rwis_config.py Response: 150 Status: Disposing FtpSocketStream... Response: 226 Status: Testing connectivity using Socket.Poll()... Command: QUIT Response: 221 Status: Disposing FtpSocketStream...
  • Device doesn't run code inside

    SiPy ftp filezilla machine
    2
    2
    0 Votes
    2 Posts
    190 Views
    robert-hhR
    @brossingo try listdir("/flash") and run "/flash/game.py" You may as well stick with main.py and simply use: import game
  • Uploading to a remote FTP server (GPy + LTE)

    GPy gpy lte ftp micropython
    1
    0 Votes
    1 Posts
    209 Views
    No one has replied
  • Detect FTP connection

    Discussion ftp fipy
    3
    0 Votes
    3 Posts
    277 Views
    D
    @misterlisty Would this work for you download a little semaphore file at the beginning of the ftp session have the scheduler check the semaphore file size and pause if it exists Perform the necessary ftp operations Download an empty file as the semaphore file so the scheduler can see that ftp is no longer in progress. (It would be nice if ftp supported a local delete of the semaphore file)
  • FTP over LTE

    Ideas lte ftp server
    2
    1 Votes
    2 Posts
    418 Views
    N
    even I was confused about it. I didn't try it with my chegg free account yet but was planning to try this. But implementation seems little tough.
  • Upload timeout issue with ftp upload

    Discussion file filezilla ftp wifi
    4
    0 Votes
    4 Posts
    398 Views
    J
    @misterlisty I don't quite see how 35 KB is a "large file"... There must be something wrong in your setup, it is common to upload much larger files than that to perform OTA firmware upgrades for instance. Can you give more details about the setup, including whether the module is acting as a station or AP, what you have between the client and the device, any logs shown on either side, what type of file you are uploading... Tcpdump or wireshark captures could potentially be interesting as well.
  • Download file from webserver or ftp

    Discussion ftp webserver file system
    3
    0 Votes
    3 Posts
    398 Views
    M
    @paul-thornton Look like a great tool to use
  • FTP fails on larger files

    Issues & Bugs ftp
    4
    0 Votes
    4 Posts
    566 Views
    C
    Checked it with a second SD card with only one partition and rebootetd the router and clickt the LoRa antenna into the WiFi part. It is faster and I get less problems and sometimes larger files, but it will still breaks. Sometimes after a few megabytes sometime after a few k. At the moment it is only a nice to have feature. I wat to check the saved stream of the GPS in an editor before I use it as a test stream for my module. I will stop testing.
  • can't connect via FTP

    Issues & Bugs ftp wifi repl
    4
    0 Votes
    4 Posts
    537 Views
    E
    @paul-thornton no it was something else. i don't remember what the exact problem was. one thing that is weird is that the WLAN SSID was never changed. i connected it to pybytes via the REPL and updated the main.py in there and i could connect again.
  • Uploading code without restarting the board

    LoPy lopy ftp vscode
    9
    0 Votes
    9 Posts
    1k Views
    R
    Hi guys, I didn't read everything below in detail, but I just wanted to add that the Pymakr package for Atom has an option for not rebooting after upload :) No need to switch to FTP if the reboot part is the issue. Actually, VSCode is supposed to have the same option, but when testing it just now it shows a bug (it doesn't show any output in the terminal after upload). I'm going to fix that now and add it in the next release. After that, you can add "reboot_after_upload" key to the global or project config file ("reboot_after_upload": false) and it will not reboot the board after uploading or downloading.
  • Failed to upload 22k file over FTP

    LoPy ftp upload failure
    4
    0 Votes
    4 Posts
    596 Views
    T
    I found, that the problem only exist, while the Lopy is in time.sleep(). Can someone confirm this? Cheers, Thomas
  • FireFTP was abandoned

    Discussion fireftp ftp
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Fipy, no FTP, Atom no project, no files on Fipy.

    FiPy fipy atom ftp
    4
    0 Votes
    4 Posts
    863 Views
    danD
    @nickboots Great! I'm glad you sorted it out. The project name label might be related to this issue, you should be still able to upload/run your project, it's just the label that doesn't update. FTP only works with WiFi, if you want to use the serial connection, you can use Pymakr with Atom/VSCode, or rshell.
  • 0 Votes
    6 Posts
    994 Views
    I
    @NickBoots , If you are connecting to an Access point from your pycom device (i.e Wifi in STA mode) disable the wifi on boot option via this command pycom.wifi_on_boot(False) reset board and try again.
  • FTP

    LoPy lopy ftp access point pybytes wifi
    5
    0 Votes
    5 Posts
    858 Views
    robert-hhR
    @brady-aiello You have to change it on the xxPy device. I usuall switch to station mode in my boot.py script and connect the xxPy device to my home AP.
  • New user LoPy4: serial connection works but not ftp

    Discussion ftp
    7
    0 Votes
    7 Posts
    1k Views
    danD
    Hi @mikemx55 Looks like that page has been moved to a different section, here's the new link: https://docs.pycom.io/gettingstarted/programming/repl/telnet
  • download boot.py and main.py by ftp

    Discussion ftp python
    12
    0 Votes
    12 Posts
    3k Views
    A
    download boot.py and main.py by ftp
  • Secure file transfer options for WiPy?

    WiPy 2&3 ftp wipy security
    7
    0 Votes
    7 Posts
    2k Views
    S
    @ade-ro You can use WLAN.init() it accepts the password in the auth parameter.
  • Can not connect through FTP in FileZilla

    Comments & Feedback ftp
    8
    4
    0 Votes
    8 Posts
    4k Views
    M
    Hi friends, You can not connect through FTP in FileZilla, then this answer for you. You can use FTP account to create your website'sFTP accounts. FTP allows you to manage your website's files in cpanel. To create an FTP account, you need to perform a simple task. Login to your domain cpanel account. Find out File section and in that FTP accounts. Click over there to create FTP account with Linux. After entering you first need to set FTP login name and choose the particular domain name for FTP account if you have another domain or subdomain. Generate strong password with the help of Password Generator and set password. While setting password strength of password can be measure through the “strength”. You can choose different-different directories for different-different domains or subdomains. You can create separate FTP account for any of the directory in cPanel. You can choose FTP account quota with specific figure or simple choose it unlimited. Lastly click on Create FTP account. And your FTP account created successfully. To access this newly created FTP account in filezilla. Simply click on the configure FTP client and you will get the username and the password you inserted at the time of creating FTP account. Open filezilla and enter credentials and access your FTP account in filezilla. Follow this steps and click the following link to get more information. Create FTP & FileZilla Access Thank You.
  • FTP while waiting (blocked) for Lora message

    Issues & Bugs ftp lopy
    3
    0 Votes
    3 Posts
    1k Views
    C
    @robert-hh Thank you, I forgot to limit the connections