Protocol for ASCII art


#1

is there a sample protocol that works for the ascii art examples in lesson 11?

With 8 char per packet, I assume 1 for total # of packets, 1 for packet number (order), and one control character to say sending data, acknowledge data

That leaves 5 characters for actual data, which works but on the ascii art I don’t see a way to indicate a carriage return or line feed.

Any suggestions?
jim


#2

Hi Jim,

For the ASCII art, perhaps the protocol could include that each packet would contain a separate line of data. If the packet contains no ASCII characters, the line could be blank. So if I wanted to send an “H” followed by an “I” as ASCII art I could send:

18s@ @
28s@@@
38s@ @
48s
58s@@@
68s @
78s@@@

Hope this helps!
~ Hannah