JLIP device always transmit and receive 11 bytes data.
Command frame
It is a data sequence that contains control operation command
from master controller like PC to slave device like VCR.
It consists of the explanation below.
Header (2 bytes)
: 0xFF + 0xFF
ID (1 byte)
: one of number from 1 to 99 , or 127
Command body(7 bytes) : command operation code and parameters (*1)
Check sum (1 byte)
: complement of the sum of other ten bytes of command frame data (*2)
*1: refer to another document
*2: maximum bit is always 0 -- method of calculation is below.
Return frame
It is a data sequence that contains result of command operation
from from slave device like VCR to master controller like PC. It consists of the explanation below.
Header (2 bytes)
: 0xFC + 0xFF
ID (1 byte)
: one of number from 1 to 99
Return body(7 bytes) : result or information
of command operation (*3)
Check sum (1 byte)
: complement of the sum of other ten bytes of command frame data (*4)
*3: refer to another document
*4: maximum bit is always 0 -- method of calculation is below.
The first byte of 7 bytes-'Return body' is called 'command
status', and it is for checking command acceptance. (*3) A maximum bit of every data except header data is always
zero in JLIP.
Check sum data
A method of calculate check sum is like this.
r1 = (1st)+(2nd)+(3rd)+(4th)+(5th)+(6th)+(7th)+(8th)+(9th)+(10th)
result = (256 - (r1 mod 256) ) mod 128
*5: 'mod' is a operator that is for calculating remainder
|
|