CityGrow CG102RS232 Скачать руководство пользователя страница 8

 

 

5.

 

    Serial Data Format 

The data format of serial interface is shown in Figure 3-1. 
 

Sync

Length

Frame 

Control

Seq. 

No.

Payload

Check Sum

2 bytes

2 bytes

1 byte

1 byte

1 byte

0 - 20 bytes

Paddin

g

1 byte

 

Figure 5-1 Data format of the serial interface 

 
The data frame of the serial interface comprises of different fields, which are summarized 
in the following table (Table 3-1): 
 

Table 5-1 Summary of fields in the data frame 

Field 

Description 

Size 

Sync 

Sync-code 

2 bytes 

Length 

Length of data frame 

1 byte 

Frame Control 

Used for the frame acknowledgement   

1 byte 

Seq. No. 

Sequence number of the data frame 

1 byte 

Padding 

Padding field contain of ‘0’ 

1 byte 

Payload 

Payload reserved for Protocol Data Unit of ZDCP 

1 – 20 bytes 

Check Sum 

Check sum code for error detection 

2 bytes 

 

5.1.

 

Sync 

The 2-byte sync-code is used to indicate the start of the data frame. The format of the 
sync-code is shown in Figure 3-2. 

0x19

0xC3

1 byte

1 byte

Sync

 

Figure 5-2 Format of the sync-code 

5.2.

 

Length 

The 1-byte data frame length is used to indicate the total length of the data frame in term 
of number of byte. The length is counted start from the “Frame Control” to the end of the 
“Payload”.   
 

5.3.

 

Frame Control 

The  1-byte  frame  control  is  used  to  indicate  whether  the  data  frame  is  required  to  be 
acknowledged  by  the  receiver  after  the  receiver  received  the  data  frame  correctly.  The 
format of the frame control is shown in Figure 3-3. 

Ack

Req

Reserved

6 bit

1 bit

Frame Control

Is

Ack

1 bit

 

Figure 5-3 Data format of the frame control 

 

Содержание CG102RS232

Страница 1: ...and reliability of the data contained in this publication however CityGrow Energy Systems Limited makes no representation warranty or guarantee in connection with this publication and hereby expressl...

Страница 2: ...near water 6 Clean only with dry cloth 7 Do not block any ventilation openings Install in accordance with the manufacturer s instructions 8 Do not install near any heat sources such as radiators heat...

Страница 3: ...7 5 7 Check Sum 7 6 ZigBee Device Control Protocol ZDCP 9 6 1 Format of Protocol Data Unit PDU 9 6 1 1 Cmd 10 6 1 2 DeviceID 11 6 1 3 DeviceType 11 6 2 Device Control 12 6 2 1 Device ON OFF Control 13...

Страница 4: ...on 1 ZigBee wireless remote control 2 Based on IEEE 802 15 4 3 2 4GHz radio frequency 4 External system interface with CityGrow ZigBee devices through RS232 ZigBee interface 5 High speed and 2 way com...

Страница 5: ...3 2 Understanding of the product...

Страница 6: ...4 3 Dimension...

Страница 7: ...shown in Table 2 1 External System ZBCA TxD TxD RxD RxD GND GND Figure 4 2 RS232 Interface connection between external system and CG102RS232 Table 4 1 Physical characteristics of the UART interface PA...

Страница 8: ...d Payload reserved for Protocol Data Unit of ZDCP 1 20 bytes Check Sum Check sum code for error detection 2 bytes 5 1 Sync The 2 byte sync code is used to indicate the start of the data frame The form...

Страница 9: ...started from 0 The value of the sequence number is increment by one for each new data frame and it should be reset to 0 after the value is larger than 255 When the data frame is required to be acknowl...

Страница 10: ...q 0 Seq No 4 IsAck 0 AckReq 0 Seq No 2 IsAck 0 AckReq 0 Seq No 5 IsAck 0 AckReq 1 Seq No 3 IsAck 1 AckReq 0 Seq No 3 IsAck 0 AckReq 0 Seq No 6 IsAck 0 AckReq 0 Seq No 183 IsAck 0 AckReq 0 Seq No 254 I...

Страница 11: ...fied device ID control command and control status through the RS232 interface The CG102RS232 will send the control command to the target ZigBee device through the ZigBee network If the control is acco...

Страница 12: ...s is shown in the Table 4 2 Table 6 2 Summary of the command type Cmd Description Parameters Name Code CONTROL_REQ 0x01 Device Control Request ControlCmd ControlStatus Set Dimmer Level Only CONTROL_RE...

Страница 13: ...01 A two gang switch device on the HomeNET planner which ID is assigned to 0002 the DeviceID for CG102RS232 of the first gang should be 000201 and the second gang should be 000202 6 1 3 DeviceType The...

Страница 14: ...Dimmer only CURTAIN_UP 0x21 Control curtain to move up when curtain is stopped Control curtain stop when curtain is moving CURTAIN_DOWN 0x22 Control curtain to move down when curtain is stopped Contr...

Страница 15: ...e Type 1 byte Control Cmd 1 byte 0x02 0x01 Control Result 1 byte 0x01 Figure 6 5 Response PDU of device not found To control device OFF following PDU is required send to CG102RS232 Cmd DeviceID 1 byte...

Страница 16: ...immer stop to dim up If the control dimmer stop dim up is accomplished following PDU is expected to be returned from CG102RS232 Cmd DeviceID 1 byte 3 bytes Device Type 1 byte Control Cmd 1 byte 0x02 0...

Страница 17: ...atus is required set to the value of 70 0x46 in hexadecimal Cmd DeviceID 1 byte 3 bytes Device Type 1 byte Control Cmd 1 byte 0x01 0x15 Control Status 1 byte 0x46 Figure 6 17 Example of set the dimmer...

Страница 18: ...R to send IR signal If the CG102IR is able to send the IR signal following PDU is expected to be returned from CG102RS232 Cmd DeviceID 1 byte 3 bytes 0x02 Control Result 1 byte 0x00 Device Type 1 byte...

Страница 19: ...e status 1 byte DeviceID The device ID of response device 3 byte Device Status The status of response device 1 byte In the device status response PDU multiple sets of device status information DeviceI...

Страница 20: ...Device Status 1 byte Cmd DeviceID 1 byte 3 bytes 0x04 Result 1 byte No Of Device 1 byte 0x00 0x01 0x00 Figure 6 25 Response PDU of device status OFF If the target dimmer is turning ON at 40 following...

Страница 21: ...ce is not exceeding EIGHT for each device Following is the example format of the PDU from a CG102RS232 to a device for register the controller for auto status update Cmd DeviceID 1 byte 3 bytes Device...

Страница 22: ...d send to CG102RS232 Cmd 1 byte 0xF1 Figure 6 34 Request to enquire the ZDCP version of CG102RS232 If the ZDCP of the CG102RS232 is version 1 2 or above following PDU is expected to be returned from C...

Страница 23: ...tem is not recommended to send any request to CG102RS232 within the Operation Period Under normal operation if the target device is reachable by the CG102RS232 directly the CG102RS232 may response to...

Страница 24: ...communication ZigBee wireless remote control Based on IEEE 802 15 4 RF frequency 2 4GHZ RS232 Serial interface Standard DB9 female connector RF frequency 2 4GHZ Operating temperature 0 C to 40 C Opera...

Отзывы: