看板 LinuxDev 關於我們 聯絡資訊
小弟現在將USBtoRS232接到 Davinci的板子上, 但是在程式中OPEN ttyUSB0會回報錯誤 執行cat /dev/ttyUS0會得到下列訊息 cat /dev/ttyUSB0 drivers/usb/serial/usb-serial.c: serial_open drivers/usb/serial/pl2303.c: pl2303_open - port 0 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0 1 - 2 drivers/usb/serial/pl2303.c: 0x40:0x1:0x404:0x0 0 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0 1 - 2 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8383:0x0 1 - 0 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0 1 - 2 drivers/usb/serial/pl2303.c: 0x40:0x1:0x404:0x1 0 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8484:0x0 1 - 2 drivers/usb/serial/pl2303.c: 0xc0:0x1:0x8383:0x0 1 - 0 drivers/usb/serial/pl2303.c: 0x40:0x1:0x0:0x1 0 drivers/usb/serial/pl2303.c: 0x40:0x1:0x1:0x0 0 drivers/usb/serial/pl2303.c: 0x40:0x1:0x2:0x44 0 drivers/usb/serial/pl2303.c: 0x40:0x1:0x8:0x0 0 drivers/usb/serial/pl2303.c: 0x40:0x1:0x9:0x0 0 drivers/usb/serial/pl2303.c: pl2303_set_termios - port 0 drivers/usb/serial/pl2303.c: 0xa1:0x21:0:0 7 - 80 25 0 0 0 0 0 drivers/usb/serial/pl2303.c: pl2303_set_termios - data bits = 8 drivers/usb/serial/pl2303.c: pl2303_set_termios - baud = 9600 drivers/usb/serial/pl2303.c: pl2303_set_termios - stop bits = 1 drivers/usb/serial/pl2303.c: pl2303_set_termios - parity = none drivers/usb/serial/pl2303.c: 0x21:0x20:0:0 7 drivers/usb/serial/pl2303.c: set_control_lines - value = 3, retval = 0 drivers/usb/serial/pl2303.c: 0xa1:0x21:0:0 7 - 80 25 0 0 0 0 8 drivers/usb/serial/pl2303.c: pl2303_open - submitting read urb drivers/usb/serial/pl2303.c: pl2303_open - submitting interrupt urb drivers/usb/serial/pl2303.c: pl2303_close - port 0 drivers/usb/serial/pl2303.c: pl2303_close - shutting down urbs drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - port 0 drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - urb->status = -2 drivers/usb/serial/pl2303.c: pl2303_read_bulk_callback - unable to handle the error, exiting. drivers/usb/serial/pl2303.c: set_control_lines - value = 0, retval = 0 drivers/usb/serial/usb-serial.c: serial_close - port 0 cat: /dev/ttyUSB0: Protocol error 錯誤似乎是urb->status的狀態為-ENOENT, 但是我查不出來發生的原因 有知道的版友可以指點一下迷津嗎 多謝 Linux kernel version 為 2.6.10 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.222.84.162
TroyLee:拿去換一條...有些品質不是很好.....我現在都用自己lay的 02/18 19:08
TroyLee:(換一家的線) 02/18 19:32
aher2600:我試過兩條了,在XP下都可正常使用 02/18 19:54
TroyLee:那我就不了了, 會不會是少放什麼module 02/18 22:12
motics:pl2303?pl2303x? 02/19 21:00
aher2600:chip是pl2303 02/20 10:20