Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work USB_Test program #20

Open
yamachan-hacomono opened this issue Jul 5, 2022 · 3 comments
Open

Don't work USB_Test program #20

yamachan-hacomono opened this issue Jul 5, 2022 · 3 comments

Comments

@yamachan-hacomono
Copy link

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.

@tobozo
Copy link
Owner

tobozo commented Jul 13, 2022

Hello @yamachan-hacomono,

thanks for your feedback 👍

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

⚠️ 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.

@yamachan-hacomono
Copy link
Author

@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.

@tobozo
Copy link
Owner

tobozo commented Jul 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants