Jalcock501 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a script that reads in a constant stream of HEX lines and writes them out to screen in a (sort of) ascii table
As it is streaming data I need to keep the identifier static and just update the bits as they come in. The data comes through like this:_______________________ 0CFFE000|00|00|00|00|00|00|00|00| ----------------------- 18FEF501|00|00|00|00|00|00|00|00| ----------------------- IDENTIER| 8 sets of HEX bits | -----------------------
12345678:123 0CFFE000 00 00 00 00 00 00 00 00 87654321:321 18FEF501 00 FF 32 C4 FF 00 00 00 43215678:132 0C11FF00 FF FF FF FF FF FF FF FF 12348765:312 18FFE100 23 E0 C1 0E FF 00 AC 00 43218765:112 00000000 01 FF FF FF FF FF FF FF 12345678:123 0CFFE000 01 00 00 00 00 00 00 00 87654321:321 18FEF501 00 00 00 00 00 00 00 00 43215678:132 0C11FF00 00 00 00 00 00 00 00 00 12348765:312 18FFE100 00 00 00 00 00 00 00 00 43218765:112 00000000 00 00 00 00 00 00 00 00 12345678:123 0CFFE000 00 00 00 00 00 00 00 00
Unfortuantely I have no idea how to handle constant data input. Would someone mind helping as I cannot find examples online either
ThanksJim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and Can Bus
by Corion (Patriarch) on Dec 12, 2014 at 14:48 UTC | |
by Jalcock501 (Sexton) on Dec 12, 2014 at 16:25 UTC | |
by Corion (Patriarch) on Dec 12, 2014 at 18:43 UTC | |
by Jalcock501 (Sexton) on Dec 15, 2014 at 09:42 UTC | |
by Corion (Patriarch) on Dec 15, 2014 at 10:01 UTC | |
|
Re: Perl and Can Bus
by BrowserUk (Patriarch) on Dec 12, 2014 at 14:12 UTC | |
by Jalcock501 (Sexton) on Dec 12, 2014 at 14:15 UTC | |
by BrowserUk (Patriarch) on Dec 12, 2014 at 14:18 UTC | |
by Jalcock501 (Sexton) on Dec 12, 2014 at 14:20 UTC | |
by BrowserUk (Patriarch) on Dec 12, 2014 at 14:26 UTC | |
|
Re: Perl and Can Bus
by karlgoethebier (Abbot) on Dec 12, 2014 at 14:22 UTC | |
by Jalcock501 (Sexton) on Dec 12, 2014 at 14:41 UTC | |
by karlgoethebier (Abbot) on Dec 12, 2014 at 15:33 UTC | |
by Jalcock501 (Sexton) on Dec 12, 2014 at 15:43 UTC |