[SUCCESS:] howto connect a TTY (emulator) on OlinuxIno's USB.

Started by flavigny, October 16, 2012, 07:18:27 pm

Previous topic - Next topic

flavigny

Hello,
not very important, it is my last dream.

For the hardware, I have invested $ 3. for two ttl-usb interfaces (as: http://cgi.ebay.fr/1pcs-USB-2-0-to-TTL-UART-6PIN-Module-Serial-Converter-CP2102-STC-PRGMR-/251039347548?pt=LH_DefaultDomain_0&hash=item3a731c735c )
CAUTION: choose a model known for your distro, at this time, I use Yocto enriched by Otavio (  http://tech.groups.yahoo.com/group/olinuxino/message/1530 ), including driver for Prolific PL2303, so, I choose: http://www.ebay.com/itm/USB-To-RS232-TTL-PL2303HX-Auto-Converter-Module-Converter-Adapter-For-arduino-/180953299346?_trksid=p3984.m1439.l2649&ssPageName=STRK:MEWNX:IT

I  link the two "Gnd" and cross Rx & Tx.

About software: I have modified getty command in '/etc/inittab' file :
1:2345:respawn:/sbin/getty 9600 /dev/ttyUSB0

for the interest of the solution, at this time I see:
- allow an access to linux without receiving unattended messages (as plug/unplug of usb devices).
- work at diferent speed, parity, ...; for instance 1200 bauds for French Minitel or even 50 bauds for original vintage TTY.
- may-be (to be confirmed) use ppp/slip giving ethernet on the serial link
- open more than one login
- ..., to be appended with your ideas.

I am happy!
Regards.
PO.

thomas41546

I used the linux program ttysnoop to redirect the tty console output to the USB-serial tty. It involves adding a ttysnoop command to the /etc/inittab file. I don't have the exact details but i can find them for you. I did it this way because it let me control olinuxino using a usb keyboard on the olinuxino while receiving the terminal data on my computer via USB-serial.