For Programmers: Free Programming Magazines  


Home > Archive > Clipper > August 2004 > Reading codebars ERROR









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Reading codebars ERROR
A.M.

2004-07-16, 3:55 pm

Hi at all,
reading codebars with my reader I am a problem.
When codebars start with an A as all pharmaceutic product like:
A908464302
the reader do not read correctly the string as I do with my eye but it read
an other string.
If into the data base I use the string that the reader read, it found well
the product but if making errot it found nothing it is impossible for me
repeat a dbs() using the string that I look because it is different then
the string that I wrote with the reader.
Please have you aby idea to solve the problem?
Thank you in advance
P.Pietro


Klas Engwall

2004-07-16, 8:55 pm

P.Pietro,

>reading codebars with my reader I am a problem.
>When codebars start with an A as all pharmaceutic product like:
>A908464302
>the reader do not read correctly the string as I do with my eye but it read
>an other string.


Assuming that you are using a reader that stuffs the keyboard buffer,
what type of variable are you reading the bar code into? Is there a
picture format in the get that excludes certain characters? If you
display what you just read, what does it look like? If you read the
bar code into Notepad instead of your Clipper application, do you see
the correct string there?

Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]
A.M.

2004-07-17, 3:55 am


"Klas Engwall" wrote:

> Assuming that you are using a reader that stuffs the keyboard buffer,

YES


> what type of variable are you reading the bar code into? Is there a
> picture format in the get that excludes certain characters?


"@K NNNNNNNNNNNNNN"

If you
> display what you just read, what does it look like? If you read the
> bar code into Notepad instead of your Clipper application, do you see
> the correct string there?
>

NO! it read always the some code with notepad and or clipper like this:
If with my eye I read A103655080
it read 32V9P8
P.Pietro

> Klas
>
> -------
> klas dot engwall at engwall dot com
>
> Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]



pete@nospam.demon.co.uk

2004-07-17, 3:55 pm

In article <%x4Kc.56474$c_1.1824079@twister1.libero.it>
NOSPAM@eurotime.it "A.M." writes:

>
> "Klas Engwall" wrote:
>
> YES
>
>
>
> "@K NNNNNNNNNNNNNN"
>
> If you
> NO! it read always the some code with notepad and or clipper like this:
> If with my eye I read A103655080


"@K XNNNNNNNNNNNNN"

could be better if there is a letter at the start...

> it read 32V9P8


Check that you have character size, parity and stop bit set
correctly on your serial port. I have a hunch that you have the
wrong parity.

Hope it helps,
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
gabor salai

2004-07-17, 8:55 pm

"A.M." <NOSPAM@eurotime.it> wrote in message
news:sDTJc.54051$GQ3.1507864@twister2.libero.it...
> Hi at all,
> reading codebars with my reader I am a problem.
> When codebars start with an A as all pharmaceutic product like:
> A908464302
> the reader do not read correctly the string as I do with my eye but it

read
> an other string.
> If into the data base I use the string that the reader read, it found

well
> the product but if making errot it found nothing it is impossible for me
> repeat a dbs() using the string that I look because it is different

then
> the string that I wrote with the reader.
> Please have you aby idea to solve the problem?
> Thank you in advance
> P.Pietro


there are may types of codebar formats.
are you sure your reader is well programmed?
have you tried simple test with notepad and ean-13 or ean-8
[it is most widely used, every thing from supermarket has it]


Klas Engwall

2004-07-17, 8:55 pm

P.Pietro,

>YES


Sorry, wrong question. I should have asked: Is it a reader that is
connected to the keyboard port or the serial port.

>If you
>NO! it read always the some code with notepad and or clipper like this:
>If with my eye I read A103655080
>it read 32V9P8


That is a little odd. But what is it you read with your eye? The
barcode itself or the caption below it?

Have you dissected the barcode to see what is really inside it? It
looks like it might be compressed in a way that the reader is not set
up to understand or the caption does not correspond directly to the
barcode. Do you know what type of barcode it is? Perhaps studying the
spec for that type of code will tell us something.

What if you try to read a regular EAN/UPC (retail) barcode? Does that
show up correctly in Notepad?

Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]
A.M.

2004-07-18, 8:55 am


"Klas Engwall" >
>
> Sorry, wrong question. I should have asked: Is it a reader that is
> connected to the keyboard port or the serial port?


TO THE KEYBOARD PORT

>
>
> That is a little odd. But what is it you read with your eye? The
> barcode itself or the caption below it?

WIRH MY eye I READ A103655080
>
> Have you dissected the barcode to see what is really inside it? It
> looks like it might be compressed in a way that the reader is not set
> up to understand or the caption does not correspond directly to the
> barcode. Do you know what type of barcode it is?

It is the international PHARMACEUTIC BARCODE

Perhaps studying the
> spec for that type of code will tell us something.
>
> What if you try to read a regular EAN/UPC (retail) barcode? Does that
> show up correctly in Notepad?

In theese case it is too normal.
My reader do error only with pharmaceutic barcodes starting with an A.
>
> Klas
>



Klas Engwall

2004-07-18, 3:55 pm

P.Pietro,

