- P22,P23,P24,P25を、スイッチ入力(SW1〜SW4)
- P32,P33,P34,P35を、LED出力(抵抗経由でVDDに接続する)
!E ./lib/usb.h(124): redeclaration of `T_USB_XFER_STATUS_BLOCK'
//typedef struct {
// BYTE bStatus;
// WORD wLength;
//} T_USB_XFER_STATUS_BLOCK;
The document you are editing, '.....\boot.asm', has been modified externally.
Would you like to update the open copy to reflect the modifications?
Programming Terminated at 23:38:39
Check Device Family/Device setting or Programming Mode
Target Device does not match chosen Device
//#include "usb.h"
Firmware update required at 19:07:59 Update firmware using Utilities/Upgrade Firmware
Open MiniProgrammer at 19:07:59 MINI version Expecting >= 1.71 got 1.67
temp2 = 056
temp2 = 043
temp2 = 052
temp2 = 002
temp2 = 002
temp2 = 231 →基板を手でちょっと触ると、変動が大きくなる気がします。。
temp2 = 002 →
temp2 = 255 →
temp2 = 002 →
temp2 = 255 →
temp2 = 154 →
temp2 = 137 →
temp2 = 116 →
temp2 = 112 →
temp2 = 088
temp2 = 089
Could not find Process Monitoring Device
Device Descriptor:
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x4242
idProduct: 0xEE03
bcdDevice: 0x0100
iManufacturer: 0x01
iProduct: 0x04
iSerialNumber: 0x03
bNumConfigurations: 0x01
ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Full
Device Address: 0x04
Open Pipes: 2
Endpoint Descriptor:
bEndpointAddress: 0x83
Transfer Type: Interrupt
wMaxPacketSize: 0x0008 (8)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x04
Transfer Type: Interrupt
wMaxPacketSize: 0x0008 (8)
bInterval: 0x01
SystemName = FindHIDInterface(&H4242, &HEE03, &HFF03)
・Private Function ReadInReport() As Integer
- Success = ReadFile(ReadHandle, InReport(0), 3, BytesRead, ReadOverlap)
・Private Sub Continuous_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Continuous.Click
- Success = WriteFile(WriteHandle, Sample_Rate(0), 2, BytesWritten, 0)
・Private Sub GetOneSample()
- Success = WriteFile(WriteHandle, Sample_Rate(0), 2, BytesWritten, 0)
Device Descriptor:
bcdUSB: 0x0110
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x056E (Elecom Co., Ltd.)
idProduct: 0x0040
bcdDevice: 0x0230
iManufacturer: 0x01
iProduct: 0x02
iSerialNumber: 0x00
bNumConfigurations: 0x01
ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Low
Device Address: 0x03
Open Pipes: 1
Endpoint Descriptor:
bEndpointAddress: 0x81
Transfer Type: Interrupt
wMaxPacketSize: 0x0008 (8)
bInterval: 0x0A
:
[Kashiwano]
:
%USB\VID_056E&PID_0040.DeviceDesc%=UUSBD.Dev, USB\VID_056E&PID_0040 →VID,PID書換え
:
[Strings]
:
USB\VID_056E&PID_0040.DeviceDesc="Universal USB Driver (Mouse)" →VID,PID書換え
Uusbd.sysを使ったUSBデバイスは見つかりません
1 in down n/a 0.204 GET_DESCRIPTOR_FROM_DEVICE
1 in up n/a 0.219 CONTROL_TRANSFER 12 01 10 01 00 00 00 08 0x00000000
2 in down n/a 0.219 GET_DESCRIPTOR_FROM_DEVICE
2 in up n/a 0.219 CONTROL_TRANSFER 09 02 22 00 01 01 00 a0 0x00000000
474 ??? up n/a 251.297 BULK_OR_INTERRUPT_TRANSFER 01 00 00 00 0x00000000
476 ??? down n/a 251.297 BULK_OR_INTERRUPT_TRANSFER -
475 ??? up n/a 251.485 BULK_OR_INTERRUPT_TRANSFER 00 00 00 00 0x00000000
477 ??? down n/a 251.485 BULK_OR_INTERRUPT_TRANSFER
476 ??? up n/a 407.516 BULK_OR_INTERRUPT_TRANSFER 02 00 00 00 0x00000000
478 ??? down n/a 407.516 BULK_OR_INTERRUPT_TRANSFER -
477 ??? up n/a 407.719 BULK_OR_INTERRUPT_TRANSFER 00 00 00 00 0x00000000
479 ??? down n/a 407.719 BULK_OR_INTERRUPT_TRANSFER -
490 ??? up n/a 819.735 BULK_OR_INTERRUPT_TRANSFER 00 7e f3 00 0x00000000
492 ??? down n/a 819.735 BULK_OR_INTERRUPT_TRANSFER -
491 ??? up n/a 819.750 BULK_OR_INTERRUPT_TRANSFER 00 1e fa 00 0x00000000
493 ??? down n/a 819.750 BULK_OR_INTERRUPT_TRANSFER -
:
495 ??? up n/a 889.781 BULK_OR_INTERRUPT_TRANSFER 00 bb f1 00 0x00000000
497 ??? down n/a 889.781 BULK_OR_INTERRUPT_TRANSFER -
496 ??? up n/a 889.813 BULK_OR_INTERRUPT_TRANSFER 00 fe fe 00 0x00000000
498 ??? down n/a 889.813 BULK_OR_INTERRUPT_TRANSFER -
:
498 ??? up n/a 931.531 BULK_OR_INTERRUPT_TRANSFER 00 01 ea 00 0x00000000
500 ??? down n/a 931.531 BULK_OR_INTERRUPT_TRANSFER -
499 ??? up n/a 931.531 BULK_OR_INTERRUPT_TRANSFER 00 01 f7 00 0x00000000
501 ??? down n/a 931.531 BULK_OR_INTERRUPT_TRANSFER -
:
518 ??? up n/a 1020.750 BULK_OR_INTERRUPT_TRANSFER 00 01 1a 00 0x00000000
520 ??? down n/a 1020.750 BULK_OR_INTERRUPT_TRANSFER -
519 ??? up n/a 1020.750 BULK_OR_INTERRUPT_TRANSFER 00 00 1a 00 0x00000000
521 ??? down n/a 1020.750 BULK_OR_INTERRUPT_TRANSFER -
:
528 ??? up n/a 1087.047 BULK_OR_INTERRUPT_TRANSFER 00 00 00 01 0x00000000
530 ??? down n/a 1087.047 BULK_OR_INTERRUPT_TRANSFER -
529 ??? up n/a 1087.219 BULK_OR_INTERRUPT_TRANSFER 00 00 00 01 0x00000000
531 ??? down n/a 1087.219 BULK_OR_INTERRUPT_TRANSFER -
531 ??? up n/a 1127.094 BULK_OR_INTERRUPT_TRANSFER 00 00 00 ff 0x00000000
533 ??? down n/a 1127.094 BULK_OR_INTERRUPT_TRANSFER -
532 ??? up n/a 1127.313 BULK_OR_INTERRUPT_TRANSFER 00 00 00 ff 0x00000000
534 ??? down n/a 1127.313 BULK_OR_INTERRUPT_TRANSFER -
1 in down n/a 0.000 GET_DESCRIPTOR_FROM_DEVICE
1 in up n/a 0.016 CONTROL_TRANSFER 12 01 10 01 00 00 00 08 0x00000000
2 in down n/a 0.016 GET_DESCRIPTOR_FROM_DEVICE
2 in up n/a 0.016 CONTROL_TRANSFER 09 02 22 00 01 01 00 a0 0x00000000
3 in down n/a 0.016 GET_DESCRIPTOR_FROM_DEVICE
3 in up n/a 0.016 CONTROL_TRANSFER 09 02 22 00 01 01 00 a0 0x00000000
4 ??? down n/a 0.016 SELECT_CONFIGURATION
4 ??? up n/a 0.032 SELECT_CONFIGURATION 0x00000000
5 out down n/a 0.032 CLASS_INTERFACE -
5 out up n/a 0.032 CONTROL_TRANSFER - 0x00000000
6 in down n/a 0.032 GET_DESCRIPTOR_FROM_INTERFACE
6 in up n/a 0.047 CONTROL_TRANSFER 05 01 09 02 a1 01 05 09 0x00000000
7 ??? down n/a 0.047 BULK_OR_INTERRUPT_TRANSFER -
8 ??? down n/a 0.047 BULK_OR_INTERRUPT_TRANSFER -
1 in down n/a 0.000 GET_DESCRIPTOR_FROM_DEVICE
1 in up n/a 0.016 CONTROL_TRANSFER 12 01 00 02 00 00 00 08 0x00000000
2 in down n/a 0.016 GET_DESCRIPTOR_FROM_DEVICE
2 in up n/a 0.016 CONTROL_TRANSFER 09 02 22 00 01 01 00 80 0x00000000
3 in down n/a 0.016 GET_DESCRIPTOR_FROM_DEVICE
3 in up n/a 0.032 CONTROL_TRANSFER 09 02 22 00 01 01 00 80 0x00000000
4 ??? down n/a 0.032 SELECT_CONFIGURATION
4 ??? up n/a 0.032 SELECT_CONFIGURATION 0x00000000
5 out down n/a 0.032 CLASS_INTERFACE -
5 out up n/a 0.032 CONTROL_TRANSFER - 0x00000000
6 in down n/a 0.032 GET_DESCRIPTOR_FROM_INTERFACE
6 in up n/a 0.032 CONTROL_TRANSFER 06 00 ff 09 01 a1 01 19 0x00000000
7 ??? down n/a 0.047 BULK_OR_INTERRUPT_TRANSFER -
8 ??? down n/a 0.047 BULK_OR_INTERRUPT_TRANSFER -
9 out down 0x00 42.094 CLASS_INTERFACE 01
9 out up n/a 42.094 CONTROL_TRANSFER - 0x00000000
7 ??? up n/a 77.953 BULK_OR_INTERRUPT_TRANSFER 01 0x00000000
10 ??? down n/a 77.953 BULK_OR_INTERRUPT_TRANSFER -
11 out down 0x00 77.953 CLASS_INTERFACE 01
11 out up n/a 77.953 CONTROL_TRANSFER - 0x00000000
8 ??? up n/a 78.110 BULK_OR_INTERRUPT_TRANSFER 00 0x00000000
12 ??? down n/a 78.110 BULK_OR_INTERRUPT_TRANSFER -
13 out down 0x00 78.110 CLASS_INTERFACE 01
13 out up n/a 78.125 CONTROL_TRANSFER - 0x00000000
C:\>pipedump
max packet size =1
00000:08
00001:00
00002:04
00003:00
00004:01
00005:00
00006:02
00007:00
00008:01
00009:00
BOOL APIENTRY Uusbd_ClassRequest(HUSB husb, BOOL dir_in, UCHAR recipient, UCHAR bRequest, USHORT wValue, USHORT wIndex, USHORT wLength, char *data);
BOOL APIENTRY Uusbd_VendorRequest(HUSB husb, BOOL dir_in, UCHAR recipient, UCHAR bRequest, USHORT wValue, USHORT wIndex, USHORT wLength, char *data);
Uusbd_VendorRequest(g.husb,false,UU_RECIPIENT_INTERFACE,USB_REQUEST_SET_INTERFACE,1,1,1,(char*)&(buf));
Uusbd_ClassRequest(g.husb,false,UU_RECIPIENT_INTERFACE,0x09,0x200,0,1,(char*)&(buf));
21 09 00 02 00 00 01 00
Part | Description | HexData |
---|---|---|
bmRequestType | 00100001 | 21 |
bRequest | SET_REPORT | 09 |
wValue | Report Type and Report ID | 00 02 |
wIndex | Interface | 00 00 |
wLength | Report Length | 01 00 |
Data | Report | 実際のデータ |
%USB\VID_4242&PID_EE01.DeviceDesc%=UUSBD.Dev, USB\VID_4242&PID_EE01
USB\VID_4242&PID_EE01.DeviceDesc="uusb psoc example1" ;→この名前がデバイスマネージャで見える