I've connected an EZ-Key HID to a microcontroller of an existing device (a digital scale) and it worked instantly! I can now "type" the weight into any program running on a connected device.
Unfortunately, the scale is sending more characters than just the weight. Is there a way I can get EZ-Key to ignore certain ASCII codes (like 0A, OD, or maybe all non-numeric ones)? That would be awesome! Thank you!
Bluefruit EZ-Key HID: Ignore certain ASCII codes?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Bender_Rodriguez
- Posts: 4
- Joined: Thu Nov 20, 2014 7:46 am
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
0A 0D are the line feed and carriage return codes and usually any filtering is done at the computer side but I'll see if anyone has an idea. (I don't have one to test here)
- Bender_Rodriguez
- Posts: 4
- Joined: Thu Nov 20, 2014 7:46 am
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
Thank you! I have a working solution using computer side filtering with Bluefruit EZ-Link and a free "virtual keyboard wedge" program called 232key, but I'd prefer to use EZ-Key HID precisely because it requires no additional software (and 232key is Windows only). If EZ-Key HID had a way to get rid of unwanted characters, it would be perfect.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
No, there's no way to filter incoming ascii.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
yah its completely 'transparent' - not sure how you can avoid having all the characters come thru
- Bender_Rodriguez
- Posts: 4
- Joined: Thu Nov 20, 2014 7:46 am
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
Thank you for your answers! Would it possible to remap the codes used in ASCII to HID conversion?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
If you want to filter or map the data from your digital scale, you'd have to program a microcontroller to do that.
- Bender_Rodriguez
- Posts: 4
- Joined: Thu Nov 20, 2014 7:46 am
Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?
I'll look into it, thanks. If you ever make something like the Spark Core but with Bluetooth instead of WiFi, I'll buy a few. ;-)
Please be positive and constructive with your questions and comments.