uPyLoader - simple file transfer and communication
-
- Posts: 35
- Joined: Tue Aug 09, 2016 6:56 pm
uPyLoader - simple file transfer and communication
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.
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
@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
What is your opinion... and opinion of others?
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
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.
-
- Posts: 35
- Joined: Tue Aug 09, 2016 6:56 pm
Re: uPyLoader - simple file transfer and communication
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
Thank you and I look forward to the result.
Re: uPyLoader - simple file transfer and communication
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 ~ $
Yes Frida is my watchdog!
Re: uPyLoader - simple file transfer and communication
sudo apt-get install python3-pyqt5 python-pyqt5
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: uPyLoader - simple file transfer and communication
Try:
Code: Select all
$ sudo apt-get install python3-pyqt5
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
-
- Posts: 35
- Joined: Tue Aug 09, 2016 6:56 pm
Re: uPyLoader - simple file transfer and communication
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
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 $
Of course, it should be python3 main.py
Now it is up running and testing.
Thank you very much.
Yes Frida is my watchdog!
-
- Posts: 35
- Joined: Tue Aug 09, 2016 6:56 pm
Re: uPyLoader - simple file transfer and communication
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.Frida wrote:Next stone!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 $
Of course, it should be python3 main.py
Now it is up running and testing.
Thank you very much.