For their Wizard-series organisers, Sharp devised a presentation layer protocol to encode data for transmission using the IR link between devices. Apple subsequently used this protocol in their Newton-series devices.
The Wizard's have a number of built-in applications, each of which uses a specific data format. They share a common encoding style with different elements for each application.
This page documents what information I have been able to decipher through observation of the Newton protocol, together with the observations of Wizard owners (I only have a Newton). See Mike Van Emmerik's page for some additional, Wizard-specific information.
Please mail me if you discover any inaccuracies or additional information regarding this protocol.
Each item transferred consists of four parts, identified by a single ASCII character enclosed in double quotes, occupying the first 3 bytes on a line (lines are separated by CR/LF).
Line breaks in the string are represented by the ASCII Unit Separator character (0x1f).
The packet is completed by an ASCII EOF character (0x1a).
This format is also used by the Newton Notes application.
I | T | D | ||||||||||||||||||
"SCRT" | "ATTRIBUTE" | A single, double-quoted, ASCII space character. | ||||||||||||||||||
"HIST" | "" (an empty string) | "1" (not sure what this means) | ||||||||||||||||||
"PCID" | "PCID" | "" (an empty string) | ||||||||||||||||||
"TXNM" | "TITLE" | The title of the memo, as a doubled-quoted string. | ||||||||||||||||||
"MEM1" | "T DATA" | Content of the memo as a single double-quoted string, each line break represented using the ASCII US character. | ||||||||||||||||||
"TXTA" | "T ATTR" | "" (an empty string) | ||||||||||||||||||
"LINA" | "L ATTR" | "" (an empty string) | ||||||||||||||||||
"TIMN" | "TIME" |
eg. "3171FD1306" Timestamp for the item. After some fine decoding work by Nathan Lamont, we now understand this field. It is the hex representation of a 40 bit field, constructed like
|
||||||||||||||||||
"PAGE" | "PAGE" | "01" (I don't know if this ever increases) | ||||||||||||||||||
"FMTN" | "FORMAT" |
"0101640020036400A0010004080C1014181C20" This example is from a Wizard -- I'm not sure what it means. |
This seems a little more complex. The Wizard entry, as recorded by Mike Van Emmerik, contains the following elements. Note that the "Net Address" field ("FRE4") was user-defined).
"SCRT" | "ATTRIBUTE" | " " |
"HIST" | "" | |
"PCID" | "PCID" | "1" |
"NAME" | "Name" | Name data for the entry. |
It seems that "NAME", "TEL1" and "ADR1" are elements 1, 2 and 3, respectively. The user-defined "Net Address" field has an I field of "FRE4", and then there are the "NULx" entries.