Home
F8913D User Manual - Four
Contents
1. SOF Length Command Frame data Frame check sequence 1 Byte 1 Byte 2 Bytes xx Bytes xx lt 82 1 Byte SOF Start of Frame This is a one byte field with value equal to OxFE that defines the start of each general serial packet Length 1 byte length of the actual data Command 2 byte command Id Frame data the data ranging from 0 82 bytes FCS Frame Check Sequence This is a one byte field that is used to ensure packet integrity This field is computed as an XOR of all the bytes in the message starting with LEN field and through the last byte of data The following is a sample code FCS calculation unsigned char calcFCS unsigned char pMsg unsigned char len unsigned char result 0 while len result pMsg return result Note 1 Frame data some place need little endian node address IO value and other set commands 2 Every configure item is set it should send save command Network param PAN ID Physical Channel node address or device type changed sleep param and serial param change should re power device Xiamen Four Faith Communication Technology Co Ltd Page 45 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 1 Device send data Send command FE 06 24 5F 00 00 41 41 41 41 7D FE 06 24 5F Destination address
2. na 13 2 1 Module Signal oui cedes ee 13 22 14 2 3 GPIO Re D Dec MEER TUNE MN 15 2 4 Puri 16 2 5 Antenna Pi 17 2 6 Firmware Performance Specifications essere 18 2 7 Absolute Maximum Ratings sssseeseeeeeeee mem meenenns 18 Chapter 3 Communication Interface Operation 19 3A OAR T 19 3 1 UART signal description err te oe ne epe eae baies 19 3 1 2 UART COMME CH ONS oi us eter t t el ee ER Yeh E er ERE ERE 19 3 1 3 UART Characteristics ettet Eh Rete a a one Ro Ra AR 20 3 2 Analeg and Digital VO becses o eae ee 21 32 1 Signal Definition E ERR TRUE SEO IUS 21 3 2 2 Function Description Pe etapa ee ber re eee 21 Chapter 4 Parameter Configuration essen nennen ener etre enne 22 4 Zigbee oerte eee e abe Eee 22 4 1 1 Device Type derer merde 22 AD COOrGEHAltOr inet erecto rare reete vate EE A 22 II dM TL 22 4 1 1 3 End Device isse sen nd HER 22 4 1 2 ZigBee Network Description cic tor tr t EP RO RP ER Ret e irn 23 4 1 2 1 Form a ZigBee Network Procedure eese 23 4 1 2 2
3. Data Description little endian Parameter value 00 00 1 stop bit 01 00 z 2 stop bit Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 60 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 9 Set device serial port hardware flow control Send query command FE 01 21 2B 08 03 FE 01 212 command 02 1 byte 08 Respone to query command FE 03 61 2B 08 00 00 41 FE 03 61 2B command Respone value 41 1 byte 2 bytes 08 00 00 Data Description little endian Respone value 00 00 Disable 01 00 Enable Send set command FE 03 21 2B 08 00 00 01 FE 03 21 2B command parameter value 01 1 byte 2 bytes 08 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 Enable Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 61 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http w
4. Set AT PAR lt number string OK ERROR Query AT PAR PAR number string OK Parameter description number strings range 0 None 1 Even 2 Odd Default 0 4 4 2 9 3 Set device serial stop bit AT STO Stop Bit One Stop Bit Two Stop Bit Set AT STO lt number string gt OK ERROR Query AT STO STO number string OK Parameter description number strings range 0 1 stop bit 1 2 stop bit Default 0 Xiamen Four Faith Communication Technology Co Ltd Page 31 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 9 4 Set device serial port hardware flow control AT UFC Enable Hardware Flow control Enable Set AT UFC lt number string OK ERROR Query AT UFC UFC number string OK Parameter description number strings range 0 Disable 1 Enable Default 0 4 4 2 10 Set device AT command echo AT ECH Echo AT Command string Echo Set AT ECH lt number string OK ERROR Query AT ECH ECH number string Parameter description number strings range 0 Non echo 1 Echo Default 0 Xiamen Four Faith Communication Technology Co Ltd Page 32 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 63
5. FE 03 21 2B command parameter value 6C 1 byte 2 bytes 25 00 00 Data Description little endian Parameter value 0000 FF FF Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure 4 4 3 9 39 Set D4 pluse input count value Note This param is not save flash It works when device is running Send set command FE 03 61 2B 26 00 00 6F FE 03 21 2B command parameter value 6F 1 byte 2 bytes 26 00 00 Data Description little endian Parameter value 0000 FF FF Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 89 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 40 Set device transparent address Send query command FE 01 21 2B 27 2C FE 01 212 command 2C 1 byte 27 Respone to query command FE 03 61 2B 27 00 00 6E FE 03 61 2B command Respone value 6E 1 byte 2 bytes 27 00 00 Data Description little endian Respone value 00 00 F7 FF FF FF means broadcast address Send se
6. lt gt Query Query the current parameters AT XXX value Execute Execute the command AT XXX Note every configure item is set it should send save command Network param PAN ID Physical Channel node address or device type changed sleep param and serial param change should re power device 4 4 2 1 Set device PAN ID AT PID PAN ID Random Assign 0 65531 Form Command Return Set AT PID lt number strings gt OK ERROR Query AT PID PID number strings OK Parameter description number strings range 0 65531 Set unique PAN ID 65535 System will assign a stochastic PAN ID Default 65535 Xiamen Four Faith Communication Technology Co Ltd Page 27 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 2 Query device current PAN ID AT PCD Query AT PCD PCD number strings OK Attention This command is different from AT PID When the PAN ID is assigned by system and the node joined in the network we can use this command to query the current PAN ID 4 4 2 3 Set device physical channel Physical Channel Q11 O12 O13 O14 O15 O17 O18 19 O20 O21 022 23 O24 025 Set AT CHA lt number strings OK ERROR Query AT CHA CHA number string OK Parameter description
7. Parameter description number string range 0 65535 seconds set the report time interval 0 not report Default 0 Attention 1 Should used in IO pin ADC and DI mode 2 When configure device sleep mode it doesn t work 3 The collected data will send to the transparent address node For example tansparent address in AT command mode NVn node address gt lt pin gt lt mode gt lt value gt Node address the sender address IO pin n refer to Table 4 4 IO mode 0 Disable 1 2 GPIO input 3 GPIO output low 4 GPIO output high 5 Pluse input count Value IO mode 1 2 means ADC or GPIO acquisition value IO mode 5 means pluse input count current value 4 4 2 24 3 Set IO pluse input count value AT DSn n refer toTable 4 4 Set AT DTn lt number strings gt OK ERROR Description Only D3 and D4 have pluse input count function so that n is 3 or 4 This param is not save flash D3 or D4 is configure pluse input count return OK others return ERROR Parameter description number string range 0 65535 Xiamen Four Faith Communication Technology Co Ltd Page 39 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 24 4 Query IO pin value AT DVn n refer toTable 4 4 Query AT DVn DVn number string OK Description Get local IO pin value
8. a Figure 2 3 The MM9329 2700 Murata dimension Xiamen Four Faith Communication Technology Co Ltd Page 16 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 2 5 Antenna Installation 1 Install the antenna far away from the large area metal and ground 2 Keep the antennas visual 3 Minimize obstructions between the antennas 4 Reduce the extension cords of the antenna The performance of different antenna installation types as the figure 2 4 Antenna Parallel visual frea against Poor Different horizontal catercornered Figure 2 4 Different antenna installation types Xiamen Four Faith Communication Technology Co Ltd Page 17 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith 2 6 Firmware Performance Specifications Table 2 6 Firmware Performance Specfication F8913D User Manual Baudrate 115200 Default Configuration 8 N 1 Default Max serial buffer size 300Bytes UART XOR 1 byte XOR AT Command Command Mode HEX Command Max nodes quantity 65000 0 65000 Network Node number range 0 The center node 65535 Broadcast Extenal Wakeup Mode Wakeup Mode Timer Wakeup Mode 2 7 Absolute Maximum
9. number string range 11 26 Default 11 4 4 2 4 Query device MAC address AT MID MAC Address 16 bytes of HEX number DSEFECO1004B1200 Query AT MID MID hexadecimal strings OK Attention This command is read only It will return 16 hexadecimal strings For example 0x051B9B01004B 1200 Xiamen Four Faith Communication Technology Co Ltd Page 28 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 5 Set device type AT TYP Node Type Coordinator Routing End Device Set AT TYP lt number string gt OK ERROR Query AT TYP TYP number string OK Parameter description number string range 0 Coordiantor 1 Routerr 2 End Device Default 1 4 4 2 6 Set device node address AT NID Set AT NID lt number strings gt OK ERROR Query AT NID NID number strings OK Parameter description number string range 0 65527 Set unique node address 65535 System will assign a stochastic node address Default 65535 Attention When coordiantor form a network its node address is fixed to 0 the router and end device s node address must be non zero 4 5 2 7 Query device current node address AT NCD Query AT NCD NCD number strings OK Attention This command 15 different from AT NID When the node address is assign
10. 11 Respone to query command FE 03 61 2B 11 00 00 58 FE 03 61 2B command Respone value 58 1 byte 2 bytes 11 00 00 Data Description little endian Respone value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Send set command FE 03 21 2B 11 00 00 18 FE 03 21 2B command parameter value 18 1 byte 2 bytes 11 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 70 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 19 Set D1 pin data acquisition time interval Note 1 Should used in IO pin ADC or GPIO input mode 2 When configure device sleep mode it doesn t work 3 The collected data will send to the trans address node The IO pins value should be read in AT command mode or API mode Send query command FE 01 21 2B 12 19 FE 01 212 command 19 1 byte 12 Respone to query command FE 03 61 2B 12 00 00 5B FE
11. 4 Four Faith F8913D User Manual F8913D Documentation No Product Version Product Name F8913D Total 99 F8913D User Manual The user manual is suitable for the following model Model Product Type F8913D N NS Without PA DIP F8913D E NS With PA DIP Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3rd Floor No 44 GuanRi Road SoftWare Park XiaMen China Zip Code 361008 Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 FO ur Fa it h http www fourfaith com Xiamen Four Faith Communication Technology Co Ltd Page 1 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual Files Revised Record Date Version Remark Author 2013 4 15 V1 00 Draft Tady Chen 2013 07 04 V1 10 Add API configure command and route sleep mode configure description Tady Chen Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Page 2 of 99 Fax 86 592 5912735 4 Four Faith F8913D User Manual Copyright Notice All contents in the files are protected by copyright law and all copyrights are reserved by Xiamen Four Faith Communication Technology Co Ltd Without writ
12. Respone to query command FE 03 61 2B 0A 00 00 43 FE 03 61 2B command Respone value 43 1 byte 2 bytes 0A 00 00 Data Description little endian Respone value 00 00 z Close all debug messages 01 00 z Info the important debug messages 02 00 Info all debug messages Send set command FE 03 21 2B 0A 00 00 03 FE 03 21 2B command parameter value 03 1 byte 2 bytes 0A 00 00 Data Description little endian Parameter value 00 00 z Close all debug messages 01 00 Info the important debug messages 02 00 Info all debug messages Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 63 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 12 Set device sleep mode Send query command FE 01 21 2B 00 FE 01 212 command 00 1 byte OB Respone to query command FE 03 61 2B OB 00 00 42 FE 03 61 2B command Respone value 42 1 byte 2 bytes OB 00 00 Data Description little endian Respone value 00 00 No sleep 01 00 Timer sleep 02 00 Deep sleep Send set command FE 03 21 2B OB 00 00 02 FE 03 21
13. little endian Respone value 00 00 FB FF FE FF means device is forming or joining a network Xiamen Four Faith Communication Technology Co Ltd Page 82 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 32 Query device current network state Send query command FE 01 21 2B 1F 14 SOF Length Command Data FCS FE 01 command 14 1 byte IF Respone to query command FE 03 61 2B 1F 09 00 5F SOF Length Command Data FCS FE 03 command Respone value SF 1 byte 2 bytes IF 09 00 Data Description little endian Respone value 00 00 Initialized not started automatically 01 00 Initialized not connected to anything 02 00 Discovering PAN s to join 03 00 Joining a PAN 04 00 ReJoining a PAN only for end devices 05 00 Joined but not yet authenticated by trust center 06 00 Started as device after authentication 07 00 Device joined authenticated and is a routerr 08 00 Started as Zigbee Coordinator 09 00 Started as Zigbee Coordinator 0A 00 Device has lost information about its parent Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Page 83 of 99 Tel 86 592 6300326 6300325
14. little endian Parameter value 00 00 Transparent mode 01 00 AT command mode 02 00 API mode Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 53 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 2 Set device physical channel Send query command FE 01 21 2B 01 0A FE 01 212 command 1 byte 01 Respone to query command 03 61 2B 01 OB 00 43 FE 03 61 2B command Respone value 43 1 byte 2 bytes 01 OB 00 Data Description little endian Respone value 00 1A 00 Send set command FE 03 21 2B 01 OB 00 03 FE 03 21 2B command parameter value 03 1 byte 2 bytes Data Description little endian Parameter value OB 00 1A 00 Default 0B 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 54 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Fait
15. sese 66 4 4 3 9 15 Set DO pim mode tret re rrr eben 67 4 4 3 9 16 Set DO pin data acquisition time interval esse 68 4 4 3 9 17 Query DO pin value eet ett ttn n 69 4 4 3 9 18 Set DI pm oamode eet ettet t eee 70 4 4 3 9 19 Set D1 pin data acquisition time interval 71 4 4 3 9 20 Query DI pin Valle 72 4 4 3 9 21 Set D2 pim Mode 73 4 4 3 9 22 Set D2 pin data acquisition time interval usse 74 4 4 3 9 23 Query D2 pin value eR ERE eren pes 75 44 3 9 24 Set D3 pim mode iie rerit em t ttes 76 4 4 3 9 25 Set D3 pin data acquisition time interval sess 77 4 4 3 9 26 Query D3 pin value i e eterne eerte nre 78 4 4 3 9 27 Set D4 pmmiumode innere rei eere 79 4 4 3 9 28 Set D4 pin data acquisition time interval esse 80 4 4 3 9 29 Query D4 pin value tet 81 4 4 3 9 30 Query device current PAN ID eee 82 4 4 3 9 31 Query device current node address esses 82 4 4 3 9 32 Query device current network state esses 83 4 4 3 9 33 Set device whether auto starts network when powered 84 4 4 3 9 34 Set device whether RF data output the serial 85 4 4 3 9 35 Set data route method essen 86 4 4 3 9
16. 03 61 2B OE 00 00 47 FE 03 61 2B command Respone value 47 1 byte 2 bytes 00 00 Data Description little endian Respone value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Send set command FE 03 21 2B OE 00 00 07 FE 03 21 2B command parameter value 07 1 byte 2 bytes OE 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 67 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 16 Set DO pin data acquisition time interval Note 1 Should used in IO pin ADC or GPIO input mode 2 When configure device sleep mode it doesn t work 3 The collected data will send to the trans address node The IO pins value should be read in AT command mode or API mode Send query command FE 01 21 2B OF 04 FE 01 212 command 04 1 byte OF Respone to query command FE 03 61 2B OF 00 00 46 FE 03 61 2B command Respone value 46 1 byte 2 by
17. 03 61 2B command Respone value 5B 1 byte 2 bytes 12 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B 12 00 00 1B FE 03 2 2B command parameter value 1B 1 byte 2 bytes 12 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 71 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 20 Query D1 pin value Send query command FE 01 21 2B 13 18 FE 01 212 command 18 1 byte 13 Respone to query command FE 03 61 2B 13 00 00 5A FE 03 61 2B command Respone value SA 1 byte 2 bytes 13 00 00 Data Description little endian Respone value ADC value 00 00 FF 07 GPIO value 00 00 01 00 Xiamen Four Faith Communication Technology Co Ltd Page 72 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 21 Set D2 pin mode Send query command FE 01 2
18. 2B command parameter value 02 1 byte 2 bytes OB 00 00 Data Description little endian Parameter value 00 00 No sleep 01 00 Timer sleep 02 00 Deep sleep Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 64 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 13 Set device wake time Note 1 When AT SLE 1 set the wake time Send query command FE 01 21 2B 0C 07 FE 01 21 2B command 07 1 byte 0C Respone to query command FE 03 61 2B OC 04 FE 03 61 2B command Respone value F1 1 byte 2 bytes 0 OB 04 Data Description little endian Respone value 00 00 FF FF Millisecond Send set command FE 03 21 2B OC BO 04 1 FE 03 21 2B command parameter value Bl 1 byte 2 bytes 0 OB 04 Data Description little endian Parameter value 00 00 FF FF Millisecond Default BO 04 Millisecond 0 04 0 1200 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Com
19. 4 5 2 24 1 Set IO pin mode AT DMD essent 38 4 4 2 24 2 Set IO pin data acquisition time interval AT DTn 39 4 4 2 24 3 Set IO pluse input count value AT4DSn esses 39 4 4 2 24 4 Query IO pin value 1 40 4 4 2 24 5 Query a device IO pin value 40 4 4 2 24 6 Remote set a device IO pin mode 40 4 4 2 25 Set device sleep mode AT SLE sese 41 4 4 2 26 Set device sleep time AT STC essere 41 4 4 2 27 Set device wake time nennen 42 4 4 2 28 Set serial data interval ATHITV eese 42 4 4 2 29 Query device bootload version AT BTL sene 42 4 4 2 30 Set device work mode AT MOD eene 43 4 4 2 3 Set data route method AT SKP eese 43 4 4 2 32 Set API mode whether echo data send state 43 4 4 2 33 Other execute command essere nennen 44 4 4 3 API mode cere 45 4 4 3 1 Device send data dte EIER ERE eae 46 4 4 3 2 Device receive the RF 46 Xiamen Four Faith Communication Technology Co Ltd Page 6 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325
20. 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 33 Set device whether auto starts network when powered Send query command FE 01 21 2B 20 2B FE 01 212 command 2B 1 byte 20 Respone to query command FE 03 61 2B 20 01 00 68 FE 03 61 2B command Respone value 68 1 byte 2 bytes 20 01 00 Data Description little endian Respone value 00 00 Not auto start 01 00 Auto start Send set command FE 03 21 2B 20 01 00 28 FE 03 21 2B command parameter value 28 1 byte 2 bytes 20 0100 Data Description little endian Parameter value 00 00 Not auto join 01 00 Auto join Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 84 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 34 Set device whether RF data output the serial port Note This command parameter don t save in flsah It is used to close the RF data output the serial port Send query command FE 01 21 2B 21 2A FE 01 212 command 2A 1 byte 21 Respone to query command FE 03 61 2B 21 01 00 69 FE 03 61 2B c
21. 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual 4 4 3 3 Remote query a device IO value seen 47 4 4 3 4 Remote set a device IO mode essere 48 4 4 3 5 Query all devices state in the same network eere 49 4 4 3 6 Query a device MAC address essere 50 4 4 3 7 Query a device node address sese 51 4 4 3 8 Set the node current operating mode sse 52 4 4 3 9 Set device Parameter codo ete er eH ber e Deer 53 4 4 3 9 1 Set device work mode essere 53 4 4 3 9 2 Set device physical channel eene 54 4 4 3 9 3 Set device type enr esed recae taria e erbe esee kgs 55 4 4 3 9 A Set device PAN TD 2 ether eet 56 4 4 3 9 5 Set device node address sse 57 4 4 3 9 6 Set device serial port baudrate sss 58 4 4 3 9 7 Set device serial port parity 59 4 4 3 9 8 Set device serial port stop bit sss 60 4 4 3 9 9 Set device serial port hardware flow control 61 4 4 3 9 10 Set device serial port data interval ess 62 4 4 3 9 11 Set device debug level erem eritis 63 4 4 3 9 12 Set device sleep mode rere esnai 64 4 4 3 9 13 Set device wake time 65 4 4 3 9 14 Set device sleep time
22. C5 FE 01 44 80 Command send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed Receive device s state data FE 44 5D Sender MAC address Device 1B address 8 bytes type 2 bytes 1 byte 10 0E AACF2802004B1200 01 Data Description little endian Sender address 10 OE means 0x0E10 3600 MAC address 0x00124B000228CFAA Device type 00 Coordinator 01 Router 02 End device Xiamen Four Faith Communication Technology Co Ltd Page 49 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 6 Query a device MAC address Send command FE 03 24 5D 10 OE 02 66 FE 03 24 5D Destination address Query command 66 2 bytes 1 byte 10 0E 02 Data Description little endian Destination address 10 OE means OxOE10 3600 Respone to send command state FE 01 44 80 00 C5 FE 01 44 80 Command send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed Receive device s state data FE OB 44 5D Sende
23. Digital I O pins SMT Pin Number Pin Name Default Function 6 D4 GPIO 7 D3 GPIO 11 D2 ADC GPIO 19 D1 ADC GPIO 20 DO ADC GPIO 3 2 2 Function Description 1 Digital The Digital D3 amp D4 support 4mA drive capability 2 ADC The ADC support 12 bits of resolution The ADC input voltage range is OV to 5V Please configure the right value when operate the I O Table 3 3 I O Configuration Value Description 0 Disabled 1 ADC 2 GPIO input 3 GPIO output low 4 GPIO output high 5 Pluse input count Notice Please reference the AT command AT DMr in the charpter 4 for the details Add http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Xiamen Four Faith Communication Technology Co Ltd Page 21 of 99 J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China Four Faith F8913D User Manual Chapter 4 Parameter Configuration 4 1 Zigbee Description 4 1 1 Device Type Description ZigBee device has three types coordinator router and end device They all can transmit and receive data 4 1 1 1 Coordinator This is the device that starts a ZigBee network It is the first device on the network The coordinator node scans the RF environment for existing networks chooses a channel and a network identifier also called PAN ID and then starts the network Note that the role of the Coordinator is mainly related to starting up and configurin
24. OB FE 03 21 2B command parameter value OB 1 byte 2 bytes 03 0100 Data Description little endian Parameter value 00 00 FB FF FF FF will be assigned by system Default FF FF Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 56 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 5 Set device node address Send query command FE 01 21 2B 04 OF FE 01 212 command OF 1 byte 04 Respone to query command FE 03 61 2B 04 01 00 4C FE 03 61 2B command Respone value 4C 1 byte 2 bytes 04 01 00 Data Description little endian Respone value 00 00 FB FF FF FF will be assigned by system Send set command FE 03 21 2B 04 01 00 OC FE 03 21 2B command parameter value 0 1 byte 2 bytes 04 0100 Data Description little endian Parameter value 00 00 FB FF FF FF will be assigned by system Default FF FF Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Te
25. Physical Channel tette t ertet 23 4 1 2 3 PAN ID eterne nae 23 4 12 4 Node address ci a aerem ar D e XE 23 4 2 Configuration Coe lOi ccu acs ink inan iei qn chc da Eco in Das 24 4 3 Configuration Introduction MN 24 4 3 1 Run the configure Tool ZigbeeConfigure exe esee 25 4 4 Modes of OpsrallOnc 3 ui rr sarunas rnunana ELLE E EL LE M CEN 26 4 4 1 Transparent mode 26 4 4 2 AT command mode teh rer e Re ERR EEEE PER PERS ERE PER ERR E 27 4 4 2 1 Set device PAN ID eene enne nennen nennen nenne 27 4 4 2 2 Query device current PAN ID AT PCD see 28 4 4 2 3 Set device physical channel AT CHA eee 28 Xiamen Four Faith Communication Technology Co Ltd Page 5 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual 4 4 2 4 Query device MAC address AT4MID eese 28 4 4 2 5 Set device type AT TYP ierit mde etre e e tias 29 4 4 2 6 Set device node address AT NID eene 29 4 5 2 7 Query device current node address AT NCD sess 29 4 4 2 8 Set decice transparent address AT TID sese 30 4A 2 9 Set deviCe sertal
26. address can be assigned randomly or configured previously 4 The nodes in the network can use node address transmit or receive data NOTE Ina ZigBee network just only using one coordinator 4 1 2 2 Physical Channel ZigBee is based on IEEE 802 15 4 that has defined the MAC layer and physical layer IEEE 802 15 4 also defined 3 work band 2 5GHz global 868MHz Europe and 915MHz USA they respectively has highest 250kbit s 40kbit s 20kbit s transmission rate On the three band has 27 work channels in total 2 4GHz has 16 channels 915MHz has 10 channels 868MHz has only one channel Four Faith ZigBee product works on 2 4GHz band and has 16 physical channel In AT command mode we send AT CHA N N 11 26 to configure the channel We recommend 15 20 25 26 channel 4 1 2 3 PAN ID ZigBee network also calls personal area network every personal area network has unique Pan ID This Pan ID is used on every device in a same ZigBee network Four Faith ZigBee product can preconfigure a Pan ID and randomly select a Pan ID In AT command mode we send AT PID N N 0 65531 if PID 65535 it will randomly select a Pan ID 4 1 2 4 Node address ZigBee device has two address types 64 bit MAC address and 16 bit node address 64 bit MAC address is unique in the world and used in the product life 16 bit node address usually assigned when the device joined in the network It s unique in a same Pan ID network We use node address to sen
27. eee 97 X T MN m 97 6 2 POB mete 97 5 3 Temperature Specification ici as 98 Chapter 7 Ordering Information eerte 99 Xiamen Four Faith Communication Technology Co Ltd Page 8 of 99 Add http J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual Chapter 1 Brief Introduction of Product 1 1 Overview F8913D ZigBee terminal is a kind of data terminal device that provides data transfer function by ZigBee network The product uses high performance industrial grade ZigBee solution support transparent data transmission function low power consumption design the lowest working current can less than 1uA supply 5 I O channels compatible 5 GPIO channels 3 analog inputs and 2 pulse input counters It has been widely used on M2M fields such as intelligent transportation smart grid industrial automation telemetry finance POS water supply environment protection post weather and so on Q ZigBee Coordinator ZigBee Router ZigBee End Device Reticular Figure 1 1 Application Topology 1 2 Features and Benefits Design for Industrial Application High powered industrial ZigBee chip Low power consumption design support multi sleep and trigger modes to reduce the power dissipation farthest Sup
28. mode Send query command FE 01 21 2B 18 13 FE 01 212 command 13 1 byte 18 Respone to query command FE 03 61 2B 18 00 00 51 FE 03 61 2B command Respone value 51 1 byte 2 bytes 18 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B 18 00 00 11 FE 03 2 2B command parameter value 11 1 byte 2 bytes 18 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 77 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 26 Query D3 pin value Send query command FE 01 21 2B 19 12 FE 01 212 command 12 1 byte 19 Respone to query command FE 03 61 2B 19 00 00 50 FE 03 61 2B command Respone value 50 1 byte 2 bytes 19 00 00 Data Description little endian Respone value GPIO input value 00 00 01 00 Pluse input value 00 00 FF FF Xiamen Four Faith Communication Technology Co Ltd Page 78 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen C
29. sleep time AT STC Terminal equipment Sleep Setting Sleep Mode Timer Sleep up 0 65535 ms 1200 Set AT STC lt number strings gt OK ERROR Query AT STC STC number strings OK Parameter description number string range 0 65535 seconds Default 0 Note 1 When AT SLE 1 set the sleep time 2 When sleep time is zero the module doesn t go to sleep Xiamen Four Faith Communication Technology Co Ltd Page 41 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 27 Set device wake time AT WTC Terminal equipment Sleep Setting Sleep 0 65535 sec 1000 Sleep Mode ake up 0 65535 ms 1200 Set AT WTC lt number strings gt OK ERROR Query AT WTC WTC number strings OK Parameter description number string range 0 65535 millisecond Default 0 Note when AT SLE 1 set the wake time 4 4 2 28 Set serial data interval AT ITV Data Interval 6 1980 Default 20 ms 20 Set AT ITV lt number strings gt OK ERROR Query AT ITV ITV number strings OK Parameter description number string range 6 1980 millisecond Default 20 Note data interval is used to judge if the serial has recived the data If data interval greater than the setting the program will process the serial data The lower baudrate
30. 00325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 11 Set device to get acknowledge AT ACK Set AT ACK lt number string gt OK ERROR Query AT ACK ACK number string OK Attention whether or not to get the application level acknowledge data Parameter description number strings range 0 No 1 Yes Default 0 4 4 2 12 Set device debug level AT DBL Debug Level Set AT DBL lt number string gt OK ERROR Query AT DBL DBL number string OK Parameter description number strings range 0 Close all debug messages 1 Info the important debug messages 2 Info all debug messages Default 0 Xiamen Four Faith Communication Technology Co Ltd Page 33 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 13 Set device whether auto starts network when powered AT AST Auto Join Network after reset Auto Join Set AT AST lt number string gt OK ERROR Query AT AST AST number string OK Parameter description number strings range 0 Not auto start 1 Auto start Default 1 4 4 2 14 Start devcie network AT STA Execute AT STA OK ERROR Attention When AT AST 0 this command can start the network 4 4 2 15 Set device whether RF data output the serial
31. 1 2B 14 1F FE 01 21 2B command 1F 1 byte 14 Respone to query command FE 03 61 2B 14 00 00 5D FE 03 61 2B command Respone value 5D 1 byte 2 bytes 16 00 00 Data Description little endian Respone value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Send set command FE 03 21 2B 14 00 00 1D FE 03 21 2B command parameter value 1D 1 byte 2 bytes 14 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 ADC 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 73 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 22 Set D2 pin data acquisition time interval Note 1 Should used in IO pin ADC or GPIO input mode 2 When configure device sleep mode it doesn t work 3 The collected data will send to the trans address node The IO pins value should be read in AT command mode or API mode Send query command FE 01 21 2B 15 1E FE 01 21 2B command 1E 1 byte 15 Respone to qu
32. 1 byte 10 OE 01 02 01 00 00 Data Description little endian Destination address 10 OE means OxOE10 3600 pin 002 DO 01 2 DI 02 D2 03 D3 04 D4 IO mode 00 Disabled 01 ADC 02 GPIO input 03 GPIO output low 04 GPIO output high 05 Pluse input count IO value IO mode is 01 or 02 configure report time IO mode is 05 set the pluse input count value Respone to send command state FE 01 44 80 00 C5 SOF Length Command Data FCS FE 01 44 80 Command send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed Receive IO state data SOF Length Command Data FCS FE 04 44 60 Sender address IO pin State 3C 2 bytes 1 byte 1 byte 10 OE 02 00 Data Description little endian Sender address 10 OE means 0x0E10 3600 IO pin 00 01 2 DI 02 D2 03 D3 04 D4 State 00 Set success 01 Set failure Xiamen Four Faith Communication Technology Co Ltd Add http www fourfaith com Tel J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China 86 592 6300326 6300325 6300324 Fax Page 48 of 99 86 592 5912735 Four Faith F8913D User Manual 4 4 3 5 Query all devices state in the same network Send command FE 01 24 5B 01 7F FE 01 24 5B Query command TF 1 byte 01 Command send state respone FE 01 44 80 00
33. 2 15 4 and Band ISM2 4 2 5GHz 30m Indoor Urban Range 90m With PA Outdoor RF Line of Sight 500m Range 2000m With PA 2 82 mw 4 5dBm Transmit Power 100 mw 20dBm With PA RF Data Rate 250Kbps 2 97dBm Receiver Sensitivity 103dBm With PA Network Topologies Point to Point Point to Multipoint Peer to Peer and Mesh Channels 11 to 26 Max Serial Buffer Size 300 Bytes Xiamen Four Faith Communication Technology Co Ltd Page 10 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual Interface Type Item Content Data bits 8 Stop bits 1 2 UART Checksum none odd even Baudrate 300 600 1200 2400 4800 9600 19200 38400 57600 115200 bps Antenna connector U FL RF connector impedance 50 ohm Package Support 2 0mm spacing through hole pins simultaneous Power Input Item Content Recommended Power DC 3 3V 0 1A Power Range DC 2 0 3 6V Power Consumption Working States Power Consumption Idle Mode 28 3 28 4mA 93 3 VDC Coordinator RX Mode 27 5 27 8mA 93 3 VDC TX Mode 28 8 29 1mA 93 3 VDC Idle Mode 28 2 28 4mA 93 3 VDC RX Mode 27 5 27 8mA 93 3 VDC Router TX Mode 28 9 29 1mA 3 3VDC F8913D N NS Timing wake up 1 1 1 2uA 3
34. 2 5912735 Four Faith F8913D User Manual 3 1 3 UART Characteristics UART data format 1 2 3 4 5 6 Start DO DI D2 D3 D4 D5 D6 D7 Stop Figure 3 3 Data format Communication interface Baudrate 300 600 1200 2400 4800 9600 19200 38400 57600 115200 bps default Start bit 161 Data bit 8bit Stop bit 1bit 2bit Checksum none odd even UART support full duplex The communication can launch by an external device or the module itself The 8 N 1 mode each data byte includes a start bit low 8 data and a stop bit high The following figure 3 3 illustrates the serial data bit patterns The data packet is 0 1 Least Significant Bit first NN 1 Idle high es 0 a0 28 UART Signal Signal 0 VDC Voltage f Start Bit low Stop Bit high Time Figure 3 4 0 1 bit patterns Xiamen Four Faith Communication Technology Co Ltd Page 20 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 3 2 Analog and Digital I O 3 2 1 Signal Definition The F8913D support ADC and digital I O line passing The ADC and digital I O can be inquired and configured by AT commands The pins support ADC and digital I O fuctions are listing in the table 3 1 Table 3 1 Analog and
35. 2735 Four Faith F8913D User Manual Chapter 2 Module Interface 2 1 Module Signal Definition 00000008 gt 0ee6e0e06000 Figure 2 1 Module Pin Distributing Add http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Xiamen Four Faith Communication Technology Co Ltd Page 13 of 99 J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China Four Faith F8913D User Manual Table 2 1 Module signal definition 1 DIP Pin Number Signal Name Input Output Description 1 Power Supply 2 DOUT Output UART Data Out 3 DIN Input UART Data In 4 RD DE Output RD DE 5 RST Input Module Reset 6 D4 Either GPIO 7 D3 Either GPIO 8 reserved N A N A 9 SLEEP_RQ Both Pin Sleep Control Line 10 GND N A Ground 11 D2 Input ADC GPIO 12 CTS Output Clear to Send 13 SLEEP ON Output SLEEP ON 14 AVDD5 N A VREF 15 Associate Either Associate Indicator 16 RTS Input Request to Send 17 DD Either Debug Data 18 DC Input Debug Clock 19 DI Input ADC GPIO 20 DO Input ADC GPIO 2 2 UART The serial communication prot 1 is UART The signal define as Table 2 2 Table 2 2 UART Signal Assignments UART Signal Name Pin Number TX 2 RX 3 CT 12 RT 16 Please reference the chapter 3 for the UART operation details Xiamen Four Faith Communication Technology Co Ltd Page 14 of 99 Add J1 J3 3 Floor No 44 Gu
36. 36 Set device to get acknowledge see 87 Xiamen Four Faith Communication Technology Co Ltd Page 7 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual 4 4 3 9 37 Set API mode whether echo data send state 88 4 4 3 9 38 Set D3 pluse input count value esee 89 4 4 3 9 39 Set D4 pluse input count value see 89 4 4 3 9 40 Set device transparent address sse 90 4 4 3 10 Device parameter execute command esee 91 4 4 3 10 1 Parameter save command eese 91 4 4 3 10 2 Factory 91 4 4 3 10 3 Restart devices iore teer ii 92 4 4 3 10 4 Start device network essere 92 4 5 Device sleep mode configuration description 1 93 45 1 Timer sleep en rper rrr err e HE REA RERO ER EE UTERE 93 4 5 2 Deep 93 Chapter 5 Reference Circuit nor 94 GANG ame TT 94 5 2 COMMUNICAUO MET 94 S 95 5 4 Digital DO uiuos eaae ed adea d IL 96 55 ADG Sampling GIFGBID caen centu ta 96 Chapter 6 Dimension and solder sess
37. 3VDC Deep Sleep 0 3 0 4 uA 93 3 VDC Idle Mode 8 6 8 9mA 3 3VDC RX Mode 10 8 11 5mA 3 3VDC EndDevice TX Mode 14 4 15 2mA 3 3VDC Timing wake up 1 1 1 2uA 3 3VDC Deep Sleep 0 3 0 4 uA 93 3 VDC Idle Mode 30 5 31 5mA 3 3VDC Coordinator RX Mode 32 2 33 2mA 93 3 VDC TX Mode 41 2 42 4mA 03 3 VDC Idle Mode 30 4 31 5mA 3 3VDC RX Mode 32 4 33 2mA 93 3 VDC Router TX Mode 41 2 42 5mA 3 3VDC F8913D E NS Timing wake 1 2 1 3uA 3 3VDC Deep Sleep 0 4 0 5 uA 3 3VDC Idle Mode 9 0 9 6mA 3 3VDC RX Mode 13 1 14 3mA 3 3VDC EndDevice TX Mode 24 5 26 5mA 3 3VDC Timing wake up 1 2 1 3uA 3 3VDC Deep Sleep 0 4 0 5 uA 3 3VDC Xiamen Four Faith Communication Technology Co Ltd Add http www fourfaith com Tel J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China 86 592 6300326 6300325 6300324 Page 11 of 99 Fax 86 592 5912735 Four Faith F8913D User Manual Physical Characteristics Item Content Dimensions 37 5 x 22 1 x 2 8 mm Weight 35g Environmental Limits Item Content Operating Temperature 40 85 C 104 185 F Storage Temperature 40 125 104 257 F Operating Humidity 95 unfreezing Xiamen Four Faith Communication Technology Co Ltd Page 12 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 591
38. 485 10K Figrue 5 3 F8913D and ipc RS485 connection reference circuit 3 The host controller support UART SPI The connection please reference figure 3 1 and figure 3 5 5 3 Reset The RST pin should be pull up with a 10kQ resistance for the module power on normally The hardware reset can execution by a switch Press down the swich will reset the F8913D as figure 5 4 4 er Ts S BUTTON Figure 5 4 Reset Circuit Xiamen Four Faith Communication Technology Co Ltd Page 95 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 5 4 Digital O The figure 5 5 is the demo circuit of the digital I O control a LED a JUDES 2 1 R25 gt 9828 Figure 5 5 Digital I O Control a LED 5 5 ADC Sampling Circuit The figure 5 6 is applies to voltage acquisition 0 5 VDC The figure 5 7 is applies to current acquisition 0 20mA i gt ADC2 EE ESI at 5 2 GND Figure 5 6 Voltage Acquisition 0 5VDC T mox ees the s 3 ADCO UN JP NU ADCO 51 AR PE e S i s Hr XP in SF ix d Figure 5 7 Current Acquisition 0 20mA Add http www fourfai
39. 9 24 Set D3 pin mode Send query command FE 01 21 2B 17 1C FE 01 21 2B command 1C 1 byte 17 Respone to query command FE 03 61 2B 17 00 00 5E FE 03 61 2B command Respone value 5E 1 byte 2 bytes 17 00 00 Data Description little endian Respone value 00 00 Disable 01 00 z Invalid 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high 05 00 Pluse input count Send set command FE 03 21 2B 17 00 00 1E FE 03 2 2B command parameter value 1E 1 byte 2 bytes 17 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 Invalid 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high 05 00 Pluse input count Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 76 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 25 Set D3 pin data acquisition time interval Note 1 Should used in IO pin GPIO input or Pluse input count mode 2 When configure device sleep mode it doesn t work 3 The collected data will send to the trans address node The IO pins value should be read in AT command mode or API
40. ADC GPIO or pluse input count value 4 4 2 24 5 Query a device IO pin value AT NVn n refer toTable 4 4 Query AT NVn lt node address gt SRSP OK AREQ NVn lt node address gt lt pin gt lt mode gt lt value gt SRSP ERROR Parameter description Node Address The required node address 4 4 2 24 6 Remote set a device IO pin mode AT NSn n refer toTable 4 4 Set AT NSn lt node address gt lt IO SRSP OK mode gt lt configure value gt AREQ NSn lt node address gt lt pin gt lt state gt SRSP ERROR Parameter description Node Address the required node address mode 0 Disabled 1 ADC 2 GPIO input 3 GPIO output low 4 GPIO output high 5 Pluse input count Value IO mode 1 2 set the report value 0 65535 second IO mode 5 set the pluse input count value State 0 Success 1 Failure Xiamen Four Faith Communication Technology Co Ltd Page 40 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 25 Set device sleep mode AT SLE Terminal equipment Sleep Setting L Set AT SLE lt Number String gt OK ERROR Query AT SLE SLE Number String OK Parameter description number string 0 No sleep 1 Timer sleep mode 2 Deep sleep mode Default 0 4 4 2 26 Set device
41. Ratings Table 2 7 Absolute Maximum Ratings Parameters Min Max Unit Supply Voltage 0 3 3 9 V Voltage on any digital pin VCC 0 3 VCC 0 3 x3 9 V Input RF level 10 dBm Storage temperate range 40 125 C Notice Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com 86 592 6300326 6300325 6300324 Page 18 of 99 Fax 86 592 5912735 Four Faith F8913D User Manual Chapter 3 Communication Interface Operation 3 1 UART 3 1 1 UART signal description TX Data transmit RX Data receive CT Clear to Send RT Request to send 3 1 2 UART connections Host Processor RXD RTS TXD CTS Figure 3 1 UART connection diagram Note device default has no hardware flow control Example As the figure 3 2 The UART convert to RF system can be set up when the device with a UART interface connect to F8913D directly CMOS Logic 2 8 3 4V Wi LE CMOS Logic 2 8 3 4V RX data in data in Nacrocontrolle F8913 F8913 P Figure 3 2 The UART convert to RF system Xiamen Four Faith Communication Technology Co Ltd Page 19 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 59
42. Send data 7D 2 bytes 80 bytes 00 00 41414141 Data Description Destination address Low byte comes first Send data Endian as normal Respone to send command state FE 01 44 80 00 C5 FE 01 44 80 Command send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed 4 4 3 2 Device receive the RF data Receive RF data FE 06 44 5F Sender address Receive data 03 2 bytes 10 OE 41 414141 Data Description little endian Sender address 10 OE means 0 0 10 3600 Xiamen Four Faith Communication Technology Co Ltd Page 46 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D 4 4 3 3 Remote query a device IO value Send command FE 04 24 5E 10 00 02 62 User Manual SOF Length Command Data FCS FE 04 24 5E Destination address Read command IO pin 62 2 bytes 1 byte 1 byte 10 0E 00 02 Data Description little endian Destination address 10 OE means 0x0E10 3600 pin 002 DO 01 Z DI 02 D2 03 D3 04 D4 Respone to send command state FE 01 44 80 00 C5 SOF Length Command Data FCS FE 01 44 80 C
43. When operationg in transparent mode the modules act as a serial line replacement All UART data received through the DIN pin is queued up for RF transmission When data is received the data is sent out through the DOUT pin Re power module enter the transparent mode by default To enter transparent mode Inthe AT command mode send AT ESC lt CR gt lt LF gt through serial port Inthe API mode send FE 01 21 2A 00 0A through serial port Xiamen Four Faith Communication Technology Co Ltd Page 26 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith 4 4 2 AT command mode F8913D User Manual AT command mode is a multiple function operation This mode can configure the modules parameters send data and recive data To enter AT command mode In the transparent mode send the 3 character command sequence twice through serial port Inthe API mde send FE 01 21 2A 00 0A through serial port CHECK the AT command mode send AT lt CR gt lt LF gt through serial it will return AT command line should begin with or at and end with lt CR gt lt LF gt In general the AT command includes three forms as shown in table 3 1 Table 3 1 AT command forms Form Description Instance Set Set the custom parameters
44. Xiamen Four Faith Communication Technology Co Ltd Page 81 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 30 Query device current PAN ID Note This command is different from AT PID When the PAN ID is assigned by system and the node joined in the network we can use this command to query the current PAN ID Send query command FE 01 21 2B 1D 16 SOF Length Command Data FCS FE 01 212 command 16 1 byte 1D Respone to query command FE 03 61 2B 1D 01 00 55 SOF Length Command Data FCS FE 03 61 2B command Respone value 55 1 byte 2 bytes 1D 01 00 Data Description little endian Respone value 00 00 FB FF FE FF means device is forming or joining a network 4 4 3 9 31 Query device current node address Note This command is different from AT NID When the node address is assigned by system and the node joined in the network we can use this command to query the current node address Send query command FE 01 21 2B 1E 15 SOF Length Command Data FCS FE 01 21 2B command 15 1 byte 1E Respone to query command FE 03 61 2B 1E 00 00 57 SOF Length Command Data FCS FE 03 61 2B command Respone value 57 1 byte 2 bytes 1E 00 00 Data Description
45. anRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith 2 3 GPIO Specification F8913D User Manual The F8913D have 5 GPIO The DC characteristics as the Table 2 4 Table 2 4 GPIO DC Characteristics Ta 25 C VCC 3V Parameters Test Conditions Min Type Max Logic 0 input voltage V 0 5 Logic 1 input voltage V 2 5 Logic 0 input current nA Input equals 0V 50 50 Logic 1 input current nA Input equals VCC 50 50 I O pin pullup and pulldown resistors 20 Logic 0 input voltage 4 mA pins Output load 4mA 0 5 Logic 1 input voltage 4 mA pins Output load 4mA 24 Logic 0 input voltage 20 mA pins Output load 20mA 0 5 Logic 1 input voltage 20 mA pins V Output load 20mA 2 4 Please reference the chapter 3 for the GPIO configuration and operation details Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Page 15 of 99 Fax 86 592 5912735 Four Faith F8913D User Manual 2 4 Antenna Interface The Antenna connector part number MM9329 2700 Murata as the Figure 2 2 Antenna Conntector Figure 2 2 Antenna Connector MM9329 2700 Murata dimension as the Figure 2 3 SS 0 301010 _ Lr 3 00 015 E 3 003015 5 H e sv
46. ated by trust center 06 Started as device after authentication 07 Device joined authenticated and is a routerr 08 Started as Zigbee Coordinator 09 Started as Zigbee Coordinator 10 Device has lost information about its parent Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 as shown table 3 3 Four Faith F8913D User Manual 4 4 2 21 Send data HEX mode AT TXH Set AT TXH lt node OK address gt lt content gt ERROR Parameter description Node Address two byte hexadecimal the lowest byte comes first Content the hexadecimal data For example AT TXH 0123383838383838 lt CR gt lt LF gt The node address 15 0x2301 and the content is 888888 Attention The content length can t be longer than 160 character 4 4 2 22 Send data ASCII mode AT TXA Set AT TXA lt node address gt OK lt content gt ERROR Parameter description Node Address decimal address Content ASCII data For example AT TXA 12245 123456789 12245 is the reciver node address 123456789 is the ASCII content Attention The content length can t be longer than 80 character 4 4 2 23 Receive RF data RCV lt source address gt lt data strings gt Parameter description Source Address the sender node address Content ASCII da
47. chnology Co Ltd Page 57 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 6 Set device serial port baudrate Send query command FE 01 21 2B 05 OE FE 01 21 2B command OE 1 byte 05 Respone to query command FE 03 61 2B 05 09 00 45 FE 03 61 2B command Respone value 45 1 byte 2 bytes 05 09 00 Data Description little endian Respone value 00 00 300 01 00 600 02 00 1200 03 00 z 2400 04 00 4800 05 00 9600 06 00 19200 07 00 38400 08 00 57600 09 00 115200 Send set command FE 03 21 2B 05 09 00 05 FE 03 21 2B command parameter value 05 1 byte 2 bytes 05 09 00 Data Description little endian Parameter value 00 00 300 01 00 600 02 00 1200 03 00 z 2400 04 00 4800 05 00 9600 06 00 19200 07 00 38400 08 00 57600 09 00 2 115200 Default 09 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 58 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 7 Set device serial port parity Send qu
48. d Page 51 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 8 Set the node current operating mode Send command FE 01 21 2A 00 0A FE 01 212 Work mode command 0A 1 byte 00 Data Description Operating mode 00 Transparent Mode 01 AT command Mode 02 API Mode Respone to send command FE 01 612A State 4A 1 byte 00 State 00 Success 01 Failure Xiamen Four Faith Communication Technology Co Ltd Page 52 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 Set device parameter 4 4 3 9 1 Set device work mode Note this command defines the device work mode when device quit the 3 second configure time Send query command FE 01 21 2B 00 0B FE 01 21 2B command OB 1 byte 00 Respone to query command FE 03 61 2B 00 02 00 4B FE 03 612B command Respone value 4B 1 byte 2 bytes 00 02 00 Data Description little endian Respone value 00 00 Transparent mode 01 00 AT command mode 02 00 API mode Send set command FE 03 21 2B 00 02 00 OB FE 03 21 2B command parameter value 1 byte 2 bytes 00 02 00 Data Description
49. d and receive data Four Faith ZigBee product can preconfigure a node address and randomly assigned a node address In AT command mode we send AT NID N N 0 65527 if NID 65535 it will randomly assigned a node address Xiamen Four Faith Communication Technology Co Ltd Page 23 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 2 Configuration Connection Before configuration it s need to connect the F8913D with a host controller The host controller could be a PC or other device which contain UART port You can connect the F8913D with PC by the Four Faith F8913D EVB as showing in the figure 4 1 Figure 4 1 F8913D EVB connect with PC 4 3 Configuration Introduction There are two ways to configure the device Configuration software tool All the settings are configured through the shipped software tool It s necessary to have one PC to run this tool Extended AT command the settings are configured through AT command so any device with serial port can configure it Before configuration with AT command you should make device enter configure state The following describes how to configure device with AT command At the same time it gives out the corresponding the configure software tool of each configuration item Note When device powers up it has three second config
50. ed by system and the node joined in the network we can use this command to query the current node address Xiamen Four Faith Communication Technology Co Ltd Page 29 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 8 Set decice transparent address AT TID Trans Address Broadcast Assign 0 65527 0 Set AT TID lt number strings gt OK ERROR Query AT TID TID number strings OK Parameter description number strings range 0 65527 Set unique node trans address 65535 broadcast address Default 0 4 4 2 9 Set device serial 4 4 2 9 1 Set device serial baudrate AT IPR Baud Rate 5300 600 1200 2400 4800 9600 19200 38400 57600 115200 AT IPR lt number string gt AT IPR Query IPR number string OK Parameter description number strings range 0 300 1 600 2 1200 3 2400 4 4800 5 9600 6 19200 7 38400 8 57600 9 115200 Default 9 Xiamen Four Faith Communication Technology Co Ltd Page 30 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith 4 4 2 9 2 Set device serial parity AT PAR Parity None C Even Odd F8913D User Manual
51. ery command FE 01 21 2B 06 0D FE 01 21 2B command 0 1 byte 06 Respone to query command FE 03 61 2B 06 00 00 4F FE 03 61 2B command Respone value 4F 1 byte 2 bytes 06 00 00 Data Description little endian Respone value 00 00 None 01 00 Even 02 00 Odd Send set command FE 03 21 2B 06 00 00 OF FE 03 21 2B command parameter value OF 1 byte 2 bytes 06 00 00 Data Description little endian Parameter value 00 00 None 01 00 Even 02 00 Odd Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 59 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 8 Set device serial port stop bit Send query command FE 01 21 2B 07 0C FE 01 21 2B command 0C 1 byte 07 Respone to query command FE 03 61 2B 07 00 00 4E FE 03 61 2B command Respone value 4E 1 byte 2 bytes 07 00 00 Data Description little endian Respone value 00 00 1 stop bit 01 00 2 stop bit Send set command FE 03 21 2B 07 00 00 OE FE 03 21 2B command parameter value 1 byte 2 bytes 07 00 00
52. ery command FE 03 61 2B 15 00 00 5C FE 03 61 2B command Respone value 5 1 byte 2 bytes 15 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B 15 00 00 1C FE 03 21 2B command parameter value 1C 1 byte 2 bytes 15 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 74 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 23 Query D2 pin value Send query command FE 01 21 2B 16 1D FE 01 212 command 1D 1 byte 16 Respone to query command FE 03 61 2B 16 00 00 5F FE 03 61 2B command Respone value SF 1 byte 2 bytes 16 00 00 Data Description little endian Respone value ADC value 00 00 FF 07 GPIO value 00 00 01 00 Xiamen Four Faith Communication Technology Co Ltd Page 75 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3
53. eter value 2B 1 byte 2 bytes 22 00 00 Data Description little endian Parameter value 00 00 Use mesh network route data 01 00 Not route data and direct send data Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 86 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 36 Set device to get acknowledge Note whether or not to get the application level acknowledge data Send query command FE 01 21 2B 23 28 FE 01 212 command 28 1 byte 23 Respone to query command FE 03 61 2B 23 00 00 6A FE 03 61 2B command Respone value 6A 1 byte 2 bytes 23 00 00 Data Description little endian Respone value 00 00 No 01 00 Yes Send set command FE 03 21 2B 23 00 00 2A FE 03 21 2B command parameter value 2A 1 byte 2 bytes 23 00 00 Data Description little endian Parameter value 00 00 No 01 00 Yes Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technolo
54. fault 1 Attention API mode when RF data is send out the data send state will output the serial port Xiamen Four Faith Communication Technology Co Ltd Page 43 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith 4 4 2 33 Other execute command F8913D User Manual AT SAV OK Save parameters Save AT ESC OK Escape AT command mode Escape Then enter transparent mode AT API OK Enter API mode AT FAC OK Factory Factory AT SRS OK Restart Restart Xiamen Four Faith Communication Technology Co Ltd Page 44 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 API mode API operation requires that communication with the module be done through a structured interface data is communicated in frames in a defined order The API specifies how commands command responses and module status messages are sent and received from the module using a UART Data Frame To enter API mode In the transparent mode send the 3 character command sequence twice through serial port Inthe AT command mode send AT API lt CR gt lt LF gt through serial port The UART data frame structure is defined as follows
55. g the network Once that is accomplished the Coordinator behaves like a Router node or may even go away The continued operation of the network does not depend on the presence of the Coordinator due to the distributed nature of the ZigBee network 4 1 1 2 Router A Router performs functions for allowing other devices to join the network multi hop routing assisting in communication for its child battery powered end devices In general Routers are expected to be active all the time and thus have to be mains powered 4 1 1 3 End Device An end device has no specific responsibility for maintaining the network infrastructure so it can sleep and wake up as it chooses Thus it can be a battery powered node Xiamen Four Faith Communication Technology Co Ltd Page 22 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 1 2 ZigBee Network Description 4 1 2 1 Form a ZigBee Network Procedure 1 The coordinator node scans the RF environment for existing networks chooses a channel and a network identifier also called PAN ID and then starts the network 2 Router or end device also scans the RF environment for existing networks chooses a channel and a network identifier also called PAN ID and then join the network 3 The coordinator s node address fixed to 0x0000 router s or end device s node
56. gy Co Ltd Page 87 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 37 Set API mode whether echo data send state Note API mode when RF data is send out the data send state will output the serial port Send query command FE 01 21 2B 24 2F FE 01 212 command 2F 1 byte 24 Respone to query command FE 03 61 2B 24 01 00 6C FE 03 61 2B command Respone value 6C 1 byte 2 bytes 24 0100 Data Description little endian Respone value 00 00 Not echo 01 00 Echo Send set command FE 03 21 2B 24 01 00 2C FE 03 21 2B command parameter value 2C 1 byte 2 bytes 24 01 00 Data Description little endian Parameter value 00 00 Not echo 01 00 Echo Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 88 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 38 Set D3 pluse input count value Note This param is not save flash It works when device is running Send set command FE 03 61 2B 25 00 00 6C
57. h F8913D User Manual 4 4 3 9 3 Set device type Send query command FE 01 21 2B 02 09 FE 01 212 command 09 1 byte 02 Respone to query command FE 03 61 2B 02 00 00 4B FE 03 61 2B command Respone value 4B 1 byte 2 bytes 02 00 00 Data Description little endian Respone value 00 00 Coordinator 01 00 Router 02 00 End device Send set command FE 03 21 2B 02 00 00 OB FE 03 21 2B command parameter value OB 1 byte 2 bytes 02 00 00 Data Description little endian Parameter value 00 00 Coordiator 01 00 Router 02 00 End device Default 01 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 55 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 4 Set device PAN ID Send query command FE 01 21 2B 03 08 FE 01 212 command 08 1 byte 03 Respone to query command FE 03 61 2B 03 01 00 4B FE 03 61 2B command Respone value 4B 1 byte 2 bytes 03 01 00 Data Description little endian Respone value 00 00 FB FF FF FF will be assigned by system Send set command FE 03 21 2B 03 01 00
58. h F8913D User Manual Chapter 5 Reference Circuit 5 1 Power The F8913D typical operating voltage is 3 3VDC The figure 5 1 is the recommend 5VDC convert to 3 3VDC circuit NODS Hs UE E oq 6d s 3b od ve s VCC35 rae ae ena 1208 Figure 5 1 Power Reference 5 2 Communication There are three modes 1 The host controller support RS232 such as PC The figure 5 2 is the recommend UART convert to RS232 circuit E CAIN Vp i C4 d DA dey Me E 7 V N we X xy 08 4 C2 N T1OUT T200T HS TAIN s T3001 H RIOUT Rin H R20UT R2IN R30UT R SIN 5 RAOUT R50UT ABW 2 PESE ees Gn 2 ne SHUTDOWN STATUS 55 ONLINE R20UT L25 ho 24 C T i 3 a 4 BND amp P c Cd do E Figrue 5 2 UART convert to RS232 2 Ipc as epistatic machine F8913D and ipc through the RS485 bus is linked together need to use level conversion chips for level conversion such as SP3485 as shown in figure 5 3 Xiamen Four Faith Communication Technology Co Ltd Page 94 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual RS
59. hina http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 27 Set D4 pin mode Send query command FE 01 21 2B 1A 11 FE 01 212 command 11 1 byte 1A Respone to query command FE 03 61 2B 1A 00 00 53 FE 03 61 2B command Respone value 53 1 byte 2 bytes 1A 00 00 Data Description little endian Respone value 00 00 Disable 01 00 Invalid 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high 05 00 Pluse input count Send set command FE 03 21 2B 1A 00 00 13 FE 03 21 2B command parameter value 13 1 byte 2 bytes 1A 00 00 Data Description little endian Parameter value 00 00 Disable 01 00 Invalid 02 00 GPIO input 03 00 GPIO output low 04 00 GPIO output high 05 00 Pluse input count Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 79 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 28 Set D4 pin data acquisition time interval Note 1 Should used in IO pin GPIO input or Pluse input count mode 2 When configure device sleep mode it does
60. ion In order to avoid blocking every node recived the command will delay for a period of time and send the message itself to the sender This time range from 0 to 66 seconds Xiamen Four Faith Communication Technology Co Ltd Page 35 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 18 Query a device node address AT QNA Form Command Return Set AT QNA lt MAC SRSP OK address gt AREQ NWS lt state gt lt node address gt lt MAC address gt lt node type gt SRSP ERROR Parameter description MAC Address the required 16 hexadecimal strings 4 4 2 19 Query a device MAC address AT QMA Form Command Return Set AT QNA lt node SRSP OK address gt AREQ NWS lt state gt lt node address gt lt MAC address gt lt node type gt SRSP ERROR Parameter description Node Address the required node address 4 4 2 20 Query device net state AT SNS Query Dev Net State Form Command Return Execute AT SNS SNS OK Table 4 3 DEV NETWORK STATE 00 Initialized not started automatically 01 Initialized not connected to anything 02 Discovering PAN s to join 03 Joining a PAN 04 ReJoining a PAN only for end devices 05 Joined but not yet authentic
61. l 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 10 3 Restart device Send execute command FE 01 21 2C 02 OE FE 01 21 2C command OE 1 byte 02 Respone to execute command FE 01 61 2C 00 4C FE 01 61 2C 02 4E FE 01 61 2C Command state 4 1 byte 00 Data Description 00 Success 02 Failure 4 4 3 10 4 Start device network Send execute command FE 01 21 2C 03 OF FE 01 212 command OF 1 byte 03 Respone to execute command FE 01 61 2C 00 4C FE 01 61 2C 02 4E FE 01 61 2C Command state 4C 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 92 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 5 Device sleep mode configuration description F8913D support router and end device configure Timer sleep and Deep sleep 4 5 1 Timer sleep Function description Timer sleep can set the sleep interval when it wake up the device will wake up a centain time then it goes to sleep again SLEEP ON pin indicates device current work state high level means sleep and low level means wake After device waking up if device successfully joined in the network Associate pin will output low level to indicate online If device
62. mation You can contact the sales of Xiamen Four Faith Communication Technology Co Ltd to buy the modules or EVB Please specify the model you need Contact Four Faith Xiamen Four Faith Communication Technology Co Ltd Add J1 J3 3rd Floor No 44 GuanRi Road SoftWare Park XiaMen China Zip Code 361008 Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Fouir Faith http www fourfaith com Xiamen Four Faith Communication Technology Co Ltd Page 99 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735
63. munication Technology Co Ltd Page 65 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 14 Set device sleep time Note 1 When AT SLE 1 set the sleep time 2 When sleep time is zero the module doesn t go to sleep Send query command FE 01 21 2B 0D 06 FE 01 21 2B command 06 1 byte 0 Respone to query command FE 03 61 2B 0D 00 00 44 FE 03 61 2B command Respone value 44 1 byte 2 bytes 0D 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B OD 00 00 04 FE 03 21 2B command parameter value 04 1 byte 2 bytes 0 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 66 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 15 Set DO pin mode Send query command FE 01 21 2B 0 05 FE 01 21 2B command 05 1 byte OE Respone to query command FE
64. n t work 3 The collected data will send to the trans address node The IO pins value should be read in AT command mode or API mode Send query command FE 01 21 2B 1B 10 FE 01 212 command 10 1 byte 1B Respone to query command FE 03 61 2B 1B 00 00 52 FE 03 61 2B command Respone value 52 1 byte 2 bytes 1B 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B 1B 00 00 12 FE 03 21 2B command parameter value 12 1 byte 2 bytes 1B 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 80 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 29 Query D4 pin value Send query command FE 01 21 2B 1C 17 FE 01 212 command OB 1 byte 00 Respone to query command FE 03 61 2B 1C 00 00 55 FE 03 61 2B command Respone value 4B 1 byte 2 bytes 00 02 00 Data Description little endian Respone value GPIO input value 00 00 01 00 Pluse input value 00 00 FF FF
65. number Version Information TY T ter Con g 6 40302004 1200 a DEEL Enter Configuration State Escape Node Address Now Loading Settings l Randon Assi gn 0 85527 TU Trans Address Save Broadcast Assign 0 65527 0 Restart Auto Join Network after reset Factory V uto Join Software Version Physical Channel _ z Boot Version 11 2 13 15 O16 O17 O18 19 20 21 22 23 24 25 26 Query Dev Net State Center Node NetState Data Interval 6 1980 Default 20 ms 20 E Clear Log The Communication Setting column shows the current serial port settings To configure ZigBee modules please choose the correct serial port parameters then open the serial port If the button text is Close it shows the serial port now has been opened If the text is Open you should open the port first When you had configure the correct serial port please press the Enter Config bottom and follow the prompt he node will enter configuration state Xiamen Four Faith Communication Technology Co Ltd Page 25 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 Modes of Operation F8913D supports three modes of Operation Transparent Mode AT Command Mode and API Mode 4 4 1 Transparent mode
66. ommand Respone value 69 1 byte 2 bytes 21 01 00 Data Description little endian Respone value 00 00 Not output 01 00 z Output Send set command FE 03 21 2B 21 01 00 29 command parameter value 1 byte 2 bytes Data Description little endian Parameter value 00 00 Not output 01 00 z Output Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 85 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 35 Set data route method Note If ZigBee devices just in a hop distance between each other data can directly send out and not use mesh network route so that other devices needn t relay the data It helps improving communicating speed Send query command FE 01 21 2B 22 29 FE 01 212 command 29 1 byte 22 Respone to query command FE 03 61 2B 22 00 00 6B FE 03 61 2B command Respone value 6B 1 byte 2 bytes 22 00 00 Data Description little endian Respone value 00 00 Use mesh network route data 01 00 Not route data and direct send data Send set command FE 03 21 2B 22 00 00 2B FE 03 21 2B command param
67. ommand send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed Receive IO state data SOF Length Command Data FCS FE 06 44 5E Sender address IO pin IO mode value 01 2 bytes 1 byte 1 byte 2 bytes 10 0E 02 01 00 00 Data Description little endian Sender address 10 OE means 0x0E10 3600 IO pin 00 0l D1 02 D2 03 D3 04 D4 IO mode 00 Disabled 01 ADC 02 GPIO input 03 GPIO output low 04 GPIO output high 05 Pluse input count value IO mode is 00 00 00 IO mode is 01 ADC acquisition value IO mode is 02 GPIO acquisition value 00 00 01 00 IO mode is 03 current output value 00 00 IO mode is 04 current output value 01 00 IO mode is 05 current Pluse input count value Xiamen Four Faith Communication Technology Co Ltd Page 47 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Fa ith F8913D User Manual 4 4 3 4 Remote set a device IO mode Send command FE 07 24 60 10 OE 01 02 01 00 00 5F SOF Length Command Data FCS FE 07 24 60 Destination Write IO pin IO IO value 5F address command 1 byte mode 2 bytes 2 bytes 1 byte
68. port AT PRF Set AT PRF lt number string OK ERROR Query AT PRF PRF number string OK Parameter description number strings range 0 Not output 1 Output Default 1 Attention This command parameter don t save in flsah It is used to close the RF data output the serial port Xiamen Four Faith Communication Technology Co Ltd Page 34 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 16 Query device softwarte version AT VER Version Command Return Execute AT VER Four Faith Zigbee Standard Ver V1 10 Time Jul 24 2012 11 21 04 4 4 2 17 Query all devices state in the same network AT NWS Center Node NetState Form Command Return Execute AT NWS OK NWS lt state gt lt node address gt lt MAC address gt lt node type gt Command description When this command executed it will recive Asynchronous response NWS lt state gt lt node address gt lt MAC address gt lt node type gt For example NWS 0 0 1122334455667788 0 NWS 0 2 1122334455667799 1 NWS 0 8 1122334455667732 2 Table 4 2 State information Normal Not in the net Don t exist the node address Opposite don t response Reserve Invaild value Attent
69. port Powerrange DC 2 0 3 6V Stability and Reliability Support hardware and software WDT Support auto recovery mechanism Standard and Convenience Adopt a miniature package support 2 0mm spacing stamp hole for SMT and 2 0mm spacing through hole pins simultaneous Support intellectual mode enter into communication state automatically when powered support several work modes Convenient configuration and maintenance interface Support for serial software upgrades Xiamen Four Faith Communication Technology Co Ltd Page 9 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith High performance Support 65000 nodes 9999 99 counters 1 3 Specification F8913D User Manual Support ZigBee wireless data transmission Support repeater and end device function Support Point to Point Point to Multipoint Peer to Peer and Mesh network Support center node router node and terminal node Support broadcast and target address transfer Wide communication range Supply 5 I O channels 5 GPIO output channels compatible 3 analog inputs and 2 pulse input F8913D Model Sheet Model Content F8913D N NS Without PA DIP F8913D E NS With PA DIP ZigBee Specification Item Content MCU Industrial ZigBee Platform Communication Protocol IEEE 80
70. r MAC address Device 1B address 8 bytes type 2 bytes 1 byte 10 0E AA CF 28 02 00 4B 12 00 01 Data Description little endian Sender address 10 OE means 0x0E10 3600 MAC address 0x00124B000228CFAA Device type 00 Coordinator 01 Router 02 End device Xiamen Four Faith Communication Technology Co Ltd Page 50 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 7 Query a device node address Send command FE 09 24 5C Query command MAC address 64 1 bytes 8 bytes 03 AA CF 28 02 00 4B 12 00 Data Description little endian MAC address 0x00124B000228CFAA Respone to send command state FE 01 44 80 00 C5 FE 01 44 80 Command send state C5 1 byte 00 Data Description Command send state 00 Success 01 Failure The command send state respone can be closed as the configure item API mode whether echo data send state is closed Receive device s state data FE OB 44 5D Sender MAC address Device 1B address 8 bytes type 2 bytes 1 byte 10 0E AA CF 28 02 00 4B 12 00 01 Data Description little endian Sender address 10 OE means 0x0E10 3600 MAC address 0x00124B000228CFAA Device type 00 Coordinator 01 Router 02 End device Xiamen Four Faith Communication Technology Co Lt
71. t command FE 03 21 2B 27 00 00 2E FE 03 21 2B command parameter value 2E 1 byte 2 bytes 27 00 00 Data Description little endian Parameter value 00 00 F7 FF FF FF means broadcast address Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 612 Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 90 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 10 Device parameter execute command 4 4 3 10 1 Parameter save command Send execute command FE 01 21 2C 00 0C FE 01 21 2C command 0C 1 byte 00 Respone to execute command FE 01 61 2C 00 4C FE 01 61 2C 02 4E FE 01 61 2C Command state 4 1 byte 00 Data Description 00 Success 02 Failure 4 4 3 10 2 Factory command Send execute command FE 01 21 2C 01 0D FE 01 21 2C command 0 1 byte Respone to execute command FE 01 61 2 00 4 FE 01 61 2 02 4 01 612 Command state 4C 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 91 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Te
72. ta strings Xiamen Four Faith Communication Technology Co Ltd Page 37 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 24 Device IO pins command Attention 1 The return value from IO pins should be read in AT command mode API mode 2 When configure sleep mode IO configure is invalid Table 4 4 n and IO pins n IO pin 0 DO 1 DI 2 D2 3 D3 4 D4 4 5 2 24 1 Set IO pin mode AT DMn n refer toTable 4 4 Form Command Return Set AT DMn lt number string gt OK ERROR Query AT DMn DMn number string OK Parameter description number string range 0 Disabled 1 ADC 2 GPIO input 3 GPIO output low 4 GPIO output hig 5 Pluse input count Default 0 For example AT DMO 1 set the DO Analog to Digital Converter Attention 1 D3 and D4 have mode 0 2 3 4 5 2 D0 D1 and D2 have mode 0 1 2 3 4 Xiamen Four Faith Communication Technology Co Ltd Page 38 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 24 2 Set IO pin data acquisition time interval AT DTn n refer toTable 4 4 Set AT DTn lt number strings gt OK ERROR Query AT DTn DTn number strings OK
73. ten permission all commercial use of the files from Four Faith are forbidden such as copy distribute reproduce the files etc but non commercial purpose downloaded or printed by individual all files shall be not revised and the copyright and other proprietorship notice shall be reserved are welcome Trademark Notice T Four Faith EA 1 Four Faith ree x are all registered trademarks of Xiamen Four Faith Communication Technology Co Ltd illegal use of the name of Four Faith trademarks and other marks of Four Faith is forbidden unless written permission is authorized in advance Xiamen Four Faith Communication Technology Co Ltd Page 3 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual Xiamen Four Faith Communication Technology Co Ltd Page 4 of 99 Add X J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 4 Four Faith F8913D User Manual Contents metere I HOHER ERE TRO RETREAT ES RETE NE 5 Chapter 1 Brief Introduction of Product 9 We OV nu 9 1 2 Features and Benellls a uUa 9 Att CEREREM 10 Chapter 2 Module Interface
74. tes 00 00 Data Description little endian Respone value 00 00 FF FF second Send set command FE 03 21 2B OF 00 00 06 FE 03 21 2B command parameter value 06 1 byte 2 bytes OF 00 00 Data Description little endian Parameter value 00 00 FF FF second Default 00 00 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 68 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 17 Query 00 pin value Send query command FE 01 21 2B 10 1B FE 01 212 command 1B 1 byte 10 Respone to query command FE 03 61 2B 10 00 00 59 FE 03 61 2B command Respone value 59 1 byte 2 bytes 10 00 00 Data Description little endian Respone value ADC value 00 00 FF 07 GPIO value 00 00 01 00 Xiamen Four Faith Communication Technology Co Ltd Page 69 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 18 Set D1 pin mode Send query command FE 01 21 2B 11 1A FE 01 212 command 1A 1 byte
75. th com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Xiamen Four Faith Communication Technology Co Ltd Page 96 of 99 J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China Four Faith F8913D User Manual Chapter 6 Dimension and solder 6 1 Outline Dimension i Sammy ze 0000000000 32 9mm he 2 BE ei Gites Figure 6 1 Outline Dimension X No O000VOO000E 12 0 20 X 00 5 j L2 3 9 L 2 0 T 1 10 8 2 0 X No TT 20 8 Spoof doos P C Board Layout Figure 6 2 Pin Header Dinmension optional 6 2 PCB Footprint The figure 6 3 and figure 6 4 are the recommend PCB Footprint Unit mm Xiamen Four Faith Communication Technology Co Ltd Page 97 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 329mm Figure 6 3 PCB Footpring DIP 6 3 Re flow Temperature Specification Please reference the IPC JEDEC J STD 020B for the Re flow Table 6 1 Re flow temperature Maximum Re flow Temperature Xiamen Four Faith Communication Technology Co Ltd Page 98 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual Chapter 7 Ordering Infor
76. the longer data interval 4 4 2 29 Query device bootload version AT BTL Execute AT BTL Four Faith Zigbee BootLoad Ver V1 01 Xiamen Four Faith Communication Technology Co Ltd Page 42 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 2 30 Set device work mode AT MOD Set AT MOD lt Number String gt OK ERROR Query AT MOD MOD Number String OK Parameter description number string 0 Transparent Mode 1 AT command Mode 2 API mode Default 0 Attention The command set device start up work mode when configure and save it need restart 4 4 2 31 Set data route method AT SKP SKP lt Number String gt 5 SKP Number String OK Query Parameter description number string 0 Use mesh network route data 1 Not route data and direct send data Default 0 Attention If ZigBee devices just in a hop distance between each other data can directly send out and not use mesh network route so that other devices needn t relay the data It helps improving communicating speed 4 4 2 32 Set API mode whether echo data send state AT MTC Set SKP lt Number String gt OK ERROR Query AT SKP SKP Number String OK Parameter description number string 0 Not echo 1 Echo De
77. unsuccessfully joined in the network or went into sleep Associate pin will output high level to indicate off line Configuration conditions 1 Hardware SLEEP_RQ pin must connect to high level 3V 3 3V 2 Software Devcie should be configured as end device or router and Timer Sleep The sleep interval must be greater than 0 Terminal equipment Sleep Setting Sleep 0 65535 sec 1000 Sleep Mode Timer Sleep v up 0 65535 ms 1200 4 5 2 Deep sleep Function description Deep sleep is waked up by extern interrupt When SLEEP_RQ pin is low level device not goes to sleep When SLEEP_RQ pin is high level 3V 3 3V device goes to deep sleep SLEEP ON pin indicates device current work state high level means sleep and low level means wake After device waking up if device successfully joined in the network Associate pin will output low level to indicate online If device unsuccessfully joined in the network or went into sleep Associate pin will output high level to indicate off line Configuration conditions 1 Hardware Operate on SLEEP pin level 2 Software Devcie should be configured as end device or router and Deep Sleep Terminal equipment Sleep Setting Sleep Mode j ni Xiamen Four Faith Communication Technology Co Ltd Page 93 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Fait
78. uration time During this time the netwok not works and the serial s baudrate is 115200 no parity 1 stop bit Send the 3 character command sequence twice through serial port Then it goes into AT command configuration Xiamen Four Faith Communication Technology Co Ltd Page 24 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Bs d Four Faith F8913D User Manual 4 3 1 Run the configure Tool ZigbeeConfigure exe lero Faith Zigbee HC 65 Communication Setting Select COM COM14 Config Mode Default Baud 115200 Hardware ta Parity Stopbit 81 Close COM flow control Zigbee Settings TRAA English ish v Baud Rate Apply Mode Setting 3200 O80 1200 2400 4800 Apply Mode Transparent M 59600 519200 0 38400 057600 9 115200 Equipment Sleep Setting RET ELCHE Sleep Mode No Sleep Stop Bit Sa One Stop Bit Two Stop Bit Enable Hardware Flow control Work Mode Disabled x Enable Pin D3 pe e n e Work Mode Disabled Pin D2 Echo AT Command string Work Mode Disabled Echo or Pin D1 Work Mode Disabled Randon Assi gn 0 65531 ork Mode Disabled Node Type Bk dut Coordinator Routing End Device Work Mode Disabled MAC Address 1B bytes of HEX
79. usce toi IRE HEN IE 30 4 4 2 9 Set device serial baudrate 30 4 4 2 9 2 Set device serial parity AT PAR 31 4 4 2 9 3 Set device serial stop bit AT STO sss 31 4 4 2 9 4 Set device serial port hardware flow control AT UFC 32 4 4 2 10 Set device AT command echo AT ECH eere 32 4 4 2 11 Set device to get acknowledge AT ACK eee 33 4 4 2 12 Set device debug level AT DBL eee 33 4 4 2 13 Set device whether auto starts network when powered AT AST 34 4 4 2 14 Start devcie network AT STA 34 4 4 2 15 Set device whether RF data output the serial port AT PRF 34 4 4 2 16 Query device softwarte version AT VER eee 35 4 4 2 17 Query all devices state in the same network 35 4 4 2 18 Query a device node address 36 4 4 2 19 Query a device MAC address sese 36 4 4 2 20 Query device net state AT SNS sess 36 4 4 2 21 Send data HEX mode AT TXH essere 37 4 4 2 22 Send data ASCII mode sse 37 4 4 2 23 Receive RE cct er Rex eee 37 4 4 2 24 Device IO pins command eese 38
80. ww fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 10 Set device serial port data interval Note Data Interval is used to judge if the serial has recived the data If data interval greater than the setting the program will process the serial data The lower baudrate the longer data interval Send query command FE 01 21 2B 09 02 FE 01 212 command 02 1 byte 09 Respone to query command FE 03 61 2B 09 14 00 54 FE 03 61 2B command Respone value 54 1 byte 2 bytes 09 14 00 Data Description little endian Respone value 06 00 BC 07 Millisecond Send set command FE 03 21 2B 09 14 00 14 FE 03 21 2B command parameter value 14 1 byte 2 bytes 09 14 00 Data Description little endian Parameter value 06 00 BC 07 Millisecond Default 14 00 Millisecond 0x0014 20 Respone to set command FE 01 61 2B 00 4B FE 01 61 2B 02 49 FE 01 61 2B Command state 4B 1 byte 00 Data Description 00 Success 02 Failure Xiamen Four Faith Communication Technology Co Ltd Page 62 of 99 Add J1 J3 3 Floor No 44 GuanRiRoad SoftWare Park XiaMen China http www fourfaith com Tel 86 592 6300326 6300325 6300324 Fax 86 592 5912735 Four Faith F8913D User Manual 4 4 3 9 11 Set device debug level Send query command FE 01 21 2B 0A 01 FE 01 21 2B command 01 1 byte 0A
Download Pdf Manuals
Related Search
Related Contents
LG VS985 Quick Start Guide (Spanish) StarTech.com 1m Multimode 62.5/125 Duplex Fiber Patch Cable LC - LC USER`S MANUAL M-8x AR - Furman Sound BB3 Manual ammended FENIX ELITE MANUAL - VERSION 6.3 Relatório de Atividades do LNEG Kenroy Home 32487RW Use and Care Manual Copyright © All rights reserved.
Failed to retrieve file