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

 

 

When the sender is desired to receive an acknowledgment from the receiver to confirm the 
data is received correctly, the sender shall set the AckReq of the frame control field to ‘1’. 
Otherwise, the AckReq should be ‘0’. 
 
When the receiver received a complete data frame correctly with AckReq is set to ‘1’, the 
receiver  shall  reply  the  sender  with  an  acknowledgment  frame  with the  IsAck  set  to  ‘1’ 
immediately. The format of the acknowledgment frame is shown in Figure 3-4. 
 
 

Sync

Length

Frame 

Control

Seq. 

No.

2 bytes

1 byte

1 byte

1 byte

Check Sum

2 bytes

0x19

0xC3

0x03

0

1

0

1 byte

Paddin

g

0x00

 

Figure 5-4 Frame format of the acknowledgment frame 

 
Besides the acknowledgment frame, the IsAck shall always set to ‘0’ in the “Frame Control” 
of any data frame. 
 

5.4.

 

Seq. No. 

The 1-byte sequence number is used to identify different data frame during communication. 
The sequence number is generated by the sender and the value is 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 
acknowledged, the receiver should fill the “Seq. No.” of the acknowledgment frame with 
the  received  “Seq.  No.”  from  sender.  The  example  shown  in  Figure  3-6  elaborates  the 
general operation of the sequence number with the acknowledgement. 
 

5.5.

 

Padding 

The 1-byte padding is reserved. In current version, the value of padding field should always 
be ‘0’. 
 

5.6.

 

Payload 

The variable length payload is used to place the Protocol Data Unit of ZDCP. 
 

5.7.

 

Check Sum 

The 2-byte check sum code is used to identify the correctness of the received data frame. 
The computation of the check sum is the summation of the entire byte which is counted 
from “Length” to the end of “Payload”. The 2-byte summation result is placed into the field 
with Lower byte first and Upper byte end. For example, if the result is 0x1234, the check 
sum should be: 

0x34

0x12

1 byte

1 byte

Check Sum

 

Figure 5-5 The contain of check sum field if the summation result is 0x1234 

 

Содержание 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...

Отзывы: