?
Solved

Barcode scanner only works properly on hyperterminal

Posted on 2011-02-28
7
Medium Priority
?
2,358 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 150 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 600 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 750 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
Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

 
LVL 6

Assisted Solution

by:LeeeRussell
LeeeRussell earned 600 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you are having problems installing printer drivers, or if documents repeatedly get stuck in the print queue even after re-installing the printer drivers, then follow these steps to solve the problems. Please note that the steps are shown both for…
Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 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