Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

My Application Program (VB.NET) and Marking System!

Posted on 2004-10-04
7
Medium Priority
?
944 Views
Last Modified: 2008-02-01
Hi, All Expert!

I need to develop a project using VB.NET which is using RS232 communicate with Marking System. The purpose is to sent a data/text to Makring System to punch out a text.
Anybody have experince doing this type if project?

Now I have found the tools to open the serial COM port.
http://ourworld.compuserve.com/homepages/richard_grier/NETCommOCX.htm
http://franson.biz/serialtools/ 

I have a problem to understand this Marking System Protocol, it is using the "Extended Protocol" which is provides 2 way communication WITH error checking. Using Extended Protocol we can have 'Message Format", Response Format, Message Types, and the Block Check Code (BCC) Calculations.

Message Format
=============
Message from the host computer to the marker are transmitted in the following format:

SOH TYPE [##] STX [DATA] ETX [BCC] CR


Response Format
===============
The marker may respond to the host computer in one of two way

1. If the host transmission is error free, the market response with an ackowledge (ACK) message in the form:

SOH TYPE [##] ACK STX [DATA_TEXT] ETX BCC CR

2. If am error is encountered, the marker responds with a negative-acknowledge(NAK) message in the form:

SOH TYPE [##] NAK STX [DATA_TEXT] ETX BCC CR
SOH  = ASCII start of header character(001H)

Frankly speaking I dont have idea how to I use these protocol to sent a data from host/PC to Marking System vis RS232, I only manage open a COM port and sent some test, like above SOH TYPE....i got no idea how to write it.

How I can use "SOH TYPE [##] NAK STX [DATA_TEXT] ETX BCC CR" in my VB.net programming?

I can't found any books to explain for me and also can't find any example/sample from website.

I hope that those have experience in this kind of project please help me or give some tips, or can tell me where can I find information?

I am sorry if this topic is not related, but I trying to ask, hope can solve my problems.

Thank you.

Thanks


 
0
Comment
Question by:kaifong78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12223319
Communications : Extended Protocol
http://www.infosight.com/extpro.htm

Look at the Control Character Definitions section.

Bob
0
 

Author Comment

by:kaifong78
ID: 12223428
I have this Extended Protocol Manual also, but I dont know how to I use it in VB.net. Any others example?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12225833
BTW, there is a free community version of the Sax.NET serial comm driver that is simple to use in the VB.NET 2003 Resource Kit (if you have 2003):

MSDN:  The Visual Basic .NET Resource Kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

You need to find the complete character sequence to send, but I believe that this is a simple task.  The difficult one is finding the correct characters.

Bob
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:kaifong78
ID: 12233852
Hi,

Sax.NET Serial Coomunucation Driver is correct name in VB.NET 2003 Resource Kit? I can't find it!
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 750 total points
ID: 12239814
Sax.NET Free Component:
C:\Program Files\Visual Basic .NET Resource Kit\Application\Content\Third Party Components\FREE .NET Controls\SAX.NET

Bob
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12251381
How it coming, are you making any progress?

Bob
0
 

Author Comment

by:kaifong78
ID: 12255895
Hi,

I have go through the SAX.NET, but I think I won't use it because need to buy, hehehe. I using the Rs232.vb (class) from Microsoft, it is free.  I found that most of them are same, so just use the Rs232 classes from Microsoft.

Now I manage to sent "Text" to the Marking System, others I still don't know. Like

Message Format -> SOH TYPE [##] STX [DAT_TEXT] ETX [BCC] CR
Reponse Format -> SOH TYPE [##] ACK [DAT_TEXT] ETX BCC CR
                         -> SOH TYPE [##] STX [DAT_TEXT] ETX BCC CR

I still don't know how to use it.

May I know are you a Programmer? Have you done this kind of project before? Where are you from?




0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

721 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