Go Down

Topic: YunRev2 - Problem to install pyserial in order to use Serial1 instead of Bridge (Read 616 times) previous topic - next topic



I am using a YunRev2 where the MPU samples a signal and then it sends the readings to the MCU/linino.

I am using the Bridge library (MPU side) and a python script in the linino side to work with the data, and send it to a server. But the transfer rate is too slow and I have read about "bypassing" the bridge and using instead the Serial1.

I think that in order to do that I have to install the pySerial module, but I was not able to do it... I tried:

opkg update 
opkg install pyserial

but I got:

Unknown package 'pyserial'.
Collected errors:
 * opkg_install_cmd: Cannot install package pyserial.

I have read the topic; https://forum.arduino.cc/index.php?topic=254326.0 where they talk about the opkg.conf file and replacing the http link there. But in my opkg.conf file there is not any http link to be replaced.

Apart from that I have read that I need as well to to disable the connection of the console to the serial port ttyATH0. That should be disabled in the /etc/inittab file. But my inittab does not have any reference to it, it just shows:

::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown

I do not know how to move forward, any help is welcome.

Besides please let me know any suggestion about seeping up the data transfer between the MPU and the MCU in Yun 2 (instead of using the Bridge)



I also need to disable the system use of /dev/ttyATH0. The file /etc/inittab has changed in Rev2 and no longer contains the reference to the device.

Having done a bit of poking about, I found the script /usr/bin/run-bridge.
So one solution might be to comment out the exec in the script.

Go Up