DMX-P08 DMX-P08
Device NO: 0xFF , Broadcast ALL Device ;
Check Sum the calculation function is as follows :
unsigned char CRCCalc(void* DataBuf,unsigned char Length)
{
u16 i;
u8 sum, CRCValue;
sum = 0;
for(i = 0; i < Length; i++) {
sum += *((u8*)DataBuf+i);
}
CRCValue = -sum;
return CRCValue;
}
1.3 RS485Bus command description :
1.3.1 Return value switch command(0x01) :
CMD:0x01
CMD: 0x01, SubCMD : 0x00, ACK OFF, 0x01, ACK ON;
ACKCMD: 0x81
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
'E' 'U' Device code Device No ACKCMD Status 0 0
Byte8 Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
0 0 0 0 0 0
Status: 0x0 CMD Failure, 0x01 CMD Success
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
'E' 'U' Device code Device No CMD SubCMD 0 0
Byte8
0 0 0 0 0 0 CRC
Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
1.3.2 Resume\Pause command(0x02) :
CMD:0x02
SubCMD: 0x01 Suspend, 0x00, Run
Without Memory function, default status is run, after power on
ACKCMD: 0x82
Status: 0x0 CMD Failure,0x01 CMD Success
1.3.3 Scene call(0×03):
CMD:0×03
SceneID=Byte6<<8+Byte5
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6
Byte7
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
'E' 'U' Device code Device No CMD SubCMD 0 0
Byte8 Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
0 0 0 0 0 0
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
'E' 'U' Device code Device No ACKCMD Status 0 0
Byte8 Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
0 0 0 0 0 0
'E'
Byte8 Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
0 0 0 0 0 0 CRC
'U'
Device code Device No
CMD ScnenIDL8 ScnenIDL8
0
ACKCMD:0×83
Status:0×0 CMD Failure, 0×01 CMD Success
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
'E'
Byte8 Byte9 Byte10 Byte11 Byte12 Byte13 Byte14
0 0 0 0 0 0 CRC
'U'
Device code Device No
ACKCMD Status 0 0
5Specification :V01 6Specification :V01
CRC
CRC
CRC