PC Review


Reply
Thread Tools Rate Thread

Reading different barcode length via RS232

 
 
=?Utf-8?B?emFraXM=?=
Guest
Posts: n/a
 
      23rd Dec 2004
Hello all,

I have a Symbol PDA with a static craddle and I have a long
range barcode scanner that connects the craddle via RS232. I'm using the
SerialCSharp code from Opennetcf.

My situation is that I need to read different lenghts barcodes
with the scanner. I have been trying changing RThreshold and InputLen
properties but I don't get with the solution.

When I read with the scanner I get too many blanks and I have
to make the same read many times to get all the code.

How can I read all the barcode in one time? (for example a
barcode of 10 characters) Is there any way similar to the HandleData method
from the Symbol SDK?

Thanks in advance.


 
Reply With Quote
 
 
 
 
Dan Bass
Guest
Posts: n/a
 
      24th Dec 2004

I must admit I'm struggling to see what you're doing...

What format are the barcodes in?
If the scanner engine is a long range scanner, then you'll struggle to scan
anything close up.
If the scanner is a PDA (i.e. you walk about with it scanning) when are you
scanning then docking, or scanning and trying to pass the data back through
the COM's port directly?
What symbol scanner are you using?
What language are you developing in? (eg. are you using the .Net CF? C#,
EVC++, VB?)

Thanks.

Dan.


"zakis" <(E-Mail Removed)> wrote in message
news:46ADB407-3EA4-403B-B827-(E-Mail Removed)...
> Hello all,
>
> I have a Symbol PDA with a static craddle and I have a long
> range barcode scanner that connects the craddle via RS232. I'm using the
> SerialCSharp code from Opennetcf.
>
> My situation is that I need to read different lenghts
> barcodes
> with the scanner. I have been trying changing RThreshold and InputLen
> properties but I don't get with the solution.
>
> When I read with the scanner I get too many blanks and I have
> to make the same read many times to get all the code.
>
> How can I read all the barcode in one time? (for example a
> barcode of 10 characters) Is there any way similar to the HandleData
> method
> from the Symbol SDK?
>
> Thanks in advance.
>
>



 
Reply With Quote
 
=?Utf-8?B?emFraXM=?=
Guest
Posts: n/a
 
      24th Dec 2004
Let's see if I explain it clear.

The long range barcode reader connect to the craddle of the pda (PPT2800)
via serial port. The barcode are code 39 format.

I'm using C# and the program is for the PDA.

I have installed opennetcf 1.2 and the SerialCSharp program.

I have no problem reading the codes with the pda using the symbol sdk. But
I'm trying to read the codes with the LS3203ER (longrange pistol).

Any idea?

"Dan Bass" wrote:

>
> I must admit I'm struggling to see what you're doing...
>
> What format are the barcodes in?
> If the scanner engine is a long range scanner, then you'll struggle to scan
> anything close up.
> If the scanner is a PDA (i.e. you walk about with it scanning) when are you
> scanning then docking, or scanning and trying to pass the data back through
> the COM's port directly?
> What symbol scanner are you using?
> What language are you developing in? (eg. are you using the .Net CF? C#,
> EVC++, VB?)
>
> Thanks.
>
> Dan.
>
>
> "zakis" <(E-Mail Removed)> wrote in message
> news:46ADB407-3EA4-403B-B827-(E-Mail Removed)...
> > Hello all,
> >
> > I have a Symbol PDA with a static craddle and I have a long
> > range barcode scanner that connects the craddle via RS232. I'm using the
> > SerialCSharp code from Opennetcf.
> >
> > My situation is that I need to read different lenghts
> > barcodes
> > with the scanner. I have been trying changing RThreshold and InputLen
> > properties but I don't get with the solution.
> >
> > When I read with the scanner I get too many blanks and I have
> > to make the same read many times to get all the code.
> >
> > How can I read all the barcode in one time? (for example a
> > barcode of 10 characters) Is there any way similar to the HandleData
> > method
> > from the Symbol SDK?
> >
> > Thanks in advance.
> >
> >

>
>
>

 
Reply With Quote
 
Dan Bass
Guest
Posts: n/a
 
      24th Dec 2004

It sounds to me like the scanner is reading all the data, but the connection
is only passing back so much. A RS-232 link won't be the quickest
connection. If your timeout is too short, the receiving end will cut out
before the scanner's had a chance to complete the transmission of it's data.

Check for ways to increase the time the port is open for listening for data
before closing...

HTH.


"zakis" <(E-Mail Removed)> wrote in message
news:E8C89228-0E88-4BAF-AE14-(E-Mail Removed)...
> Let's see if I explain it clear.
>
> The long range barcode reader connect to the craddle of the pda (PPT2800)
> via serial port. The barcode are code 39 format.
>
> I'm using C# and the program is for the PDA.
>
> I have installed opennetcf 1.2 and the SerialCSharp program.
>
> I have no problem reading the codes with the pda using the symbol sdk. But
> I'm trying to read the codes with the LS3203ER (longrange pistol).
>
> Any idea?
>
> "Dan Bass" wrote:
>
>>
>> I must admit I'm struggling to see what you're doing...
>>
>> What format are the barcodes in?
>> If the scanner engine is a long range scanner, then you'll struggle to
>> scan
>> anything close up.
>> If the scanner is a PDA (i.e. you walk about with it scanning) when are
>> you
>> scanning then docking, or scanning and trying to pass the data back
>> through
>> the COM's port directly?
>> What symbol scanner are you using?
>> What language are you developing in? (eg. are you using the .Net CF? C#,
>> EVC++, VB?)
>>
>> Thanks.
>>
>> Dan.
>>
>>
>> "zakis" <(E-Mail Removed)> wrote in message
>> news:46ADB407-3EA4-403B-B827-(E-Mail Removed)...
>> > Hello all,
>> >
>> > I have a Symbol PDA with a static craddle and I have a
>> > long
>> > range barcode scanner that connects the craddle via RS232. I'm using
>> > the
>> > SerialCSharp code from Opennetcf.
>> >
>> > My situation is that I need to read different lenghts
>> > barcodes
>> > with the scanner. I have been trying changing RThreshold and InputLen
>> > properties but I don't get with the solution.
>> >
>> > When I read with the scanner I get too many blanks and I
>> > have
>> > to make the same read many times to get all the code.
>> >
>> > How can I read all the barcode in one time? (for example a
>> > barcode of 10 characters) Is there any way similar to the HandleData
>> > method
>> > from the Symbol SDK?
>> >
>> > Thanks in advance.
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      24th Dec 2004
Hi,

You have to read data into a buffer (append new data as it arrives), and
parse out of that buffer until some known terminating character is found. I
suspect that this would be a carriage return, but your documentation will
tell you.
remember to clear the buffer that you are parsing from after you have read
the barcode.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Data via RS232 George Oro Microsoft Access VBA Modules 0 8th Aug 2007 01:51 PM
Barcode Reading =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= Microsoft C# .NET 2 14th Jun 2007 04:17 PM
Why does a barcode mess up my form page length in Access =?Utf-8?B?VHVjc29uc2hhcms=?= Microsoft Access Forms 4 7th Jun 2006 08:56 PM
Reading the pin voltage fm RS232 port into excel by using VBA oscar Microsoft Excel Programming 2 17th Feb 2004 06:38 PM
Re: 2d barcode reading Dick Grier Microsoft Dot NET 0 25th Aug 2003 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 PM.