Page 1 of 6

uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 1:33 am
by Beta_Ravener
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.

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 11:19 am
by profra
@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?

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 12:00 pm
by Beta_Ravener
Thanks for trying out, I will look into these issues ASAP and it should be done before tomorrow :) Watch the repo for updates.

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 12:52 pm
by profra
Thank you and I look forward to the result.

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 6:11 pm
by Frida

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

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 6:41 pm
by deshipu
sudo apt-get install python3-pyqt5 python-pyqt5

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 6:44 pm
by pythoncoder
Try:

Code: Select all

$ sudo apt-get install python3-pyqt5

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 7:20 pm
by Beta_Ravener
As a last resort you can also try installing from source: http://pyqt.sourceforge.net/Docs/PyQt5/ ... rom-source

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 7:37 pm
by Frida

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.

Re: uPyLoader - simple file transfer and communication

Posted: Thu Aug 11, 2016 8:48 pm
by Beta_Ravener
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.