Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Accessing Micro Python on the IoT NodeIntroduction | ||||||||
Line: 49 to 49 | ||||||||
For IoT we need in addition: MQTTfx ( http://www.jensd.de/apps/mqttfx/1.7.0![]() | ||||||||
Added: | ||||||||
> > | For Windows usersThe installation of the tools is similar as for Ubuntu. You must install realterm![]() ![]() | |||||||
Installing uPyCraft and burning micropython into the WeMos D1 mini flashTo install uPyCraft, clone it with git: | ||||||||
Line: 57 to 68 | ||||||||
cd uPyCraft-Qt5 | ||||||||
Changed: | ||||||||
< < | ./uPyCraft.py | |||||||
> > | ./uPyCraft.py (you may also want try the binary uPyCraft found in the dist directory) | |||||||
It should ask you if you want the examples to be installed to which you answer "yes" |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Accessing Micro Python on the IoT NodeIntroduction | ||||||||
Line: 30 to 30 | ||||||||
sudo pip3 install package name. I had to install the following packages: | ||||||||
Changed: | ||||||||
< < | PyQt5, pyserial, pyflakes, sip, qscintilla, esptool, pyparsing, pyinstaller, thonny | |||||||
> > | PyQt5, pyserial, pyflakes, sip, qscintilla, esptool, pyparsing, pyinstaller, thonny, thonny-esp | |||||||
In addition I needed to install python3-tk with apt to have access to tkinter in Python. | ||||||||
Line: 53 to 53 | ||||||||
To install uPyCraft, clone it with git: | ||||||||
Changed: | ||||||||
< < | git clone https://github.com/uraich/uPyCraft-Qt5.git_![]() | |||||||
> > | git clone https://github.com/uraich/uPyCraft-Qt5.git![]() | |||||||
cd uPyCraft-Qt5 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Accessing Micro Python on the IoT NodeIntroduction | ||||||||
Line: 9 to 9 | ||||||||
When trying to install the Linux binary ![]() | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Even tough I managed to run the program and the main window came up on the screen, most of the functions gave problems. The Qt5 version even more than the Qt4 version. Finally I decided to modify the QT5 version of the program myself and to try correct the errors one be one until the program could be used for the AFNOG workshop. Since the original documentation is also obsolete I re-wrote it for my new version.![]() Getting the tools to work starting from a freshly installed Ubuntu | ||||||||
Line: 17 to 17 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
These can easily be installed with apt. To get the basic configuration ready for minicom, start it with sudo minicom -s. Use /dev/ttyUSB0 as serial port and set it to 115200 baud. Save this configuration as default. | ||||||||
Line: 29 to 30 | ||||||||
sudo pip3 install package name. I had to install the following packages: | ||||||||
Changed: | ||||||||
< < | PyQt5, pyserial, pyflakes, sip, qscintilla, esptool, thonny | |||||||
> > | PyQt5, pyserial, pyflakes, sip, qscintilla, esptool, pyparsing, pyinstaller, thonny | |||||||
In addition I needed to install python3-tk with apt to have access to tkinter in Python. | ||||||||
Changed: | ||||||||
< < | Here is the complete list of additional modules I installed with apt: | |||||||
> > | Here is the list of additional modules I installed with apt: | |||||||
emacs, vlc,audacity, gimp, git, subversion,mercurial,build-essentials, qtcreator, qt5-default, qt5-doc, qt5-doc-html, qtbase5-doc-html, qtbase5-examples | ||||||||
Changed: | ||||||||
< < | qt4-dev-tools, qt4-doc, qt4-qt-config, qt4-demos, qt4-designer, libqwt5-qt4 libqwt5-qt4-dev | |||||||
> > | qt4-dev-tools, qt4-doc, qt4-qt-config, qt4-demos, qt4-designer, libqwt5-qt4 libqwt5-qt4-dev, esptool | |||||||
skype for linux, apache2, gdebi, mysql-server php-mysql | ||||||||
Line: 48 to 49 | ||||||||
For IoT we need in addition: MQTTfx ( http://www.jensd.de/apps/mqttfx/1.7.0![]() | ||||||||
Added: | ||||||||
> > | Installing uPyCraft and burning micropython into the WeMos D1 mini flash | |||||||
Changed: | ||||||||
< < | Accessing micro Python over WiFi | |||||||
> > | To install uPyCraft, clone it with git:
git clone https://github.com/uraich/uPyCraft-Qt5.git_![]() Accessing micropython over WiFi | |||||||
Unfortunately uPyCraft relies on the serial connection between the PC on which it runs and micro Python on the IoT node. When taking the ESP01 off its "programmer" this serial connection will be cut and uPyCraft, in its current state, cannot be used any longer. It is however possible to enable webrepl on the micro Python node, allowing access to the REPL loop through a websocket interface. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Accessing Micro Python on the IoT NodeIntroduction | ||||||||
Line: 45 to 45 | ||||||||
tkdiff,meld | ||||||||
Added: | ||||||||
> > | For IoT we need in addition: MQTTfx ( http://www.jensd.de/apps/mqttfx/1.7.0![]() | |||||||
... and I probably missed quite a few
Accessing micro Python over WiFi |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Accessing Micro Python on the IoT NodeIntroduction | ||||||||
Line: 11 to 11 | ||||||||
Even tough I managed to run the program and the main window came up on the screen, most of the functions gave problems. The Qt5 version even more than the Qt4 version. Finally I decided to modify the QT5 version of the program myself and to try correct the errors one be one until the program could be used for the AFNOG workshop. Since the original documentation is also obsolete I re-wrote it for my new version.![]() | ||||||||
Changed: | ||||||||
< < | Accessing micro Python over WiFi | |||||||
> > | Getting the tools to work starting from a freshly installed UbuntuQuite a few packages must be installed on Ubuntu before you can use the tools needed. The terminal emulators I installed where
Accessing micro Python over WiFi | |||||||
Unfortunately uPyCraft relies on the serial connection between the PC on which it runs and micro Python on the IoT node. When taking the ESP01 off its "programmer" this serial connection will be cut and uPyCraft, in its current state, cannot be used any longer. It is however possible to enable webrepl on the micro Python node, allowing access to the REPL loop through a websocket interface. | ||||||||
Line: 23 to 59 | ||||||||
and follow the instructions. | ||||||||
Changed: | ||||||||
< < | Then install the webrepl client ![]() | |||||||
> > | Then install the webrepl client ![]() ![]() | |||||||
![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Accessing Micro Python on the IoT NodeIntroductionOnce micro Python is running on the node we must be able to upload Python programs on the node and execute them there. In case of processor board with a micro-USB connector it is easy to connect to the micro Python REPL loop through a simple serial interface and a terminal emulator like minicom![]() ![]() ![]() ![]() Accessing micro Python over WiFiUnfortunately uPyCraft relies on the serial connection between the PC on which it runs and micro Python on the IoT node. When taking the ESP01 off its "programmer" this serial connection will be cut and uPyCraft, in its current state, cannot be used any longer. It is however possible to enable webrepl on the micro Python node, allowing access to the REPL loop through a websocket interface. In order for this to work we first must enable the webrepl server: Connect the node to the programmer to get access through the serial interface and type import webrepl-setup and follow the instructions. Then install the webrepl client![]() ![]() ![]() Comments
|