tty/README
author Dave Page <dave.page@gleeble.com>
Thu, 26 Mar 2015 15:16:21 -0400
changeset 2609 777d1a8b3a27
parent 1577 fa3f66b783c1
permissions -rw-r--r--
Integrate skeleton of allow_overlapping_pdos from af21f0bdc7c9
Overlapping PDO API added, but not active/working.
No more changes than required to build.
EC_IOCTL_VERSION_MAGIC now 30
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!