複数のArduinoをUSB経由でLinuxコンピューターに接続している場合、次のように表示されます
- / tty / ACM0
- / tty / ACM1
- / tty / ACM2
シリアル接続を介してそれらに接続せずに、どのArduinoがどれであるかをどのように識別することができますか?Arduinoにシリアル番号または一意のIDはありますか?
お時間をいただきありがとうございます。
状況:Uno R3、Mega、Leonardo with / ttyACM [1,2,3]
上記の順序のデバイスでのlsusb出力:
... バス001デバイス011:ID 2341:0043 バス001デバイス013:ID 2341:8036 ... バス001デバイス014:ID 2341:0042
lsusb -d vendor:device -vvvはそれぞれについて表示します
ウノ
バス001デバイス014:ID 2341:0042
デバイス記述子:
長さ18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2通信
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2341
idProduct 0x0042
bcdDevice 0.01
iManufacturer 1 Arduino(www.arduino.cc)
iProduct 2
iSerial 220 55330313735351910141
bNumConfigurations 1
構成記述子:
長さ9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
セルフパワード
MaxPower 100mA
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2通信
bInterfaceSubClass 2 Abstract(モデム)
bInterfaceProtocol 1 ATコマンド(v.25ter)
iInterface 0
CDCヘッダー:
bcdCDC 10.01
CDC ACM:
bmCapabilities 0x06
休憩を送ります
ラインコーディングとシリアル状態
CDCユニオン:
bMasterInterface 0
bSlaveInterface 1
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
転送タイプ割り込み
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0008 1x 8バイト
bInterval 255
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDCデータ
bInterfaceSubClass 0未使用
bInterfaceProtocol 0
iInterface 0
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
転送タイプバルク
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 1
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
転送タイプバルク
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 1
デバイスステータス:0x0000
(バスパワー)
レオナルド:
バス001デバイス013:ID 2341:8036
デバイス記述子:
長さ18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0(インターフェイスレベルで定義)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2341
idProduct 0x8036
bcdDevice 1.00
iManufacturer 1 Arduino LLC
iProduct 2 Arduino Leonardo
iSerial 0
bNumConfigurations 1
構成記述子:
長さ9
bDescriptorType 2
wTotalLength 100
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(バスパワー)
MaxPower 500mA
インターフェイスの関連付け:
長さ8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 2通信
bFunctionSubClass 2 Abstract(モデム)
bFunctionProtocol 1 ATコマンド(v.25ter)
iFunction 0
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2通信
bInterfaceSubClass 2 Abstract(モデム)
bInterfaceProtocol 0なし
iInterface 0
CDCヘッダー:
bcdCDC 1.10
CDCコール管理:
bmCapabilities 0x01
通話管理
bDataInterface 1
CDC ACM:
bmCapabilities 0x06
休憩を送ります
ラインコーディングとシリアル状態
CDCユニオン:
bMasterInterface 0
bSlaveInterface 1
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
転送タイプ割り込み
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 0
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
転送タイプバルク
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 0
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3ヒューマンインターフェイスデバイス
bInterfaceSubClass 0サブクラスなし
bInterfaceProtocol 0なし
iInterface 0
HIDデバイス記述子:
長さ9
bDescriptorType 33
bcdHID 1.01
bCountryCode 0サポートされていません
bNumDescriptors 1
bDescriptorType 34レポート
wDescriptorLength 101
レポート記述子:(長さは101)
アイテム(グローバル):使用状況ページ、データ= [0x01] 1
汎用デスクトップコントロール
アイテム(ローカル):使用法、データ= [0x02] 2
マウス
アイテム(メイン):コレクション、データ= [0x01] 1
応用
アイテム(ローカル):使用法、データ= [0x01] 1
ポインタ
アイテム(メイン):コレクション、データ= [0x00] 0
物理的
アイテム(グローバル):レポートID、データ= [0x01] 1
アイテム(グローバル):使用状況ページ、データ= [0x09] 9
ボタン
アイテム(ローカル):最小使用量、データ= [0x01] 1
ボタン1(プライマリ)
アイテム(ローカル):最大使用量、データ= [0x03] 3
ボタン3(三次)
アイテム(グローバル):論理最小値、データ= [0x00] 0
アイテム(グローバル):論理最大値、データ= [0x01] 1
アイテム(グローバル):レポート数、データ= [0x03] 3
アイテム(グローバル):レポートサイズ、データ= [0x01] 1
アイテム(メイン):入力、データ= [0x02] 2
データ変数Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatileビットフィールド
アイテム(グローバル):レポート数、データ= [0x01] 1
アイテム(グローバル):レポートサイズ、データ= [0x05] 5
アイテム(メイン):入力、データ= [0x03] 3
定数変数絶対No_Wrap線形
Preferred_State No_Null_Position Non_Volatileビットフィールド
アイテム(グローバル):使用状況ページ、データ= [0x01] 1
汎用デスクトップコントロール
アイテム(ローカル):使用法、データ= [0x30] 48
方向X
アイテム(ローカル):使用法、データ= [0x31] 49
方向-Y
アイテム(ローカル):使用法、データ= [0x38] 56
ホイール
アイテム(グローバル):論理最小値、データ= [0x81] 129
アイテム(グローバル):論理最大値、データ= [0x7f] 127
アイテム(グローバル):レポートサイズ、データ= [0x08] 8
アイテム(グローバル):レポート数、データ= [0x03] 3
アイテム(メイン):入力、データ= [0x06] 6
データ変数相対No_Wrap線形
Preferred_State No_Null_Position Non_Volatileビットフィールド
アイテム(メイン):コレクションの終了、データ=なし
アイテム(メイン):コレクションの終了、データ=なし
......
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
転送タイプ割り込み
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 1
デバイスステータス:0x0000
(バスパワー)
Mega256:
バス001デバイス014:ID 2341:0042
デバイス記述子:
長さ18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2通信
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2341
idProduct 0x0042
bcdDevice 0.01
iManufacturer 1 Arduino(www.arduino.cc)
iProduct 2
iSerial 220 55330313735351910141
bNumConfigurations 1
構成記述子:
長さ9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
セルフパワード
MaxPower 100mA
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2通信
bInterfaceSubClass 2 Abstract(モデム)
bInterfaceProtocol 1 ATコマンド(v.25ter)
iInterface 0
CDCヘッダー:
bcdCDC 10.01
CDC ACM:
bmCapabilities 0x06
休憩を送ります
ラインコーディングとシリアル状態
CDCユニオン:
bMasterInterface 0
bSlaveInterface 1
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
転送タイプ割り込み
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0008 1x 8バイト
bInterval 255
インターフェイス記述子:
長さ9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDCデータ
bInterfaceSubClass 0未使用
bInterfaceProtocol 0
iInterface 0
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
転送タイプバルク
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 1
エンドポイント記述子:
長さ7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
転送タイプバルク
同期タイプなし
使用タイプデータ
wMaxPacketSize 0x0040 1x 64バイト
bInterval 1
デバイスステータス:0x0000
(バスパワー)

lsusb -vvv言う?