Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #19359

Suggestions please...

Newsgroups comp.lang.forth
Date 2013-02-01 13:14 -0800
Message-ID <bb7a586f-5cc7-4b57-8cb4-61786f1d40dc@googlegroups.com> (permalink)
Subject Suggestions please...
From Howerd <howerdo@yahoo.co.uk>

Show all headers | View raw


Hi Forthers,

I am logging two octet packet data streams - TX and RX on a data channel.
When I display these on a screen I use two different colours, but the display takes too long and causes the data channel to timeout, so I would like to store them into an array, and display them later.

What is the best way to encode the channel info with the data so that I can play back the captured packets with the correct colours?

It would also be very useful if I could save the array to a file and use an off-the-shelf editor to view the data.

Some ideas :
1. XML with Cascading Style Sheet - a bit wordy
2. HDLC with first byte of each packet defining the colour
3. ANSI escape sequences - need to escape the escape character
4. RTF format - too complex?
5. convert data to hex or base64 and use ASCII control characters
6. use two arrays and a timestamp - this still needs a packet delimeter
7. ???

Apologies if this is slightly off-topic - the logging code is in Forth, of course.

Any suggestions welcome, particularly if someone has already solved this problem and can provide working code, and access to a compatible editor...

TIA,
Howerd

Back to comp.lang.forth | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Suggestions please... Howerd <howerdo@yahoo.co.uk> - 2013-02-01 13:14 -0800
  Re: Suggestions please... "Elizabeth D. Rather" <erather@forth.com> - 2013-02-01 12:08 -1000
    Re: Suggestions please... rickman <gnuarm@gmail.com> - 2013-02-01 19:12 -0500
      Re: Suggestions please... "Elizabeth D. Rather" <erather@forth.com> - 2013-02-01 16:28 -1000
        Re: Suggestions please... wiljan@nospam.pobox.com (Will Janoschka) - 2013-02-04 20:09 -0600
  Re: Suggestions please... Paul Rubin <no.email@nospam.invalid> - 2013-02-02 02:21 -0800
  Re: Suggestions please... Bernd Paysan <bernd.paysan@gmx.de> - 2013-02-02 15:01 +0100
  Re: Suggestions please... Howerd <howerdo@yahoo.co.uk> - 2013-02-02 09:04 -0800
    Re: Suggestions please... Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2013-02-02 18:18 +0000
      Re: Suggestions please... Howerd <howerdo@yahoo.co.uk> - 2013-02-04 04:13 -0800
  Re: Suggestions please... Hugh Aguilar <hughaguilar96@yahoo.com> - 2013-02-04 17:20 -0800
  Re: Suggestions please... Brad Eckert <hwfwguy@gmail.com> - 2013-02-05 09:16 -0800

csiph-web