HELP
is sent/retrieved from the master to the ATMEL with e.g. by listening to /dev/ttyUSBx
while sending the command to the same device, i.e. in the easiest case (including an endless while loop for an automatic reconnect) $> while :; do sleep 1; cat /dev/ttyUSBx; done &
$> echo "HELP" >/dev/ttyUSBx
x
by the corresponding integer
dialout
, use ls
and groups
to find out current settings $> ls -l /dev/ttyUSB*
crw-rw-rwT 1 root users 188, 0 Jan 21 10:38 /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 1 Jan 21 10:38 /dev/ttyUSB1
$> groups epics
epics : epics dialout epicsadm
stty
are working $> stty -F /dev/ttyUSBx -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 115200
echoctl
and echok
setting
$> stty -F /dev/ttyUSBx -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 115200
$> while :; do sleep 1; cat /dev/ttyUSBx; done &
$> echo "HELP" >/dev/ttyUSBx
x
by the corresponding integer
tmux
installed
~/bin
$> stty -F /dev/ttyUSBx -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 115200
$> hadcon /dev/ttyUSBx
x
by the corresponding integer
picocom --b 115200 -l /dev/ttyUSBx -d 8 -p n -f n --echo --omap crlf --imap lfcrlf
x
by the corresponding integer
/etc/udev/rules.d/99-serial-permissions.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", SYMLINK+="$env{ID_SERIAL}", GROUP="users", MODE="0666"
0403
a symbolic link /dev/
to the connected device SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ENV{ID_SERIAL}=="FTDI_FT232R_USB_UART_A100dQ2B", SYMLINK+="hadcon2", GROUP="users", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ENV{ID_SERIAL}=="FTDI_FT232R_USB_UART_A600801P", SYMLINK+="olimex", GROUP="users", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ENV{ID_SERIAL}=="FTDI_FT232R_USB_UART_A100*", RUN+="/usr/bin/stty -F /dev/$kernel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 115200 "
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ENV{ID_SERIAL}=="FTDI_FT232R_USB_UART_A801*", RUN+="/usr/bin/stty -F /dev/$kernel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 115200 "
udevadm info --export-db| grep FTDI| grep ID_SERIAL
udevadm control --reload-rules
udevadm trigger
4.6.2
a fix provides also direct access for Windows.
COM14
COM14
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
EXT | hadcon | manage | 1 K | 2014-01-07 - 18:08 | PeterZumbruch | hadcon |
txt | hadcon_command_only.pl.txt | manage | 2 K | 2014-01-08 - 01:17 | MichaelTraxler | send commands via serial interface |
txt | hadcon_command_only_pl.txt | manage | 2 K | 2014-01-08 - 01:18 | MichaelTraxler | send commands via serial interface |
PNG | putty-serial_basic.PNG | manage | 25 K | 2020-11-10 - 17:32 | PeterZumbruch | putty basic settings |
PNG | putty-serial_connection.PNG | manage | 33 K | 2020-11-10 - 17:32 | PeterZumbruch | putty connection settings |
PNG | putty-serial_terminal.PNG | manage | 35 K | 2020-11-10 - 17:33 | PeterZumbruch | putty terminal options |
EXT | slurp_serial | manage | 1 K | 2014-01-07 - 18:09 | PeterZumbruch | slurp_serial |