Bluetooth to Socket CHS 7P barcode scanner

I'm trying to use my Socket CHS 7P on a fully up-to-date ArchLinux system. I've followed instructions on both Bluetooth Mouse and Bluetooth Keyboard but it doesn't help. hcidump seems to reveal that the device connects successfully for a brief second but then disconnects instantly.
Here is the hcidump after running hidd --connect:
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Read Remote Supported Features (0x0b) plen 11
< ACL data: handle 12 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
> HCI Event: Max Slots Change (0x1b) plen 3
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Command Status (0x0f) plen 4
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Info rsp: type 2 result 1
Not supported
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0059 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0059 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0059 flags 0x00 clen 0
> HCI Event: Remote Name Req Complete (0x07) plen 255
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 48
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0059 flags 0x00 result 0 clen 4
MTU 48
< ACL data: handle 12 flags 0x02 dlen 24
L2CAP(d): cid 0x0059 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x1200 (PNPInfo)
max 65535
aid(s) 0x0000 - 0xffff
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(d): cid 0x0040 len 10 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x5
count 2
cont 00
< ACL data: handle 12 flags 0x02 dlen 24
L2CAP(d): cid 0x0059 len 20 [psm 1]
SDP SSA Req: tid 0x1 len 0xf
pat uuid-16 0x1124 (HID)
max 65535
aid(s) 0x0000 - 0xffff
cont 00
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(d): cid 0x0040 len 10 [psm 1]
SDP SSA Rsp: tid 0x1 len 0x5
count 2
cont 00
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0059 scid 0x0040
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0059 scid 0x0040
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x005a scid 0x0040 result 1 status 2
Connection pending - Authorization pending
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x005a scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x005a flags 0x00 clen 0
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 48
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x005a flags 0x00 result 0 clen 4
MTU 48
< ACL data: handle 12 flags 0x02 dlen 25
L2CAP(d): cid 0x005a len 21 [psm 1]
SDP SSA Req: tid 0x0 len 0x10
pat uuid-16 0x1108 (Headset)
max 65535
aid(s) 0x0004 (ProtocolDescList) 0x0100 (SrvName)
cont 00
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(d): cid 0x0040 len 10 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x5
count 2
cont 00
< ACL data: handle 12 flags 0x02 dlen 25
L2CAP(d): cid 0x005a len 21 [psm 1]
SDP SSA Req: tid 0x1 len 0x10
pat uuid-16 0x1101 (SP)
max 65535
aid(s) 0x0004 (ProtocolDescList) 0x0100 (SrvName)
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 12 flags 0x02 dlen 52
L2CAP(d): cid 0x0040 len 48 [psm 1]
SDP SSA Rsp: tid 0x1 len 0x2b
count 38
cont 02 00 08
< ACL data: handle 12 flags 0x02 dlen 27
L2CAP(d): cid 0x005a len 23 [psm 1]
SDP SSA Req: tid 0x2 len 0x12
pat uuid-16 0x1101 (SP)
max 65535
aid(s) 0x0004 (ProtocolDescList) 0x0100 (SrvName)
cont 02 00 08
> ACL data: handle 12 flags 0x02 dlen 20
L2CAP(d): cid 0x0040 len 16 [psm 1]
SDP SSA Rsp: tid 0x2 len 0xb
count 8
record #0
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) > <
uuid-16 0x0003 (RFCOMM) uint 0x1 > >
aid 0x0100 (SrvName)
str "Socket Serial Port"
cont 00
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x005a scid 0x0040
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x005a scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4
bluetooth daemon doesn't output anything interesting, just:
bluetoothd[3647]: adapter_get_device(00:13:E0:48:56:8A)
Need this working, so all help is greatly appreciated.
uname -a:
Linux ebornarch 2.6.31-ARCH #1 SMP PREEMPT Tue Oct 13 13:36:23 CEST 2009 i686 AMD Athlon(tm) Dual Core Processor 4050e AuthenticAMD GNU/Linux
Thanks.

