tty/README
author Florian Pose <fp@igh-essen.com>
Tue, 16 Feb 2010 11:16:05 +0100
changeset 1808 96adb3e6db74
parent 1577 fa3f66b783c1
permissions -rw-r--r--
Replaced deprecated init_MUTEX in tty code.
1577
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
$Id$
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
vim700: spelllang=en spell
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
Virtual TTY interface driver for EtherCAT slave supporting serial comm
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
Quick installation guide:
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
./configure --with-linux-dir=/your/linux/directory --enable-tty
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
make all modules
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
make modules_install install
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
rcethercat start
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
insmod tty/ec_tty.ko
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
insmod examples/tty/ec_tty_example.ko
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
The default settings for the serial line are 9600 8 N 1.
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
The tty example operates a Beckhoff EL6002 at ring position 1. For a short
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
test, connect port X1 with a serial port via null modem cable. If a minicom is
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
started on that port and the below command is entered, the output should be
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
visible in minicom:
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
echo "Hello World" > /dev/ttyEC0
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
fa3f66b783c1 Implemented reading direction of tty driver.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
Have a lot of fun!