Barcode scanner input

Hi .
I have an application that needs to receive bar code scanner input (the DS6707 from motorola). This application also discusses with 3 or 4 boards that run in parallel (using serial port com). So I have at least 5 threads that are running in parallel: one for each port com, one supervisor, and the main for the user interface.
I created a control to get the data coming from the barcode scanner, but sometimes I lose some number on my barcode, or sometimes I receive ‘?’ instead of a number.
If I create a thread that read the standard input, it works, I always receive all my numbers, but the problem is that I have the standard input that is visible and I don’t want.
I tried to used keyboard methods from the windows library , but I don’t know how to proceed.
Thanks for your help.

I have a question about a keyboard wedge scanner input.
I have a single panel with several text boxes placed in a grid.
I post the output from 8 flash programmers in the boxes.
I have a single wide text box below these to display general program status.
My problem is when I scan the barcodes from the panel array, all data goes
through the Upper Left text box. i want the data to go through the big box on the bottom.
The reason I am using the text box in the upper left, is because that is where the data went
when I scanned the bar codes. I was desperate to get the project moving forward.
And the StdIO window caused too many problems.
Question,  How do I move the cursor to the other text box ? I have tried many Set / Get
Attribute parameters.  If there exists any "how-To" example code I would be grateful.
void ReadSerialNumber1 (char* BigBuffer9)
 statspanelHandle  = TESTER_DialogGetSubPanelCVIHandle(&StatsHandle);
 statspanelHandle  = GetCtrlVal (StatsHandle, STATSPANEL_TEXTBOX_2, BigBuffer9);
 DisplayPanel(StatsHandle);
 fprintf(Stream1,"Serial Number..~%s~\n",BigBuffer9);
