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

 

 

4.

 

RS232 Serial Interface 

The CG102RS232 provides standard DB9 female connector for connection with external system. 
The pin assignment of the DB9 female connector is shown in Figure 2-1. 
 

1

TXD

RXD

GND

RS232 female

6

2
3
4
5

7
8
9

 

Figure 4-1 Pin assignment of the DB9 female connector 

 
 
The connection between CG102RS232 and the external system with 3 pins of the RS232 interface, 
which are TXD, RXD and GND (Figure 2-2). The physical characteristics of the RS232 interface has 
benn 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 

PARAMETER 

MIN 

TYP 

MAX  UNIT 

Date Rate 

57,600 

bps 

Framing 

8N1 

Hardware flow control 

Nil 

Voltage Level of bit ‘0’ 

+5 

12 

15 

Voltage Level of bit ‘1’ 

-15 

12 

-5 

 
 
In  the  RS232  serial  communication  protocol,  the  sender  is  able  to  request  the  receiver  to 
acknowledge the sender. The timeout of the sender to received acknowledgment from receiver is 
30ms.  If  the  sender  did  not  receive  any  acknowledgement  from  receiver  within  30ms  after 
transmission, sender will retransmit the data frame again. 
 

 

 

 

 

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

Отзывы: