目次

last update: 2024/04

embOS RTOS用BSPパッケージ
第9章: USB-Deviceインターフェース
評価ボード:EK-RX671




テストサンプル

Demo Sample Application Folder:

Application
 └ _Exclude
     ├ USBD  .... USB Device各種クラス機能のデモサンプル
Sample説明
USB_BULK_PerformanceBULK(VENDOR)クラスを実装して通信速度を確認します
USB_CDC_EchoCDC-ACMクラスコンポーネントを実装して簡単なECHOサンプルを確認します
USB_CompositeDevice_CDC_MSDCDC + MSDのマルチファンクションデバイスを実装したデモサンプル
USB_DFU_MixedMode_StartDFUクラスコンポーネントを実装してファール転送を確認します
USB_DFU_StartDFU(Device Firmware Upgrade)クラスコンポーネントの実装方法を示すサンプル
USB_HID_AudioControlUSB HIDクラスコンポーネントをオーディオ制御デバイスとして使用します
USB_HID_Keyboard_MouseUSB HIDクラスコンポーネントでマウス+キーボードファンクションを実装します
USB_HID_MMControl多目的(複数 REPORT ID)HID デバイスの実装方法を示すサンプル
USB_HID_MouseUSB HIDクラスコンポーネントをマウスデバイスとして使用します
USB_MIDI_StartMIDI(Musical Instrument Digital Interface)クラスデバイスの実装方法を示すサンプル
USB_MSD_FS_StartMSDクラスデバイスの実装方法を示すサンプル(ファイルシステムが必要です)
USB_MTP_StartMTPクラスデバイスの実装方法を示すサンプル(ファイルシステムが必要です)
USB_Printerプリンタクラスデバイスの実装方法を示すサンプル
USB_VirtualMSD_CRCVirtualMSDクラスコンポーネントを実装したデモサンプル
USB_VirtualMSD_StartVirtualMSDクラスデバイスの実装方法を示すサンプル(VIRT0、VIRT1 MSD)
USB_Audio_Speaker_MicrophoneAUDIOクラスコンポーネントを使用してUSBマイクとスピーカーを実装します

関連設定ファイル:

BSP
 |- BSP_USB.c  .......... ボード依存の初期化設定ファイル(USB-Device)
 |
 |- Setup
     |- USB_Config_Renesas_EK_RX671.c
                     .......... USB-Deviceドライバ設定ファイル

Config
 |- USB_Conf.h  ............... コンフィグレーション設定ファイル
 |
 |- IO
 |   |- USB_ConfigIO.c  ....... デバッグコンソールIOインターフェース設定ファイル
 |
 |- OS
     |- lib_embOSLayer_RXv3_L.lib  ..... OSインターフェース設定ファイル

ビルド・動作確認方法

プロジェクト設定では「\Application\_Exclude\USBD」フォルダはビルド対象外に設定しています。以下のどちらかの方法で動作確認を行うサンプルアプリケーションを選択します。

  1. 「\_Exclude\USBD」フォルダ下の対象テストサンプルファイルをビルド対象設定の「\Application」フォルダ下にコピーします。
  2. 「\_Exclude\USBD」フォルダ下の対象テストサンプルファイルのみ「ビルド対象外」の設定を解除します。

各テストアプリケーションの動作確認方法はテストサンプルアプリケーションのヘッダのコメント情報を参照ください。

プロジェクトを再ビルドし、EK-RX671評価ボードに接続してデバッグセッションを開始します。
テストアプリケーションの要件に合わせてJ29 USBポートをパソコンに接続してプログラムを実行します。デバッガのIOコンソールのログ画面から結果を確認します。

J29 USBポートのデバイスモード設定:

usbd setting

評価ボードのジャンパー設定でJ29 USBポートをDEVICEモードに変更します。

  • J30:Jumper on pins 1-2
  • J31:Jumper on pins 2-3
  • J32:Short
  • J33:Jumper on pins 1-2

テストレポート

(PRINTERクラス)Sample: USB_Printer

操作手順:プログラム起動してUSBポートをパソコンに接続します。PC側の設定パネルからUSBデバイスが「HP-LaserJet-6P/6MP」プリンタとして認識されていることを確認します。「HP-LaserJet-6P/6MP」プリンタ設定でのページ印刷の場合は、e2Studio/CS+ IDEツールのデバッグログコンソールにPostScript命令情報が表示されます。

USBD Printer

(HIDクラス)Sample: USB_HID_Mouse

