Difference between revisions of "Modbus RTU serial port"
From Proview Wiki
(Created page with "<p>In order to use a serial port, (pwrp) user must be a part of '''dialout''' group<br />The port device (name) may be /dev/ttyS0 (for a pci card) or /dev/ttyMI0 (Moxa card) o...") |
|||
Line 1: | Line 1: | ||
− | + | * In order to use a serial port, (pwrp) user must be a part of '''dialout''' group | |
+ | * The port device has to be set to 0777 permission | ||
+ | |||
+ | * The port device (name) may be /dev/ttyS0 (for a pci card) or /dev/ttyMI0 (Moxa card) or /dev/ttyUSB0 (usb/serial converter) | ||
+ | <br /> | ||
+ | |||
+ | Examples of useful commands:<br /> | ||
+ | |||
+ | |||
+ | chmod 0777 /dev/ttyS0<br /> | ||
+ | |||
+ | chmod a+rw /dev/usb/002/003 <br /> | ||
+ | |||
+ | ls -l /dev/ttyS0<br /> | ||
+ | |||
+ | lsusb<br /> | ||
+ | |||
+ | |||
+ | dmesg | grep tty |
Latest revision as of 04:50, 27 August 2013
- In order to use a serial port, (pwrp) user must be a part of dialout group
- The port device has to be set to 0777 permission
- The port device (name) may be /dev/ttyS0 (for a pci card) or /dev/ttyMI0 (Moxa card) or /dev/ttyUSB0 (usb/serial converter)
Examples of useful commands:
chmod 0777 /dev/ttyS0
chmod a+rw /dev/usb/002/003
ls -l /dev/ttyS0
lsusb
dmesg | grep tty