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,174件の閲覧回数
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,149件の閲覧回数
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,163件の閲覧回数
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,147件の閲覧回数
Stan2018Zhang
NXP Employee
NXP Employee

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

0 件の賞賛
返信