Solved

Barcode scanner only works properly on hyperterminal

Posted on 2011-02-28
7
2,204 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 6

Assisted Solution

by:LeeeRussell
LeeeRussell earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Ive managed on my own, and also i greatly considered the comments of the experts.
0
 
LVL 12

Expert Comment

by:NormanMaina
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
One of Google's most recent algorithm changes affecting local searches is entitled "The Pigeon Update." This update has dramatically enhanced search inquires for the keyword "Yelp." Google searches with the word "Yelp" included will now yield Yelp a…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now