操作手順:プログラム起動してUSBポートをパソコンに接続します。PC側の設定パネル又はデバイスマネジャウインドウからUSBマウスデバイスとして認識されていることを確認します。デモサンプルプログラムでは500ミリ秒インターバールでマウスポインターを左右移動します。


(CDCクラス)Sample: USB_CDC_Echo

操作手順:プログラム起動してUSBポートをパソコンに接続します。PC側の設定パネルからUSBデバイスがCOMポートとして認識されていることを確認します。TeraTermなどCOMポートコンソールを開いて文字入力してECHOテストを確認します。

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: EK-RX671
RTOS: SEGGER embOS
----------------------------------------------
0:019 USBD_Start
18:778 Renesas USB: 512 bytes unused EP buffer RAM (USB_ENDPOINT_BUFFER_POOL_SIZE)

パソコン側:

CDC-Echo

(MSDクラス)Sample: USB_CompositeDevice_CDC_MSD

操作手順:

  1. 「FS_ConfigMMC_CM_EK_RX671.c」ファイルをビルド対象に設定して、プログラムをビルドして実行します。
  2. J29 USBポートをパソコンに接続して、USBデバイスがパソコン側にUSBドライブ(ラベル:FWUPDATE)+CDCポートとして認識されていることを確認します。
  3. TeraTermなどCOMポートコンソールを開いて文字入力してECHOテストを確認します。
  4. USBドライブのファイル操作(新規ファイル作成・読み書きアクセス)を確認します。
MSD+CDC

(VirtualMSDクラス)Sample: USB_VirtualMSD_Start / USB_VirtualMSD_CRC

操作手順:

  1. J29 USBポートをパソコンに接続して、プログラムを実行します。
  2. パソコン側に2つのUSB MSDドライブ(ラベル:VIRT0、VIRT1)がマウントされていることを確認します。
  3. Virtual Diskドライブの「Readme.txt」ファイル(Read-Only)をテキストエディタで開いて内容(デモ用文字列)を確認します。
Vistual MSD

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: EK-RX671
RTOS: SEGGER embOS
----------------------------------------------
0:019 USBD_Start
0:677 Renesas USB: 512 bytes unused EP buffer RAM (USB_ENDPOINT_BUFFER_POOL_SIZE)
0:868 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 4096
0:869 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 4608
0:871 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 5120
0:873 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 5632
0:875 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 6144
0:876 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 6656
0:878 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 7168
0:880 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 7680
0:882 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 8192
0:884 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 8704
0:886 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 9216
0:887 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 9728
0:889 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 10240
0:891 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 10752
0:892 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 11264
0:894 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 11776
0:895 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 12288
0:897 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 12800
0:899 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 13312
0:901 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 13824
0:902 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 14336
0:904 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 14848
0:906 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 15360
0:908 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 15872
0:910 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
0:912 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
0:914 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
0:916 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
0:918 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
0:920 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
0:922 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
0:924 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
0:927 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
0:928 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
0:929 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
0:930 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
0:932 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
0:934 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
0:936 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
0:938 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
0:940 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
0:942 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
0:944 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
0:946 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
0:948 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
0:949 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
0:950 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
0:952 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
0:974 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
0:976 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
0:978 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
0:979 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
0:981 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
0:983 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
0:984 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
0:986 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
0:996 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
0:998 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:000 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:001 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:003 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:005 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:007 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:009 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
1:031 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 4096
1:033 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 4608
1:035 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 5120
1:037 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 5632
1:039 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 6144
1:040 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 6656
1:041 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 7168
1:042 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 7680
1:044 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 8192
1:046 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 8704
1:047 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 9216
1:049 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 9728
1:051 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 10240
1:053 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 10752
1:055 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 11264
1:057 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 11776
1:058 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 12288
1:060 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 12800
1:061 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 13312
1:062 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 13824
1:064 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 14336
1:066 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 14848
1:067 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 15360
1:069 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 15872
1:072 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
1:074 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:076 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:078 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:080 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:081 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:083 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:084 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
1:087 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
1:089 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:091 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:092 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:094 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:096 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:098 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:099 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
1:101 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
1:103 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:105 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:107 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:109 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:110 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:112 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:114 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
1:132 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
1:134 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:136 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:138 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:140 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:141 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:143 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:145 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584
1:148 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 0
1:150 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 512
1:152 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1024
1:154 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 1536
1:156 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2048
1:157 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 2560
1:159 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3072
1:161 VMSD_APP: _cbOnWrite(): File 'SYSTEM~1   ', Offset 3584

