2007. 11. 3. 22:04 Unix/Linux

Linux에서 USB-Serial

해봐야지..

http://ftp.linuxchannel.net/apps/kernel/Documentation/usb/usb-serial.txt

○ If you are not using devfs:
    The major number that the driver uses is 188 so to use the driver,
    create the following nodes:

          mknod /dev/ttyUSB0 c 188 0
          mknod /dev/ttyUSB1 c 188 1
          mknod /dev/ttyUSB2 c 188 2
          mknod /dev/ttyUSB3 c 188 3
           .
           .
           .
          mknod /dev/ttyUSB254 c 188 254
          mknod /dev/ttyUSB255 c 188 255

○ If you are using devfs:
    The devices supported by this driver will show up as
          /dev/usb/tts/{0,1,...}

○ Generic Serial driver

If your device is not one of the above listed devices, compatible with
the above models, you can try out the "generic" interface. This
interface does not provide any type of control messages sent to the
device, and does not support any kind of device flow control. All that
is required of your device is that it has at least one bulk in endpoint,
or one bulk out endpoint.
 
To enable the generic driver to recognize your device, build the driver
as a module and load it by the following invocation:

       insmod usbserial vendor=0x#### product=0x####

where the #### is replaced with the hex representation of your device's
vendor id and product id.

반응형
Posted by She쥐포s

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함