uPyLoader - simple file transfer and communication

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Beta_Ravener
Posts: 21
Joined: Tue Aug 09, 2016 6:56 pm

uPyLoader - simple file transfer and communication

Postby Beta_Ravener » Thu Aug 11, 2016 1:33 am

Hi,
I've been tinkering with MicroPython on ESP8266 for a month or so and I've had hard time finding the right tools. I've tried ESPlorer but it didn't really work for me - I couldn't transfer files, nor run the scripts. I've then noticed that only reliable way to get files on board was using WebREPL or CLI. And while WebREPL is fairly good for start, it didn't cut it for me .

So I have decided to create my own application that could uniformly communicate with the board over WiFi and UART and support file transfer. Today, I've released it on GitHub: https://github.com/BetaRavener/uPyLoader/

It's written in (surprise!) Python. Currently looks something like this:
https://s9.postimg.org/ij6e9sqr3/u_Py_Loader.png

It would be great if you gave it a try and left me some feedback. I have provided some how-to instructions on the GitHub page but if anything is unclear, feel free to ask. Currently, it's in state when it's usable for me but it's nowhere near polished or bug-free, and the code is quite a mess. Still, it's working and if there are more people using it, I would be more than willing to further improve it ;)

Note: I know this should probably be in the general "Programs, Libraries and Tools", but so far I could only test this with ESP8266.

profra
Posts: 26
Joined: Sat Jan 03, 2015 12:23 am

Re: uPyLoader - simple file transfer and communication

Postby profra » Thu Aug 11, 2016 11:19 am

@Beta_Ravener Hi, I did only a brief test... this tool seems the best among all I tried... very useful for fast work... definitely worth to continue work on it...
a few notes:
a/ please do refresh list of files on remote module after "Save to MCU" as you do after "Remove"
b/ I have more "stations" with uPy on internal net... they have AP disabled, each has own IP address...
it would be nice to be able to connect with each... it means that your GUI with wifi connection should offer an IP address and port option... and remember last five-ten addresses :D
What is your opinion... and opinion of others?
Last edited by profra on Thu Aug 11, 2016 12:57 pm, edited 2 times in total.

Beta_Ravener
Posts: 21
Joined: Tue Aug 09, 2016 6:56 pm

Re: uPyLoader - simple file transfer and communication

Postby Beta_Ravener » Thu Aug 11, 2016 12:00 pm

Thanks for trying out, I will look into these issues ASAP and it should be done before tomorrow :) Watch the repo for updates.

profra
Posts: 26
Joined: Sat Jan 03, 2015 12:23 am

Re: uPyLoader - simple file transfer and communication

Postby profra » Thu Aug 11, 2016 12:52 pm

Thank you and I look forward to the result.

User avatar
Frida
Posts: 32
Joined: Sat Jan 30, 2016 2:20 pm
Location: Middelfart, Denmark

Re: uPyLoader - simple file transfer and communication

Postby Frida » Thu Aug 11, 2016 6:11 pm

Code: Select all

poul@poul-S400CA ~ $ pip install PyQt5
Collecting PyQt5
  Could not find a version that satisfies the requirement PyQt5 (from versions: )
No matching distribution found for PyQt5
poul@poul-S400CA ~ $

What to do?, I am on Linux Mint 18 64 bit
Yes Frida is my watchdog!

User avatar
deshipu
Posts: 931
Joined: Thu May 28, 2015 5:54 pm

Re: uPyLoader - simple file transfer and communication

Postby deshipu » Thu Aug 11, 2016 6:41 pm

sudo apt-get install python3-pyqt5 python-pyqt5

User avatar
pythoncoder
Posts: 1382
Joined: Fri Jul 18, 2014 8:01 am

Re: uPyLoader - simple file transfer and communication

Postby pythoncoder » Thu Aug 11, 2016 6:44 pm

Try:

Code: Select all

$ sudo apt-get install python3-pyqt5
Peter Hinch

Beta_Ravener
Posts: 21
Joined: Tue Aug 09, 2016 6:56 pm

Re: uPyLoader - simple file transfer and communication

Postby Beta_Ravener » Thu Aug 11, 2016 7:20 pm

As a last resort you can also try installing from source: http://pyqt.sourceforge.net/Docs/PyQt5/ ... rom-source

User avatar
Frida
Posts: 32
Joined: Sat Jan 30, 2016 2:20 pm
Location: Middelfart, Denmark

Re: uPyLoader - simple file transfer and communication

Postby Frida » Thu Aug 11, 2016 7:37 pm

Code: Select all

poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $ python main.py
  File "main.py", line 137
    dialog.exec()
              ^
SyntaxError: invalid syntax
poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $


Next stone!

Of course, it should be python3 main.py

Now it is up running and testing.

Thank you very much.
Yes Frida is my watchdog!

Beta_Ravener
Posts: 21
Joined: Tue Aug 09, 2016 6:56 pm

Re: uPyLoader - simple file transfer and communication

Postby Beta_Ravener » Thu Aug 11, 2016 8:48 pm

Frida wrote:

Code: Select all

poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $ python main.py
  File "main.py", line 137
    dialog.exec()
              ^
SyntaxError: invalid syntax
poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $


Next stone!

Of course, it should be python3 main.py

Now it is up running and testing.

Thank you very much.


Sorry for the troubles, I use Anaconda environment so there's only one version of python. Thanks for solving it out, I will update the instructions for others.


Return to “ESP8266 boards”

Who is online

Users browsing this forum: No registered users and 4 guests