(MTPクラス)Sample: USB_MTP_Start

操作手順:

  1. 「FS_ConfigMMC_CM_EK_RX671.c」ファイルをビルド対象に設定して、プログラムをビルドして実行します。
  2. J29 USBポートをパソコンに接続して、USBデバイスがパソコン側にMTPボリュームとして認識されていることを確認します。
  3. USB MTPドライブの「Readme.txt」ファイル(Read-Only)をテキストエディタで開いて内容(デモ用文字列)を確認します。
MSD

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: EK-RX671
RTOS: SEGGER embOS
----------------------------------------------
Low-level format
1:486 USBD_Start
2:186 Renesas USB: 512 bytes unused EP buffer RAM (USB_ENDPOINT_BUFFER_POOL_SIZE)

(AUDIOクラス)Sample: USB_Audio_Speaker_Microphone

操作手順:

  1. J29 USBポートをパソコンに接続して、プログラムを実行します。
  2. USBデバイスがパソコン側にAudio Headsetとして認識されていることを確認します。
  3. パソコンのサウンドマネジャを起動して、マイク(記録)デバイスにemUSBのAudio Controlを選択します。マイク(記録)デバイスを再生デバイスにループしますと、PCスピーカーに「It Simply Works」の音声が再生されます。
  4. 再生デバイスにemUSBのAudio Controlを選択してAudioプレィヤで音声を再生しますと、評価ボードのSDカードディスクにWAV式の音声データファイルが作成されます。
