Install pyserial on linino offline

Hy everybody,
sorry if my question has already been done, but i'm not able to find a solution.

I need to install pyserial on linino in order to talk to the mcu side via a serial port.
The problem is that I cant connect the Yun to the internet and so I cannot use

opkg install pyserial

is there a way to download it on the pc, transfer it via WinSCP on the Yun and then install it locally?

Thank you!

I am sorry, but i did not know the answer of your question, but i can offer you a work around.

This workaround might be a little bit crappy, but it works. Let the os handle all the communication stuff and just output something into the consol.

import os
os.system("echo " + outputString + " > /dev/ttyATH0")

The arduino can read and responed to the output on Serial1.

I hope that this might help you :slight_smile:

Langhalsdino

Hi

of course you can, opkg supports both remote repositories and local files:
http://wiki.openwrt.org/doc/techref/opkg

so basically download the package, transfer to your Yun and run opkg install <path_to_the_ipk_file>

Here you can find the package list where you can download packages.

http://downloads.arduino.cc/openwrtyun/1/packages/index.html

Then you can copy the package file in the Yun using WinSCP or equivalent software. It is better to copy the package in /tmp so the Yun will store the file in the RAM and the copy process will be faster.