
Ubuntu日本語フォーラム

ログインしていません。
ubuntu14.04LTSを使用しています.
北陽製のurg-04lx-ug01レーザーレンジファインダーが認識できません.
usb接続後,urg-04lx-ug01の電源がつき,起動している音はするのですが.
以下がコマンドの結果です.
よろしくお願いします.
$lsusb
Bus 003 Device 008: ID 15d1:0000
$ lsusb -s 003:008 -v
Bus 003 Device 008: ID 15d1:0000
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x15d1
idProduct 0x0000
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 16
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
$ls -l ttyACM*
ls: ttyACM* にアクセスできません: そのようなファイルやディレクトリはありません
オフライン
Mocciさん,お返信ありがとうございます.
コマンド実行結果は以下です.
$lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 11: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 12: Dev 12, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 12: Dev 12, If 1, Class=CDC Data, Driver=cdc_acm, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
**usb接続を行ったあとは以下の行が追加されていました.
|__ Port 12: Dev 12, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 12: Dev 12, If 1, Class=CDC Data, Driver=cdc_acm, 12M
オフライン
takaton による投稿:
**usb接続を行ったあとは以下の行が追加されていました.
|__ Port 12: Dev 12, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 12: Dev 12, If 1, Class=CDC Data, Driver=cdc_acm, 12M
この出力を見る限り、デバイスドライバーとしてcdc_acmが適用されているようです。
takaton による投稿:
$ls -l ttyACM*
ls: ttyACM* にアクセスできません: そのようなファイルやディレクトリはありません
おそらく「/dev/ttyACM0」という特殊ファイルがシステムに追加されていると思います。
そちらを確認してみてください。
オフライン
Mocchiさんお返事ありがとうございます.
/dev/ttyACM0を確認できました.
一応,vimで開いてみましたが参照できませんでした.
オフライン
takaton による投稿:
Mocchiさんお返事ありがとうございます.
/dev/ttyACM0を確認できました.
一応,vimで開いてみましたが参照できませんでした.
この特殊ファイルに対して操作を行えば、このUSBデバイスと通信したデータを取得できるはずです。
が、この先どうすればいいのかは、私にはわかりかねます。データの取得方法やそのパース方法、パースした内容などはそれぞれのデバイスによるからです。
WWWをざっと検索したところ、以下の講義資料を見つけました。
移動ロボットの行動プログラミング 第3回 測域センサの使い方 (2012年度 筑波大学情報学類 情報科学実験III)
http://openspur.org/~atsushi.w/jikken/task-3.html
ご参考まで。
オフライン
Mocchiさん,お返事ありがとうございます.
解決しました.
原因はディレクトリの指定をちゃんと指定してなかったことでした.
すいません.
凡ミスです….
$ls -l /dev/ttyACM*
で接続確認できました.
ありがとうございました.
オフライン