Device Descriptor:
12 01 00 02 00 00 00 40 2D 15 38 23 00 01 01 02 05 01
Class/Subclass/Protocol = 0 / 0 / 0
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: JMicron
enumeration:
Product: USB to ATA/ATAPI Bridge
enumeration:
Serial Number: 152D203380B6
enumeration:
Config data length = 32
enumeration:
Configuration Descriptor:
09 02 20 00 01 01 04 C0 01
NumInterfaces = 1
ConfigurationValue = 1
09 04 00 00 02 08 06 50 06
Interface = 0
Number of endpoints = 2
Class/Subclass/Protocol = 8(Mass Storage) / 6(SCSI) / 80(Bulk Only)
07 05 81 02 00 02 00
Endpoint = 1 IN
Type = Bulk
Max Size = 512
Polling Interval = 0
07 05 02 02 00 02 00
Endpoint = 2 OUT
Type = Bulk
Max Size = 512
Polling Interval = 0
enumeration:
JoystickController claim this=200123E0
KeyboardController claim this=20012900
HIDParser claim this=20013340
HIDParser claim this=20012BA0
USBHub memory usage = 960
USBHub claim_device this=20014820
USBHub memory usage = 960
USBHub claim_device this=20014BE0
USBHub memory usage = 960
USBHub claim_device this=200140A0
msController claim this=20027A80
msController claim this=20027E00
msController claim this=20028180
Descriptor 4 = INTERFACE
JoystickController claim this=200123E0
09 04 00 00 02 08 06 50 06 07 05 81 02 00 02 00 07 05 02 02 00 02 00
jtype=0
KeyboardController claim this=20012900
HIDParser claim this=20013340
HIDParser claim this=20012BA0
msController claim this=20027A80
09 04 00 00 02 08 06 50 06 07 05 81 02 00 02 00 07 05 02 02 00 02 00
numendpoint=2
endpointIn=81
endpointOut=2
packet size in (msController) = 512
packet size out (msController) = 512
polling intervalIn = 0
polling intervalOut = 0
new_Pipe
new_Pipe
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
Are you calling read and write functions from the main thread or the usb thread? If you are calling it from the main thread then that could be an issue if the USBHost library/driver is not thread safe.
// threads.addThread(usbthread);
Do you mind sharing the code you're working with?
Sounds reasonable, right now I'm working on making sure FNET is thread safe. The way it's configured now is fine for multi-thread as long as it's only called by one thread, true multi-thread will work across multiple threads simultaneously which may or may not be useful to some but at least it will be there for those who find it useful.
Invalid version '4.6.3.2' for library in: T:\tCode\libraries\FNET
Invalid version '4.6.3.2' for library in: T:\tCode\libraries\FNET
Error while detecting libraries included by T:\tCode\libraries\FNET\src\service\serial\fnet_serial.c
Looks pretty good, I want to get some kind of speed going to see if all the effort was worth it or not.
Using board 'teensy40' from platform in folder: T:\arduino_1.8.10\hardware\teensy\avr
Using core 'teensy4' from platform in folder: T:\arduino_1.8.10\hardware\teensy\avr
Detecting libraries used...
"T:\\arduino_1.8.10\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=148 -DARDUINO=10810 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\cores\\teensy4" "T:\\TEMP\\arduino_build_882125\\sketch\\ASIXEthernet_Test.ino.cpp" -o nul
[B]Alternatives for USBHost_t36.h: [USBHost_t36@0.1]
ResolveLibrary(USBHost_t36.h)
-> candidates: [USBHost_t36@0.1]
[/B]"T:\\arduino_1.8.10\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=148 -DARDUINO=10810 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\cores\\teensy4" "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "T:\\TEMP\\arduino_build_882125\\sketch\\ASIXEthernet_Test.ino.cpp" -o nul
[B]Alternatives for ASIXEthernet.h: [TeensyASIXEthernet]
ResolveLibrary(ASIXEthernet.h)
-> candidates: [TeensyASIXEthernet]
[/B]"T:\\arduino_1.8.10\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=148 -DARDUINO=10810 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\cores\\teensy4" "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IT:\\tCode\\libraries\\TeensyASIXEthernet" "T:\\TEMP\\arduino_build_882125\\sketch\\ASIXEthernet_Test.ino.cpp" -o nul
[B]Alternatives for TeensyThreads.h: [TeensyThreads@1.0 TeensyThreads@1.0]
ResolveLibrary(TeensyThreads.h)
-> candidates: [TeensyThreads@1.0 TeensyThreads@1.0]
[/B]"T:\\arduino_1.8.10\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=148 -DARDUINO=10810 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\cores\\teensy4" "-IT:\\arduino_1.8.10\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IT:\\tCode\\libraries\\TeensyASIXEthernet" "-IT:\\tCode\\libraries\\TeensyThreads" "T:\\TEMP\\arduino_build_882125\\sketch\\ASIXEthernet_Test.ino.cpp" -o nul
[B]Alternatives for fnet.h: [FNET@0.1.2]
ResolveLibrary(fnet.h)
-> candidates: [FNET@0.1.2][/B]
Multiple libraries were found for "USBHost_t36.h"
Used: T:\arduino_1.8.10\hardware\teensy\avr\libraries\USBHost_t36
Multiple libraries were found for "ASIXEthernet.h"
Used: T:\tCode\libraries\TeensyASIXEthernet
Multiple libraries were found for "TeensyThreads.h"
Used: T:\tCode\libraries\TeensyThreads
Not used: T:\arduino_1.8.10\hardware\teensy\avr\libraries\TeensyThreads
Not sure about rebuilding a lot of stuff, I haven't had anything rebuild unless I change something in one of the files I'm working on, maybe it has to do with the conflicting libraries thing?
Versions I'm using is Teensyduino 1.47 and Arduino 1.8.9 just for reference.
I'm not sure, mine connects fine. Try unplugging and replugging the cable while it's already on, that resets the DHCP request.
0:2:11.262 Tx Tcp 192.168.0.23 47.913 12,720,000 2,123.869
// Closed PING after stating this run
0:4:43.261 Tx Tcp 192.168.0.23 86.506 25,440,000 2,352.680
Benchmark results:
Megabytes: 12
Bytes: 720000
Seconds: 48.0540
Bytes/Sec: 14983.1440
KBytes/Sec: 14.9831
Benchmark results:
Megabytes: 25
Bytes: 440000
Seconds: 86.6400
Bytes/Sec: 5078.4857
KBytes/Sec: 5.0785
5.284 2,000,000 3,027.833
3.236 1,024,000 2,531.241
2.752 1,024,000 2,977.083
4.827 1,024,000 1,697.257
2.240 1,024,000 3,656.568
4.357 1,024,000 1,880.299
3.729 1,024,000 2,196.863
2.106 1,024,000 3,888.958
3.711 1,024,000 2,207.542
2.551 1,024,000 3,211.867
3.161 1,024,000 2,591.855
[B][U]13.285[/U] 1,024,000 616.649
[U]2.749[/U] 1,024,000 2,979.512[/B]
Benchmark results:
Megabytes: 1
Bytes: 24000
Seconds: [U]13.4340[/U]
Bytes/Sec: 1786.5118
KBytes/Sec: 1.7865
Looped: 194538141 LoopedUSB: 3486
Looped: 192963903 LoopedUSB: 3507
Looped: 193601608 LoopedUSB: 3507
Benchmark results:
Megabytes: 1
Bytes: 24000
Seconds: [U]2.9340[/U]
Bytes/Sec: 8179.9591
KBytes/Sec: 8.1800
3.827 1,024,000 2,140.770
7.773 1,024,000 1,053.946
2.012 1,024,000 4,071.463
3.224 1,024,000 2,540.961
[B]22.984 1,024,000 356.420[/B]
5.594 1,024,000 1,464.405
4.498 1,024,000 1,821.446
3.123 1,024,000 2,623.050
2.034 1,024,000 4,026.955
2.251 1,024,000 3,638.765