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
In reply to Perl and Can Bus by Jalcock501
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |