473,387 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

RS232 problem (reading)

Each employee has a card with a barcode. This is used to check in and
out from work. It is 15-16 characters in length using letters and
numbers 0-9 and A-Z (plus a single dash (-)).

Using hyperterminal the card is read fine every time. Using my vb.net
program it fails on certain characters.

E.g. the number 4 is returned as ´ (or ` - don't remember). The
problem is persistant.

Any idea as to what the problem might be?

Thanx for any input.
Regards /Snedker
Nov 21 '05 #1
5 1844
Hi,

http://www.codeproject.com/vb/net/demmvbscan.asp

Ken
----------------------
"Morten Snedker" <morten_spammenot_ATdbconsult.dk> wrote in message
news:1m********************************@4ax.com...
Each employee has a card with a barcode. This is used to check in and
out from work. It is 15-16 characters in length using letters and
numbers 0-9 and A-Z (plus a single dash (-)).

Using hyperterminal the card is read fine every time. Using my vb.net
program it fails on certain characters.

E.g. the number 4 is returned as ´ (or ` - don't remember). The
problem is persistant.

Any idea as to what the problem might be?

Thanx for any input.
Regards /Snedker
Nov 21 '05 #2
http://www.codeworks.it/net/VBNetRs232.htm

Morten Snedker wrote:
Each employee has a card with a barcode. This is used to check in and
out from work. It is 15-16 characters in length using letters and
numbers 0-9 and A-Z (plus a single dash (-)).

Using hyperterminal the card is read fine every time. Using my vb.net
program it fails on certain characters.

E.g. the number 4 is returned as ´ (or ` - don't remember). The
problem is persistant.

Any idea as to what the problem might be?

Thanx for any input.
Regards /Snedker

Nov 21 '05 #3
Hi,

What is your code? Without seeing that, it is hard to say what is the
problem. You don't say what Edition of .NET you are using. Is this VS2003
or VS2005?

You can download DesktopSerialIO from my homepage, and I have several
barcode reader examples in my book (see below). Barcode data, normally, is
straight ASCII, so reading it should be straight forward.

Displaying the read data, on the other hand, may require that you call
Invoke or BeginInvoke to marshal data from the read thread to the UI
(STAThread) -- depending on how you implement your code.

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.
Nov 21 '05 #4
On Fri, 26 Aug 2005 08:55:32 -0600, "Dick Grier"
<di**************@msn.com> wrote:

Rather than trying to track down my problem I solved it by the use of
your DesktopSerialIO. So thanks alot for your time and input!

/Snedker
Hi,

What is your code? Without seeing that, it is hard to say what is the
problem. You don't say what Edition of .NET you are using. Is this VS2003
or VS2005?

You can download DesktopSerialIO from my homepage, and I have several
barcode reader examples in my book (see below). Barcode data, normally, is
straight ASCII, so reading it should be straight forward.

Displaying the read data, on the other hand, may require that you call
Invoke or BeginInvoke to marshal data from the read thread to the UI
(STAThread) -- depending on how you implement your code.

Dick


Nov 21 '05 #5
using vs 2003 but getting vs 2005 sooner but not beta =-O

Dick Grier wrote:
Hi,

What is your code? Without seeing that, it is hard to say what is the
problem. You don't say what Edition of .NET you are using. Is this VS2003
or VS2005?

You can download DesktopSerialIO from my homepage, and I have several
barcode reader examples in my book (see below). Barcode data, normally, is
straight ASCII, so reading it should be straight forward.

Displaying the read data, on the other hand, may require that you call
Invoke or BeginInvoke to marshal data from the read thread to the UI
(STAThread) -- depending on how you implement your code.

Dick

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
6
by: Przemo | last post by:
Hi, Do you know some good RS232C class? There is one in VB.NET 101 Examples, but I think it is poor. 1. I can't for e.g. read into my application all data received. I must tell how many...
8
by: Terry Olsen | last post by:
I'm trying to use the RS232 class that was in the Platform SDK (i think). Has anyone else used this with events successfully? Here's what i've got: ====================== Public WithEvents...
2
by: Wouter van Teijlingen | last post by:
Dear Readers, I was reading about how to control the COM and LPT port using VB .NET. I've found a lot of information, and it was very useful to me. I found an example program on the site of...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
2
by: KCUK | last post by:
I have created a software to receive data from an equipment through RS232 communication. It is a simple application of the RS232 class. The software does receive strings from the equipment every time...
4
by: Dave Harry | last post by:
I found the RS232 class from MS's 101 VB samples. Writing to the port works fine. (I've got hyperterminal on the other comm port and a crossover cable between COM1 and COM2) The port is opened...
6
by: Henning M | last post by:
Hi all, Im trying to send a command to my uprocessor project, but when i try to read the answer for the uPU I get the same commed I just send to it??? It is as if the command isn't send before I...
3
by: ad | last post by:
I am using VS2005 to develop Web application. How can I receive the data from RS232 of client's computer?
0
by: kvu95111 | last post by:
Hi All, I have wrote a simple program using RS232 protocol. However, I have the following problem in hand. I used the software to receive data from a RFID reader (you may simply treat it like a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.