# API

## Program Protocol for iSEMC BV Series

## 1-Communication Settings

### 1.1 Network communication

TCP Client Communication port: 8000

### 1.2 Serial port communication

Baud rate: 115200                                                                                                                                                              Check Digit: None                                                                                                                                                      Data bits: 8bit                                                                                                                                                              Stop bits: 1bit

## 2-Instruction Formats

### 2.1 \[Gwinsw(SP)Group\_ID(SP)Window\_ID(SP)Input\_Channel\_ID(CR)]

Switch current window, can’t use to open window, one number is one channel, start from 0 For example: Gwinsw(SP)2(SP)1(SP)0 (CR)// 2 is group id, 1 is window id, 0 is input channel id

### 2.2\[Gwinsize(SP)Group\_ID(SP)Windows\_ID(SP)Input\_channel\_ID(SP)x1(SP)y1(SP)x2(SP)y2(CR)]

Opening windows on the video wall For example: Gwinsize(SP)1(SP)0(SP)0(SP)0(SP)0(SP)1920(SP)1080 (CR)// 1 is group ID, 0 is windows ID, 0 is input channel ID, 0 is X coordinate of start point, 0 is Y coordinate of start point, 1920 is X coordinate of End point, 1080 is Y coordinate of End point

### 2.3 \[gsave(SP)Group\_ID(SP)Scene\_ID(CR)]

Save scene， For example: gsave(SP)1(SP)2(CR) // 1 is group ID, 2 is scene ID

### 2.4 \[gload(SP)Group\_ID(SP)Scene\_ID(CR)]

Call scene For example: gload(SP)1(SP)2(CR) // 1 is group ID, 2 is scene ID

### 2.5 \[greset(SP)Group\_ID(CR)]

Close all windows in one group For example: greset(SP)1 (CR)// 1 is group ID

### 2.6 \[gwinswitch(SP)Group\_ID(SP)Window\_ID(SP)Input\_channel\_ID(CR)]

Close one window in one group For example: greset(SP)1(SP)2(CR) // 1 is group ID, 2 is window ID

### 2.7\[setgformatxy(SP)Group\_ID(SP)Horizontal\_Array(SP)Vertical\_Array(SP)Horizontal\_pixels(SP) Vertical\_pixels(CR)]

Setup output array and output resolution For example: setgformatxy(SP)1(SP)3(SP)2(SP)1920(SP)1080(CR) // 1 is group ID, 3 is horizontal array, 2 is vertical array, 1920 is horizontal pixels and 1080 is vertical pixels

### 2.8\[resolution(SP)Start\_output\_channel\_ID(SP)End\_output\_channel\_ID(SP)Resolution\_ID(CR)]

Change system output resolution                                                                                                                                            Note: Resolution ID - 0: 1920*1080                                                                                                                                                                                                                                                                                                                                                                                                            1: 1400*1050                                                                                                                                                                      2: 1366*768                                                                                                                                                                              3: 1280*720                                                                                                                                                                                          4: 1024*768                                                                                                                                                                                 6: 3840*2160                                                                                                                                                                           8-15: Customize\
For example: resolution(SP)0(SP)3(SP)0(CR)// 0 is start output channel, 3 is end output channel, 0 is 1920\*1080

### 2.9\[Newddcmodetype(SP)Resolution\_ID(SP)data1(SP)data2(SP)data3(SP)data4(SP)data5(SP) data6(SP)data7(SP)data8(SP)data9(SP)data10(CR)]

Customize system output resolution Resoluion ID: able to set from 8 to 15                                                    Data1: Horizontal Frontier                                                                                                                                    Data2: Total Horizontal Pixels-Data1-Data3-Data4                                                                                              Data3: Horizontal Sync Width                                                                                                                                  Data4: Activities Horizontal Pixels                                                                                                                          Data5: Vertical Frontier                                                                                                                                         Data6: Total Vertical Pixels-Data5-Data7-Data8                                                                                                   Data7: Vertical Sync Width                                                                                                                                     Data8: Activities Vertical Pixels                                                                                                                            Data9: Polarity 0-3                                                                                                                                                       Data10: Refresh rate                                                                                                                                                   For example: newddcmodetype(SP)8(SP)48(SP)80(SP)32(SP)1920(SP)3(SP)26(SP)5(SP)1080(SP)0(SP)60(CR)

### 2.10 Input Signal Cropping

Input card slot id start from 0. If it’s 4 channels input card, the input card channel id is 0,1,2,3; if it’s 8 channels input card, the input card channel id is 0,1,2,3,4,5,6,7 \[vt6cutleft(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Cut\_Pixel(CR)]\
Cut the left pixels of input signal \[vt6cutright(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Cut\_Pixel(CR)]\
Cut the right pixels of input signal \[vt6cutup(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Cut\_Pixel(CR)]\
Cut the upper pixels of input signal \[vt6cutdown(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Cut\_Pixel(CR)]\
Cut the bottom pixels of input signal

### 2.11\[vt6inputmode(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Signal\_type(CR)]

Setup input signal type Signal Type: 1=VGA 2=video 3=Ypbpr 4=DVI 5=HDMI

2.12 \[setgroup(SP)Group\_ID(SP)Start\_output\_channel\_ID(SP)End\_output\_channel\_ID(CR)] Setup output group, one number is one channel, start from 0. The group setting must be based on output card, one output card uses 2 group id is not supported currently. For example: setgroup(SP)1(SP)0(SP)8 (CR)// 1 is group ID, 0 is start channel, 8 is end channel

### 2.13 \[rstgroup(CR)]

Delete all groups

### 2.14 \[Setgroupname(SP)Group\_ID(SP)Group\_Name(CR)]

Setup group name

### 2.15 OSD Settings

Input card slot id start from 0. If it’s 4 channels input card, the input card channel id is 0,1,2,3; if it’s 8 channels input card, the input card channel id is 0,1,2,3,4,5,6,7 \[openosd(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(CR)] Open OSD function \[osdpos(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)x/2(SP)y/2(CR)]\
Setup OSD potision, x is horizontal pixel and y is vertical pixel. The instruction value is half of actual value. For example, if you want display OSD at the position 200\*300 for input card slot 1 and input card channel 2, the command is osdpos 1 2 100 150 \[osdcolor(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)R(SP)G(SP)B(CR)]\
Setup OSD color, for example, red is 255 0 0, green is 0 255 0 \[osd(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(SP)Content(CR)]\
Setup OSD content, support chinese, english, number and character \[closeosd(SP)Input\_card\_slot\_ID(SP)Input\_card\_channel\_ID(CR)]\
Close OSD function on one input channel of one input card slot

### 2.16\[setgxy(SP)group\_ID(SP)New\_output\_channel\_ID(SP)x1(SP)y1(SP)x2(SP)y2(CR)]

Output channel replacement, the replacement must be setup in same group currently For example: setgxy(SP)1(SP)9(SP)1921(SP)0(SP)3840(SP)1080(CR)// 1 is group ID, 9 is new output channel ID, 1921*0 is the start position of channel 2 and 3840*1080 is the end position of channel 1. This insturction will replace channel 2 by channel 9.

![](https://3680659020-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mag_nOsvVHzGPFURFWd%2F-McgdLmG3FGxDheDA9V_%2F-McgnmNuzn8piuHoDzlu%2F1111.jpg?alt=media\&token=cbf4900d-ae37-4f38-beee-9eb331934c19)
