From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11734 invoked by alias); 13 Oct 2014 16:03:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19241 Received: (qmail 26401 invoked from network); 13 Oct 2014 16:03:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PLING_QUERY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 Date: Mon, 13 Oct 2014 17:58:06 +0200 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: Doing NMEA command sequences with zsh ... ??!! Message-ID: <20141013155806.GA3825@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:FnyykRHK+zS9Ih4ska4xQ7LMhn38c3b8RX1GPww9iFUsVZp7LPN 1h5uMfvPQjArSrhYGiEZ6g2iUZR6NAdzCvZqxyWVAX2bbRKYNUh8z6Bn8E4BJYUCgTK16iZ 5RqITYIXVDatwxWzz1Jx2ikNj6eUIRm6xDWVg189QFymwFjq37ebKve41QuVWgYueXk8DLe 8QsSq72zpeYP+IOY5FqCA== X-UI-Out-Filterresults: notjunk:1; Hi, To my embedded system (which runs zsh on Gentoo Linux ;) ) I have atteched an GPS receiver chip. This chip spits out NMEA sentences to an UART and is capable of receiving NMEA command seqyences. An NMEA command sequence consist of $<*> The checksum is the binary XOR of all characters between '$' and '*'. This checksum is given a an hexadecimal number. Since it is an embedded system, I would prefer to calculate this checksum with zsh only since it already runs if I am logged in. Is that possible in any way? Thank you very much in advance for any help! Best regards, mcc