我正在尝试通过TTL->RS-232转换器与串行设备通信。此转换器要求在DTR和RTS线路上提供电源。
// imports
extern crate serial; //see: https://dcuddeback.github.io/serial-rs/serial/index.html
use std::env;
use std::io;
use std::time::Duration;
use std::process::exit;
use std::io::prelude::*;
use serial::prelude::*;
use serial::{BaudRate, C