Audio Class

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: EK-RX671
RTOS: SEGGER embOS
----------------------------------------------
0:747 USBD_Start
1:405 Renesas USB: 380 bytes unused EP buffer RAM (USB_ENDPOINT_BUFFER_POOL_SIZE)
1:406 Received event: 0xA2 (0 bytes).
1:406 USB_AUDIO_PLAYBACK_STOP
1:407 Received event: 0xA4 (0 bytes).
1:407 USB_AUDIO_RECORD_STOP
1:424 Received event: 0x81 (1 bytes).
1:425 Received event: 0x81 (2 bytes).
1:426 Received event: 0x82 (2 bytes).
1:427 Received event: 0x83 (2 bytes).
1:428 Received event: 0x84 (2 bytes).
1:429 Received event: 0x81 (1 bytes).
1:430 Received event: 0x81 (2 bytes).
1:431 Received event: 0x82 (2 bytes).
1:432 Received event: 0x83 (2 bytes).
1:434 Received event: 0x84 (2 bytes).
1:436 Received event: 0xA2 (0 bytes).
1:436 USB_AUDIO_PLAYBACK_STOP
1:437 Received event: 0xA4 (0 bytes).
1:437 USB_AUDIO_RECORD_STOP
1:643 Received event: 0x1 (2 bytes).
1:643 Received set volume (0xFEB6) request for Unit 6.
1:827 Received event: 0xA1 (0 bytes).
1:827 USB_AUDIO_PLAYBACK_START
1:828 Received event: 0x1 (3 bytes).
1:828 Speaker sample frequency set to 48000 Hz, 16 bit.
1:887 Created new wave file (\audio0.wav) [Sample Frequency: 48000 Hz, Bit resolution: 16 bit].
2:067 Written 0x8000 bytes in 7957 usec
2:237 Written 0x8000 bytes in 7131 usec
2:411 Written 0x8000 bytes in 10148 usec
2:578 Written 0x8000 bytes in 7150 usec
2:749 Written 0x8000 bytes in 7151 usec
2:920 Written 0x8000 bytes in 7131 usec
3:090 Written 0x8000 bytes in 7141 usec
3:261 Written 0x8000 bytes in 7140 usec
3:435 Written 0x8000 bytes in 10091 usec
3:602 Written 0x8000 bytes in 7154 usec
3:773 Written 0x8000 bytes in 7136 usec
3:944 Written 0x8000 bytes in 7150 usec
4:114 Written 0x8000 bytes in 7156 usec
4:285 Written 0x8000 bytes in 7131 usec
4:458 Written 0x8000 bytes in 10053 usec
4:624 Written 0x8000 bytes in 7152 usec
4:794 Written 0x8000 bytes in 7154 usec
4:964 Written 0x8000 bytes in 7147 usec
5:133 Written 0x8000 bytes in 7151 usec
5:303 Written 0x8000 bytes in 7145 usec
5:476 Written 0x8000 bytes in 10070 usec
5:642 Written 0x8000 bytes in 7128 usec
5:812 Written 0x8000 bytes in 7135 usec
5:982 Written 0x8000 bytes in 7132 usec
6:152 Written 0x8000 bytes in 7160 usec
6:323 Written 0x8000 bytes in 7146 usec
6:496 Written 0x8000 bytes in 10003 usec
6:663 Written 0x8000 bytes in 7132 usec
6:833 Written 0x8000 bytes in 7142 usec
7:004 Written 0x8000 bytes in 7152 usec
7:174 Written 0x8000 bytes in 7147 usec
7:351 Written 0x8000 bytes in 13306 usec
7:524 Written 0x8000 bytes in 15791 usec
7:686 Written 0x8000 bytes in 7144 usec
7:856 Written 0x8000 bytes in 7137 usec
8:027 Written 0x8000 bytes in 7132 usec
8:197 Written 0x8000 bytes in 7134 usec
8:368 Written 0x8000 bytes in 7127 usec
8:542 Written 0x8000 bytes in 10196 usec
8:708 Written 0x8000 bytes in 7131 usec
8:879 Written 0x8000 bytes in 7139 usec
9:050 Written 0x8000 bytes in 7130 usec
9:220 Written 0x8000 bytes in 7138 usec
9:391 Written 0x8000 bytes in 7135 usec
9:565 Written 0x8000 bytes in 10075 usec
9:732 Written 0x8000 bytes in 7135 usec
9:903 Written 0x8000 bytes in 7142 usec
10:073 Written 0x8000 bytes in 7135 usec
10:243 Written 0x8000 bytes in 7144 usec
10:414 Written 0x8000 bytes in 7131 usec
10:588 Written 0x8000 bytes in 9994 usec
10:755 Written 0x8000 bytes in 7138 usec
10:926 Written 0x8000 bytes in 7140 usec
11:097 Written 0x8000 bytes in 7126 usec
11:267 Written 0x8000 bytes in 7136 usec
11:438 Written 0x8000 bytes in 7130 usec
11:612 Written 0x8000 bytes in 10052 usec
11:779 Written 0x8000 bytes in 7134 usec
11:950 Written 0x8000 bytes in 7133 usec
12:121 Written 0x8000 bytes in 7136 usec
12:291 Written 0x8000 bytes in 7137 usec
12:462 Written 0x8000 bytes in 7115 usec
12:636 Written 0x8000 bytes in 10030 usec
12:803 Written 0x8000 bytes in 7132 usec
12:974 Written 0x8000 bytes in 7140 usec
13:145 Written 0x8000 bytes in 7143 usec
13:315 Written 0x8000 bytes in 7140 usec
13:486 Written 0x8000 bytes in 7130 usec
13:660 Written 0x8000 bytes in 10082 usec
13:827 Written 0x8000 bytes in 7132 usec
13:998 Written 0x8000 bytes in 7148 usec
14:169 Written 0x8000 bytes in 7148 usec
14:339 Written 0x8000 bytes in 7143 usec
14:510 Written 0x8000 bytes in 7146 usec
14:683 Written 0x8000 bytes in 10000 usec
14:850 Written 0x8000 bytes in 7136 usec
15:020 Written 0x8000 bytes in 7128 usec
15:190 Written 0x8000 bytes in 7136 usec
15:359 Written 0x8000 bytes in 7137 usec
15:529 Written 0x8000 bytes in 7136 usec
15:702 Written 0x8000 bytes in 10074 usec
15:868 Written 0x8000 bytes in 7136 usec
16:038 Written 0x8000 bytes in 7135 usec
16:208 Written 0x8000 bytes in 7135 usec
16:377 Written 0x8000 bytes in 7131 usec
16:547 Written 0x8000 bytes in 7133 usec
16:634 Closed file \audio0.wav, 2834540 bytes

29:428 Received event: 0xA2 (0 bytes).
29:428 USB_AUDIO_PLAYBACK_STOP
47:611 Received event: 0xA1 (0 bytes).
47:611 USB_AUDIO_PLAYBACK_START
47:612 Received event: 0x1 (3 bytes).
47:612 Speaker sample frequency set to 48000 Hz, 16 bit.
47:672 Created new wave file (\audio1.wav) [Sample Frequency: 48000 Hz, Bit resolution: 16 bit].
47:851 Written 0x8000 bytes in 8133 usec
48:020 Written 0x8000 bytes in 7134 usec
48:190 Written 0x8000 bytes in 7143 usec
48:359 Written 0x8000 bytes in 7144 usec
48:529 Written 0x8000 bytes in 7140 usec
48:639 Received event: 0xA2 (0 bytes).
48:639 USB_AUDIO_PLAYBACK_STOP
49:646 Closed file \audio1.wav, 185900 bytes

