Fri, 19 Apr 2024 20:56:55 +0200
Create global_json() for all and expanded the data to the complete setup. Added design for the global setup.
417
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | Socket protocol. |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | All commands are 16 bits unsigned integers. |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | D15 D14 D13 D12 D11 D10 RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 |
420
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
7 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Null command to get keys state. |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
8 | LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 0 0 0 1 Screen clear, home |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
9 | LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 0 0 1 . DDRAM AD=0, return |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
10 | LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 0 1 I/D S Set moving direction of cursor |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
11 | LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 1 D C B Display Cursor Blink on/off |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
12 | LC2 LC1 LC0 0 0 0 0 0 0 0 0 1 S/C R/L . . Remove cursor and display |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
13 | LC2 LC1 LC0 0 0 0 0 0 0 0 1 DL N F . . Set DL display line font |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
14 | LC2 LC1 LC0 0 0 0 0 0 0 1 Set CGRAM send/receive data |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
15 | LC2 LC1 LC0 0 0 0 0 0 1 Set DDRAM sebd/receive data |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
16 | LC2 LC1 LC0 0 0 0 0 1 BF Busy Flag |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
17 | LC2 LC1 LC0 0 0 0 1 0 Write data to CGRAM or DDRAM |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
18 | LC2 LC1 LC0 0 0 0 1 1 Read data from CGRAM or DDRAM |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
19 | LC2 LC1 LC0 0 0 1 0 0 . . . . . . . . LEDs, buzzer on/off |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
20 | LC2 LC1 LC0 0 1 0 0 1 0 0 0 0 Up Dwn Ret Ent Keys pressed |
417
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | |
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | LC2 LC1 LC0 are the device index, 0..7 |
425
c51265b518ce
Added LED objects to the SDL panel.
Michiel Broek <mbroek@mbse.eu>
parents:
420
diff
changeset
|
24 | LEDs: DB0 LCD backlight |
c51265b518ce
Added LED objects to the SDL panel.
Michiel Broek <mbroek@mbse.eu>
parents:
420
diff
changeset
|
25 | DB1 Control LED on thermferm panels |
c51265b518ce
Added LED objects to the SDL panel.
Michiel Broek <mbroek@mbse.eu>
parents:
420
diff
changeset
|
26 | DB2 HLT heater |
c51265b518ce
Added LED objects to the SDL panel.
Michiel Broek <mbroek@mbse.eu>
parents:
420
diff
changeset
|
27 | DB3 MLT heater |
c51265b518ce
Added LED objects to the SDL panel.
Michiel Broek <mbroek@mbse.eu>
parents:
420
diff
changeset
|
28 | DB4 MLT pump/mixer |
420
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
29 | DB7 Buzzer |
417
9943f49fdb98
The server to panel socket protocol
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | |
420
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
31 | The thermferm or brewco units are leading, they send data and get a reply. |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
32 | The sending data will mostly be display data mixed with LEDs. The replies |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
33 | will mostly be the current key states, even if not changed. If the leading |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
34 | program just wants key states, it should send a 0 to the brewpanel. |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
35 | |
644a6106d712
The first ideas of the brewpanel simulation are in place.
Michiel Broek <mbroek@mbse.eu>
parents:
417
diff
changeset
|
36 |