We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hey everyone
Im a student doing a small barcode project that scans items with MSH119 barcoe scanner and integrates with C and the 8051 to produce a list display of price and totals of the list Im looking for a bit of help on where to get started with the decoding of the output..... there is no connection to the scanner so i have only read TTL on oscilloscope so far to read black and white bars
many thanks in advance
Baden Maher Beng EEE Uni of Plymouth
ps ... email badenmaher@hotmail.com with any advice or sample code
Keil don't do a C++ compiler for the 8051 - just ANSI 'C'.
"there is no connection to the scanner"
How can you read anything if you're not connected to it?!
"Im looking for a bit of help on where to get started with the decoding of the output....."
What does the Datasheet for the scanner say?
i can use(buy) any connection i need to use to integrate it however i need to know which would make coding easier as im only doing this for a project in university
Buy a scanner that gives decoded output!
Plenty are available on ebay.
sorry but i need to do this for a project in university and my supervisor said thats too easy so im up a creek with no paddle and you know the name of this creek too!!!
"im up a creek with no paddle"
No, you're not. You're in a university; you have a library, and you have internet access - that should give you plenty of resources to start researching...
the research isnt the problem its the coding where im struggling and i have a tonne of books.. im very new to coding and havent much time to go over the 5 books i have on coding thanks though for the vote of confidence
"im very new to coding"
You've been given this as part of your course - so, presumably, at this stage of the course you should have covered enough to complete the assignment!
If you feel that this is not the case, then talk again to your supervisor.
"5 books i have on coding"
There's no short-cuts to learning to program! If it was easy, it wouldn't take a University course! It's not going to be possible to condense those 5 books into a few short forum posts!
If you have a specific question, then ask it - but you still need the basic foundations.
Unless they address 5 totally different topics (eg, 5 different languages), it is unlikely that you will need to study all 5 in detail - at least, not for this one project.
Therefore you should ask your supervisor which one he/she recommends as your primary source - and focus on that one.
You could also ask your fellow students which one(s) they find most useful.
There's no short-cuts to learning to program! If it was easy, it wouldn't take a University course!
The bad part is that it isn't enough with one - or ten courses either. The courses gives you a methodology for how to understand the vocabulary, where to find information and how to learn new tricks. Then it takes a couple of years to become a decent developer, and maybe a lifetime (if at all) to become a truly great developer.
"The courses gives you a methodology for how to understand the vocabulary, where to find information and how to learn new tricks."
Exactly. It has been said that the benefit of a good eduction is not what you know, but what you know how to find out
A university student should be expected to be able, for example, to think of typing "barcode" into the 'Search' box to reveal this, among others: http://www.keil.com/forum/docs/thread10241.asp
" The Barcode Book" Otherwise time the duration of the white and black bars. The find in you list a narrow bar use that time for the narrows and to figure out the wide bars. Then decods base on your barcode type.
www.links999.net/.../barcode_introduction.html