Kramer Electronics Ltd.
VS-62H
– Protocol 3000
39
Function
Description
Syntax
Parameters/Attributes
Example
LDFPGA
Load new FPGA file.
COMMAND
Step 1:
#LDFPGA
size
,
CRC
,
fpga_id
,
force
<CR>
Step 2: If ready was received, send FPGA_DATA
FEEDBACK
Response 1:
~nn@LDFPGA
size
READY
<CR><LF>
or
~nn@LDFW
ERRnn
<CR><LF>
Response 2:
~nn@LDFPGA
size
OK
<CR><LF>
size
– Size of firmware data that is
sent
CRC
– FPGA file CRC
The polynomial for the 16-bit CRC is:
CRC-CCITT: 0x1021 = x16 + x12 + x5
+ 1
Initial value: 0000
Final XOR Value: 0
For a code example, see:
http://sanity-
free.org/133/crc_16_ccitt_in_csharp.h
tml
CRC example:
Data = “123456789”
Result => 0x31C3
fpga_id
– FPGA ID (if there are
more than one). Default - 1
force
– 1, ignore CRC calculation
FPGA_DATA
–
*.rbf
file in protocol
packets
Using the Packet Protocol
Send a command: LDRV, LOAD,
IROUT, LDEDID
Receive Ready or ERR###
If Ready:
a
. Send a packet,
b
. Receive OK on the last
packet,
c
. Receive OK for the command
Packet structure:
Packet ID
(1, 2, 3…) (2 bytes in
length)
Length
(data 2 for
CRC)
– (2 bytes in length)
Data
(data length -2 bytes)
CRC
– 2 bytes
01
02
03
04
05
Packet ID
Length
Data CRC
5. Response:
~NNNN
OK
<CR><LF>
(Where
NNNN
is the received packet ID
in ASCII hex digits.)
LDFW
Load new firmware file.
In most devices
firmware data is saved to
flash memory, but the
memory does not update
until receiving the
“UPGRADE” command
and is restarted.
COMMAND
Step 1:
#LDFW
size
<CR>
Step 2: If ready was received, send FIRMWARE_DATA
FEEDBACK
Response 1:
~nn@LDFW
size
READY
<CR><LF>
or
~nn@LDFW
ERRnn
<CR><LF>
Response 2:
~nn@LDFW
size
OK
<CR><LF>
size
– Size of firmware data that is
sent
FIRMWARE_DATA
– HEX or KFW file
in protocol packets
Using the Packet Protocol
Send a command: LDRV, LOAD,
IROUT, LDEDID
Receive Ready or ERR###
If Ready:
a
. Send a packet,
b
. Receive OK on the last
packet,
c
. Receive OK for the command
Packet structure:
Packet ID
(1, 2, 3…) (2 bytes in
length)
Length
(data 2 for
CRC)
– (2 bytes in length)
Data
(data length -2 bytes)
CRC
– 2 bytes
01
02
03
04
05
Packet ID
Length
Data CRC
5. Response:
~NNNN
OK
<CR><LF>
(Where
NNNN
is the received packet ID
in ASCII hex digits.)
LOAD
Load file to device.
COMMAND
#LOAD
file_name
,
size
<CR>
FEEDBACK
Data sending negotiation:
* Device -
~01@LOAD
file_name
,
size
READY
<CR><LF>
* End User (+Device)-
Send file in Protocol Packets
* Device -
~01@LOAD
file_name
,
size
OK
<CR><LF>
file_name
– Name of file to save on
device
size
– Size of file data that is sent
Using the Packet Protocol
Send a command: LDRV, LOAD,
IROUT, LDEDID
Receive Ready or ERR###
If Ready:
a
. Send a packet,
b
. Receive OK on the last
packet,
c
. Receive OK for the command
Packet structure:
Packet ID
(1, 2, 3…) (2 bytes in
length)
Length
(data 2 for
CRC)
– (2 bytes in length)
Data
(data length -2 bytes)
CRC
– 2 bytes
01
02
03
04
05
Packet ID
Length
Data CRC
5. Response:
~NNNN
OK
<CR><LF>
(Where
NNNN
is the received packet ID
in ASCII hex digits.)
Load the file_response.dat file
to the device:
#LOAD
file_response.dat
,5360
<CR>
LOCK-FP
Lock the front panel.
In NT-52N, this
command includes the
PortNumber (1-2)
parameter.
COMMAND
#LOCK-FP
Lock/Unlock
<CR>
FEEDBACK
~nn@LOCK-FP
Lock/Unlock
<CR><LF>
Lock/Unlock
– On/Off
0
– Off unlocks EDID
1
– On locks EDID
Unlock front panel:
#LOCK-FP
0
<CR>