Cose che ho letto

sabato 19 aprile 2014

How to install PySerial on Intel Galileo

How to manually install PySerial on Intel Galileo Arduino, without pip, easy install or another script

For the original version of this article, click here

Thanks to  Anonymous user that has translated it




# Use a web browser to download the file:
# http://downloads.openwrt.org/backfire/10.03.1/x86_generic/packages/pyserial_2.4-1_x86.ipk

# In a Host (Mac/Windows/Linux) Bash shell:
cd {to the directory where you downloaded the *.ipk file}
tar xvfz pyserial_2.4-1_x86.ipk
tar xvfz data.tar.gz
cd ./usr/lib/python2.6/site-
packages/
tar -czf serial.tar.gz serial

# Copy the focused *.gz to the Galileo
scp serial.tar.gz root@{Your Galileo IP Address}:/usr/lib/python2.7/site-packages/

# Log into the Galileo using SSH
ssh root@{Your Galileo IP Address}
cd /usr/lib/python2.7/site-packages/
tar xvf serial.tar.gz

######################
# Test Installation on the Galileo
######################

# Launch Python
python

# Load the Serial libary
import serial

Nessun commento:

Posta un commento