Ingenico has a 1D Bluetooth barcode scanner certified MFi by Apple.
http://baracoda.ingenico.com/Baracoda-i-fly.aspx
Baracoda i-Fly is compatible with Apple iPod touch, iPhone and iPad.
Baracoda i-Fly supports IAP Bluetooth profile and is MFi certified, which means it is 100% compatible with Apple development standards and performances.
Its Bluetooth connection is bidirectional, which enables the i-Fly to transmit data both ways in mode « No Data Loss »).
Furthermore, Firmware update is also possible, which is not the case for non-MFi certified devices.

Similar Messages

  • Can anyone recommend a bluetooth barcode scanner for iPhone?

    I'd like to be able to integrate a bluetooth hand-held barcode scanner with the iPhone, but can't seem to find any on the market that are compatible w/iPhone, just Windows compatible (Blackberry, HP, etc). I want to be able to scan book barcodes and lookup pricing on Amazon for a book shopping + selling business. Don't even mention the RedLaser app b/c it won't work with Amazon and is painfully SLOW! Thanks!

    but can't seem to find any on the market that are compatible w/iPhone
    That's because there aren't any. Bluetooth in the iPhone doesn't have the required profiles to allow communication with a barcode scanner.

  • How would I create an USB Barcode Scanner Listener using Adobe AIR?

    I want to create a USB barcode scanner listener that would read in the scanned barcode, and place the barcode in a field in my AIR App even if the program wasn't focused on that particular field in the App.  If the client was using the application at the time for something else the scan would be buffered in AIR till requested or the AIR App has been idle for x period of time where upon the field would be brought into focus.
    How would I go about this (I'm developing on windows)  Was hoping for a USB solution within AIR but not fussy at all if I have to go outside AIR to solve this problem.  Java, Flex, ActionScript, Flash, C, C++, C#, VB (currently I've developed the rest of the App using Adobe AIR and JavaScript)
    I thought after some research that I could make a Java App (if all else fails) that listens and buffers the input and passes it along using a socket but JUSB doesn't work on Windows properly.
    I'm not stuck on any one particular implementation or idea just want to get development underway so...  Any ideas? or suggestions would be awesome.  I've googled a lot but haven't found any examples or solid suggestions, so any URL pointing to that information would be great too, if you know of a good one, then I'd be able to read up on any suggestion.
    Thanks,
    Marty

    Thanks Joe,
    Just for anyone else.  I bought a Metologic Scanner - VoyagerCG.  I was trying to get it to work using Java USB for a bit with no luck.  But if you get this scanner or one like it, it can be configured as a Virtual COM Port.  Which is very very easy in Java to set up as a listener and use sockets to transfer the data and listen within AIR.
    This PDF has links to drivers and instructions if this is useful to anyone.
    http://taltechnologies.com/products/Eclipse-Voyager%20Interface%20Options.pdf
    All the best,
    Marty

  • Can I use a barcode scanner with my Ipad 2

    I want to hook up a handheld scanner to my Ipad2 and use it to track invatory, is this possible?

    Contact your inventory app vendor. There are a number of such things, but generally the vendor of the hardware has a specific inventory app for it.
    http://www.google.com/search?q=bluetooth+barcode+scanner+ipad

  • Barcode Scanner Compatible with OAF framework

    Dear All
    Our Organization wants to purchase a Barcode Scanner Compatible with OAF framework which is wireless and Bluetooth Supported and can run E-business suite.
    can any one sugest us.
    regards
    arif

    Please see these docs.
    Supported Barcode Formats in Release 12 [ID 757983.1]
    Mobile Apps Does Not Recognize Barcode Data Identifiers and Strip the DFI's [ID 745432.1]
    How To Enable Barcode Scanning In Mobile Field Service [ID 1085330.1]
    Receiving "Transaction Fails" When Using Mobile Supply Chain (MSCA) Terminal Device/Scanners [ID 837728.1]
    Advanced Barcode Strategies [ID 297992.1]
    Using Barcode Scanning Solutions with Oracle Applications and Desktop Computers [ID 152601.1]
    Also, contact the vendors and ask them for the certifications/features with Oracle E-Business Suite.
    Thanks,
    Hussein

  • How can i use an barcode scanner and a keyboard at the same time on Ipad

    HI I am looking to find a way to use a barcode scanner and the on screen key bard at the same time, so far i cant seem to find a way to do it.
    Does any one know how this can be done.
    thanks

    It is possible, I use multiple versions, however Firefox official policy is that you use firefox3.6 or 5 ; not firefox 4 which is not secure and not supported.
    The easiest solution may be to use firefox portable http://portableapps.com/apps/internet/firefox_portable/localization#legacy36 although firefox 3.6 will itself not be supported for much longer.

  • A barcode scanner that was connected directly to the Mac's USB port stopped working as the "USB had too much power drawn", even though it has worked for over a year in that port.  WHen we plugged it into the port on the keyboard, the device works. Why?

    A barcode scanner that was connected directly to the Mac's USB port stopped working as the "USB had too much power drawn", even though it has worked for over a year in that port.  When we plugged it into the port on the keyboard, the device works. Why?  Obviously the device is operational.  Could the USB port have burned out from having too much power drawn?  If so, is it reparable?

    It can't draw "too much" power, it can only draw as much as the USB port is able to provide and no more. IIRC, the keyboard port has a lower power output than the iMac's port.
    That being said, yea, it's possible that the port has failed and it can be replaced or if another port works you can use that one. Although if it is still under warranty or covered by Apple Care, then I would take it to an Apple Store or service provider to get the port repaired.

  • How to get data from usb barcode scanner and display on GUI

    pls anyone with ideas on how to communicate with usb barcode scanner

    http://www.google.com/search?hl=en&q=java+usb+barcode+scanner&btnG=Google+Search

  • How to identify the type of pocketpc barcode scanner?

    How to identify the type of pocketpc barcode scanner whteher it is intermec or symbol?
    GS

    Hi,
    well, this is the brand of the PDA - the Scanner itself is build into the device. So if you have an intermec device - you have an intermec scanner and vice versa. It is not recommended to use a HP device for example with an external scanner. This scenario is not really supported by the MI setup guides.
    Hope that helps!
    Regards,
    Oliver

  • What kind of BarCODE scanner works well with LabVIEW ?

    Currently I am working on a project need the use of Barcode Scanner to scan BarCODE. In our project, the minimum range requirement would be 30 feet. I noticed some posts here indicate there are some problems for barcode scan applications in LV to some specific Barcode scanner models. .
    So, I would like to know if someone has successful experience for wireless or usb barcode scanner programming using LV,  and the Barcode scanner model.
    I would prefer wireless Barcode scanner.
    Thanks in advance.

    Hey Michenglaoxu,
    I thinkt he best thing to do is look at a similar thread where someone was just looking for tips on where to get started and someone actually recommends a product. I can't guarantee the validity of his suggestion, but I thought you may find that link useful.
    Good luck!
    Regards,
    Nick D.

  • I want to limit the number of scan done by a barcode scanner to 50, how can i do that

    I am scanning data from my 2d barcode scanner, now i want that after 50 scans my barcode scanner should prompt that scanning of 50 barcode complete, how can i do that? i know logic might be easy but its not sticking me. Please help.

    Hey,
    Everytime you get a valid scan increment a counter and compare with 50. If limit is reached you are done.
    Regards
    CMW
    LV 13.0.1 Developer Suite with Automated Test; Win7 x64

  • Barcode Scanner app using Javascript for windows 8 tablet

    I want to create a barcode scanner app in which i want to start the camera preview, and read the barcode. Is there any sample code? I have used the below code but its working only with windows desktop not working with tablet.
    function openScanner() {
        var
            // barcode main objects
            zxing,
            sampler,
            element,
            // application  references
            isZxingInit = false,
            isDomReady = false,
            isVisible = false,
            isCancelled = false,
            raiseSuccess,
            raiseError;
        // init objects
        initZXing();
        initSampler().done(function () {
            console.log('- MediaCapture has been initialized successfully!');
            // preparing to show camera preview
            createCameraElement();
            showPanel();
            setTimeout(render, 100);
        }, raiseError);
        // initialize ZXing
        function initZXing() {
            if (!isZxingInit) {
                isZxingInit = true;
                zxing = new ZXing.BarcodeReader();
                console.log('zxing==' + zxing);
            } else {
                console.log('- ZXing instance has been recovered!');
        // initialize MediaCapture
        function initSampler() {
            console.log('- Initializing MediaCapture...');
            sampler = new Windows.Media.Capture.MediaCapture();
            return sampler.initializeAsync();
        // initializes dom element
        function createCameraElement() {
            console.log('- Creating DOM element...');
            if (!isDomReady) {
                isDomReady = true;
                element = document.createElement('video');
             //   element.style.display = 'none';
                element.style.position = 'absolute';
                element.style.left = '0px';
                element.style.top = '0px';
              //  element.style.zIndex = 2e9;
                element.style.width = '100%';
                element.style.height = '100%';
                element.onclick = cancel;
                document.body.appendChild(element);
                console.log('- Camera element has been created!');
            } else {
                console.log('- DOM is ready!');
        function showPanel() {
            if (!isVisible) {
                isCancelled = false;
                isVisible = true;
                element.style.display = 'block';
                element.src = URL.createObjectURL(sampler);
                element.play();
        // renders image
        function render() {
            console.log('- Sampling...');
            var frame, canvas = document.createElement('canvas');
            canvas.width = element.videoWidth;
            canvas.height = element.videoHeight;
            canvas.getContext('2d').drawImage(element, 0, 0, canvas.width, canvas.height);
            frame = canvas.msToBlob().msDetachStream();
            loadStream(frame);
        // loads data stream
        function loadStream(buffer) {
            console.log('- Loading stream...');
            Windows.Graphics.Imaging.BitmapDecoder.createAsync(buffer).done(function (decoder) {
                console.log('- Stream has been loaded!');
                if (decoder) {
                    console.log('- Decoding data...');
                    decoder.getPixelDataAsync().then(
                        function onSuccess(pixelDataProvider) {
                            console.log('- Detaching pixel data...');
                            decodeBitmapStream(decoder, pixelDataProvider.detachPixelData());
                        }, raiseError);
                } else {
                    raiseError(new Error('Unable to load camera image'));
            }, raiseError);
        // decode pixel data
        function decodeBitmapStream(decoder, rawPixels) {
            console.log('- Decoding bitmap stream...');
            var pixels, format, pixelBuffer_U8;
            switch (decoder.bitmapPixelFormat) {
                // RGBA 16
                case Windows.Graphics.Imaging.BitmapPixelFormat.rgba16:
                    console.log('- RGBA16 detected...');
                    // allocate a typed array with the raw pixel data
                    pixelBuffer_U8 = new Uint8Array(rawPixels);
                    // Uint16Array provides a typed view into the raw bit pixel data
                    pixels = new Uint16Array(pixelBuffer_U8.buffer);
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.rgba32 : ZXing.BitmapFormat.rgb32);
                    break;
                    // RGBA 8
                case Windows.Graphics.Imaging.BitmapPixelFormat.rgba8:
                    console.log('- RGBA8 detected...');
                    // for 8 bit pixel, formats, just use returned pixel array.
                    pixels = rawPixels;
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.rgba32 : ZXing.BitmapFormat.rgb32);
                    break;
                    // BGRA 8
                case Windows.Graphics.Imaging.BitmapPixelFormat.bgra8:
                    console.log('- BGRA8 detected...');
                    // basically, this is still 8 bits...
                    pixels = rawPixels;
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.bgra32 : ZXing.BitmapFormat.bgr32);
            // checking barcode
            readCode(decoder, pixels, format);
        // decoding barcode
        function readCode(decoder, pixels, format) {
            'use strict';
            console.log('- Decoding with ZXing...');
            var result = zxing.decode(pixels, decoder.pixelWidth, decoder.pixelHeight, format);
            if (result) {
                console.log('- DECODED: ', result);
                close(result);
            } else if (isCancelled) {
                console.log('- CANCELLED!');
                close({ cancelled: true });
            } else {
                render();
        // cancel rendering
        function cancel() {
            isCancelled = true;
        // close panel
        function close(result) {
            element.style.display = 'none';
            element.pause();
            element.src = '';
            isVisible = false;
            element.parentNode.removeChild(element);
            isDomReady = false;
            raiseSuccess(result);
        function raiseSuccess(result) {
            console.log('Result===' + JSON.stringify(result));
        function raiseError(error) {
            console.log('ERROR::::' + error);
    Can anyone tell why its not working on tablet with solution? Thanks in advance

    Hi Asha - we have sample code for barcode scanning here:
    https://code.msdn.microsoft.com/windowsapps/Barcode-scanner-sample-f39aa411
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Iam new to Barcode Scanner configuration

    Hi friends
                 We have a barcode label for delivery document , we have planning to use the barcode scanner for label . if we use way to observe the delivery document details . so end user to have comfortable to fetch the date to SAP System .
                What are the configuration is required  for bar code scanner?
                iam a new for barcode scanner configuration, pls help me to do the configuration?
    with regards
    dinesh

    HI
    Check this links
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    http://help.sap.com/bestpractices/BBLibrary/HTML/H38_BarcodeInt_EN_DE.htm
    Regards,
    Krishna.

  • Wrong characters in KeyEvents generated from input of barcode scanner

    Hi everybody, :-)
    I have a problem with KeyEvents coming from a barcode scanner. The issue seems to have creeped in somewhere between JSE 6u3 and 6u10, as in the former it works as expected and in the latter it does not. The problem persists still, we also tested it with 6u22 and 6u23 (all tests were performed on the same Windows XP machine). The actual test client is very simple, the application is only a JFrame containing a JTextField and a JTextArea.
    The barcode scanner we use connects via USB and has no special driver. The scanner already decodes the barcode that was scanned and "enters" characters in the focussed text field of the test application by emulating the Alt+NumPad behaviour (the character '5' being produced by the equivalent of holding Alt and entering "0053" on the NumPad).
    Now, what appears when the application is run in JSE 6u03 is the expected result:
    5@WM010$|
    5@WM010$|
    5@WM010$|
    5@WM010$|
    Here's the result for the same barcode when the application is run in JSE 6u10 (results for 6u23 are similar):
    5@WÞ10ä
    é@—M010$|
    5@W¥ð104|
    5°ùM0ó(▄♀
    5@W¥010$|
    é@WM010Ü\
    é@W¥010P\
    5@wy010$|
    5@m01Ð$▄
    )°W¥01è$|
    )@—0ÑÐ$|
    Well, at least it manages to get some characters right every time... ;-)
    The character values are wrong already when the KeyEvent for each is being created and posted to the EventQueue. But on the other hand, the problem is obviously tied to the JSE used, so it has to occur somewhere after Java receives the input and before a KeyEvent is generated. Since the errors are very random, we are guessing that it might be a timing problem.
    Between JSE 6u3 and 6u10, KeyEvent has received some new members (here with their typical values for my use case):
    #isSystemGenerated     true
    #primaryLevelUnicode     0     
    #rawCode     0     
    #scancode     0     
    Maybe the problem could have been introduced in the same changeset? Or maybe the values observed are meaningful in a way?
    Can anybody enlighten me, or give me a hint of any kind? I already scoured the bug database but did not find anything.
    Thanks! Any help is appreciated!
    Regards, Lars

    @mriem: Yes, I did. In all cases, it is "windows-1252". And moreover, if it were a problem with the default character set, it would not show the random behaviour it does.
    I also managed to create a reproducer that shows the behaviour:
    import static java.awt.event.KeyEvent.*;
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    public class ScannerTest {
         private static final String TEST = "5@WM010$|";
         private static final int DELAY = 50;
         private static final Map<Character, int[]> ALT_CODES = new HashMap<Character, int[]>();
         static {
              ALT_CODES.put('5', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD5, VK_NUMPAD3 });
              ALT_CODES.put('@', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD6, VK_NUMPAD4 });
              ALT_CODES.put('W', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD7, VK_NUMPAD7 });
              ALT_CODES.put('M', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD8, VK_NUMPAD7 });
              ALT_CODES.put('0', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD4, VK_NUMPAD8 });
              ALT_CODES.put('1', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD4, VK_NUMPAD9 });
              ALT_CODES.put('$', new int[] { VK_NUMPAD0, VK_NUMPAD0, VK_NUMPAD3, VK_NUMPAD6 });
              ALT_CODES.put('|', new int[] { VK_NUMPAD0, VK_NUMPAD1, VK_NUMPAD2, VK_NUMPAD4 });
         public static void main(String[] args) throws Exception {
              System.out.println(java.nio.charset.Charset.defaultCharset().name());
              final int delay = DELAY;
              final JFrame frame = new JFrame("ScannerTest");
              SwingUtilities.invokeAndWait(new Runnable() {
                   @Override
                   public void run() {
                        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        JScrollPane scrollPane = new JScrollPane(new JTextArea());
                        scrollPane.setPreferredSize(new Dimension(300, 600));
                        frame.add(scrollPane);
                        frame.pack();
                        frame.setVisible(true);
              new Thread() {
                   @Override
                   public void run() {
                        try {
                             Robot robot = new Robot();
                             for (int c = 0; c < 1000; c++) {
                                  if (frame.isActive()) {
                                       for (int i = 0; i < TEST.length(); i++) {
                                            int[] codes = ALT_CODES.get(TEST.charAt(i));
                                            if (frame.isActive()
                                                      && !(codes == null || codes.length == 0)) {
                                                 robot.keyPress(VK_ALT);
                                                 for (int code : codes) {
                                                      robot.keyPress(code);
                                                      robot.keyRelease(code);
                                                 robot.keyRelease(VK_ALT);
                                            robot.delay(delay);
                                       robot.keyPress(VK_ENTER);
                                       robot.keyRelease(VK_ENTER);
                                  } else {
                                       c--;
                                       try {
                                            Thread.sleep(delay);
                                       } catch (InterruptedException e) {
                                            e.printStackTrace();
                        } catch (AWTException e) {
                             e.printStackTrace();
              }.start();
    }

  • Barcode scanner in Adobe flash

    Hi,
    I am looking forward to use usb barcode scanner for my Abobe flash application with player 9 and actionscript 2.0
    The application has java as the back-end.
    Please advise the options available.
    thanks in advance

    Thank you - Just what I needed

Maybe you are looking for

  • Does the ipod touch itself need wifi in order to use find my iphone??

    My ipod touch 4g got stolen and i have find my iphone turned on but my question is does the ipod itself need wifi to track it down??  I've tried so many times i played sound, i have a passcode lock on it, i even sent a message to my ipod... But i try

  • Setting 1 dimension in ROLAP mode cause issues, the system try to filter on dynamic set names!

    Hi, I suffer a strange behavior. I have an SSAS 2014 solution which works fine. I do some test to convert 1 dimension in ROLAP mode. (all the other dimensions and partitions are MOLAP only) after this I cant process any cube!!! even a process clear o

  • Some images get cropped upon upgrade to 3.1.  New Issue?

    I haven't seen this in the forums yet but my Aperture 3.1 upgrade has been cropping the images of one camera (Canon 50D) to the size of another camera (Nikon D70s) with a lower resolution. The result is the images show correctly in thumbnail view but

  • Where is my memory gone?

    Hello people... I have an odd question about memory usage on S10 x86, maybe someone can help... I have a Solaris 10 x86 update 7 system with 2 GB memory installed and a few processes running, the odd things is, some of the supposedly free memory for

  • Deployment Failing when "Update post application" is enabled

    Hello! I keep receiving this error during imaging when I have the option enable to do windows updates post applications installed. This has always worked in the past but now it has stopped working. Any thoughts??