Re: [time-nuts] serial parsing program
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 celephi...@gmail.com On 25 March 2015 at 11:37, Bob Stewart b...@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.kd5...@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. ___ 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] 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.
Re: [time-nuts] serial parsing program
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.kd5...@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. ___ 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.
Re: [time-nuts] serial parsing program
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-boun...@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. ___ 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.
Re: [time-nuts] serial parsing program
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.kd5...@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.