Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Paul E. Bennett" Newsgroups: comp.lang.forth Subject: Re: ASCII Protocol implementations in FORTH Followup-To: comp.lang.forth Date: Tue, 09 Jul 2013 21:33:17 +0100 Organization: Hidecs Consultancy Lines: 53 Message-ID: References: <9ed50be0-eda5-4513-b5e2-47eeac561c88@googlegroups.com> Reply-To: Paul_E.Bennett@topmail.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7Bit X-Trace: individual.net aN6kW+RezzdoDSSh2hxABwtxuX6ZKwCodFslfMkLF1IHqQVawb Cancel-Lock: sha1:td7PzDXzNd0V8VnKuf4JfzbfiSM= Mail-Copies-To: Paul_E.Bennett@topmail.co.uk User-Agent: KNode/0.99.01 Xref: csiph.com comp.lang.forth:24327 attoampere@gmail.com wrote: > hello everybody! > > i want to implement the following*) ASCII protocol in FORTH and have no > idea on how to accomplish that. can anyone point me to FORTH sources, > books and articles on how to implement 'simple' ASCII protocols like this > one? > > > thank you so much for pointing me to the literature which gets the job > done, the simpler the better. i am not interested in protocols in general, > which includes the different mathematical apparati for verifying them. > please no.. just simple links for simple minded persons like me. > > TIA > kind regards, > atto > > the whole complexitiy of the error detection mechanism is basically this: I don't know of a Forth text specifically on this topic and the specification detail thus far would need a little more consideration than you have stated thus far. You need to establish the time-line between both systems to ensure that each end of the link will not lock-up waiting for the other end to send a specific pattern. That means accepting all communication packages (good and bad) and then assessing the validity and meaning of the package once received. You didn't make any mention of check-sums or other error detection in your included specification, although it is obvious (from the document you reference) that you are expected to use some form of communication package integrity checking. Such checksum checking needs to be accomplished on the whole of a received package and performed before transmitting a package. This link, from IBM, might be useful to you. Incidently, I have noted that the manufacturers of the device has stated it is not considered as a medical device so I'll refrain from adding the cautions about Safety Critical Systems and Software. -- ******************************************************************** Paul E. Bennett............... Forth based HIDECS Consultancy Mob: +44 (0)7811-639972 Tel: +44 (0)1235-510979 Going Forth Safely ..... EBA. www.electric-boat-association.org.uk.. ********************************************************************