Files
pycom-documentation/content/gettingstarted/programming/ftp.md
gijsio 9a0602f9e5 Restructure, rev1
* Products
    -> updated with new products
    -> added accessories
* Getting started
   -> re-structured getting started guide
   -> removed some of the advanced stuff
* Tutorials / Examples
   -> added categories
   -> added new basic tutorials Sleep, GPIO and Pring
   -> added WiFi ap / sta tutorial
   -> added wifi Scan MAC tutorial
* Firmware API
   -> added pysense pytrack pygate categories here
* Datasheets
   -> added CE FCC and RoHS documents
   -> added pysense2 and pytrack 2 templates
* Update firmware
   -> new section, added all methods of updating the firmware
* License
   -> put license in its own section

general remarks:
-> updated the layout / theme
   no more red code text
   codeblocks actually work now
-> general layout updates, removed the old html structures (mostly)
2020-07-09 12:57:44 +02:00

2.4 KiB

title, aliases
title aliases
FTP & Telnet
gettingstarted/programming/ftp.html
gettingstarted/programming/ftp.md
chapter/gettingstarted/programming/ftp

There is a small internal file system accessible with each Pycom device, called /flash. This is stored within the external serial flash memory. If a microSD card is also connected and mounted, it will be available as well. When the device starts up, it will always boot from the boot.py located in the /flash file system.

The first time(s), your device will create an Access Point (AP) you can connect to using your computer's WiFi.

By default, the device will create a WiFi access point with the following credentials:

  • SSID: xxpy-wlan-####
  • Password: www.pycom.io

Note: This method of connection is not recommended for first time users. It is possible to lock yourself out of the device, requiring a USB connection.

Once connected to this network you will be able to access the telnet and FTP servers running on the LoPy4.

The file system is accessible via the native FTP server running on each Pycom device. Open an FTP client and connect to:

  • url: ftp://192.168.4.1
  • username: micro
  • password: python

See network.server for information on how to change the defaults. The recommended clients are:

  • macOS/Linux: default FTP client
  • Windows: Filezilla and FireFTP

For example, from a macOS/Linux terminal:

$ ftp 192.168.4.1

The FTP server doesn't support active mode, only passive mode. Therefore, if using the native unix FTP client, immediately after logging in, run the following command:

ftp> passive

The FTP server only supports one connection at a time. If using other FTP clients, please check their documentation for how to limit the maximum allowed connections to one at a time.

FileZilla

If using FileZilla, it's important to configure the settings correctly.

Do not use the quick connect button. Instead, open the site manager and create a new configuration. Within the General tab, ensure that encryption is set to: Only use plain FTP (insecure).

In the Transfer Settings tab, limit the max number of connections to one. Other FTP clients may behave in a similar ways; visit their documentation for more specific information.