написание программы по совмищению протоколов разьемов rs232 и internet
- Войдите на сайт для отправки комментариев
Здравствуйте помогите начинающему в написании программы для платы mega 2560 и internet w1500 и платка RS232 на max3232, совместить протокололы разьемов rs232 с протоколами разъема internet
на ком. МАС
ПРОТОКОЛ rs232
SE800 RS-232 Remote Control Command
VER: 1.2
Released date: Dec-01-2003
1 Physical layer
1.1 Control output format: RS-232C
1.2 Communication rate: 57600 BPS
1.3 Data format: 8 bits serial, LSB first, 1 start bit, 1 stop bit, odd parity
2. Data link layer
2.1 Frame format
1st 2nd 3rd 4th 5th 6th 7th ,,, Last-2 Last-1 Last
Header ID Length Data0 Data1 Data2 Data3 ,,, Chksum_L Chksum_H End
1) Header
Code consisting of one byte for frame synchronization.
The frame header send from the master machine is termed the command header.
The frame header send from the slave machine is termed the return header.
The command header byte is fixed as fallow.
1st: F0h (base 16)
The return header byte is fixed as fallow.
1st: FCh (base 16)
2) ID number
The equipment ID number is composed of 8 bits
The ID of SE800: 21h (base 16)
3) Length
The length is the sum of bytes from the header to the end.
It is composed of 8 bits.
6h (base 16) < Length <= 80h(base 16)
4) Data
Data block used by application layer.
Refer to Section 3.
5) Checksum
The 8 bits checksum is obtain from header to the last data,
then convert to two numeric ASCII code.
Checksum=header+ID+legth+data0+data1+… +data_last
chksum_L=(low nibble of checksum) + 30h
chksum_H=(high nibble of checksum) + 30h
6) End
The end byte are fixed to FFh(base 16).
Downloaded from
3. Application layer
The application layer designates the command structure and contents.
3.1 Command data format
4th |
5th |
6th |
7th |
8th |
9th |
10th |
11th |
… |
Command group |
Operated #0 |
Operated #1 |
Operated #2 |
Operated #3 |
Operated #4 |
Operated #5 |
Operated #6 |
… |
1) The command group
03h(base 16) = SE800 control command
2) The operated refer to section 4.
3.2 Return data format
4th |
5th |
6th |
7th |
8th |
9th |
10th |
11th |
… |
Command status |
parameter #0 |
parameter #1 |
parameter #2 |
parameter #3 |
parameter #4 |
parameter #5 |
parameter #6 |
… |
1) The command status
03h=SE800 control command status
2) The parameter refers to section 6.
4. The operated of SE800 control command
4.1. OP#0 = control key code.( refer to section 5)
4.2. OP#1 and OP#2 = T-BAR control value
The T-bar control value is 10 bits and 1 enable bit.
The bit7 of OP#1 = T-bar control enable bit
The bit4 to bit 0 of OP#1 = the low 5 bits of the T-bar control value. The bit4 to bit 0 of OP#2 = the high5 bits of the T-bar control value.
4.3. OP#3 to OP#6 = joy-stick control value
The joy-stick control value is 1 enable bit ,10 bits of X value and 10 bits Y value.
The bit7 of OP#3 = joy-stick control enable bit.
The bit4 to bit 0 of OP#3 = the low 5 bits of the joy-stick’s X control value. The bit4 to bit 0 of OP#4 = the high5 bits of the joy-stick’s X control value. The bit4 to bit 0 of OP#5 = the low 5 bits of the joy-stick’s Y control value. The bit4 to bit 0 of OP#6 = the high5 bits of the joy-stick’s Y control value.
Downloaded from
5. The SE800 control key code (base 16)
01h = key_main_A
02h = key_main_B
03h = key_main_C
04h = key_main_D
05h = key_main_BK
06h = key_sub_A
07h = key_sub_B
08h = key_sub_C
09h = key_sub_D
0ah = key_sub_BK
0bh = key_audio_A
0ch = key_audio_B
0dh = key_audio_C
0eh = key_audio_D
0fh = key_a+v
10h = key_gpi
11h = key_gpi_play
12h = key_take = key_paly
13h = key_Tbar_audio
Вы хотите RS232 прокинуть через Ethernet?
Спасибо за отклик,
Я хочу видео пульт с кнопками на разъеме RS232 совместить с компьюторным упровлением по разъему INTERNET сам видеомикшер каторый упровляеться через интерфейс виртуальными кнопками есть сделанный проэкт с новой моделью посмотрите ссылку www.lefflerpost.com.au/rmc2atem/
Спасибо