こんばんは、奥井です。 USB-RS232変換ケーブルでマイコンとLinuxで繋ぎたいのですがどうもうまくいきません。 マイコン(Propeller)にアスキーコードでゼロを送ったらLEDが点灯するプログラムを書き込んでWindowsの通信ターミナルとマイコンは通信できてますがLinuxとは通信できません。通信は8bit no-parity 1stop-bit speed 9600 USB-RS232変換ケーブル接続時に/var/log/messagesにメッセージがあるので認識はできてるいと思います。 Jul 12 22:16:35 proside kernel: usb 1-1.2: new full speed USB device using uhci_hcd and address 3 Jul 12 22:16:35 proside kernel: usb 1-1.2: configuration #1 chosen from 1 choice Jul 12 22:16:45 proside kernel: usbcore: registered new driver usbserial Jul 12 22:16:45 proside kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic Jul 12 22:16:45 proside kernel: usbcore: registered new driver usbserial_generic Jul 12 22:16:45 proside kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core Jul 12 22:16:45 proside kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device Jul 12 22:16:45 proside kernel: ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected Jul 12 22:16:45 proside kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232BM Jul 12 22:16:45 proside kernel: usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0 Jul 12 22:16:45 proside kernel: usbcore: registered new driver ftdi_sio Jul 12 22:16:45 proside kernel: drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver Jul 12 22:28:28 proside kernel: usb 1-1.2: USB disconnect, address 3 Jul 12 22:28:28 proside kernel: ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 Jul 12 22:28:28 proside kernel: ftdi_sio 1-1.2:1.0: device disconnected Jul 12 22:56:46 proside kernel: usb 1-1.2: new full speed USB device using uhci_hcd and address 4 Jul 12 22:56:46 proside kernel: usb 1-1.2: configuration #1 chosen from 1 choice Jul 12 22:56:46 proside kernel: ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected Jul 12 22:56:46 proside kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232BM Jul 12 22:56:46 proside kernel: usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0 Jul 12 22:58:26 proside kernel: usb 1-1.2: USB disconnect, address 4 Jul 12 22:58:26 proside kernel: ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 Jul 12 22:58:26 proside kernel: ftdi_sio 1-1.2:1.0: device disconnected Linuxから以下で0を送りましたがLEDは点灯しないのでデータが送れていないようです。 # echo -n 0 > /dev/ttyUSB0 Linuxの設定 [root@proside m500]# stty -a < /dev/ttyUSB0 speed 9600 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke 何か設定が必要なんでしょうか? ヒントなどご教授お願いします。