Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with USB communication

Status
Not open for further replies.

zhenqiang

Newbie
Joined
Nov 13, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Beijing
Activity points
1,307
Now we designed a control panel with usb HID interface,the panel sent heartbeat message every 5 second.
There are mechanical encoders in this panel,the encoder output such as $g*i message when rotate the encoder cap,and the heartbeat message is $QWERWR* message.
The problem is sometimes when we rotate the encoder continuously,the panel may output R* occasionally,seems the end bits of the heartbeat message.
We have no idea with this problem?
 

I think that this is probably a rotary problem not a USB problem. A mechanical rotary encoder will occasionally send out the wrong code due to switch bounce. The only way to stop this is to either use a optical encoder or redesign the software to cope with errors from the rotary encoder.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top