52:452 Received event: 0xA3 (0 bytes).
52:452 USB_AUDIO_RECORD_START
52:453 Received event: 0x1 (3 bytes).
52:598 Received event: 0xA1 (0 bytes).
52:598 USB_AUDIO_PLAYBACK_START
52:599 Received event: 0x1 (3 bytes).
52:599 Speaker sample frequency set to 48000 Hz, 16 bit.
60:673 Created new wave file (\audio2.wav) [Sample Frequency: 48000 Hz, Bit resolution: 16 bit].
60:853 Written 0x8000 bytes in 7926 usec
61:024 Written 0x8000 bytes in 7137 usec
61:194 Written 0x8000 bytes in 7155 usec
61:363 Written 0x8000 bytes in 7149 usec
61:536 Written 0x8000 bytes in 9998 usec
61:704 Written 0x8000 bytes in 7131 usec
61:873 Written 0x8000 bytes in 7140 usec
62:043 Written 0x8000 bytes in 7142 usec
62:213 Written 0x8000 bytes in 7146 usec
62:382 Written 0x8000 bytes in 7131 usec
62:556 Written 0x8000 bytes in 10052 usec
62:723 Written 0x8000 bytes in 7132 usec
62:893 Written 0x8000 bytes in 7139 usec
63:064 Written 0x8000 bytes in 7137 usec
63:235 Written 0x8000 bytes in 7144 usec
63:405 Written 0x8000 bytes in 7137 usec
63:579 Written 0x8000 bytes in 10004 usec
63:747 Written 0x8000 bytes in 7137 usec
63:917 Written 0x8000 bytes in 7165 usec
64:088 Written 0x8000 bytes in 7142 usec
64:259 Written 0x8000 bytes in 7131 usec
64:429 Written 0x8000 bytes in 7178 usec
64:603 Written 0x8000 bytes in 10087 usec
64:771 Written 0x8000 bytes in 7133 usec
64:941 Written 0x8000 bytes in 7134 usec
65:112 Written 0x8000 bytes in 7139 usec
65:285 Written 0x8000 bytes in 8765 usec
65:454 Written 0x8000 bytes in 7284 usec
65:628 Written 0x8000 bytes in 10185 usec
65:796 Written 0x8000 bytes in 7290 usec
65:966 Written 0x8000 bytes in 7297 usec
66:137 Written 0x8000 bytes in 7292 usec
66:308 Written 0x8000 bytes in 7288 usec
66:478 Written 0x8000 bytes in 7292 usec
66:652 Written 0x8000 bytes in 10183 usec
66:820 Written 0x8000 bytes in 7288 usec
66:990 Written 0x8000 bytes in 7299 usec
67:161 Written 0x8000 bytes in 7283 usec
67:332 Written 0x8000 bytes in 7297 usec
67:502 Written 0x8000 bytes in 7294 usec
67:676 Written 0x8000 bytes in 10285 usec
67:844 Written 0x8000 bytes in 7292 usec
68:014 Written 0x8000 bytes in 7292 usec
68:185 Written 0x8000 bytes in 7292 usec
68:356 Written 0x8000 bytes in 7299 usec
68:526 Written 0x8000 bytes in 7290 usec
68:700 Written 0x8000 bytes in 10160 usec
68:868 Written 0x8000 bytes in 7292 usec
69:038 Written 0x8000 bytes in 7294 usec
69:209 Written 0x8000 bytes in 7289 usec
69:380 Written 0x8000 bytes in 7296 usec
69:550 Written 0x8000 bytes in 7301 usec
69:724 Written 0x8000 bytes in 10181 usec
69:892 Written 0x8000 bytes in 7293 usec
70:062 Written 0x8000 bytes in 7298 usec
70:233 Written 0x8000 bytes in 7290 usec
70:404 Written 0x8000 bytes in 7297 usec
70:574 Written 0x8000 bytes in 7286 usec
70:748 Written 0x8000 bytes in 10191 usec
70:915 Written 0x8000 bytes in 7292 usec
71:084 Written 0x8000 bytes in 7302 usec
71:254 Written 0x8000 bytes in 7279 usec
71:424 Written 0x8000 bytes in 7298 usec
71:593 Written 0x8000 bytes in 7284 usec
71:766 Written 0x8000 bytes in 10161 usec
71:933 Written 0x8000 bytes in 7278 usec
72:102 Written 0x8000 bytes in 7296 usec
72:272 Written 0x8000 bytes in 7291 usec
72:442 Written 0x8000 bytes in 7296 usec
72:611 Written 0x8000 bytes in 7287 usec
72:785 Written 0x8000 bytes in 10187 usec
72:952 Written 0x8000 bytes in 7288 usec
73:121 Written 0x8000 bytes in 7299 usec
73:291 Written 0x8000 bytes in 7292 usec
73:461 Written 0x8000 bytes in 7295 usec
73:630 Written 0x8000 bytes in 7297 usec
73:804 Written 0x8000 bytes in 10185 usec
73:971 Written 0x8000 bytes in 7285 usec
74:140 Written 0x8000 bytes in 7287 usec
74:310 Written 0x8000 bytes in 7289 usec
74:481 Written 0x8000 bytes in 7302 usec
74:651 Written 0x8000 bytes in 7288 usec
74:825 Written 0x8000 bytes in 10198 usec
74:993 Written 0x8000 bytes in 7290 usec
75:163 Written 0x8000 bytes in 7293 usec
75:334 Written 0x8000 bytes in 7287 usec
75:505 Written 0x8000 bytes in 7296 usec
75:675 Written 0x8000 bytes in 7291 usec
75:849 Written 0x8000 bytes in 10185 usec
76:017 Written 0x8000 bytes in 7288 usec
76:187 Written 0x8000 bytes in 7298 usec
76:358 Written 0x8000 bytes in 7288 usec
76:529 Written 0x8000 bytes in 7295 usec
76:699 Written 0x8000 bytes in 7292 usec
76:873 Written 0x8000 bytes in 10182 usec
77:041 Written 0x8000 bytes in 7286 usec
77:211 Written 0x8000 bytes in 7304 usec
77:382 Written 0x8000 bytes in 7288 usec
77:553 Written 0x8000 bytes in 7298 usec
77:724 Written 0x8000 bytes in 7290 usec
77:898 Written 0x8000 bytes in 10185 usec
78:066 Written 0x8000 bytes in 7288 usec
78:236 Written 0x8000 bytes in 7295 usec
78:407 Written 0x8000 bytes in 7289 usec
78:578 Written 0x8000 bytes in 7300 usec
78:749 Written 0x8000 bytes in 7288 usec
78:923 Written 0x8000 bytes in 10199 usec
79:091 Written 0x8000 bytes in 7276 usec
79:261 Written 0x8000 bytes in 7302 usec
79:432 Written 0x8000 bytes in 7292 usec
79:603 Written 0x8000 bytes in 7305 usec
79:773 Written 0x8000 bytes in 7290 usec
79:947 Written 0x8000 bytes in 10186 usec
80:115 Written 0x8000 bytes in 7292 usec
80:285 Written 0x8000 bytes in 7297 usec
80:456 Written 0x8000 bytes in 7292 usec
80:627 Written 0x8000 bytes in 7292 usec
80:798 Written 0x8000 bytes in 7292 usec
80:971 Written 0x8000 bytes in 10182 usec
81:139 Written 0x8000 bytes in 7294 usec
81:308 Written 0x8000 bytes in 7296 usec
81:478 Written 0x8000 bytes in 7281 usec
81:648 Written 0x8000 bytes in 7297 usec
81:817 Written 0x8000 bytes in 7286 usec
81:990 Written 0x8000 bytes in 10184 usec
82:157 Written 0x8000 bytes in 7292 usec
82:326 Written 0x8000 bytes in 7301 usec
82:496 Written 0x8000 bytes in 7286 usec
82:666 Written 0x8000 bytes in 7294 usec
82:837 Written 0x8000 bytes in 8198 usec
83:015 Written 0x8000 bytes in 15901 usec
83:178 Written 0x8000 bytes in 7285 usec
83:347 Written 0x8000 bytes in 7295 usec
83:517 Written 0x8000 bytes in 7295 usec
83:687 Written 0x8000 bytes in 7304 usec
83:857 Written 0x8000 bytes in 7278 usec
84:030 Written 0x8000 bytes in 10303 usec
84:198 Written 0x8000 bytes in 7281 usec
84:367 Written 0x8000 bytes in 7295 usec
84:537 Written 0x8000 bytes in 7287 usec
84:707 Written 0x8000 bytes in 7292 usec
84:876 Written 0x8000 bytes in 7291 usec
85:050 Written 0x8000 bytes in 10202 usec
85:218 Written 0x8000 bytes in 7292 usec
85:388 Written 0x8000 bytes in 7297 usec
85:559 Written 0x8000 bytes in 7291 usec
85:730 Written 0x8000 bytes in 7296 usec
85:900 Written 0x8000 bytes in 7290 usec
86:074 Written 0x8000 bytes in 10198 usec
86:242 Written 0x8000 bytes in 7292 usec
86:412 Written 0x8000 bytes in 7301 usec
86:583 Written 0x8000 bytes in 7293 usec
86:754 Written 0x8000 bytes in 7309 usec
86:924 Written 0x8000 bytes in 7294 usec
87:100 Written 0x8000 bytes in 12130 usec
87:266 Written 0x8000 bytes in 7291 usec
87:436 Written 0x8000 bytes in 7295 usec
87:607 Written 0x8000 bytes in 7229 usec
87:778 Written 0x8000 bytes in 7237 usec
87:948 Written 0x8000 bytes in 7235 usec
88:122 Written 0x8000 bytes in 10088 usec
88:290 Written 0x8000 bytes in 7232 usec
88:460 Written 0x8000 bytes in 7234 usec
88:632 Written 0x8000 bytes in 7231 usec
88:803 Written 0x8000 bytes in 7239 usec
88:973 Written 0x8000 bytes in 7230 usec
89:147 Written 0x8000 bytes in 10088 usec
89:315 Written 0x8000 bytes in 7233 usec
89:485 Written 0x8000 bytes in 7241 usec
89:656 Written 0x8000 bytes in 7231 usec
89:827 Written 0x8000 bytes in 7224 usec
89:997 Written 0x8000 bytes in 7238 usec
90:170 Written 0x8000 bytes in 10088 usec
90:338 Written 0x8000 bytes in 7229 usec
90:513 Written 0x8000 bytes in 12497 usec
90:680 Written 0x8000 bytes in 7227 usec
90:851 Written 0x8000 bytes in 7234 usec
91:021 Written 0x8000 bytes in 7233 usec
91:195 Written 0x8000 bytes in 10138 usec
91:362 Written 0x8000 bytes in 7233 usec
91:531 Written 0x8000 bytes in 7240 usec
91:701 Written 0x8000 bytes in 7232 usec
91:871 Written 0x8000 bytes in 7234 usec
92:040 Written 0x8000 bytes in 7250 usec
92:213 Written 0x8000 bytes in 10104 usec
92:380 Written 0x8000 bytes in 7229 usec
92:549 Written 0x8000 bytes in 7236 usec
92:719 Written 0x8000 bytes in 7232 usec
92:889 Written 0x8000 bytes in 7235 usec
93:058 Written 0x8000 bytes in 7248 usec
93:231 Written 0x8000 bytes in 10101 usec
93:398 Written 0x8000 bytes in 7230 usec
93:567 Written 0x8000 bytes in 7237 usec
93:737 Written 0x8000 bytes in 7229 usec
93:907 Written 0x8000 bytes in 7236 usec
94:077 Written 0x8000 bytes in 7236 usec
94:250 Written 0x8000 bytes in 10127 usec
94:417 Written 0x8000 bytes in 7239 usec
94:587 Written 0x8000 bytes in 7234 usec
94:758 Written 0x8000 bytes in 7229 usec
94:929 Written 0x8000 bytes in 7238 usec
95:099 Written 0x8000 bytes in 7232 usec
95:273 Written 0x8000 bytes in 10124 usec
95:441 Written 0x8000 bytes in 7234 usec
95:611 Written 0x8000 bytes in 7247 usec
95:782 Written 0x8000 bytes in 7234 usec
95:953 Written 0x8000 bytes in 7236 usec
96:123 Written 0x8000 bytes in 7232 usec
96:297 Written 0x8000 bytes in 10124 usec
96:465 Written 0x8000 bytes in 7229 usec
96:635 Written 0x8000 bytes in 7237 usec
96:806 Written 0x8000 bytes in 7231 usec
96:977 Written 0x8000 bytes in 7242 usec
97:147 Written 0x8000 bytes in 7230 usec
97:321 Written 0x8000 bytes in 10083 usec
97:489 Written 0x8000 bytes in 7234 usec
97:659 Written 0x8000 bytes in 7242 usec
97:830 Written 0x8000 bytes in 7224 usec
98:001 Written 0x8000 bytes in 7239 usec
98:171 Written 0x8000 bytes in 7238 usec
98:345 Written 0x8000 bytes in 10125 usec
98:513 Written 0x8000 bytes in 7226 usec
98:683 Written 0x8000 bytes in 7239 usec
98:854 Written 0x8000 bytes in 7238 usec
99:025 Written 0x8000 bytes in 7245 usec
99:195 Written 0x8000 bytes in 7231 usec
99:369 Written 0x8000 bytes in 10139 usec
99:537 Written 0x8000 bytes in 7242 usec
99:707 Written 0x8000 bytes in 7248 usec
99:878 Written 0x8000 bytes in 7237 usec
100:049 Written 0x8000 bytes in 7241 usec
100:219 Written 0x8000 bytes in 7242 usec
100:393 Written 0x8000 bytes in 10243 usec
100:562 Written 0x8000 bytes in 7236 usec
100:732 Written 0x8000 bytes in 7240 usec
100:903 Written 0x8000 bytes in 7241 usec
101:074 Written 0x8000 bytes in 7243 usec
101:244 Written 0x8000 bytes in 7236 usec
101:418 Written 0x8000 bytes in 10085 usec
101:585 Written 0x8000 bytes in 7236 usec
101:754 Written 0x8000 bytes in 7247 usec
101:924 Written 0x8000 bytes in 7235 usec
102:094 Written 0x8000 bytes in 7239 usec
102:263 Written 0x8000 bytes in 7240 usec
102:437 Written 0x8000 bytes in 10132 usec
102:605 Written 0x8000 bytes in 7241 usec
102:774 Written 0x8000 bytes in 7241 usec
102:944 Written 0x8000 bytes in 7241 usec
103:114 Written 0x8000 bytes in 7239 usec
103:283 Written 0x8000 bytes in 7224 usec
103:456 Written 0x8000 bytes in 10130 usec
103:623 Written 0x8000 bytes in 7234 usec
103:792 Written 0x8000 bytes in 7235 usec
103:962 Written 0x8000 bytes in 7228 usec
104:132 Written 0x8000 bytes in 7245 usec
104:302 Written 0x8000 bytes in 7242 usec
104:475 Written 0x8000 bytes in 10130 usec
104:642 Written 0x8000 bytes in 7238 usec
104:811 Written 0x8000 bytes in 7242 usec
104:981 Written 0x8000 bytes in 7237 usec
105:151 Written 0x8000 bytes in 7245 usec
105:321 Written 0x8000 bytes in 7235 usec
105:494 Written 0x8000 bytes in 10108 usec
105:661 Written 0x8000 bytes in 7240 usec
105:830 Written 0x8000 bytes in 7247 usec
106:000 Written 0x8000 bytes in 7234 usec
106:170 Written 0x8000 bytes in 7240 usec
106:340 Written 0x8000 bytes in 7233 usec
106:513 Written 0x8000 bytes in 10093 usec
106:680 Written 0x8000 bytes in 7233 usec
106:850 Written 0x8000 bytes in 7239 usec
107:021 Written 0x8000 bytes in 7235 usec
107:192 Written 0x8000 bytes in 7237 usec
107:362 Written 0x8000 bytes in 7240 usec
107:536 Written 0x8000 bytes in 10104 usec
107:688 Received event: 0xA4 (0 bytes).
107:688 USB_AUDIO_RECORD_STOP
107:704 Written 0x8000 bytes in 7229 usec
107:704 Received event: 0xA2 (0 bytes).
107:704 USB_AUDIO_PLAYBACK_STOP
107:719 Received event: 0xA3 (0 bytes).
107:719 USB_AUDIO_RECORD_START
107:721 Received event: 0x1 (3 bytes).
108:712 Closed file \audio2.wav, 9045740 bytes

115:571 Received event: 0xA4 (0 bytes).
115:571 USB_AUDIO_RECORD_STOP
115:631 Received event: 0xA3 (0 bytes).
115:631 USB_AUDIO_RECORD_START
115:632 Received event: 0x1 (3 bytes).
130:810 Received event: 0xA4 (0 bytes).
130:810 USB_AUDIO_RECORD_STOP
前の章

TCP/IP-Over-USB通信