some infos in the readme added
parent
050d0a0c1c
commit
cbd20847f6
29
README
29
README
|
@ -2,25 +2,44 @@ Install dependencies:
|
||||||
|
|
||||||
sudo apt-get install libboost-all-dev libncurses5-dev libglibmm-2.4-dev build-essential
|
sudo apt-get install libboost-all-dev libncurses5-dev libglibmm-2.4-dev build-essential
|
||||||
|
|
||||||
|
= setup =
|
||||||
|
The system is set up of various parts. See frameserver.png
|
||||||
|
|
||||||
|
Latest setup is:
|
||||||
|
* displayclienthtml/ws_udp.js
|
||||||
|
A nodjs server => $ node displayclienthtml/ws_udp.js
|
||||||
|
This listens for UDP packets to show on a virtual building
|
||||||
|
This server creates a webserver where a browser can connect to see a simulation
|
||||||
|
of the building. => $ firefox/chromium displayclienthtml/visionneuse.html
|
||||||
|
|
||||||
|
* frameserver
|
||||||
|
A c++ program recieving UDP frames combining them to generate the final display
|
||||||
|
|
||||||
|
* clients
|
||||||
|
Written in any language, creates UDP packets which are sent to the frameserver
|
||||||
|
|
||||||
= Building configuration =
|
= Building configuration =
|
||||||
|
|
||||||
The main configuration of the frameserver is done in <defines.h>
|
The main configuration of the frameserver is done in <defines.h>
|
||||||
|
|
||||||
Main tuneables:
|
Main tuneables:
|
||||||
|
|
||||||
|
// where to send the UDP output of the frameserver
|
||||||
#define REMOTE_IP "127.0.0.1"
|
#define REMOTE_IP "127.0.0.1"
|
||||||
#define REMOTE_PORT 1234
|
#define REMOTE_PORT 1234
|
||||||
|
|
||||||
#define HASH "abcdefghij"
|
// description of the frame this server understands
|
||||||
|
#define HASH "s2l\n8>18> "
|
||||||
// one byte number + 10 character hash plus newline
|
// one byte number + 10 character hash plus newline
|
||||||
#define HEADEROFFSET 12
|
#define HEADEROFFSET 12
|
||||||
|
|
||||||
// 12 windows per floor, 7 floors, Value:Alpha
|
// 12 windows per floor, 8 floors, Value:Alpha
|
||||||
#define WIDTH 12
|
#define WIDTH 12
|
||||||
#define HEIGHT 7
|
#define HEIGHT 8
|
||||||
#define CHANNELS 2
|
// always has an alpha channel so for rgb it's 3+1=4
|
||||||
|
#define CHANNELS 4
|
||||||
|
|
||||||
// 8 segments per window, 12 segments per floor, RGBA
|
// 8 segments per window (7 seg plus dot), 12 segments per floor, RGBA
|
||||||
#define SEGNUM 8
|
#define SEGNUM 8
|
||||||
#define SEGWIDTH 12
|
#define SEGWIDTH 12
|
||||||
#define SEGCHANNELS 4
|
#define SEGCHANNELS 4
|
||||||
|
|
Loading…
Reference in New Issue