Virtual keyboard wedge software for RS-232 and USB

What is a keyboard wedge?

In the days before USB, bar code readers often came with a hardware keyboard wedge, a little device which allowed both a keyboard and the barcode reader to be connected to the keyboard port (PS/2) of a PC. Codes scanned by the barcode reader could thereby be transmitted as keystrokes. As far as the computer was concerned, there was no difference between a key pressed on the keyboard and one sent by the barcode scanner. This allowed the barcode scanner to be used with any application that accepted keyboard inputs.

While hardware keyboard wedges have become rare (most barcode scanners today connect via USB and appear as a human interface device), this very flexible concept still exists in the form of virtual keyboard wedges (a.k.a. software keyboard wedges). These programs are usually used with devices that connect to a computer via RS-232 (COM port) or that emulate an RS-232 connection while actually connecting through USB, Bluetooth SPP (serial port profile) or any other kind of virtual COM port.

Such devices include measurement instruments like balances and scales, digital calipers, etc. and legacy devices like serial barcode scanners and card readers. The software keyboard wedge connects to these devices and types received data into any application as simulated keystrokes.

Software keyboard wedge for Windows

This list contains all keyboard wedge programs I know of in alphabetical order. Prices were last updated on March 6, 2015. Please leave a comment if you know a program not listed here.

  • 232key: Free (232key Plus with additional features: 30 US$). Simple, easy to configure. Predefined settings for several balances and scales. Types only numbers (no characters). Disclosure: I made this.
  • Bill Redirect: Commercial (35 US$). Lots of tutorials available. Particularly interesting for touchscreens.
  • ewCaptSer: Free. Only available in German. Minimal functionality.
  • KeyInjector: Commercial (four versions from 19.99 US$ to 49.99 US$).
  • RsKey (Win CT): Free, only works with scales and balances using A&D’s format.
  • TWedge: Commercial (from 116 US$). Extensive functionality, can be adapted to almost any task through scripts (using JavaScript).
  • WedgeLink: Commercial (89 US$ Lite, 195 US$ Standard).
  • WinWedge: Commercial (299 US$ Standard, 399 US$ Professional). Useful feature list comparison.

Which software keyboard wedge is the best?

Impossible to say, without knowing what you’re planning to do, looking at each program in detail and testing it to see if it works reliably.

Generally speaking (and keep in mind that I’m certainly biased here), 232key can do many things for free which would otherwise cost you money. It is certainly worth trying out if you’re only interested in numerical values (e.g. the weight sent by a balance or the quantity sent by a counting scale). Also note that 232key cannot (currently) request data from your device (by sending a device-specific command), so you’ll have to press a key on your device instead (like the “Print” key on a scale, though many scales can also be configured to send stable data automatically).

TWedge is (in my experience with several demanding customers) an excellent choice if you need maximum flexibility. There’s hardly anything it can’t do if you’re willing to modify the scripts that come with it. While some other programs look like they haven’t been updated in a while, TWedge is regularly improved. Its latest version can even intercept and modify data sent by USB human interface devices (HID) like modern barcode scanners.

Further information on RS-232

Have a look at my new curated page on Zeef which includes links to general information on RS-232, keyboard wedge software, terminal software and RS-232 analyzers.

WordPress sharing button opens new window with same post

The problem:

Clicking on the JetPack sharing buttons in WordPress opens a new window with the parameter ?share=... added to the URL. However, instead of being redirected to twitter or Facebook or wherever you wanted to go, you’re redirected to the post itself again.

The solution:

In my case, this was caused by the “Redirect ugly URL’s” setting in the popular Yoast WordPress SEO plugin (marked as “not recommended”, obviously for good reasons):
Clean permalinks - not recommended

After unchecking this option, sharing worked as expected.

If you don’t want to disable this feature, adding “share” to the list of variables not to clean should also fix the issue:
Variables not to clean

Unencrypted content: a threat to Google’s business model

Google’s recent announcement to give a (currently still small) ranking boost to websites using HTTPS is undoubtedly going to make the web safer for everyone.

Missing from the discussion is the fact that unencrypted content and unscrupulous ISPs present a small, but growing threat to Google’s business model. Google depends on ad revenue, and insecure connections allow third parties to tamper with data while in transit. ISPs can use this to their advantage by injecting their own ads. This is already happening: see here or here and this topic on reddit. It was also briefly mentioned in one of the comments under the original “ranking boost” announcement:

HTTPS ads comment google

HTTPS ensures data integrity and would make ad injection not only technically far more difficult, but also most certainly illegal. This also explains why Google says that even simple “content sites” should use HTTPS: they might not collect any user data, but they can still serve ads.

Being a good citizen of the web” and making the web safer for everyone sounds nice and is certainly something many people working at Google have in mind. However, it would be naive to assume that Google isn’t also looking out for it’s own commercial interests.