FiPy - getting started
-
...and yet, although I consider this a progress, there are problems uploading the files...sometimes it is successful and sometimes it is not...
Uploading to /flash... Reading file status Failed to read project status, uploading all files Creating dir lib [1/5] Writing file boot.py (0kb) [2/5] Writing file lib/L76GNSS.py (3kb) [3/5] Writing file lib/LIS2HH12.py (6kb) [4/5] Writing file lib/pytrack.py (1kb) [5/5] Writing file main.py (0kb) Failed to write file, trying again... Failed to write file, trying again... Uploading to /flash... Reading file status Failed to read project status, uploading all files Creating dir lib [1/5] Writing file boot.py (0kb) [2/5] Writing file lib/L76GNSS.py (3kb) Failed to write file, trying again... Failed to write file, trying again... timeout [3/5] Writing file lib/LIS2HH12.py (6kb) Failed to write file, trying again... Failed to write file, trying again... timeout
...and I can't figure out why...switching to other tools is just sweeping the problem under the rug...besides using VSCode is very convenient when it works...
-
@robert-hh said in FiPy - getting started:
import uos
uos.listdir("")I reconnected LTE antenna (I realized it was connected to the wrong spot on FiPy).
I connected FiPy (which is mounted on PyTrack) to the laptop with mini USB and clicked on Connect - it got me connected.
Then I issued the commands abouve on REPL and got this:x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', 'main.py', 'sys', 'lib', 'cert', 'boot.py', 'project.pymakr'] Upload done, resetting board... OKets Jun 8 2016 00:22:57 rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8020,len:8 load:0x3fff8028,len:2136 load:0x4009fa00,len:19880 entry 0x400a05d0 Smart Provisioning started in the background See https://docs.pycom.io/smart for details Traceback (most recent call last): File "main.py", line 18 SyntaxError: invalid syntax Pycom MicroPython 1.20.1.r1 [v1.11-3138a13] on 2019-10-08; FiPy with ESP32 Pybytes Version: 1.1.3 Type "help()" for more information. >>>
which is actually very good...since it shows some errors in my code but shows that the files got actually loaded...
So I made no changes to anything except reconnected antenna to correct socket...
-
@securigy The default IP address of a pycom board is 192.168.4.1, and it starts as Access point. So you have to re-configure your PC to connect it. If you want to use your device regularly in your local network, better configure it to the STA mode and let it connect to your local router. Instructions are here: https://docs.pycom.io/tutorials/all/wlan/ in the section: "Connecting to a router"
Question: In a terminal emulator like putty or the pymakr teminal window, you you get the REPL prompt? If yes, you can check using pyton commands, if files are present, like with:
import uos
uos.listdir("")You can also use adafruit ampy or rshell as the very basic tool to upload scripts. I'm not saying that this is the best procedure. But Integrated environments like Pymakr/VSCode sometimes hide the problems.
Install ampy or rshell with:pip install adafruit-ampy
pip install rshell