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/10/02 07:01] – [Possible alternatives for virtual serial ports] utedasslinux:serial_ports [2022/09/12 00:30] (current) – external edit 127.0.0.1
Line 7: Line 7:
  
  
-^ Method ^ Description ^ Pros ^ Cons ^ +^ Method ^ Description ^ Pros ^ Cons ^ Dependencies 
-| pty    | Virtual terminal device | Full duplex     | Must create links to name them       +| pty    | Virtual terminal device | Full duplex     | Must create links to name them         | native      
-| socat  | Multipurpose relay      | Super flexible  | External program.\\ Maybe less control | +| socat  | Multipurpose relay      | Super flexible  | External program.\\ Maybe less control | socat       
-| fuse   | Filesystem in userspace | ??              | ????                                 +| fuse   | Filesystem in userspace | ??              | ????                                   | libfuse-dev 
-| fifo   | Named pipes             | Simple          | One-way only                         |+| 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/3/termios|termios man page]]
Line 32: 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 74: 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.1601622111.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