So below what I get. I do think the problem is the initialisation of the device after the first handshake. It accepts few bytes, but after go to sleep. At the end it is trying to write data to 70x320 section of display so quite lot of data.
How should I write big amount of data, 16200 bytes in this case. Now it is just write a byte at the time.
This part is unclear
USBSerial, rxep=1(512), txep=1(512)
rx buffer size:1024
tx buffer size:1024
Can I write 512 or 1024 at one write?
I assume this is no response from the device? This continues for ever (or maybe the 16200 bytes) They come at fast rate difficult to say, but maybe several 100 per second.
What does the TX:moar data!!!! mean, and what is the tx2.
txtimer
TX data (14) 82 FF 00 00 00 00 00 00 3F 48 00 00 00 00
tx1:
tx1:
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
At the start when setting up the USB there is the
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Is this something to worry about. Is it missing some service the device would like to have?
This is disconnecting the devise (unplug USB) from the previous state
How should I write big amount of data, 16200 bytes in this case. Now it is just write a byte at the time.
This part is unclear
USBSerial, rxep=1(512), txep=1(512)
rx buffer size:1024
tx buffer size:1024
Can I write 512 or 1024 at one write?
I assume this is no response from the device? This continues for ever (or maybe the 16200 bytes) They come at fast rate difficult to say, but maybe several 100 per second.
What does the TX:moar data!!!! mean, and what is the tx2.
txtimer
TX data (14) 82 FF 00 00 00 00 00 00 3F 48 00 00 00 00
tx1:
tx1:
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
At the start when setting up the USB there is the
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Is this something to worry about. Is it missing some service the device would like to have?
Code:
USB Host Testing - Serial
USB2 PLL running
reset waited 6
USBHS_ASYNCLISTADDR = 0
USBHS_PERIODICLISTBASE = 20003000
periodictable = 20003000
port change: 10001803
connect
begin reset
port change: 18001205
port enabled
end recovery
new_Device: 480 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 00 02 EF 02 01 40 C2 2E 04 00 00 01 01 02 03 01
VendorID = 2EC2, ProductID = 0004, Version = 0100
Class/Subclass/Protocol = 239 / 2 / 1
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: Loupedeck
enumeration:
Product: Loupedeck Live
enumeration:
Serial Number: LDD2001014022200100398B2002
enumeration:
Config data length = 75
enumeration:
Configuration Descriptor:
09 02 4B 00 02 01 04 A0 32
NumInterfaces = 2
ConfigurationValue = 1
08 0B 00 02 02 02 00 05
Interface Association = 0 through 1
Class / Subclass / Protocol = 2 / 2 / 5
09 04 00 00 01 02 02 01 05
Interface = 0
Number of endpoints = 1
Class/Subclass/Protocol = 2 / 2 / 1
05 24 00 10 01
05 24 01 03 01
04 24 02 06
05 24 06 00 01
07 05 82 03 40 00 07
Endpoint = 2 IN
Type = Interrupt
Max Size = 64
Polling Interval = 7
09 04 01 00 02 0A 00 00 06
Interface = 1
Number of endpoints = 2
Class/Subclass/Protocol = 10 / 0 / 0
07 05 01 02 00 02 01
Endpoint = 1 OUT
Type = Bulk
Max Size = 512
Polling Interval = 1
07 05 81 02 00 02 01
Endpoint = 1 IN
Type = Bulk
Max Size = 512
Polling Interval = 1
enumeration:
USBHub memory usage = 960
USBHub claim_device this=20004620
USBHub memory usage = 960
USBHub claim_device this=200049E0
HIDParser claim this=200031E0
HIDParser claim this=200038A0
HIDParser claim this=20003F60
USBSerial(512)claim this=20004F20
vid=2EC2, pid=4, bDeviceClass = 239, bDeviceSubClass = 2, bDeviceProtocol = 1
08 0B 00 02 02 02 00 05 09 04 00 00 01 02 02 01 05 05 24 00 10 01 05 24 01 03 01 04 24 02 06 05 24 06 00 01 07 05 82 03 40 00 07 09 04 01 00 02 0A 00 00 06 07 05 01 02 00 02 01 07 05 81 02 00 02 01
Descriptor 11 = IAD
Descriptor 4 = INTERFACE
HIDParser claim this=200031E0
HIDParser claim this=200038A0
HIDParser claim this=20003F60
USBSerial(512)claim this=20004F20
vid=2EC2, pid=4, bDeviceClass = 239, bDeviceSubClass = 2, bDeviceProtocol = 1
09 04 00 00 01 02 02 01 05 05 24 00 10 01 05 24 01 03 01 04 24 02 06 05 24 06 00 01 07 05 82 03 40 00 07 09 04 01 00 02 0A 00 00 06 07 05 01 02 00 02 01 07 05 81 02 00 02 01
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 5 = ENDPOINT
Descriptor 4 = INTERFACE
HIDParser claim this=200031E0
HIDParser claim this=200038A0
HIDParser claim this=20003F60
USBSerial(512)claim this=20004F20
vid=2EC2, pid=4, bDeviceClass = 239, bDeviceSubClass = 2, bDeviceProtocol = 1
09 04 01 00 02 0A 00 00 06 07 05 01 02 00 02 01 07 05 81 02 00 02 01
len = 23
USBSerial, rxep=1(512), txep=1(512)
rx buffer size:1024
tx buffer size:1024
new_Pipe
new_Pipe
Control - CDCACM LINE_CODING
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
control callback (serial) 4
Control - 0x21,0x22, 0x3
control callback (serial) 0
*** Device USERIAL 2ec2:4 - connected ***
manufacturer: Loupedeck
product: Loupedeck Live
Serial: LDD2001014022200100398B2
control callback (serial) 6
CDCACM setup: 00 10 27 00 00 00 08
control callback (serial) 4
Control - 0x21,0x22, 0x3
userial started
Request1 WS
GET /index.html
HTTP/1.1
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Key: 123abc
control callback (serial) 0
txtimer
TX data (98) 47 45 54 20 2F 69 6E 64 65 78 2E 68 74 6D 6C 0D 0A 48 54 54 50 2F 31 2E 31 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 55 70 67 72 61 64 65 0D 0A 55 70 67 72 61 64 65 3A 20 77 65 62 73 6F 63 6B 65 74 0D 0A 53 65 63 2D 57 65 62 53 6F 63 6B 65 74 2D 4B 65 79 3A 20 31 32 33 61 62 63 0D 0A 0D 0A 00
tx1:
rx token: 817F8100 transfer length: 512 len:129 - 48 54
rx: 48 54 54 50 2F 31 2E 31 20 31 30 31 20 53 77 69 74 63 68 69 6E 67 20 50 72 6F 74 6F 63 6F 6C 73 0D 0A 55 70 67 72 61 64 65 3A 20 77 65 62 73 6F 63 6B 65 74 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 55 70 67 72 61 64 65 0D 0A 53 65 63 2D 57 65 62 53 6F 63 6B 65 74 2D 41 63 63 65 70 74 3A 20 41 4C 74 6C 5A 6F 39 46 4D 45 55 45 51 6C 65 58 4A 6D 71 2B 2B 75 6B 55 51 31 73 3D 0D 0A 0D 0A
Response1
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: ALtlZo9FMEUEQleXJmq++ukUQ1s=
TEST
START
txtimer
TX data (14) 82 FF 00 00 00 00 00 00 3F 48 00 00 00 00
tx1:
tx1:
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
This is disconnecting the devise (unplug USB) from the previous state
Code:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
TX:moar data!!!!
tx2:
TX:moar data!!!!
tx1:
TX:moar data!!!!
port change: 1C00100A
disconnect
disconnect_Device:
USBDriver (available_drivers) list: 20004620 -> 200049E0 -> 200031E0 -> 200038A0 -> 20003F60
USBDriver (dev->drivers) list: 20004F20
disconnect driver 20004F20
USBDriver (available_drivers) list: 20004F20 -> 20004620 -> 200049E0 -> 200031E0 -> 200038A0 -> 20003F60
delete_Pipe 20005000
remove QH from async schedule
Free transfers
* 536883488 * remove * free
* 536883424 * remove * defer free until QH
* 536883616
* 536891808
Free transfers attached to QH
* 536883424
* 536891872
* Delete Pipe completed
delete_Pipe 20004FA0
remove QH from async schedule
Free transfers
* 536883616 * remove * free
* 536891808 * remove * defer free until QH
Free transfers attached to QH
* 536891808
* 536883552
* Delete Pipe completed
delete_Pipe 20003080
shut down async schedule
Free transfers
Free transfers attached to QH
* 536891744
* Delete Pipe completed
removed Device_t from devlist
disable
txtimer
*** No buffers ***
Last edited: