time-nuts@lists.febo.com

Discussion of precise time and frequency measurement

View all threads

serial parsing program

CO
Cash Olsen
Tue, Mar 24, 2015 10:22 PM

I'd like to find a program that has a very flexible serial input and can be
easily setup to parse a binary sentence. Specifically, U-Blox timing but
more general purpose would be nice for future projects. Has to be able to
handle 1, 2, and 4 byte fields, and checksums would be nice also. Should
run on Windows for the immediate project but Linux for next projects.

--
S. Cash Olsen KD5SSJ
ARRL Technical Specialist

I'd like to find a program that has a very flexible serial input and can be easily setup to parse a binary sentence. Specifically, U-Blox timing but more general purpose would be nice for future projects. Has to be able to handle 1, 2, and 4 byte fields, and checksums would be nice also. Should run on Windows for the immediate project but Linux for next projects. -- S. Cash Olsen KD5SSJ ARRL Technical Specialist
P
Prologix
Tue, Mar 24, 2015 10:44 PM

Hello Cash,

Check out Google Protocol Buffers
https://developers.google.com/protocol-buffers/

And here is a discussion of it from an embedded software perspective
http://www.ganssle.com/tem/tem277.html#article1

Hope that helps.

Regards,
Abdul

-----Original Message-----
From: time-nuts [mailto:time-nuts-bounces@febo.com] On Behalf Of Cash Olsen
Sent: Tuesday, March 24, 2015 3:22 PM
To: time-nuts@febo.com
Subject: [time-nuts] serial parsing program

I'd like to find a program that has a very flexible serial input and can be easily setup to parse a binary sentence. Specifically, U-Blox timing but more general purpose would be nice for future projects. Has to be able to handle 1, 2, and 4 byte fields, and checksums would be nice also. Should run on Windows for the immediate project but Linux for next projects.

--
S. Cash Olsen KD5SSJ
ARRL Technical Specialist


time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hello Cash, Check out Google Protocol Buffers https://developers.google.com/protocol-buffers/ And here is a discussion of it from an embedded software perspective http://www.ganssle.com/tem/tem277.html#article1 Hope that helps. Regards, Abdul -----Original Message----- From: time-nuts [mailto:time-nuts-bounces@febo.com] On Behalf Of Cash Olsen Sent: Tuesday, March 24, 2015 3:22 PM To: time-nuts@febo.com Subject: [time-nuts] serial parsing program I'd like to find a program that has a very flexible serial input and can be easily setup to parse a binary sentence. Specifically, U-Blox timing but more general purpose would be nice for future projects. Has to be able to handle 1, 2, and 4 byte fields, and checksums would be nice also. Should run on Windows for the immediate project but Linux for next projects. -- S. Cash Olsen KD5SSJ ARRL Technical Specialist _______________________________________________ time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.
HH
Henry Hallam
Tue, Mar 24, 2015 10:59 PM

RealTerm is my go-to for this sort of thing on Windows, though it
might not be quite as flexible as you'd like.
Linux: just mung together a pipeline involving things like xxd, awk, grep..

Henry

On Tue, Mar 24, 2015 at 3:22 PM, Cash Olsen radio.kd5ssj@gmail.com wrote:

I'd like to find a program that has a very flexible serial input and can be
easily setup to parse a binary sentence. Specifically, U-Blox timing but
more general purpose would be nice for future projects. Has to be able to
handle 1, 2, and 4 byte fields, and checksums would be nice also. Should
run on Windows for the immediate project but Linux for next projects.

--
S. Cash Olsen KD5SSJ
ARRL Technical Specialist


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

RealTerm is my go-to for this sort of thing on Windows, though it might not be quite as flexible as you'd like. Linux: just mung together a pipeline involving things like xxd, awk, grep.. Henry On Tue, Mar 24, 2015 at 3:22 PM, Cash Olsen <radio.kd5ssj@gmail.com> wrote: > I'd like to find a program that has a very flexible serial input and can be > easily setup to parse a binary sentence. Specifically, U-Blox timing but > more general purpose would be nice for future projects. Has to be able to > handle 1, 2, and 4 byte fields, and checksums would be nice also. Should > run on Windows for the immediate project but Linux for next projects. > > -- > S. Cash Olsen KD5SSJ > ARRL Technical Specialist > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.
BS
Bob Stewart
Wed, Mar 25, 2015 12:37 AM

