File: readme.txt | Size: 2,784 bytes | Download file | Back to directory listing | BWPOW's homepage
Command-line MDC for Samsung TVs v0.1
Copyright (C) 2011 SAGE team s.r.o.
Web: http://www.sageteam.eu/
E-mail: sage@sageteam.eu

Purpose of this program is to control Samsung TVs over IPv4 from command-line. Tested on Samsung 460UTn.
It was written without access to documentation, so I based it on data sniffed using wireshark and original MDC
software provided by Samsung. Therefore, there still may be a lot of things missing or just not working properly.

----------------------
1. How to compile
----------------------
Whole program consist of only one source file, so I didn't prepare any makefile.
It depends on STL and pthreads.

To complile, you can use following command:
g++ -Wall -O2 cmdc.cpp -o cmdc -lpthread

----------------------
2. Configuration file
----------------------
Configuration has to be stored in file named 'cmdc.conf' and placed in the same directory as executable binary.
Syntax of this file is pretty simple. Program expects line that consist of the following parameters:
Name - text describing one entry
ID - number, that you set-up on your monitor
IP - IPv4 address
WallH - horizontal wall size
WallV - vertical wall size
WallP - position in the wall, starting with 1 as top left and increasing first horizontally, then vertically

Lines beginning with '#' will be treated as comments and ignored.

Example (wall 3x3):
a1 1 192.168.1.11 3 3 1
a2 2 192.168.1.12 3 3 2
a3 3 192.168.1.13 3 3 3
a4 4 192.168.1.14 3 3 4
a5 5 192.168.1.15 3 3 5
a6 6 192.168.1.16 3 3 6
a7 7 192.168.1.17 3 3 7
a8 8 192.168.1.18 3 3 8
a9 9 192.168.1.19 3 3 9

Example (wall 2x2):
b1 1 192.168.1.21 2 2 1
b2 2 192.168.1.22 2 2 2
b3 3 192.168.1.23 2 2 3
b4 4 192.168.1.24 2 2 4

These two walls can be placed in one configuration file. In fact, all monitors are treated as standalone ones, with
each line describing all their parameters.

----------------------
3. Usage
----------------------
The program is designed to be used from a command-line:
./cmdc SELECTION COMMAND [ARGS]

Selection:
all     - all monitors in config file
PREFIX  - prefix of monitors names in config file ("all" for all monitors)

Commands:
power       - Power on/off (0 - off, 1 - on)
wall        - Wall mode on/off (0 - off, 1 - on)
lamp        - Manual lamp control (0 - 100)
input       - Input source (source)
con         - Contrast (0-100)
br          - Brightness (0-100)
sh          - Sharpness (0-100)
col         - Color (0-100)
tone        - Color tone (0-4,5 - off)
temp        - Color temperature (0-10)
time        - Set time
setwall     - Set wall parameters
wallmode    - Set wall mode (0 - natural, 1 - full)
getvideo    - Get video settings
getmaint    - Get maintenance
getstatus   - Get status
gettime     - Get time
getdisplay  - Get display status
getwallmode - Get wall mode