Epics@GSI Webhome

Tipps Serial Device Settings To Switch Off Every Hidden Manipulation


In the case of the Keithley 2000 Digital Voltmeter, we saw that a Windows device could easily communicate via the RS-232 Interface using SCPI commands. Linux systems on the other side, reacted to commands input but weren't able to read anything back. Fiddling around with the stty settings, M.Traxler, GSI found / tried / out exactly the same settings as used for the HadCon2 devices.


$> stty -F /dev/ttySx -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 19200

    • Output settings:
      do not post-process output
      do not translate newline to carriage return-newline
    • Local settings:
      do not enable interrupt, quit, and suspend special characters
      do not enable erase, kill, werase, and rprnt special characters
      do not enable non-POSIX special characters
      do not echo input characters
      do not echo erase characters as backspace-space-backspace
      do not echo a newline after a kill character
      do not echo control characters in hat notation ('^c')
      kill all line by obeying the echoctl and echok setting
      sets the speed to 19200 Bit/s

    Summarizing the settings prevent any additional manipulation of input or output.

-- PeterZumbruch - 2017-11-30
-- PeterZumbruch - 2020-11-09
Topic revision: r2 - 2020-11-09, PeterZumbruch - This page was cached on 2024-06-13 - 09:20.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)