LPC55S69 SDK HID generic example --- how to send the HID packet quickly?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55S69 SDK HID generic example --- how to send the HID packet quickly?

1,173 次查看
Stan2018Zhang
NXP Employee
NXP Employee


LPC55S69 SDK: Version 2.12.0. 

example program: dev_hid_generic_bm.

USB speed: High speed port is used

Platform: LPC55S69 EVK

 

This demo receives an HID packet, and immediately sends it back. When I move the send function to the main loop, and want to send something to the host from the main loop, I noticed that it can only send very slowly: no more than 2 times every 1 second.

If I increase to call the send function (in the main loop) 10 times every second, the sending will be canceled in the sending function because of "0U != hidHandle->interruptInPipeStall".

 

 

Stan2018Zhang_1-1681702949301.png

 

question is: how to let the demo progam, send HID packets at a higher requency (such as 10 or 100 times every second) in the main loop?

 

0 项奖励
回复
3 回复数

1,148 次查看
Stan2018Zhang
NXP Employee
NXP Employee

I tried it. It doesn't help. Even with the interval value = 0x04, it should still support 1000 times sending every second. While what I am having is no more than 2 times sending every second.

0 项奖励
回复

1,162 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you can change the interrupt interval(HS_HID_GENERIC_INTERRUPT_IN_INTERVAL) in usb_device_descriptor.h, which tell the host the interval the host reads HID packet

Hope it can help you

BR

XiangJun Rong

xiangjun_rong_0-1681725735738.png

 

0 项奖励
回复

1,146 次查看
Stan2018Zhang
NXP Employee
NXP Employee

I changed it to 1, it doesn't help fixing my issue.

0 项奖励
回复