Bluefruit EZ-Key HID: Ignore certain ASCII codes?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Bender_Rodriguez
 
Posts: 4
Joined: Thu Nov 20, 2014 7:46 am

Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by Bender_Rodriguez »

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!

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by Franklin97355 »

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)

User avatar
Bender_Rodriguez
 
Posts: 4
Joined: Thu Nov 20, 2014 7:46 am

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by Bender_Rodriguez »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by adafruit_support_rick »

No, there's no way to filter incoming ascii.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by adafruit2 »

yah its completely 'transparent' - not sure how you can avoid having all the characters come thru

User avatar
Bender_Rodriguez
 
Posts: 4
Joined: Thu Nov 20, 2014 7:46 am

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by Bender_Rodriguez »

Thank you for your answers! Would it possible to remap the codes used in ASCII to HID conversion?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by adafruit_support_rick »

If you want to filter or map the data from your digital scale, you'd have to program a microcontroller to do that.

User avatar
Bender_Rodriguez
 
Posts: 4
Joined: Thu Nov 20, 2014 7:46 am

Re: Bluefruit EZ-Key HID: Ignore certain ASCII codes?

Post by Bender_Rodriguez »

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. ;-)

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”