Hi Cash,
Have you looked at the sourcecode for the "gpsd" package?  "packet.c" would probably be your starting point.  The gpsd package parses pretty much every gps receiver.  I'm not sure if this is what you're looking for, or if you specifically want something high-level. 

Bob

  From: Cash Olsen <radio.kd5ssj@gmail.com>

To: time-nuts@febo.com
Sent: Tuesday, March 24, 2015 5:22 PM
Subject: [time-nuts] serial parsing program

I'd like to find a program that has a very flexible serial input and can be
easily setup to parse a binary sentence. Specifically, U-Blox timing but
more general purpose would be nice for future projects. Has to be able to
handle 1, 2, and 4 byte fields, and checksums would be nice also. Should
run on Windows for the immediate project but Linux for next projects.

--
S. Cash Olsen KD5SSJ
ARRL Technical Specialist


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hi Cash, Have you looked at the sourcecode for the "gpsd" package?  "packet.c" would probably be your starting point.  The gpsd package parses pretty much every gps receiver.  I'm not sure if this is what you're looking for, or if you specifically want something high-level.  Bob From: Cash Olsen <radio.kd5ssj@gmail.com> To: time-nuts@febo.com Sent: Tuesday, March 24, 2015 5:22 PM Subject: [time-nuts] serial parsing program I'd like to find a program that has a very flexible serial input and can be easily setup to parse a binary sentence. Specifically, U-Blox timing but more general purpose would be nice for future projects. Has to be able to handle 1, 2, and 4 byte fields, and checksums would be nice also. Should run on Windows for the immediate project but Linux for next projects. -- S. Cash Olsen KD5SSJ ARRL Technical Specialist _______________________________________________ time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.
TH
Tom Harris
Wed, Mar 25, 2015 5:28 AM

Python has a nice library struct that can take a binary buffer of just
about anything, integers, strings, etc, with any alignment or byte ordering
and parse it to a list of values. I've never had the need to use anything
else. Perl probably has the same as well.

Tom Harris celephicus@gmail.com

On 25 March 2015 at 11:37, Bob Stewart bob@evoria.net wrote:

Hi Cash,
Have you looked at the sourcecode for the "gpsd" package?  "packet.c"
would probably be your starting point.  The gpsd package parses pretty much
every gps receiver.  I'm not sure if this is what you're looking for, or if
you specifically want something high-level.

Bob

   From: Cash Olsen <radio.kd5ssj@gmail.com>

To: time-nuts@febo.com
Sent: Tuesday, March 24, 2015 5:22 PM
Subject: [time-nuts] serial parsing program

I'd like to find a program that has a very flexible serial input and can be
easily setup to parse a binary sentence. Specifically, U-Blox timing but
more general purpose would be nice for future projects. Has to be able to
handle 1, 2, and 4 byte fields, and checksums would be nice also. Should
run on Windows for the immediate project but Linux for next projects.

--
S. Cash Olsen KD5SSJ
ARRL Technical Specialist


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Python has a nice library struct that can take a binary buffer of just about anything, integers, strings, etc, with any alignment or byte ordering and parse it to a list of values. I've never had the need to use anything else. Perl probably has the same as well. Tom Harris <celephicus@gmail.com> On 25 March 2015 at 11:37, Bob Stewart <bob@evoria.net> wrote: > Hi Cash, > Have you looked at the sourcecode for the "gpsd" package? "packet.c" > would probably be your starting point. The gpsd package parses pretty much > every gps receiver. I'm not sure if this is what you're looking for, or if > you specifically want something high-level. > > Bob > > From: Cash Olsen <radio.kd5ssj@gmail.com> > To: time-nuts@febo.com > Sent: Tuesday, March 24, 2015 5:22 PM > Subject: [time-nuts] serial parsing program > > I'd like to find a program that has a very flexible serial input and can be > easily setup to parse a binary sentence. Specifically, U-Blox timing but > more general purpose would be nice for future projects. Has to be able to > handle 1, 2, and 4 byte fields, and checksums would be nice also. Should > run on Windows for the immediate project but Linux for next projects. > > -- > S. Cash Olsen KD5SSJ > ARRL Technical Specialist > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there. > > > > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there. >