Interfatarea se face cu senzori, intrerupatoare, motoare, relee, LEDuri etc, aplicatia de procesare a datelor o putem scrie in C, Python etc.
Am verificat daca Python este instalat si confirm ca WRTnode vine din fabrica cu Python instalat, excelent lucru - ne conectam la placa WRTnode asa cum este descris in episoadele anterioare (folosim un computer cu Linux (Ubuntu)) -
catalins@catalin-N:~$ ssh root@i.wrtno.de
*introducem parola placii WRTnode (stabilita de noi anterior):
root@i.wrtno.de's password:
BusyBox v1.22.1 (2014-08-13 19:31:12 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Bleeding Edge, r41508)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
*dupa ce apare promptul, incercam sa vedem daca Python functioneaza, primul program, celebrul "Hello world!" - comanda python :
root@OpenWrt:~# python
Python 2.7.3 (default, Jul 9 2014, 15:07:44)
[GCC 4.8.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "Hello world!"
Hello world!
>>> exit()
root@OpenWrt:~#
Deci functioneaza, deci putem sa incepem sa scriem cod si sa facem placa WRTnode utila!
Niciun comentariu:
Trimiteți un comentariu