{"categories":["Linux"],"author_url":"https://blog.hatena.ne.jp/iww/","url":"https://iww.hateblo.jp/entry/20111108/stty","width":"100%","provider_name":"Hatena Blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","author_name":"iww","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20111108%2Fstty\" title=\"stty\u3067\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306e\u8a2d\u5b9a\u3092\u5168\u90e8\u30aa\u30d5\u306b\u3059\u308b - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://iww.hateblo.jp/","image_url":null,"published":"2011-11-08 17:48:12","height":"190","title":"stty\u3067\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306e\u8a2d\u5b9a\u3092\u5168\u90e8\u30aa\u30d5\u306b\u3059\u308b","type":"rich","description":"\u5f8c\u5148\u8003\u3048\u305a\u3068\u306b\u304b\u304f\u5168\u90e8\u6a5f\u80fd\u30aa\u30d5\u3059\u308b int fd; struct termios tio = { .c_cflag = CS8 | CLOCAL | CREAD }; fd = open( \"/dev/ttyS0\", O_RDWR | O_NOCTTY | O_NONBLOCK ); cfsetospeed( &tio, B2400 ); cfsetispeed( &tio, B2400 ); tcsetattr(fd,TCSANOW,&tio); \u540c\u3058\u3053\u3068\u3092stty\u30b3\u30de\u30f3\u30c9\u3067\u3084\u308b stty -F /dev/ttyS0 0:0:8bb:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0\u2026"}