User Tools

Site Tools


linux:serial_ports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:serial_ports [2020/09/30 11:30] utedasslinux:serial_ports [2022/09/12 00:30] (current) – external edit 127.0.0.1
Line 4: Line 4:
   * socat -- Command   * socat -- Command
   * fuse -- Filesystem in userspace   * fuse -- Filesystem in userspace
-  * pipes -- Heave data between processes+  * <del>named pipes -- Heave data between processes</del> <color #ed1c24>One-way</color>
  
  
 +^ Method ^ Description ^ Pros ^ Cons ^ Dependencies ^
 +| pty    | Virtual terminal device | Full duplex     | Must create links to name them         | native      |
 +| socat  | Multipurpose relay      | Super flexible  | External program.\\ Maybe less control | socat       |
 +| fuse   | Filesystem in userspace | ??              | ????                                   | libfuse-dev |
 +| fifo   | Named pipes             | Simple          | One-way only                           | native      |
 ====== Scratchpad ====== ====== Scratchpad ======
 +
 +[[https://www.gnu.org/software/libc/manual/pdf/libc.pdf|glibc manual]] -- Innehåller massa bra info!
 +
 +[[https://linux.die.net/man/3/termios|termios man page]]
 +
 +[[https://linux.die.net/man/4/tty_ioctl|tty_ioctl man page]]
 +
 +[[http://kirste.userpage.fu-berlin.de/chemnet/use/info/libc/libc_12.html#SEC237|Seting up terminals]]
 +
 +[[https://www.cmrr.umn.edu/~strupp/serial.html|Serial programming guide for posix]]
  
 <code> <code>
Line 19: Line 34:
 ioctl_tty ioctl_tty
  
-Använd noncanonical input processing mode+Använd noncanonical input processing mode för att kunna styra RTS och DTR
  
 termios.h är en grej termios.h är en grej
Line 61: Line 76:
  
 </code> </code>
 +
 +[[https://man7.org/linux/man-pages/man2/poll.2.html|Polla för satan!]]
 +
 +[[https://man7.org/linux/man-pages/man7/signal.7.html|Läs på om signaler!]]
 +
 +
  
 ====== Serial port basics ====== ====== Serial port basics ======
linux/serial_ports.1601465445.txt.gz · Last modified: 2022/09/12 00:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki