File: PROTOCOL

package info (click to toggle)
brltty 3.4.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,268 kB
  • ctags: 4,537
  • sloc: ansic: 54,295; sh: 3,470; makefile: 793; tcl: 398; yacc: 300; awk: 57; python: 29
file content (72 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
File: Develop
by Hans Schou

Logtext manufactor:
 Tactilog
 Roskildevej 15
 DK-7441 Bording

 Contact: Poul Erik Skov
 Phone: +45 86 86 20 88
 Fax: +45 86 86 21 88

9600 baud

Logtext protocol
----------------

1. Request from Logtext

1.1. Update a line: <start><line>
 start: start code 0xFF
 
 line: line number to update
   0x01 <= line 0x19
when going into terminal

1.2. Update cursor line: <start><0>
 start: start code 0xFF

 0: code 0x00

2. Answer from computer

2.1. Protocol: <start><line><cursor><column><count><text>
 start: start code 0xFF.

 line: line number on screen.
   0x01 <= line 0x19

 cursor: cursor position on this line.
   0x01 <= cursor <= 0x50
 Special cursor == 0x00, no cursor on this line.

 column: text starts from this column.
   0x01 <= column <= 0x50

 count: number of bytes in text.
   0x00 <= count <= 0x50

 text: ASCII characters. Any character except 0xFF.
  It is not possible to turn on all dots (0xFF).


2.2. Automatic cursor tracking.
If the mode is currently in cursor tracking and the
cursor moves to another line, the computer should send
a new updated line to Logtext. If the cursor moves
within the same line the computer sends an update of
the cursor position.

Regardless of the mode, the computer always send an
updated line if the content has changed.


-------------------------
If a wrong protocol package is send
the Logtext will go into an error mode
and stop receiving.

Key pressed on Logtext comes as ANSI codes.
Press dot 1 gives 'a' and 12 gives 'b'.
Cursor movements comes as ANSI starting with 0x00.