ESP32-USB-Soft-Host icon indicating copy to clipboard operation
ESP32-USB-Soft-Host copied to clipboard

Don't work USB_Test program

Open yamachan-hacomono opened this issue 3 years ago • 10 comments

Hello,

We're testing with a keyboard connected to the ESP32-DevKit C-32E. But when I type on the keyboard, I don't see the keys. GPIO has DP connected to 16 and DM connected to 17, with the other pins disabled. Do you have any advice?

[Env] ESP32-DevKit C-32E Arduino IDE 1.8.19 for windows

[Log]

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:12812
load:0x40080400,len:3032
entry 0x400805e4
USB Soft Host Test for Default Wroom
USB#0 (pins 16 17) is OK!
READ_BOTH_PINS = 0100
READ_BOTH_PINS = 0000
READ_BOTH_PINS = 0000
READ_BOTH_PINS = 0000
cpu freq = 160 MHz
TIME_MULT = 77 
D=   0 4800 bits in 1885.000000 uSec 2.546419 MHz  6 ticks in 2.356250 uS
D= 127 4800 bits in 5720.000000 uSec 0.839161 MHz  6 ticks in 7.150000 uS
D=  63 4800 bits in 3775.000000 uSec 1.271523 MHz  6 ticks in 4.718750 uS
D=  31 4800 bits in 2802.000000 uSec 1.713062 MHz  6 ticks in 3.502500 uS
D=  47 4800 bits in 3294.000000 uSec 1.457195 MHz  6 ticks in 4.117500 uS
D=  39 4800 bits in 3042.000000 uSec 1.577909 MHz  6 ticks in 3.802500 uS
D=  43 4800 bits in 3174.000000 uSec 1.512287 MHz  6 ticks in 3.967500 uS
D=  45 4800 bits in 3223.000000 uSec 1.489296 MHz  6 ticks in 4.028750 uS
D=  44 4800 bits in 3204.000000 uSec 1.498127 MHz  6 ticks in 4.005000 uS
D=  43 4800 bits in 3168.000000 uSec 1.515152 MHz  6 ticks in 3.960000 uS
TRANSMIT_TIME_DELAY = 46 time = 4.005000 error = 0.125003% 
USB#1 is disabled by user configuration
USB#2 is disabled by user configuration
USB#3 is disabled by user configuration

Thanks.

yamachan-hacomono avatar Jul 05 '22 05:07 yamachan-hacomono

Hello @yamachan-hacomono,

thanks for your feedback :+1:

Can you please specify the exact keyboard model along with more info on the VCC/GND wiring for this USB port?

:warning: The keyboard has to be USB Low Speed otherwise it won't be detected by this library, which eliminates most wireless dongles and keyboards/mice for gamers.

tobozo avatar Jul 13 '22 15:07 tobozo

@tobozo thank you for your reply!

VCC / GND is obtained from a regulated power supply and has a sufficient supply amount. The connected device is a general USB keyboard. Maybe it's doing fast processing and you don't recognize it. The keyboard is Realforce 91UBK-S.

yamachan-hacomono avatar Jul 15 '22 00:07 yamachan-hacomono

VCC / GND is obtained from a regulated power supply

is GND shared between the ESP and the keyboard as it should?

Realforce 91UBK-S. Price | $200+

that's bad news, given the average price of that device it's probably a USB High Speed device.

one way to verify this is to plug said keyboard to a linux system while running tail -f /var/log/syslog and look for the device detection message: if it doesn't mention low-speed USB device then it's not compatible.

image

tobozo avatar Jul 15 '22 09:07 tobozo