code in main section
  sprintf(LittleBuffer1,"\n  -- SCAN Serial Number Nest 1-- ");
  WriteTextBox1(LittleBuffer1);
  PN_Size = strlen(LittleBuffer1);
  for(x=0;x<128;x++){ LittleBuffer1[x] = '\0';}
  PN_Size = strlen(LittleBuffer1);
  while(PN_Size != 10){
     int Stat_Val;
     Delay(0.5);  
  ReadSerialNumber1(LittleBuffer1);
     PN_Size = strlen(LittleBuffer1);
  if(TEST_CHECK_BREAK) break;
  if(PN_Size == 10)  Ready_Go = 1;
  strcpy(sSerialNum1,LittleBuffer1);
  strcpy(Scan_Buffer[0],LittleBuffer1);
  if(!strcmp(ModuleType2,"DSM")) strcpy(Scan_Buffer[1],LittleBuffer1);
  ResetTextBox2();
  if(TEST_CHECK_BREAK) break;
  sprintf(LittleBuffer1,"____%s____",Scan_Buffer[0]);  
  WriteTextBox1(LittleBuffer1); 
  Ready_Go = 0;

Similar Messages

  • Adobe form barcode scanner input

    I made an Adobe form with X Pro.  The purpose of the form is to inventory equipment.  I use a barcode scanner to enter serial numbers into the form.  When I scan the barcode (Code 39) of an item the serial number entered into the form is truncated.  To ensure that the scanner was reading the barcode correctly I scanned a code while having notepad open, it input the entire serial number correctly.  I did the same thing with Word and the serial was also input correctly.  Why is the form truncating my serial number?  I can type more in the field if I so wish so I know that a character limit is not the issue.  I checked all of the text box's properties but see nothing incorrect or limiting. 
    Thanks for the help,
    Goob

    Sorry for never replying to your post.  The problem is: I do not know why this is happening.
    Your last sentence "on the Text Area the scan seems to stop before entering all digits but when I scroll back through, they are accurate" makes me think.  As I wrote earlier, "A barcode scanner is basically just an input device like a keyboard", but very much faster.  Somehow it seems that the software acts like it is encountering the carriage return before all the data digits have been processed.
    But somehow it also seems to correct itself in a text area that allows multiple lines, but not in a single-line text field.
    Yet that does not happen with my barcode scanner, but with yours and the o/p's.
    Very confusing!  Does anybody else have some thoughts on this?

  • 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();
    }

  • Input string by barcode scanner acts differently

    Hi I develop a simple program that accepts input by means of barcode scanner automatically.
    Using keyboard works fine but not barcode scanner.
    The program acts weird, when using barcode scanner during run time and development. I cannot find ways to debug it.
    Would appreciate your help if u can help to solve. I am using Labview 7.1.
    Here are exe and vi.
    Your regards
    Clement
    Attachments:
    bsvskb.zip ‏30 KB
    KBvsBS.vi ‏139 KB

    Hi astrophysics,
    I've looked at your program and have some questions.  What exactly is this weird behavior that you are referring to?  Can you explain what you are trying to do and what the program is doing instead?
    Also, you said that you were looking for ways to debug your program.  Inherently, LabVIEW has many debugging tools, such as the probe tool, which allows you to check wire values and highlight execution, which can narrow down the specific location that is giving these unexpected results.  You can also check LabVIEW Help - the topic "Debugging Options Page" explains the available tools.
    Let me know how it goes.
    Thanks,
    Janell Rodriguez | Applications Engineer | National Instruments

  • How to stop page from resetting when using a laser barcode scanner to fill input areas.

    I am using Firefox 30 with Mac OS 10.9 at work. We keep track of workflow using a 3rd party website and scan the information in with a UBS laser barcode scanner.
    In Firefox the input regions will fill with the information, but then clear without saving or sending the information to the site. What settings are needed for Firefox to keep and send the scanned information?

    Just a WAG.
    Try the first item in Accessibility = Always use the cursor keys to navigate within page
    ''assuming that web app doesn't use the cursor keys for anything''
    Have you attempted to get support for that website or website app?
    Without more information all we can do is guess.
    It's been 10 years or so, but I did play with the CueCat barcode scanner a bit and even modified some software that I found on a CueCat enthusiast website to do silly things and to re-purpose it to keep an inventory of my CD collection. ''(Yep, that long ago.)''
    The CueCat it was sending keyboard commands, which wasn't hard to figure out, because it piggy-backed on the PS/2 keyboard cable; there were a very small number of USB versions made for retail store kiosks and for demo purposes, but the whole project was killed before they started making the USB for consumers.

  • 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

  • I am trying to use a fixed Miniscan Ms4404 barcode scanner.

    I am trying to use a fixed Miniscan Ms4404 barcode
    scanner. In such a way that when a part passes through, it will scan
    automatically without manually triggering the barcode scanner. Moreover is
    there a way to use this scanner communicate with Slc5/03 Processor?.. basically
    to cut it short i need a basic idea on how to setup this entire project. Your
    input and suggestions will be greatfully appreciated.
    Thanks
    Joe

    smercurio_fc
    Knight of NI
    Posts: 14,454
    0 Kudos
    Options
    08-26-2011 01:30 PM
    Do you have a means of detecting when the part is in position to be scanned, such as a proximity switch, or a camera, or some sort of load sensor? When you say the part passes through are you saying the part is continually in motion? How fast is it? If it's too fast you may not be able to detect the part being in position and triggering the scanner under software-based control.
    as for the question regarding communicating with the Slc5/03 processor, this is a vague question. What's the processor doing? What kind of communication are you referring to? If you have a processor in there, what is the LabVIEW-based app doing?
    Message 2 of 2 (6 Views)
    Add Tag...
    The project is on the design stage, but the idea is to test for pressure decay in Automotive parts. Here is a scenario.
    1.  All the parts to be tested are barcoded for identification.
    2. The testing station has a plate that moves in and out to load and unload the parts to be tested. And by the testing table, a Miniscan MS4404 is fixed to read off the barcode.
    3.  There will be two proximity switches that detects the part present.
    4.  As soon as the part is present it should stay for the entire test which should last for about 10sec at least. Simultaneously the scanner should be triggered.
    5.  Now since I am goin to use the MS4404 miniscan, my reseach tells me this miniscan and does not have trigger button, but I understand somewhere out there it can be triggered automatically,Software based, as soon as the part
          is within its range. So that I will be able to communicates with scanner to enable. disable, beep, etc.
    6. I need a way to decode the scanned data and store it my data base for passed and failed tests. i guesse this where the PLC and LAbView come into picture.
    If there is a way to bypass PLC and cheaper way, I will welcome all the suggestions.
    Thank you
    Joe

  • Scanner input  VS keyboard input

    Dear all,
    We have a webdynpro application that receives it's input from a usb barcode scanner. The screens are working fine, but now there's an extra requirement, that for some input fields, it's mandatory that the input is coming from the scanner, and not from manual input with the keyboard.
    Is it possible?
    The barcode scanner behaves as an input device, without triggering events or so, so at this moment, we don't really know if the input is coming from a scanned barcode or from manual input with the keyboard.
    Kind regards,
    J.
    PS: the scenario is where the web dynpro application runs on a desktop or laptop, so the alternative for handheld with barcodereader UIElement is not an option to solve this.

    Hi
    Please explain this point again :  the scenario is where the web dynpro application runs on a desktop or laptop, so the alternative for handheld with barcodereader UIElement is not an option to solve this.
    With external hardware device(Thumb print reader , Signature pad  ) it has set of API which we  can incorporate inside our application , challenging part is whether
    such sort of solution is there in webdynpro or not , alternatively we can use JSP with java script to handle this  with using IFRAME UI (which is deprecated) or webwidgetUI element (might available in 7.2 ).
    further with your point
    The barcode scanner behaves as an input device : Yes by default is get its place to write , we have to highlight that input field with current cursor position.
    Hope you get some help?
    Best Regards
    Satish Kumar

  • Disabling keyboard and enabling barcode scanner in forms10g

    I have attached keyboard and barcode scanner with CPU. I want to disable keyboard navigation for one oracle form 10g and enable only barcode scanner without detachment of kleyborad.

    It might be if you disable the keyboard system you would disable your barcode scanning, depending on
    what level this keyboard blocking occurred. I mean at some point the multiple keyboard like inputs could be going through the same driver. Just a thought.
    If you think people are going to put extraneous characters in there I guess you will have to do a lot of error checking/cleanup on the scanned data and make the field larger than it needs be?. Doesn't look very easy to block the keyboard.
    However, zillions of malwares have hooked
    into keyboard driver traffic for keylogging. It's one of those innumerable typical things where the valid usage expertise has not caught up with the bad usage knowledge. BTW the users could also mouse around and screw this up. If you can block
    their mousing in the form that would be good probably.

  • Making barcode scanner work

    Hello,
    I am stuck here with the barcode scanner "Symbol LS2208" via USB and have to use it in a Java app. I am using jdk 1.5 and downloaded the javax.comm API. Now i have some problems with which I hope one of you can help me. Is there a way to read from the scanner via USB, because as far as I can see the javax.comm API supports only serial ports and does the whole thing work with JDK 1.5, as javax.comm seems to have been written for JDK 1.2? I really would appreciate if one could get me started at least with some helpful documentation or examples...actually anything :-)

    I don't know about reading the USB input directly, and I don't know about your particular scanner.
    However, I have a Symbol LS4000 that I use in keyboard emulation mode. Is that an option for you? Or does it have to be the raw USB input?
    If you can use keyboard emulation mode, you'll probably have to configure the scanner to do that. For the one I have, the scanner gets configured by scanning various barcodes in the manual.
    So check with your prof or get the docs for the scanner. You'll need that as well as whatever Java knowledge is relevant for the approach you choose.

  • Follow Up to Scanner Input from File

    Alright, I have another problem. My code is this:
    for (int j = 0; j < username.length; j++) {
         String line = input.nextLine();          // Create a temporary String that will store each line
         // Check if the temporary line isn't empty
         if (line.length() > 1) {
                 numAccounts++;
                 username[j] = line.substring(10);
                 password[j] = input.nextLine().substring(10);
                 System.out.println(username[j]);
         } else {     // If the temporary line is empty, go back on the loop to prevent empty array entries
                  j--; }
         }It runs through once, and then stops. Here are the declarations:
    static int numAccounts = 1;
    static String[] username = new String[numAccounts];
    static String[] password = new String[numAccounts];
    static  Scanner input = new Scanner(new BufferedReader(new FileReader("account.txt")));Which was done outside of the main method.
    Why does the loop iterate only once?

    Woah, don't need to get all heated up about something I'm doing wrong. I'm just trying to figure this out. Sorry if I'm getting on your nerves.
    So anyways, I did the ArrayList method with your suggestion of making it an ArrayList of Objects. This is what I have so far:
    // Declare the ArrayList that will store all the Account Objects retrieved from the database
    static ArrayList<Account> accounts = new ArrayList<Account>();
    while (input.hasNextLine()) {
        String line = input.nextLine();          // Create a temporary String that will store each line
        // Check if the temporary line isn't empty
        if (line.length() > 0) {
             //System.out.println(line);
             String currentName = line.substring(10);
             String currentPass = input.nextLine().substring(10);
             Account current = new Account(currentName, currentPass);
             accounts.add(current);
    }Yes, I stuck with using the line.length() > 0, because trying to use line != null doesn't work properly for me. Not entirely sure why. Just throws IndexOutOfBoundsException when it's called.
    And my Account Object class is as so:
    class Account {
         static String username, password;
         Account(String username, String password) {
              this.username = username;
              this.password = password; }
    }I tried to print out the username and passwords to the indexes of 0, 1, and 2, and they're all the same.
    System.out.println(accounts.get(0).username);
    System.out.println(accounts.get(0).password);
    System.out.println(accounts.get(1).username);
    System.out.println(accounts.get(1).password);
    System.out.println(accounts.get(2).username);
    System.out.println(accounts.get(2).password);What is also interesting, is that it only fetched (or copied) the last two lines in the text document. It ignores all the entries before that.
    Do you know what I did wrong? I think I did a logic error in there somewhere.

  • 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

Maybe you are looking for

  • IPod shows as camera and will not let me use as disk space. Please Help!!

    Okay, so i know that this has probably been asked before, but every similar question i read was a little different from my specific problem. Maybe someone on here can help me. :)) *crosses fingers* I've had my iPod Touch since summer, and I just got

  • Error while running in weblogic

    I get an error when i use weblogic to run a simple hello servlet deployment of my.war is successful import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloServlet extends HttpServlet {     public void service(HttpSer

  • Superscript becomes # in CONVERT_OTF output PDF

    Hello, As the subject says, units of m2 (2 in superscript) becomes m# when converting OTF to PDF. Does anyone have an idea how to fix this, I looked into note 1012515, but it's already implemented. Thanks!

  • Add new user

    I am using the Messaging server 6.0 with Directory server 5.2. I could not find the directory SUNWcamm when i want to create the new user. Do i need to configure something first before create a new user, if yes can u give me a step

  • Others cant see/read my text

    i have the LG Vortex and when i send text to other people that dont have a smartphone or newer cell it comes up blank or as a page. is there something in my cell that i need or can change to fix this? i love the phone and dont really want to get rid