Solved

Barcode scanner only works properly on hyperterminal

Posted on 2011-02-28
7
2,237 Views
Last Modified: 2012-05-11
My friend have symbol scanner that is being used to scan barcodes. Unfortunately it works properly on Hyper-terminal program (Classic windows xp). But on the program that i have implemented, The barcode reads some of the numbers and others are characters and does not recognize those numbers.
I also used some other appilcations that uses SerialComport to read data, and it also outputs the same bad data characters.
Below is the sample output

example:
Good result:  789001     << from hyperterminal (windows xp)
Bad result:     7?9??1    << from my program and other latest SerialCom reader software.

What could be the problem? thanks guys God Bless
0
Comment
Question by:stijohnforever
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 12

Assisted Solution

by:NormanMaina
NormanMaina earned 50 total points
ID: 34996475
If I were you ,i'd just get a rs232 to usb converter (they are cheap) and then you will not need to read the serial port.

But you can also check the port settings that the hyper terminal is using to connect to your serial port are the same as your program.
0
 
LVL 6

Assisted Solution

by:LeeeRussell
LeeeRussell earned 200 total points
ID: 34998200
I think you should check if the parity bit settings are the same in your software and the hyperterminal.
0
 
LVL 12

Accepted Solution

by:
Hairbrush earned 250 total points
ID: 35005526
NormanMaina - all an "rs232 to USB converter" does is add a serial port to a computer that (typically) does not have any serial ports.  The software still talks to the hardware device in the same way, and in the driver settings you'd still need to configure the baud rate, data bits, parity bits and stop bits to be compatible with the device.

I agree with Lee - if data is being lost or corrupted it is probably those settings that are incorrect in both your application and SerialCom (but correct in HyperTerminal).  I suggest you compare the settings in each application.
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 6

Assisted Solution

by:LeeeRussell
LeeeRussell earned 200 total points
ID: 35005600
and I suggested parity bit because if the example you give is a real example - you appear to be only losing the transmissions of even numbers (although I suppose this could also be due to the difference between 7-bit and 8-bit transmission).

Fundamentally, you need to make sure that the settings for the serial connection are *exactly* the same in hyperterminal and your software.
0
 
LVL 1

Author Comment

by:stijohnforever
ID: 35005677
Thanks to all of you guys for your comments and suggestions, And yes that's the first thing i did, configure those settings before i made this thread, but still to no avail. Anyways after hours of configuring and downloading similar software. Ive created program code on my own, to sniff data on a textfile from the Hyperterminal Data log. Which works the same way. God bless to all Below is my simple program.


 The result
0
 
LVL 1

Author Closing Comment

by:stijohnforever
ID: 35005709
Ive managed on my own, and also i greatly considered the comments of the experts.
0
 
LVL 12

Expert Comment

by:NormanMaina
ID: 35009936
Hairbrush:>what a barcode scanner does is basically emulate the keyboard -most barcode scanners are usb and plub and play -in this case,the author had a serial port barcode scanner - with a serial to usb converter you will not have to read the serial port -you'll only have to make the text input box have focus and then point the scanner to the barcode -it will pick the barcode(most metrologic and symbol scanners do without having to press anything) and it will paste the barcode into the control.

stijohnforever:>reading the log is not 100% accurate and you'll find this out with time..you'll have to ensure that barcode numbers are unique in your database so that for any reason the log isnt written or HT is not running,you do not read the last record over and over again
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Nadia
Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
Iteration: Iteration is repetition of a process. A student who goes to school repeats the process of going to school everyday until graduation. We go to grocery store at least once or twice a month to buy products. We repeat this process every mont…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question