>
>TO THE KEYBOARD PORT


OK. I had to ask that to rule out the kind of problems Pete suspected.

>WIRH MY eye I READ A103655080


Which is precisely what you said last time. But I wanted to know if
you, with your eye, read the clear text below the barcode on the label
or if you, with your eye, pen, pencil and the barcode symbology
specifications at hand, have investigated what is inside the barcode
itself. Those can be two completely different things. And apparently
it is the clear text below the barcode you are talking about. Don't
expect the scanner to see the same thing as you do!

>It is the international PHARMACEUTIC BARCODE


OK, I searched the web for wariations of that phrase and came up with
"Pharma Code" - usually in combination with country speicfiers like
"Italian Pharma Code", "French Pharma Code" and "Belgian Pharma Code".
I also found a document specifying how pharmaceuticals are labelled in
different countries. About Italy it says:

All pharmaceutical products must carry a bar code known as "PARAF"
in accordance to specifications issued by the Italian Ministry of
Health in 1983. The code is preceded by the letter 'A' that is not
represented in the symbol. The letter differentiates pharmaceutical
products from other types. The symbol uses code 39 and consists of
9 digits.

But I also found another document in which a scanner manufacturer
says:

Our scanner support Italian Pharma Code 39, but they do not
support the Pharma Symbology which is very different. Phama Code
usually consists of colored barcodes and require scanners that not
only look at the barcode but also the color spectrum.

A third document I found says:

The Pharma Code is used for quality control and product
identification for most pharmaceutical products. Often one or more
of the bars have different colour. The colours can be used to
display extra information about the product each company can use
different colouring for the bars, for example a blue bar may mean
the product may be taken orally, The other main pharmaceutical
barcode types are IKS, a variation of EAN 13, PZN (Pharma Zentralle
Numer), MSI and IMH, used by the Italian health Ministry The bars
encode a number which is not usually displayed.

So if this is the Italian Parma code 39, you should see "103655080".
Code 39 is a very simple and straightforward code and should never
give you any interpretation problems. But apparently that is not what
you have. So the first thing to investigate is if it is in fact the
"very different" Pharma symbology, in which case you have to find out
if the scanner you are using supports it.

HTH,
Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]
Shane

2004-08-15, 3:55 pm

Buongiorno, P.Pietro!

Il Codice 32 o Codice Farmaceutico
http://www.codiceabarre.it/bccode32.htm

> If with my eye I read A103655080
> it read 32V9P8


Italian Pharmacode encodes the number in Radix 32 onto a CODE-39 barcode
symbol.

Please view this in a monospaced font like Courier or Monaco.

Here's how A103655080 comes out 32V9P8:

103655080 decimal = 00011 00010 11011 01001 10101 01000 binary

00011 00010 11011 01001 10101 01000 binary =
3 2 V 9 P 8 radix 32.

BINARY TO RADIX 32 (skipping A, E, I, O)
==================
00000 0 01010 B 10100 N 11110 Y
00001 1 01011 C 10101 P 11111 Z
00010 2 01100 D 10110 Q
00011 3 01101 F 10111 R
00100 4 01110 G 11000 S
00101 5 01111 H 11001 T
00110 6 10000 J 11010 U
00111 7 10001 K 11011 V
01000 8 10010 L 11100 W
01001 9 10011 M 11101 X


*32V9P8* in CODE 39 is . .--.-- ....- ..-. -..-.- .-..--. .-. .-.. .--.

The URL above explains how the check digit is calculated
(It's 10 minus what the Luhn check digit would be, modulo 10.)


Hope this helps!

Shane Baggs, shane30 (at) hotmail (dot) com
Network Engineer, HSU Consulting




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Shane

2004-08-20, 3:55 am

Buongiorno, P.Pietro!

Il Codice 32 o Codice Farmaceutico
http://www.codiceabarre.it/bccode32.htm

> If with my eye I read A103655080
> it read 32V9P8


Italian Pharmacode encodes the number in Radix 32 onto a CODE-39 barcode
symbol.

Please view this in a monospaced font like Courier or Monaco.

Here's how A103655080 comes out 32V9P8:

103655080 decimal = 00011 00010 11011 01001 10101 01000 binary

00011 00010 11011 01001 10101 01000 binary =
3 2 V 9 P 8 radix 32.

BINARY TO RADIX 32 (skipping A, E, I, O)
==================
00000 0 01010 B 10100 N 11110 Y
00001 1 01011 C 10101 P 11111 Z
00010 2 01100 D 10110 Q
00011 3 01101 F 10111 R
00100 4 01110 G 11000 S
00101 5 01111 H 11001 T
00110 6 10000 J 11010 U
00111 7 10001 K 11011 V
01000 8 10010 L 11100 W
01001 9 10011 M 11101 X


*32V9P8* in CODE 39 is . .--.-- ....- ..-. -..-.- .-..--. .-. .-.. .--.

The URL above explains how the check digit is calculated
(It's 10 minus what the Luhn check digit would be, modulo 10.)


Hope this helps!

Shane Baggs, shane30 (at) hotmail (dot) com
Network Engineer, HSU Consulting




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com