Solved

Barcode scanner only works properly on hyperterminal

Posted on 2011-02-28
7
2,281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Schedule a Tour of the ATEN booth at InfoComm 2017

Tour the ATEN booth to see the the Latest Addition to the Modular Matrix Switch Series, New 4K HDMI Over IP Extender and more! Enter ATEN's Ultimate Giveaway Sweepstakes for a chance to win one of several great prizes, including an ATEN US7220 2-Port Thunderbolt 2 Sharing Switch!

 
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

690 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