Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: python-samsung-mdc
3 Version: 1.18.0
4 Summary: Samsung Multiple Display Control (MDC) protocol implementation (asyncio library + CLI interface)
5 Home-page: http://github.com/vgavro/samsung-mdc
6 Author: Victor Gavro
7 Author-email: [email protected]
8 License: BSD-3-Clause
9 Keywords: samsung,mdc
10 Classifier: License :: OSI Approved :: BSD License
11 Classifier: Intended Audience :: Developers
12 Classifier: Intended Audience :: System Administrators
13 Classifier: Intended Audience :: Telecommunications Industry
14 Classifier: Programming Language :: Python
15 Classifier: Programming Language :: Python :: 3
16 Classifier: Development Status :: 5 - Production/Stable
17 Classifier: Operating System :: OS Independent
18 Classifier: Topic :: Multimedia :: Video :: Display
19 Classifier: Topic :: Home Automation
20 Classifier: Topic :: Utilities
21 Requires-Python: >=3.7,<4.0
22 Description-Content-Type: text/markdown
23 License-File: LICENSE
24 Requires-Dist: click
25 Requires-Dist: jinja2
26 Requires-Dist: pyserial-asyncio
27 Provides-Extra: test
28 Requires-Dist: pytest; extra == "test"
29 Requires-Dist: pytest-asyncio; extra == "test"
30 Requires-Dist: nest-asyncio2; extra == "test"
31 Provides-Extra: serial
32 Requires-Dist: pyserial-asyncio; extra == "serial"
33 Provides-Extra: all
34 Requires-Dist: pyserial-asyncio; extra == "all"
35 Dynamic: author
36 Dynamic: author-email
37 Dynamic: classifier
38 Dynamic: description
39 Dynamic: description-content-type
40 Dynamic: home-page
41 Dynamic: keywords
42 Dynamic: license
43 Dynamic: license-file
44 Dynamic: provides-extra
45 Dynamic: requires-dist
46 Dynamic: requires-python
47 Dynamic: summary
48
49 # Samsung-MDC
50
51 This is implementation of Samsung MDC (Multiple Display Control) protocol on **python3.7+** and **asyncio** with most comprehensive CLI (command line interface).
52
53 It allows you to control a variety of different sources (TV, Monitor) through the built-in RS-232C or Ethernet interface.
54
55 [MDC Protocol specification - v15.0 2020-11-06](https://vgavro.github.io/samsung-mdc/MDC-Protocol.pdf)
56
57 * Implemented *84* commands
58 * Easy to extend using simple declarative API - see [samsung_mdc/commands.py](https://github.com/vgavro/samsung-mdc/blob/master/samsung_mdc/commands.py)
59 * Detailed [CLI](#usage) help and parameters validation
60 * Run commands async on numerous targets (using asyncio)
61 * TCP and SERIAL mode (for RJ45 and RS232C connection types)
62 * TCP over TLS mode ("Secured Protocol" using PIN)
63 * [script](#script) command for advanced usage
64 * [Python example](#python-example)
65
66 Not implemented: some more commands (PRs are welcome)
67
68 Also see: [Samsung MDC Unified](http://www.samsung-mcloud.com/01_Software/04_Tools/MDC/v1235/) - Reference Application (GUI, Windows) with partially implemented functionality.
69
70 ## Install<a id="install"></a>
71
72 ```
73 # using pipx https://pypa.github.io/pipx/
74 pipx run python-samsung-mdc --help
75
76 # OR global install/upgrade
77 sudo pip3 install --upgrade python-samsung-mdc
78 samsung-mdc --help
79
80 # OR local
81 git clone https://github.com/vgavro/samsung-mdc
82 cd ./samsung-mdc
83 python3 -m venv venv
84 ./venv/bin/pip3 install -e ./
85 ./venv/bin/samsung-mdc --help
86 ```
87
88 ### Windows install<a id="windows-install"></a>
89 1. Install Git && Git Bash: https://git-scm.com/download/win
90 2. Install Python 3 latest release (tested with 3.9): https://www.python.org/downloads/windows/
91 3. Run "Git Bash", type in console:
92
93 ```
94 pip3 install --upgrade python-samsung-mdc
95
96 # NOTE: python "Scripts" folder is not in %PATH% in Windows by default,
97 # so you may want to create alias for Git Bash
98 echo alias samsung-mdc=\'python3 -m samsung_mdc\' >> ~/.bash_profile
99 source ~/.bash_profile
100
101 # test it
102 samsung-mdc --help
103 ```
104
105 ## Usage<a id="usage"></a>
106 ```
107 Usage: samsung-mdc [OPTIONS] TARGET COMMAND [ARGS]...
108
109 Try 'samsung-mdc --help COMMAND' for command info
110
111 For multiple targets commands will be running async, so result order may
112 differ.
113
114 TARGET may be:
115
116 DISPLAY_ID@IP[:PORT] (default port: 1515, example: [email protected]:1515)
117 FILENAME with target list (separated by newline)
118
119 For serial port connection:
120 DISPLAY_ID@PORT_NAME for Windows (example: 1@COM1)
121 DISPLAY_ID@PORT_PATH (example: 1@/dev/ttyUSB0)
122
123 We're trying to make autodetection of connection mode by port name, but you
124 may want to use --mode option.
125
126 Options:
127 --version Show the version and exit.
128 -v, --verbose
129 -m, --mode [auto|tcp|serial] default: auto
130 -p, --pin INTEGER 4-digit PIN for secured TLS connection. If PIN
131 provided, "Secured Protocol" must be enabled
132 on remote device.
133 -t, --timeout FLOAT read/write/connect timeout in seconds
134 (default: 5) (connect can be overridden with
135 separate option)
136 --connect-timeout FLOAT
137 -h, --help Show this message and exit.
138
139 ```
140 ### Commands:
141
142 * [status](#status) `(POWER_STATE VOLUME MUTE_STATE INPUT_SOURCE_STATE PICTURE_ASPECT_STATE N_TIME_NF F_TIME_NF)`
143 * [video](#video) `(CONTRAST BRIGHTNESS SHARPNESS COLOR TINT COLOR_TONE_STATE COLOR_TEMPERATURE _IGNORE)`
144 * [rgb](#rgb) `(CONTRAST BRIGHTNESS COLOR_TONE_STATE COLOR_TEMPERATURE _IGNORE RED_GAIN GREEN_GAIN BLUE_GAIN)`
145 * [serial_number](#serial_number) `(SERIAL_NUMBER)`
146 * [error_status](#error_status) `(LAMP_ERROR_STATE TEMPERATURE_ERROR_STATE BRIGHTNESS_SENSOR_ERROR_STATE INPUT_SOURCE_ERROR_STATE TEMPERATURE FAN_ERROR_STATE)`
147 * [software_version](#software_version) `(SOFTWARE_VERSION)`
148 * [model_number](#model_number) `(MODEL_SPECIES MODEL_CODE TV_SUPPORT)`
149 * [power](#power) `[POWER_STATE]`
150 * [volume](#volume) `[VOLUME]`
151 * [mute](#mute) `[MUTE_STATE]`
152 * [input_source](#input_source) `[INPUT_SOURCE_STATE]`
153 * [picture_aspect](#picture_aspect) `[PICTURE_ASPECT_STATE]`
154 * [screen_mode](#screen_mode) `[SCREEN_MODE_STATE]`
155 * [screen_size](#screen_size) `(INCHES)`
156 * [network_configuration](#network_configuration) `[IP_ADDRESS SUBNET_MASK GATEWAY_ADDRESS DNS_SERVER_ADDRESS]`
157 * [network_mode](#network_mode) `[NETWORK_MODE_STATE]`
158 * [network_ap_config](#network_ap_config) `SSID PASSWORD`
159 * [weekly_restart](#weekly_restart) `[WEEKDAY TIME]`
160 * [magicinfo_channel](#magicinfo_channel) `CHANNEL_NUMBER`
161 * [magicinfo_server](#magicinfo_server) `[MAGICINFO_SERVER_URL]`
162 * [magicinfo_content_orientation](#magicinfo_content_orientation) `[ORIENTATION_MODE_STATE]`
163 * [mdc_connection](#mdc_connection) `[MDC_CONNECTION_TYPE]`
164 * [contrast](#contrast) `[CONTRAST]`
165 * [brightness](#brightness) `[BRIGHTNESS]`
166 * [sharpness](#sharpness) `[SHARPNESS]`
167 * [color](#color) `[COLOR]`
168 * [tint](#tint) `[TINT]`
169 * [h_position](#h_position) `H_POSITION_MOVE_TO`
170 * [v_position](#v_position) `V_POSITION_MOVE_TO`
171 * [auto_power](#auto_power) `[AUTO_POWER_STATE]`
172 * [clear_menu](#clear_menu)
173 * [ir_state](#ir_state) `[IR_STATE]`
174 * [rgb_contrast](#rgb_contrast) `[CONTRAST]`
175 * [rgb_brightness](#rgb_brightness) `[BRIGHTNESS]`
176 * [auto_adjustment_on](#auto_adjustment_on)
177 * [color_tone](#color_tone) `[COLOR_TONE_STATE]`
178 * [color_temperature](#color_temperature) `[HECTO_KELVIN]`
179 * [standby](#standby) `[STANDBY_STATE]`
180 * [auto_lamp](#auto_lamp) `[MAX_TIME MAX_LAMP_VALUE MIN_TIME MIN_LAMP_VALUE]`
181 * [manual_lamp](#manual_lamp) `[LAMP_VALUE]`
182 * [inverse](#inverse) `[INVERSE_STATE]`
183 * [video_wall_mode](#video_wall_mode) `[VIDEO_WALL_MODE]`
184 * [safety_lock](#safety_lock) `[LOCK_STATE]`
185 * [panel_lock](#panel_lock) `[LOCK_STATE]`
186 * [channel_change](#channel_change) `CHANGE_TO`
187 * [volume_change](#volume_change) `CHANGE_TO`
188 * [ticker](#ticker) `[ON_OFF START_TIME END_TIME POS_HORIZ POS_VERTI MOTION_ON_OFF MOTION_DIR MOTION_SPEED FONT_SIZE FOREGROUND_COLOR BACKGROUND_COLOR FOREGROUND_OPACITY BACKGROUND_OPACITY MESSAGE]`
189 * [device_name](#device_name) `[DEVICE_NAME]`
190 * [osd](#osd) `[OSD_ENABLED]`
191 * [picture_mode](#picture_mode) `[PICTURE_MODE_STATE]`
192 * [sound_mode](#sound_mode) `[SOUND_MODE_STATE]`
193 * [all_keys_lock](#all_keys_lock) `[LOCK_STATE]`
194 * [panel_on_time](#panel_on_time) `(MIN10)`
195 * [video_wall_state](#video_wall_state) `[VIDEO_WALL_STATE]`
196 * [video_wall_model](#video_wall_model) `[MODEL SERIAL]`
197 * [model_name](#model_name) `(MODEL_NAME)`
198 * [energy_saving](#energy_saving) `[ENERGY_SAVING_STATE]`
199 * [reset](#reset) `RESET_TARGET`
200 * [osd_type](#osd_type) `[OSD_TYPE OSD_ENABLED]`
201 * [timer_13](#timer_13) `TIMER_ID [ON_TIME ON_ENABLED OFF_TIME OFF_ENABLED REPEAT MANUAL_WEEKDAY VOLUME INPUT_SOURCE_STATE HOLIDAY_APPLY]`
202 * [timer_15](#timer_15) `TIMER_ID [ON_TIME ON_ENABLED OFF_TIME OFF_ENABLED ON_REPEAT ON_MANUAL_WEEKDAY OFF_REPEAT OFF_MANUAL_WEEKDAY VOLUME INPUT_SOURCE_STATE HOLIDAY_APPLY]`
203 * [clock_m](#clock_m) `[DATETIME]`
204 * [holiday_set](#holiday_set) `HOLIDAY_MANAGE START_MONTH START_DAY END_MONTH END_DAY`
205 * [holiday_get](#holiday_get) `[INDEX]`
206 * [virtual_remote](#virtual_remote) `KEY_CODE`
207 * [network_standby](#network_standby) `[NETWORK_STANDBY_STATE]`
208 * [dst](#dst) `[DST_STATE START_MONTH START_WEEK START_WEEKDAY START_TIME END_MONTH END_WEEK END_WEEKDAY END_TIME OFFSET]`
209 * [auto_id_setting](#auto_id_setting) `[AUTO_ID_SETTING_STATE]`
210 * [display_id](#display_id) `DISPLAY_ID_STATE`
211 * [clock_s](#clock_s) `[DATETIME]`
212 * [set_content_download](#set_content_download) `CONTENT_URL`
213 * [launcher_play_via](#launcher_play_via) `[PLAY_VIA_MODE]`
214 * [launcher_url_address](#launcher_url_address) `[URL_ADDRESS]`
215 * [osd_menu_orientation](#osd_menu_orientation) `[ORIENTATION_MODE_STATE]`
216 * [osd_source_content_orientation](#osd_source_content_orientation) `[ORIENTATION_MODE_STATE]`
217 * [osd_aspect_ratio](#osd_aspect_ratio) `[ASPECT_RATIO_STATE]`
218 * [osd_pip_orientation](#osd_pip_orientation) `[ORIENTATION_MODE_STATE]`
219 * [osd_menu_size](#osd_menu_size) `[MENU_SIZE_STATE]`
220 * [auto_source_switch](#auto_source_switch) `[AUTO_SOURCE_SWITCH_STATE]`
221 * [auto_source](#auto_source) `[PRIMARY_SOURCE_RECOVERY PRIMARY_SOURCE SECONDARY_SOURCE]`
222 * [panel](#panel) `[PANEL_STATE]`
223 * [screen_mute](#screen_mute) `[SCREEN_MUTE_STATUS]`
224 * [script](#script) `[OPTIONS] SCRIPT_FILE`
225 * [raw](#raw) `[OPTIONS] COMMAND [DATA]`
226
227 #### status<a id="status"></a>
228 ```
229 Usage: samsung-mdc [OPTIONS] TARGET status
230
231 Get the device various state like power, volume, sound mute, input source,
232 picture aspect ratio.
233
234 Note: For no audio models volume and mute returns 0xFF (255).
235
236 N_TIME_NF, F_TIME_NF: OnTime/OffTime ON/OFF value (old type timer, now it's
237 always 0x00).
238
239 Data:
240 POWER_STATE OFF | ON | REBOOT
241 VOLUME int (0-100)
242 MUTE_STATE OFF | ON | NONE
243 INPUT_SOURCE_STATE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 | DVI |
244 PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 | HDMI1_PC |
245 HDMI2 | HDMI2_PC | DISPLAY_PORT_1 | DISPLAY_PORT_2 |
246 DISPLAY_PORT_3 | RF_TV | HDMI3 | HDMI3_PC | HDMI4 |
247 HDMI4_PC | TV_DTV | PLUG_IN_MODE | HD_BASE_T | OCM |
248 MEDIA_MAGIC_INFO_S | WIDI_SCREEN_MIRRORING |
249 INTERNAL_USB | URL_LAUNCHER | IWB | WEB_BROWSER |
250 REMOTE_WORKSPACE
251 PICTURE_ASPECT_STATE PC_16_9 | PC_4_3 | PC_ORIGINAL_RATIO | PC_21_9 |
252 PC_CUSTOM | VIDEO_AUTO_WIDE | VIDEO_16_9 | VIDEO_ZOOM
253 | VIDEO_ZOOM_1 | VIDEO_ZOOM_2 | VIDEO_SCREEN_FIT |
254 VIDEO_4_3 | VIDEO_WIDE_FIT | VIDEO_CUSTOM |
255 VIDEO_SMART_VIEW_1 | VIDEO_SMART_VIEW_2 |
256 VIDEO_WIDE_ZOOM | VIDEO_21_9
257 N_TIME_NF int
258 F_TIME_NF int
259 ```
260 #### video<a id="video"></a>
261 ```
262 Usage: samsung-mdc [OPTIONS] TARGET video
263
264 Data:
265 CONTRAST int (0-100)
266 BRIGHTNESS int (0-100)
267 SHARPNESS int (0-100)
268 COLOR int (0-100)
269 TINT int (0-100)
270 COLOR_TONE_STATE COOL_2 | COOL_1 | NORMAL | WARM_1 | WARM_2 | OFF
271 COLOR_TEMPERATURE int
272 _IGNORE int (0-0)
273 ```
274 #### rgb<a id="rgb"></a>
275 ```
276 Usage: samsung-mdc [OPTIONS] TARGET rgb
277
278 Data:
279 CONTRAST int (0-100)
280 BRIGHTNESS int (0-100)
281 COLOR_TONE_STATE COOL_2 | COOL_1 | NORMAL | WARM_1 | WARM_2 | OFF
282 COLOR_TEMPERATURE int
283 _IGNORE int (0-0)
284 RED_GAIN int
285 GREEN_GAIN int
286 BLUE_GAIN int
287 ```
288 #### serial_number<a id="serial_number"></a>
289 ```
290 Usage: samsung-mdc [OPTIONS] TARGET serial_number
291
292 Data:
293 SERIAL_NUMBER str
294 ```
295 #### error_status<a id="error_status"></a>
296 ```
297 Usage: samsung-mdc [OPTIONS] TARGET error_status
298
299 Data:
300 LAMP_ERROR_STATE NORMAL | ERROR
301 TEMPERATURE_ERROR_STATE NORMAL | ERROR
302 BRIGHTNESS_SENSOR_ERROR_STATE NONE | ERROR | NORMAL
303 INPUT_SOURCE_ERROR_STATE NORMAL | ERROR | INVALID
304 TEMPERATURE int
305 FAN_ERROR_STATE NORMAL | ERROR | NONE
306 ```
307 #### software_version<a id="software_version"></a>
308 ```
309 Usage: samsung-mdc [OPTIONS] TARGET software_version
310
311 Data:
312 SOFTWARE_VERSION str
313 ```
314 #### model_number<a id="model_number"></a>
315 ```
316 Usage: samsung-mdc [OPTIONS] TARGET model_number
317
318 Data:
319 MODEL_SPECIES PDP | LCD | DLP | LED | CRT | OLED
320 MODEL_CODE int
321 TV_SUPPORT SUPPORTED | NOT_SUPPORTED
322 ```
323 #### power<a id="power"></a>
324 ```
325 Usage: samsung-mdc [OPTIONS] TARGET power [POWER_STATE]
326
327 Data:
328 POWER_STATE OFF | ON | REBOOT
329 ```
330 #### volume<a id="volume"></a>
331 ```
332 Usage: samsung-mdc [OPTIONS] TARGET volume [VOLUME]
333
334 Data:
335 VOLUME int (0-100)
336 ```
337 #### mute<a id="mute"></a>
338 ```
339 Usage: samsung-mdc [OPTIONS] TARGET mute [MUTE_STATE]
340
341 Data:
342 MUTE_STATE OFF | ON | NONE
343 ```
344 #### input_source<a id="input_source"></a>
345 ```
346 Usage: samsung-mdc [OPTIONS] TARGET input_source [INPUT_SOURCE_STATE]
347
348 Get/Set the device source which is shown on the screen.
349
350 DVI_VIDEO, HDMI1_PC, HDMI2_PC, HDMI3_PC, HDMI4_PC: get only.
351
352 URL_LAUNCHER, MAGIC_INFO, TV or some ports require support by model.
353
354 On TIMER functions, Do not use WIDI_SCREEN_MIRRORING.
355
356 Data:
357 INPUT_SOURCE_STATE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 | DVI |
358 PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 | HDMI1_PC |
359 HDMI2 | HDMI2_PC | DISPLAY_PORT_1 | DISPLAY_PORT_2 |
360 DISPLAY_PORT_3 | RF_TV | HDMI3 | HDMI3_PC | HDMI4 |
361 HDMI4_PC | TV_DTV | PLUG_IN_MODE | HD_BASE_T | OCM |
362 MEDIA_MAGIC_INFO_S | WIDI_SCREEN_MIRRORING |
363 INTERNAL_USB | URL_LAUNCHER | IWB | WEB_BROWSER |
364 REMOTE_WORKSPACE
365 ```
366 #### picture_aspect<a id="picture_aspect"></a>
367 ```
368 Usage: samsung-mdc [OPTIONS] TARGET picture_aspect [PICTURE_ASPECT_STATE]
369
370 Get/Set the device picture size (aspect ratio).
371
372 Working Condition: Will not work with VIDEO_WALL_STATE is ON.
373
374 Note: Some of the image sizes are not supported depending on input signals.
375
376 Data:
377 PICTURE_ASPECT_STATE PC_16_9 | PC_4_3 | PC_ORIGINAL_RATIO | PC_21_9 |
378 PC_CUSTOM | VIDEO_AUTO_WIDE | VIDEO_16_9 | VIDEO_ZOOM
379 | VIDEO_ZOOM_1 | VIDEO_ZOOM_2 | VIDEO_SCREEN_FIT |
380 VIDEO_4_3 | VIDEO_WIDE_FIT | VIDEO_CUSTOM |
381 VIDEO_SMART_VIEW_1 | VIDEO_SMART_VIEW_2 |
382 VIDEO_WIDE_ZOOM | VIDEO_21_9
383 ```
384 #### screen_mode<a id="screen_mode"></a>
385 ```
386 Usage: samsung-mdc [OPTIONS] TARGET screen_mode [SCREEN_MODE_STATE]
387
388 Data:
389 SCREEN_MODE_STATE MODE_16_9 | MODE_ZOOM | MODE_4_3 | MODE_WIDE_ZOOM
390 ```
391 #### screen_size<a id="screen_size"></a>
392 ```
393 Usage: samsung-mdc [OPTIONS] TARGET screen_size
394
395 Data:
396 INCHES int (0-255)
397 ```
398 #### network_configuration<a id="network_configuration"></a>
399 ```
400 Usage: samsung-mdc [OPTIONS] TARGET network_configuration [IP_ADDRESS
401 SUBNET_MASK GATEWAY_ADDRESS DNS_SERVER_ADDRESS]
402
403 Data:
404 IP_ADDRESS IP address
405 SUBNET_MASK IP address
406 GATEWAY_ADDRESS IP address
407 DNS_SERVER_ADDRESS IP address
408 ```
409 #### network_mode<a id="network_mode"></a>
410 ```
411 Usage: samsung-mdc [OPTIONS] TARGET network_mode [NETWORK_MODE_STATE]
412
413 Data:
414 NETWORK_MODE_STATE DYNAMIC | STATIC
415 ```
416 #### network_ap_config<a id="network_ap_config"></a>
417 ```
418 Usage: samsung-mdc [OPTIONS] TARGET network_ap_config SSID PASSWORD
419
420 Add new SSID info to device connection history with its password.
421
422 Note: device may change network and response may not be received.
423
424 Data:
425 SSID str
426 PASSWORD str
427 ```
428 #### weekly_restart<a id="weekly_restart"></a>
429 ```
430 Usage: samsung-mdc [OPTIONS] TARGET weekly_restart [WEEKDAY TIME]
431
432 Data:
433 WEEKDAY list(,) SUN | SAT | FRI | THU | WED | TUE | MON
434 TIME time (format: %H:%M)
435 ```
436 #### magicinfo_channel<a id="magicinfo_channel"></a>
437 ```
438 Usage: samsung-mdc [OPTIONS] TARGET magicinfo_channel CHANNEL_NUMBER
439
440 Set MagicInfo Channel by Direct Channel Number which is used by MagicInfo S
441 Player.
442
443 Data:
444 CHANNEL_NUMBER int
445 ```
446 #### magicinfo_server<a id="magicinfo_server"></a>
447 ```
448 Usage: samsung-mdc [OPTIONS] TARGET magicinfo_server [MAGICINFO_SERVER_URL]
449
450 MagicInfo Server URL.
451
452 Example: "http://example.com:80"
453
454 Data:
455 MAGICINFO_SERVER_URL str
456 ```
457 #### magicinfo_content_orientation<a id="magicinfo_content_orientation"></a>
458 ```
459 Usage: samsung-mdc [OPTIONS] TARGET magicinfo_content_orientation
460 [ORIENTATION_MODE_STATE]
461
462 Data:
463 ORIENTATION_MODE_STATE LANDSCAPE_0 | PORTRAIT_270 | LANDSCAPE_180 |
464 PORTRAIT_90
465 ```
466 #### mdc_connection<a id="mdc_connection"></a>
467 ```
468 Usage: samsung-mdc [OPTIONS] TARGET mdc_connection [MDC_CONNECTION_TYPE]
469
470 Note: Depends on the product specification, if it is set as RJ45 then serial
471 MDC will not work.
472
473 Data:
474 MDC_CONNECTION_TYPE RS232C | RJ45
475 ```
476 #### contrast<a id="contrast"></a>
477 ```
478 Usage: samsung-mdc [OPTIONS] TARGET contrast [CONTRAST]
479
480 Data:
481 CONTRAST int (0-100)
482 ```
483 #### brightness<a id="brightness"></a>
484 ```
485 Usage: samsung-mdc [OPTIONS] TARGET brightness [BRIGHTNESS]
486
487 Data:
488 BRIGHTNESS int (0-100)
489 ```
490 #### sharpness<a id="sharpness"></a>
491 ```
492 Usage: samsung-mdc [OPTIONS] TARGET sharpness [SHARPNESS]
493
494 Data:
495 SHARPNESS int (0-100)
496 ```
497 #### color<a id="color"></a>
498 ```
499 Usage: samsung-mdc [OPTIONS] TARGET color [COLOR]
500
501 Data:
502 COLOR int (0-100)
503 ```
504 #### tint<a id="tint"></a>
505 ```
506 Usage: samsung-mdc [OPTIONS] TARGET tint [TINT]
507
508 Control the device tint. Adjust the ratio of green to red tint level.
509
510 Red: TINT value, Green: ( 100 - TINT ) value.
511
512 Note: Tint could only be set in 50 Steps (0, 2, 4, 6... 100).
513
514 Data:
515 TINT int (0-100)
516 ```
517 #### h_position<a id="h_position"></a>
518 ```
519 Usage: samsung-mdc [OPTIONS] TARGET h_position H_POSITION_MOVE_TO
520
521 Data:
522 H_POSITION_MOVE_TO LEFT | RIGHT
523 ```
524 #### v_position<a id="v_position"></a>
525 ```
526 Usage: samsung-mdc [OPTIONS] TARGET v_position V_POSITION_MOVE_TO
527
528 Data:
529 V_POSITION_MOVE_TO UP | DOWN
530 ```
531 #### auto_power<a id="auto_power"></a>
532 ```
533 Usage: samsung-mdc [OPTIONS] TARGET auto_power [AUTO_POWER_STATE]
534
535 Data:
536 AUTO_POWER_STATE OFF | ON
537 ```
538 #### clear_menu<a id="clear_menu"></a>
539 ```
540 Usage: samsung-mdc [OPTIONS] TARGET clear_menu
541 ```
542 #### ir_state<a id="ir_state"></a>
543 ```
544 Usage: samsung-mdc [OPTIONS] TARGET ir_state [IR_STATE]
545
546 Enables/disables IR (Infrared) receiving function (Remote Control).
547
548 Working Condition: * Can operate regardless of whether power is ON/OFF. (If
549 DPMS Situation in LFD, it operate Remocon regardless of set value).
550
551 Data:
552 IR_STATE DISABLED | ENABLED
553 ```
554 #### rgb_contrast<a id="rgb_contrast"></a>
555 ```
556 Usage: samsung-mdc [OPTIONS] TARGET rgb_contrast [CONTRAST]
557
558 Data:
559 CONTRAST int (0-100)
560 ```
561 #### rgb_brightness<a id="rgb_brightness"></a>
562 ```
563 Usage: samsung-mdc [OPTIONS] TARGET rgb_brightness [BRIGHTNESS]
564
565 Data:
566 BRIGHTNESS int (0-100)
567 ```
568 #### auto_adjustment_on<a id="auto_adjustment_on"></a>
569 ```
570 Usage: samsung-mdc [OPTIONS] TARGET auto_adjustment_on
571 ```
572 #### color_tone<a id="color_tone"></a>
573 ```
574 Usage: samsung-mdc [OPTIONS] TARGET color_tone [COLOR_TONE_STATE]
575
576 Data:
577 COLOR_TONE_STATE COOL_2 | COOL_1 | NORMAL | WARM_1 | WARM_2 | OFF
578 ```
579 #### color_temperature<a id="color_temperature"></a>
580 ```
581 Usage: samsung-mdc [OPTIONS] TARGET color_temperature [HECTO_KELVIN]
582
583 Color temperature function.
584
585 Unit is hectoKelvin (hK) (x*100 Kelvin) (example: 28 = 2800K).
586
587 Supported values - 28, 30, 35, 40... 160.
588
589 For older models: 0-10=(x*100K + 5000K), 253=2800K, 254=3000K, 255=4000K
590
591 Data:
592 HECTO_KELVIN int
593 ```
594 #### standby<a id="standby"></a>
595 ```
596 Usage: samsung-mdc [OPTIONS] TARGET standby [STANDBY_STATE]
597
598 Data:
599 STANDBY_STATE OFF | ON | AUTO
600 ```
601 #### auto_lamp<a id="auto_lamp"></a>
602 ```
603 Usage: samsung-mdc [OPTIONS] TARGET auto_lamp [MAX_TIME MAX_LAMP_VALUE
604 MIN_TIME MIN_LAMP_VALUE]
605
606 Auto Lamp function (backlight).
607
608 Note: When Manual Lamp Control is on, Auto Lamp Control will automatically
609 turn off.
610
611 Data:
612 MAX_TIME time (format: %H:%M)
613 MAX_LAMP_VALUE int (0-100)
614 MIN_TIME time (format: %H:%M)
615 MIN_LAMP_VALUE int (0-100)
616 ```
617 #### manual_lamp<a id="manual_lamp"></a>
618 ```
619 Usage: samsung-mdc [OPTIONS] TARGET manual_lamp [LAMP_VALUE]
620
621 Manual Lamp function (backlight).
622
623 Note: When Auto Lamp Control is on, Manual Lamp Control will automatically
624 turn off.
625
626 Data:
627 LAMP_VALUE int (0-100)
628 ```
629 #### inverse<a id="inverse"></a>
630 ```
631 Usage: samsung-mdc [OPTIONS] TARGET inverse [INVERSE_STATE]
632
633 Data:
634 INVERSE_STATE OFF | ON
635 ```
636 #### video_wall_mode<a id="video_wall_mode"></a>
637 ```
638 Usage: samsung-mdc [OPTIONS] TARGET video_wall_mode [VIDEO_WALL_MODE]
639
640 Get/Set the device in aspect ratio of the video wall.
641
642 FULL: stretch input source to fill display
643
644 NATURAL: Keep aspect ratio of input source; do not fill display.
645
646 Note: Needs VIDEO_WALL_STATE to be ON.
647
648 Data:
649 VIDEO_WALL_MODE NATURAL | FULL
650 ```
651 #### safety_lock<a id="safety_lock"></a>
652 ```
653 Usage: samsung-mdc [OPTIONS] TARGET safety_lock [LOCK_STATE]
654
655 Data:
656 LOCK_STATE OFF | ON
657 ```
658 #### panel_lock<a id="panel_lock"></a>
659 ```
660 Usage: samsung-mdc [OPTIONS] TARGET panel_lock [LOCK_STATE]
661
662 Data:
663 LOCK_STATE OFF | ON
664 ```
665 #### channel_change<a id="channel_change"></a>
666 ```
667 Usage: samsung-mdc [OPTIONS] TARGET channel_change CHANGE_TO
668
669 Data:
670 CHANGE_TO UP | DOWN
671 ```
672 #### volume_change<a id="volume_change"></a>
673 ```
674 Usage: samsung-mdc [OPTIONS] TARGET volume_change CHANGE_TO
675
676 Data:
677 CHANGE_TO UP | DOWN
678 ```
679 #### ticker<a id="ticker"></a>
680 ```
681 Usage: samsung-mdc [OPTIONS] TARGET ticker [ON_OFF START_TIME END_TIME
682 POS_HORIZ POS_VERTI MOTION_ON_OFF MOTION_DIR MOTION_SPEED
683 FONT_SIZE FOREGROUND_COLOR BACKGROUND_COLOR
684 FOREGROUND_OPACITY BACKGROUND_OPACITY MESSAGE]
685
686 Get/Set the device ticker. (Show text message overlay on the screen)
687
688 Note: POS_HORIZ or POS_VERT are NONE in GET response if unsupported by the
689 display.
690
691 Data:
692 ON_OFF bool
693 START_TIME time (format: %H:%M)
694 END_TIME time (format: %H:%M)
695 POS_HORIZ CENTER | LEFT | RIGHT | NONE
696 POS_VERTI MIDDLE | TOP | BOTTOM | NONE
697 MOTION_ON_OFF bool
698 MOTION_DIR LEFT | RIGHT | UP | DOWN
699 MOTION_SPEED NORMAL | SLOW | FAST
700 FONT_SIZE STANDARD | SMALL | LARGE
701 FOREGROUND_COLOR BLACK | WHITE | RED | GREEN | BLUE | YELLOW | MAGENTA |
702 CYAN
703 BACKGROUND_COLOR BLACK | WHITE | RED | GREEN | BLUE | YELLOW | MAGENTA |
704 CYAN
705 FOREGROUND_OPACITY FLASHING | FLASH_ALL | OFF
706 BACKGROUND_OPACITY SOLID | TRANSPARENT | TRANSLUCENT | UNKNOWN
707 MESSAGE str
708 ```
709 #### device_name<a id="device_name"></a>
710 ```
711 Usage: samsung-mdc [OPTIONS] TARGET device_name [DEVICE_NAME]
712
713 It reads the device name which user set up in network. Shows the information
714 about entered device name.
715
716 Data:
717 DEVICE_NAME str
718 ```
719 #### osd<a id="osd"></a>
720 ```
721 Usage: samsung-mdc [OPTIONS] TARGET osd [OSD_ENABLED]
722
723 Turns OSD (On-screen display) on/off.
724
725 Data:
726 OSD_ENABLED bool
727 ```
728 #### picture_mode<a id="picture_mode"></a>
729 ```
730 Usage: samsung-mdc [OPTIONS] TARGET picture_mode [PICTURE_MODE_STATE]
731
732 Data:
733 PICTURE_MODE_STATE DYNAMIC | STANDARD | MOVIE | CUSTOM_TV | NATURAL |
734 CALIBRATION_TV | ENTERTAIN | INTERNET | TEXT | CUSTOM |
735 ADVERTISEMENT | INFORMATION | CALIBRATION |
736 SHOP_MALL_VIDEO | SHOP_MALL_TEXT | OFFICE_SCHOOL_VIDEO |
737 OFFICE_SCHOOL_TEXT | TERMINAL_STATION_VIDEO |
738 TERMINAL_STATION_TEXT | VIDEO_WALL_VIDEO |
739 VIDEO_WALL_TEXT | HDR_PLUS | OFF | RESERVED_OTHER
740 ```
741 #### sound_mode<a id="sound_mode"></a>
742 ```
743 Usage: samsung-mdc [OPTIONS] TARGET sound_mode [SOUND_MODE_STATE]
744
745 Data:
746 SOUND_MODE_STATE STANDARD | MUSIC | MOVIE | SPEECH | CUSTOM | AMPLIFY |
747 OPTIMIZED
748 ```
749 #### all_keys_lock<a id="all_keys_lock"></a>
750 ```
751 Usage: samsung-mdc [OPTIONS] TARGET all_keys_lock [LOCK_STATE]
752
753 Turns both REMOCON and Panel Key Lock function on/off.
754
755 Note: Can operate regardless of whether power is on/off.
756
757 Data:
758 LOCK_STATE OFF | ON
759 ```
760 #### panel_on_time<a id="panel_on_time"></a>
761 ```
762 Usage: samsung-mdc [OPTIONS] TARGET panel_on_time
763
764 Get the device panel on total time.
765
766 Return value increased every 10 mins. To get hours use "MIN10 / 6".
767
768 Data:
769 MIN10 int
770 ```
771 #### video_wall_state<a id="video_wall_state"></a>
772 ```
773 Usage: samsung-mdc [OPTIONS] TARGET video_wall_state [VIDEO_WALL_STATE]
774
775 Get/Set the device in video wall state. This will split the primary input
776 source into smaller N number of squares and display them instead.
777
778 Note: The device needs to be capable of this operation. Usually a primary
779 high resolution source signal is daisy chained to lower resolution displays
780 in a video wall using HDMI/DP.
781
782 Data:
783 VIDEO_WALL_STATE OFF | ON
784 ```
785 #### video_wall_model<a id="video_wall_model"></a>
786 ```
787 Usage: samsung-mdc [OPTIONS] TARGET video_wall_model [MODEL SERIAL]
788
789 Get/Set video wall model.
790
791 MODEL: Size of the wall in (x, y) coordinates; ie. "2,2" or "4,1"
792
793 SERIAL: Serial number - position of the display in the video wall, counting
794 from the first display.
795
796 Note: Needs VIDEO_WALL_STATE to be ON.
797
798 Data:
799 MODEL Video Wall model (format: X,Y eg. 4,5)
800 SERIAL int (1-255)
801 ```
802 #### model_name<a id="model_name"></a>
803 ```
804 Usage: samsung-mdc [OPTIONS] TARGET model_name
805
806 Data:
807 MODEL_NAME str
808 ```
809 #### energy_saving<a id="energy_saving"></a>
810 ```
811 Usage: samsung-mdc [OPTIONS] TARGET energy_saving [ENERGY_SAVING_STATE]
812
813 Data:
814 ENERGY_SAVING_STATE OFF | LOW | MEDIUM | HIGH | PICTURE_OFF
815 ```
816 #### reset<a id="reset"></a>
817 ```
818 Usage: samsung-mdc [OPTIONS] TARGET reset RESET_TARGET
819
820 Data:
821 RESET_TARGET PICTURE | SOUND | SETUP | ALL | SCREEN_DISPLAY
822 ```
823 #### osd_type<a id="osd_type"></a>
824 ```
825 Usage: samsung-mdc [OPTIONS] TARGET osd_type [OSD_TYPE OSD_ENABLED]
826
827 Turns OSD (On-screen display) specific message types on/off.
828
829 Data:
830 OSD_TYPE SOURCE | NOT_OPTIMUM_MODE | NO_SIGNAL | MDC | SCHEDULE_CHANNEL
831 OSD_ENABLED bool
832 ```
833 #### timer_13<a id="timer_13"></a>
834 ```
835 Usage: samsung-mdc [OPTIONS] TARGET timer_13 TIMER_ID [ON_TIME ON_ENABLED
836 OFF_TIME OFF_ENABLED REPEAT MANUAL_WEEKDAY VOLUME
837 INPUT_SOURCE_STATE HOLIDAY_APPLY]
838
839 Integrated timer function (13 data-length version).
840
841 Note: This depends on product and will not work on newer versions.
842
843 Data:
844 TIMER_ID int (1-7)
845 ON_TIME time (format: %H:%M)
846 ON_ENABLED bool
847 OFF_TIME time (format: %H:%M)
848 OFF_ENABLED bool
849 REPEAT ONCE | EVERYDAY | MON_FRI | MON_SAT | SAT_SUN |
850 MANUAL_WEEKDAY
851 MANUAL_WEEKDAY list(,) SUN | MON | TUE | WED | THU | FRI | SAT
852 VOLUME int (0-100)
853 INPUT_SOURCE_STATE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 | DVI |
854 PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 | HDMI1_PC |
855 HDMI2 | HDMI2_PC | DISPLAY_PORT_1 | DISPLAY_PORT_2 |
856 DISPLAY_PORT_3 | RF_TV | HDMI3 | HDMI3_PC | HDMI4 |
857 HDMI4_PC | TV_DTV | PLUG_IN_MODE | HD_BASE_T | OCM |
858 MEDIA_MAGIC_INFO_S | WIDI_SCREEN_MIRRORING |
859 INTERNAL_USB | URL_LAUNCHER | IWB | WEB_BROWSER |
860 REMOTE_WORKSPACE
861 HOLIDAY_APPLY DONT_APPLY_BOTH | APPLY_BOTH | ON_TIMER_ONLY_APPLY |
862 OFF_TIMER_ONLY_APPLY
863 ```
864 #### timer_15<a id="timer_15"></a>
865 ```
866 Usage: samsung-mdc [OPTIONS] TARGET timer_15 TIMER_ID [ON_TIME ON_ENABLED
867 OFF_TIME OFF_ENABLED ON_REPEAT ON_MANUAL_WEEKDAY OFF_REPEAT
868 OFF_MANUAL_WEEKDAY VOLUME INPUT_SOURCE_STATE HOLIDAY_APPLY]
869
870 Integrated timer function (15 data-length version).
871
872 Note: This depends on product and will not work on older versions.
873
874 ON_TIME/OFF_TIME: turn ON/OFF display at specific time of day
875
876 ON_ACTIVE/OFF_ACTIVE: if timer is not active, values are ignored, so there
877 may be only OFF timer, ON timer, or both.
878
879 REPEAT: On which day timer is enabled (combined with HOLIDAY_APPLY and
880 MANUAL_WEEKDAY)
881
882 Data:
883 TIMER_ID int (1-7)
884 ON_TIME time (format: %H:%M)
885 ON_ENABLED bool
886 OFF_TIME time (format: %H:%M)
887 OFF_ENABLED bool
888 ON_REPEAT ONCE | EVERYDAY | MON_FRI | MON_SAT | SAT_SUN |
889 MANUAL_WEEKDAY
890 ON_MANUAL_WEEKDAY list(,) SUN | MON | TUE | WED | THU | FRI | SAT
891 OFF_REPEAT ONCE | EVERYDAY | MON_FRI | MON_SAT | SAT_SUN |
892 MANUAL_WEEKDAY
893 OFF_MANUAL_WEEKDAY list(,) SUN | MON | TUE | WED | THU | FRI | SAT
894 VOLUME int (0-100)
895 INPUT_SOURCE_STATE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 | DVI |
896 PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 | HDMI1_PC |
897 HDMI2 | HDMI2_PC | DISPLAY_PORT_1 | DISPLAY_PORT_2 |
898 DISPLAY_PORT_3 | RF_TV | HDMI3 | HDMI3_PC | HDMI4 |
899 HDMI4_PC | TV_DTV | PLUG_IN_MODE | HD_BASE_T | OCM |
900 MEDIA_MAGIC_INFO_S | WIDI_SCREEN_MIRRORING |
901 INTERNAL_USB | URL_LAUNCHER | IWB | WEB_BROWSER |
902 REMOTE_WORKSPACE
903 HOLIDAY_APPLY DONT_APPLY_BOTH | APPLY_BOTH | ON_TIMER_ONLY_APPLY |
904 OFF_TIMER_ONLY_APPLY
905 ```
906 #### clock_m<a id="clock_m"></a>
907 ```
908 Usage: samsung-mdc [OPTIONS] TARGET clock_m [DATETIME]
909
910 Current time function (minute precision).
911
912 Note: This is for models developed until 2013. For newer models see CLOCK_S
913 function (seconds precision).
914
915 Data:
916 DATETIME datetime (format: %Y-%m-%dT%H:%M / %Y-%m-%d %H:%M)
917 ```
918 #### holiday_set<a id="holiday_set"></a>
919 ```
920 Usage: samsung-mdc [OPTIONS] TARGET holiday_set HOLIDAY_MANAGE START_MONTH
921 START_DAY END_MONTH END_DAY
922
923 Add/Delete the device holiday schedule with the holiday schedule itself
924 start month/day and end month/day.
925
926 Note: On DELETE_ALL all parameters should be 0x00.
927
928 Data:
929 HOLIDAY_MANAGE ADD | DELETE | DELETE_ALL
930 START_MONTH int (0-12)
931 START_DAY int (0-31)
932 END_MONTH int (0-12)
933 END_DAY int (0-31)
934 ```
935 #### holiday_get<a id="holiday_get"></a>
936 ```
937 Usage: samsung-mdc [OPTIONS] TARGET holiday_get [INDEX]
938
939 Get the device holiday schedule.
940
941 If INDEX is not specified, returns total number of Holiday Information.
942
943 Data:
944 INDEX int
945
946 Response extra:
947 START_MONTH int
948 START_DAY int
949 END_MONTH int
950 END_DAY int
951 ```
952 #### virtual_remote<a id="virtual_remote"></a>
953 ```
954 Usage: samsung-mdc [OPTIONS] TARGET virtual_remote KEY_CODE
955
956 This function support that MDC command can work same as remote control.
957
958 Note: In a certain model, 0x79 CONTENT key works as HOME and 0x1F DISPLAY
959 key works as INFO.
960
961 Data:
962 KEY_CODE KEY_SOURCE | KEY_POWER | KEY_1 | KEY_2 | KEY_3 | KEY_VOLUME_UP |
963 KEY_4 | KEY_5 | KEY_6 | KEY_VOLUME_DOWN | KEY_7 | KEY_8 | KEY_9 |
964 KEY_MUTE | KEY_CHANNEL_DOWN | KEY_0 | KEY_CHANNEL_UP | KEY_GREEN |
965 KEY_YELLOW | KEY_CYAN | KEY_MENU | KEY_DISPLAY | KEY_DIGIT |
966 KEY_PIP_TV_VIDEO | KEY_EXIT | KEY_MAGICINFO | KEY_REW | KEY_STOP |
967 KEY_PLAY | KEY_FF | KEY_PAUSE | KEY_TOOLS | KEY_RETURN |
968 KEY_MAGICINFO_LITE | KEY_CURSOR_UP | KEY_CURSOR_DOWN |
969 KEY_CURSOR_RIGHT | KEY_CURSOR_LEFT | KEY_ENTER | KEY_RED |
970 KEY_LOCK | KEY_CONTENT | DISCRET_POWER_OFF | KEY_3D
971 ```
972 #### network_standby<a id="network_standby"></a>
973 ```
974 Usage: samsung-mdc [OPTIONS] TARGET network_standby [NETWORK_STANDBY_STATE]
975
976 Data:
977 NETWORK_STANDBY_STATE OFF | ON
978 ```
979 #### dst<a id="dst"></a>
980 ```
981 Usage: samsung-mdc [OPTIONS] TARGET dst [DST_STATE START_MONTH START_WEEK
982 START_WEEKDAY START_TIME END_MONTH END_WEEK END_WEEKDAY
983 END_TIME OFFSET]
984
985 Data:
986 DST_STATE OFF | AUTO | MANUAL
987 START_MONTH JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT |
988 NOV | DEC
989 START_WEEK WEEK_1 | WEEK_2 | WEEK_3 | WEEK_4 | WEEK_LAST
990 START_WEEKDAY SUN | MON | TUE | WED | THU | FRI | SAT
991 START_TIME time (format: %H:%M)
992 END_MONTH JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT |
993 NOV | DEC
994 END_WEEK WEEK_1 | WEEK_2 | WEEK_3 | WEEK_4 | WEEK_LAST
995 END_WEEKDAY SUN | MON | TUE | WED | THU | FRI | SAT
996 END_TIME time (format: %H:%M)
997 OFFSET PLUS_1_00 | PLUS_2_00
998
999 Response extra:
1000 TUNER_SUPPORT bool
1001 ```
1002 #### auto_id_setting<a id="auto_id_setting"></a>
1003 ```
1004 Usage: samsung-mdc [OPTIONS] TARGET auto_id_setting [AUTO_ID_SETTING_STATE]
1005
1006 Data:
1007 AUTO_ID_SETTING_STATE START | END
1008 ```
1009 #### display_id<a id="display_id"></a>
1010 ```
1011 Usage: samsung-mdc [OPTIONS] TARGET display_id DISPLAY_ID_STATE
1012
1013 Data:
1014 DISPLAY_ID_STATE OFF | ON
1015 ```
1016 #### clock_s<a id="clock_s"></a>
1017 ```
1018 Usage: samsung-mdc [OPTIONS] TARGET clock_s [DATETIME]
1019
1020 Current time function (second precision).
1021
1022 Note: This is for models developed after 2013. For older models see CLOCK_M
1023 function (minute precision).
1024
1025 Data:
1026 DATETIME datetime (format: %Y-%m-%dT%H:%M:%S / %Y-%m-%d %H:%M:%S)
1027 ```
1028 #### set_content_download<a id="set_content_download"></a>
1029 ```
1030 Usage: samsung-mdc [OPTIONS] TARGET set_content_download CONTENT_URL
1031
1032 Control the device URL of content download. The device will download content
1033 (images, schedules) from the specified URL.
1034
1035 Working Condition: - Depends on each model spec it will be supported or not.
1036 - Supports ePaper displays (e.g., EM32DX) and Smart Signage displays. -
1037 Device must have network connectivity to the content server.
1038
1039 CONTENT_URL: ASCII code data for the content server address. The URL should
1040 point to a content server that provides: - Content manifest (content.json)
1041 with schedule and media references - Media files (images) accessible via
1042 URLs in the manifest
1043
1044 Example: "http://192.168.1.100:6868/content.json"
1045
1046 Note: This command is used for mobile-to-display content transfer and
1047 automated content management for digital signage.
1048
1049 Data:
1050 CONTENT_URL str
1051 ```
1052 #### launcher_play_via<a id="launcher_play_via"></a>
1053 ```
1054 Usage: samsung-mdc [OPTIONS] TARGET launcher_play_via [PLAY_VIA_MODE]
1055
1056 Data:
1057 PLAY_VIA_MODE MAGIC_INFO | URL_LAUNCHER | MAGIC_IWB
1058 ```
1059 #### launcher_url_address<a id="launcher_url_address"></a>
1060 ```
1061 Usage: samsung-mdc [OPTIONS] TARGET launcher_url_address [URL_ADDRESS]
1062
1063 Data:
1064 URL_ADDRESS str
1065 ```
1066 #### osd_menu_orientation<a id="osd_menu_orientation"></a>
1067 ```
1068 Usage: samsung-mdc [OPTIONS] TARGET osd_menu_orientation
1069 [ORIENTATION_MODE_STATE]
1070
1071 Data:
1072 ORIENTATION_MODE_STATE LANDSCAPE_0 | PORTRAIT_270 | LANDSCAPE_180 |
1073 PORTRAIT_90
1074 ```
1075 #### osd_source_content_orientation<a id="osd_source_content_orientation"></a>
1076 ```
1077 Usage: samsung-mdc [OPTIONS] TARGET osd_source_content_orientation
1078 [ORIENTATION_MODE_STATE]
1079
1080 Data:
1081 ORIENTATION_MODE_STATE LANDSCAPE_0 | PORTRAIT_270 | LANDSCAPE_180 |
1082 PORTRAIT_90
1083 ```
1084 #### osd_aspect_ratio<a id="osd_aspect_ratio"></a>
1085 ```
1086 Usage: samsung-mdc [OPTIONS] TARGET osd_aspect_ratio [ASPECT_RATIO_STATE]
1087
1088 Get/Set the device aspect ratio under portrait mode which set the rotated
1089 screen to be full or original.
1090
1091 Data:
1092 ASPECT_RATIO_STATE FULL_SCREEN | ORIGINAL
1093 ```
1094 #### osd_pip_orientation<a id="osd_pip_orientation"></a>
1095 ```
1096 Usage: samsung-mdc [OPTIONS] TARGET osd_pip_orientation
1097 [ORIENTATION_MODE_STATE]
1098
1099 Data:
1100 ORIENTATION_MODE_STATE LANDSCAPE_0 | PORTRAIT_270 | LANDSCAPE_180 |
1101 PORTRAIT_90
1102 ```
1103 #### osd_menu_size<a id="osd_menu_size"></a>
1104 ```
1105 Usage: samsung-mdc [OPTIONS] TARGET osd_menu_size [MENU_SIZE_STATE]
1106
1107 Data:
1108 MENU_SIZE_STATE ORIGINAL | MEDIUM | SMALL
1109 ```
1110 #### auto_source_switch<a id="auto_source_switch"></a>
1111 ```
1112 Usage: samsung-mdc [OPTIONS] TARGET auto_source_switch
1113 [AUTO_SOURCE_SWITCH_STATE]
1114
1115 Data:
1116 AUTO_SOURCE_SWITCH_STATE OFF | ON
1117 ```
1118 #### auto_source<a id="auto_source"></a>
1119 ```
1120 Usage: samsung-mdc [OPTIONS] TARGET auto_source [PRIMARY_SOURCE_RECOVERY
1121 PRIMARY_SOURCE SECONDARY_SOURCE]
1122
1123 Data:
1124 PRIMARY_SOURCE_RECOVERY OFF | ON
1125 PRIMARY_SOURCE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 |
1126 DVI | PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 |
1127 HDMI1_PC | HDMI2 | HDMI2_PC | DISPLAY_PORT_1 |
1128 DISPLAY_PORT_2 | DISPLAY_PORT_3 | RF_TV | HDMI3 |
1129 HDMI3_PC | HDMI4 | HDMI4_PC | TV_DTV | PLUG_IN_MODE
1130 | HD_BASE_T | OCM | MEDIA_MAGIC_INFO_S |
1131 WIDI_SCREEN_MIRRORING | INTERNAL_USB | URL_LAUNCHER
1132 | IWB | WEB_BROWSER | REMOTE_WORKSPACE
1133 SECONDARY_SOURCE NONE | S_VIDEO | COMPONENT | AV | AV2 | SCART1 |
1134 DVI | PC | BNC | DVI_VIDEO | MAGIC_INFO | HDMI1 |
1135 HDMI1_PC | HDMI2 | HDMI2_PC | DISPLAY_PORT_1 |
1136 DISPLAY_PORT_2 | DISPLAY_PORT_3 | RF_TV | HDMI3 |
1137 HDMI3_PC | HDMI4 | HDMI4_PC | TV_DTV | PLUG_IN_MODE
1138 | HD_BASE_T | OCM | MEDIA_MAGIC_INFO_S |
1139 WIDI_SCREEN_MIRRORING | INTERNAL_USB | URL_LAUNCHER
1140 | IWB | WEB_BROWSER | REMOTE_WORKSPACE
1141 ```
1142 #### panel<a id="panel"></a>
1143 ```
1144 Usage: samsung-mdc [OPTIONS] TARGET panel [PANEL_STATE]
1145
1146 Data:
1147 PANEL_STATE ON | OFF
1148 ```
1149 #### screen_mute<a id="screen_mute"></a>
1150 ```
1151 Usage: samsung-mdc [OPTIONS] TARGET screen_mute [SCREEN_MUTE_STATUS]
1152
1153 Data:
1154 SCREEN_MUTE_STATUS ON | OFF
1155 ```
1156 #### script<a id="script"></a>
1157 ```
1158 Usage: samsung-mdc [OPTIONS] TARGET script [OPTIONS] SCRIPT_FILE
1159
1160 Script file with commands to execute.
1161
1162 Commands for multiple targets will be running async, but commands order is
1163 preserved for device (and is running on same connection), exit on first fail
1164 unless retry options provided.
1165
1166 You may use jinja2 templating engine to {% include "other_script" %} or {{
1167 VAR_KEY }} rendering in combination with --var VAR_KEY VAR_VALUE options.
1168
1169 It's highly recommended to use sleep option for virtual_remote!
1170
1171 Additional commands:
1172 sleep SECONDS (FLOAT, --sleep option for this command is ignored)
1173 disconnect
1174
1175 Format:
1176 command1 [ARGS]...
1177 command2 [ARGS]...
1178
1179 Example: samsung-mdc ./targets.txt script -s 3 -r 1 -v KEY enter ./commands.txt
1180 # commands.txt content
1181 power on
1182 sleep 5
1183 clear_menu
1184 virtual_remote key_menu
1185 virtual_remote key_down
1186 virtual_remote {{ KEY }}
1187 clear_menu
1188
1189 Arguments:
1190 script_file Text file with commands, separated by newline.
1191
1192 Options:
1193 -s, --sleep FLOAT Pause between commands (seconds)
1194 --retry-command INTEGER Retry command if failed (count)
1195 --retry-command-sleep FLOAT Sleep before command retry (seconds)
1196 -r, --retry-script INTEGER Retry script if failed (count)
1197 --retry-script-sleep FLOAT Sleep before script retry (seconds)
1198 --ignore-nak Ignore negative acknowledgement errors
1199 -v, --var NAME VALUE Variable "{{ NAME }}" in script will be
1200 replaced by VALUE
1201 --help Show this message and exit.
1202 ```
1203 #### raw<a id="raw"></a>
1204 ```
1205 Usage: samsung-mdc [OPTIONS] TARGET raw [OPTIONS] COMMAND [DATA]
1206
1207 Helper command to send raw data for test purposes.
1208
1209 Arguments:
1210 command Command and (optionally) subcommand (example: a1 or a1:b2)
1211 data Data payload if any (example: a1:b2)
1212 ```
1213
1214 ## Troubleshooting
1215
1216 ### Finding DISPLAY ID
1217
1218 On most devices it's usually `0` or `1`. Some devices may use `255` (0xFF) or `254` (0xFE) as all/any display, but behavior in such cases for more than 1 display is undefined.
1219
1220 Display id can be found using remote control: `Home` -> `ID Settings`.
1221
1222 ### NAKError
1223
1224 If you receive NAK errors on some commands, you may try to:
1225
1226 * Ensure that device is powered on and completely loaded
1227 * Switch to input source HDMI1
1228 * Reboot device
1229 * Reset all settings
1230 * Disable MagicINFO
1231 * Factory reset (using "Service Menu")
1232
1233 ## Python example<a id="python-example"></a>
1234 ```python3
1235 import asyncio
1236 from samsung_mdc import MDC
1237
1238
1239 async def main(ip, display_id):
1240 async with MDC(ip, verbose=True) as mdc:
1241 # First argument of command is always display_id
1242 status = await mdc.status(display_id)
1243 print(status) # Result is always tuple
1244
1245 if status[0] != MDC.power.POWER_STATE.ON:
1246 # Command arguments are always Sequence (tuple, list)
1247 await mdc.power(display_id, [MDC.power.POWER_STATE.ON])
1248 await mdc.close() # Force reconnect on next command
1249 await asyncio.sleep(15)
1250
1251 await mdc.display_id(display_id, [MDC.display_id.DISPLAY_ID_STATE.ON])
1252 # You may also use names or values instead of enums
1253 await mdc.display_id(display_id, ['ON']) # same
1254 await mdc.display_id(display_id, [1]) # same
1255
1256
1257 # If you see "Connected" and timeout error, try other display_id (0, 1)
1258 asyncio.run(main('192.168.0.10', 1))
1259
1260 ```