[go: up one dir, main page]

0% found this document useful (0 votes)
240 views48 pages

F8913 ZigBee Module User Manual PDF

Uploaded by

Chelsea Medellin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
240 views48 pages

F8913 ZigBee Module User Manual PDF

Uploaded by

Chelsea Medellin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

F8913 User Manual

F8913 Documentation No. Product Version Page


User Manual V1.1
Product Name: Total:

F8913 User Manual


The user manual is suitable for the following model:
Model Product Type
F8913-N ZigBee Module
F8913-E ZigBee Module(with PA)

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

http://www.fourfaith.com

http://www.fourfaith.com Page 1 of 48
F8913 User Manual

Files Revised Record

Date Version Remark Author


2012-3-22 V1.0 Draft Lake Chen

2012-10-31 V1.1 Power consumption, interface Harven


modification, etc

http://www.fourfaith.com Page 2 of 48
F8913 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 written 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

Four-Faith、四信、 、 、 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.

http://www.fourfaith.com Page 3 of 48
F8913 User Manual

http://www.fourfaith.com Page 4 of 48
F8913 User Manual

Contents
Chapter 1 Brief Introduction of Product ........................................................................................... 7
1.1 Overview .................................................................................................................. 7
1.2 Features and Benefits ................................................................................................. 7
1.3 Specification ............................................................................................................. 8
1.4 Terms and Abbreviation ........................................................................................... 10
Chapter 2 Module Interface ............................................................................................................ 11
2.1 Module Signal Definition ......................................................................................... 11
2.2 UART ..................................................................................................................... 13
2.3 SPI ......................................................................................................................... 13
2.4 GPIO Specification .................................................................................................. 13
2.5 Antenna Interface .................................................................................................... 14
2.6 Antenna Installation ................................................................................................. 15
2.7 Firmware Performance Specifications ....................................................................... 16
2.8 Absolute Maximum Ratings ..................................................................................... 16
Chapter 3 Communication Interface Operation .............................................................................. 17
3.1 UART ..................................................................................................................... 17
3.1.1 UART signal description ........................................................................................ 17
3.1.2 UART connections ................................................................................................. 17
3.1.3 UART Characteristics ............................................................................................ 17
3.2 SPI ......................................................................................................................... 18
3.2.1 SPI signals description: .......................................................................................... 18
3.2.2 SPI connections ...................................................................................................... 19
3.2.3 SPI communication timing ..................................................................................... 19
3.3 Analog and Digital I/O ............................................................................................. 19
3.3.1 Signal Definition .................................................................................................... 19
3.3.2 Function Description .............................................................................................. 20
Chapter 4 Parameter Configuration........................................................................................... 21
4.1 Configuration Connection ..................................................................................... 21
4.2 Configuration Introduction .................................................................................... 21
4.3 Run the configure Tool: ZigbeeConfigure.exe...................................................... 22
4.4 Modes of Operation .............................................................................................. 22
4.4.1 Transparent mode .............................................................................................. 23
4.4.2 AT command mode ............................................................................................ 23
4.4.2.1 Set the PAN ID : AT+PID............................................................................ 23
4.4.2.5 Set the node type: AT+TYP......................................................................... 25
4.4.2.6 Set node address : AT+NID ......................................................................... 25
4.5.2.7 Query node current address : AT+NCD ...................................................... 25
4.4.2.8 Set the transparent address : AT+TID.......................................................... 26
4.4.2.9 Set the node baudrate : AT+IPR, AT+PAR, AT+STO.................................. 26
4.4.2.10 Set the command echo : AT+ECH............................................................. 27
4.4.2.11 Set node to get acknowledge : AT+ACK................................................... 27
4.4.2.12 Set debug level : AT+DBL ........................................................................ 27

http://www.fourfaith.com Page 5 of 48
F8913 User Manual
4.4.2.13 Set the node auto joins in the network : AT+AST ..................................... 28
4.4.2.14 Set the RF data output the serial port: AT+PRF ........................................ 28
4.4.2.15 Query the softwarte version : AT+VER .................................................... 28
4.4.2.16 Start the network : AT+STA ...................................................................... 29
4.4.2.17 Query the nodes network state : AT+NWS ............................................... 29
4.4.2.18 Query the node address : AT+QNA........................................................... 30
4.4.2.19 Query the node MAC address : AT+QMA ................................................ 30
4.4.2.20 Query local node address net state: AT+SNS ............................................ 30
4.4.2.21 Send data (HEX mode): AT+TXH ............................................................ 31
4.4.2.22 Send data (ASCII mode) : AT+TXA ......................................................... 31
4.4.2.23 Node recive data ........................................................................................ 31
4.4.2.24 Node IO pins command............................................................................. 32
4.5.2.24.1 Set IO pin mode : AT+DMn, (n :0~4) ............................................ 32
4.4.2.24.2 Set IO pin data acquisition time interval : AT+DTn, (n :0~4) ........ 33
4.4.2.24.3 Query IO pin value : AT+DVn, (n :0~4) ........................................ 33
4.4.2.24.4 Query the net node IO pin value: AT+NVn, (n :0~4) ..................... 33
4.4.2.24.5 Set remote node IO pin value : AT+NSn, (n :0~4) ......................... 34
4.4.2.25 Set the End Device sleep mode:AT+SLE ................................................. 34
4.4.2.26 Set the End Device sleep time:AT+STC ................................................... 35
4.4.2.27 Set the Data Interval:AT+ITV................................................................... 35
4.4.2.28 Other execute command ............................................................................ 35
4.4.3 API mode ............................................................................................................. 36
4.4.3.1 data send command ..................................................................................... 37
4.4.3.2 data recive command ................................................................................... 37
4.4.3.3 Set the node current operating mode ........................................................... 38
4.4.3.4 OTA IO pin data acquisition ........................................................................ 38
4.4.3.5 OTA Set remote node IO pin value ............................................................. 39
4.4.3.6 OTA Query MAC address ........................................................................... 40
4.4.3.7 OTA Query node address ............................................................................ 41
4.4.3.8 OTA Query all node address and MAC address .......................................... 42
Chapter 5 Reference Circuit ............................................................................................................ 43
5.1 Power ..................................................................................................................... 43
5.2 Communication ....................................................................................................... 43
5.3 Reset ...................................................................................................................... 44
5.4 Digital I/O ............................................................................................................... 44
5.5 ADC Sampling Circuit ............................................................................................. 45
Chapter 6 Dimension and solder ..................................................................................................... 46
6.1 Outline Dimension ................................................................................................... 46
6.2 PCB Footprint ......................................................................................................... 46
6.3 Re-flow Temperature Specification ........................................................................... 47
Chapter 7 Ordering Information...................................................................................................... 48

http://www.fourfaith.com Page 6 of 48
F8913 User Manual

Chapter 1 Brief Introduction of Product

1.1 Overview

F8913 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 2mA; supply 5 I/O channels, compatible 5 pulse wave output 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.

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
 Support UART and SPI interface
 Power range: DC 2.0~3.6V
Stability and Reliability
 Support hardware and software WDT
 Support auto recovery mechanism, including online detect, auto redial when offline to make
it always online
Standard and Convenience

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 7 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 7 of 48
F8913 User Manual
 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 and remote maintenance
High-performance
 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 65000 nodes
 Support center node, router node and terminal node
 Support broadcast and target address transfer
 Wide communication range
 Supply 5 I/O channels, compatible 5 pulse wave output channels, 3 analog inputs and 2 pulse
input counters.

1.3 Specification

ZigBee Specification
Item Content
MCU Industrial ZigBee Platform
Communication Protocol IEEE 802.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
-97dBm
Receiver Sensitivity
-103dBm (With PA)
Network Topologies Point-to-Point, Point-to-Multipoint, Peer-to-Peer and Mesh
Channels 11 to 26
Max packge size 300 Bytes

Interface Type
Item Content
Data bits: 8
UART Stop bits: 1, 2
Checksum: none,odd,even
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 8 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 8 of 48
F8913 User Manual
Baudrate: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,57600,
115200 bps
Antenna connector U.FL RF connector, impedance 50 ohm
Support 2.0mm spacing stamp hole for SMT and 2.0mm spacing
Package
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@3.3VDC
Coordinator RX Mode 27.5~27.8mA@3.3VDC
TX Mode 28.8~29.1mA@3.3VDC
Idle Mode 28.2~28.4mA@3.3VDC
Router RX Mode 27.5~27.8mA@3.3VDC
F8913-N TX Mode 28.9~29.1mA@3.3VDC
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.3~1.4uA@3.3VDC
Deep Sleep 0.4~0.5 uA@3.3VDC

Idle Mode 30.5~31.5mA@3.3VDC


Coordinator RX Mode 32.2~33.2mA@3.3VDC
TX Mode 41.2~42.4mA@3.3VDC
Idle Mode 30.4~31.5mA@3.3VDC
Router RX Mode 32.4~33.2mA@3.3VDC
F8913-E
TX Mode 41.2~42.5mA@3.3VDC
(With PA)
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 2.3~2.7uA@3.3VDC
Deep Sleep 1.4~1.7 uA@3.3VDC

Physical Characteristics
Item Content
Dimensions 37.5 x 22.1 x 2.8 mm
Weight 3.5 g
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 9 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 9 of 48
F8913 User Manual

Environmental Limits
Item Content
Operating Temperature -40~+85ºC (-104~+185 ºF)
Extended Operating
-40~+125ºC (-104~+257ºF)
Temperature
Storage Temperature -40~+125ºC (-104~+257ºF)
Operating Humidity 95% ( unfreezing)

1.4 Terms and Abbreviation

Abbreviation Description
ADC Analog to Digital Converter
AREQ Asynchronous Request
CTS Clear to Send
DC Direct Current
DIP Double In-line Package
EVB Evaluation Board
GPIO General Purpose Input/Output
ISM Industrial Scientific and Medical
LED Light-Emitting Diode
MAC Media Access Control
MCU Microprocessor Control Unit
MI Master Input
MO Master Output
M2M Machine to Machine
N/A Not Available
PA Power Amplify
PC Personal Computer
PCB Print Circuit Board
PHY Physical
POS Point of Sale
RF Radio Frequency
RTS Request to Send
SMT Surface Mount Technology
SPI Serial Peripheral Interface
SREQ Synchronous Request
SRSP Synchronous Response
SS Salve Seclect
TTL Transistor-Transistor Logic
UART Universal Asynchronous Receiver-Transmit
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 10 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 10 of 48
F8913 User Manual
U.FL Ultra small Surface Mount Coaxial Connector
WDT Watchdog Timer

Chapter 2 Module Interface

2.1 Module Signal Definition

Figure 2-1 Module Pin Distributing


Table 2-1-1 Module signal definition 1--SMT
Pin Number Signal Name Input/Output Default Description
1 GND N/A N/A Ground
2 VCC N/A N/A Power Supply

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 11 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 11 of 48
F8913 User Manual
3 GND N/A N/A Ground
4 P2.4 Input Q1 XOSC32K_Q1
5 P2.3 Output Q2 XOSC32K_Q2
6 P2.2 Input DC DC/GPIO
7 P2.1 Both DD DD/GPIO
8 P2.0 Both GPIO GPIO
9 P1.7 Iutput RX1 MI/GPIO
10 P1.6 Onput TX1 MO/GPIO
11 P1.5 Both N/A C/GPIO
12 P1.4 Onput RD/DE SS/GPIO
13 P1.3 Both GPIO GPIO
22 P0.6 Input ADC ADC/GPIO
23 P0.5 Input RT RT/ADC/GPIO
24 P0.4 Output CT CT/ADC/GPIO
25 P0.3 Output TX TX
26 P0.2 Input RX RX
27 P0.1 Input ADC ADC/GPIO
28 P0.0 Input ADC ADC/GPIO
29 RST Input Reset Module Reset
30 P1.1 Both N/A GPIO
31 P1.2 Both N/A GPIO
32 P0.7 Both N/A GPIO
33 P1.0 Output NETLIGHT GPIO
34 GND N/A N/A Ground
35 VCC N/A N/A Power Supply
36 GND N/A N/A Ground
37 GND N/A N/A Ground

Table 2-1-2 Module signal definition 2--DIP


Pin Number Signal Name Input/Output Default Description
14 P1.7 Iutput RX1 MI/GPIO
15 P1.6 Onput TX1 MO/GPIO
16 P1.5 Both N/A C/GPIO
17 P1.4 Onput RD/DE SS/GPIO
18 P0.5 Input RT RT/ADC/GPIO
19 P0.4 Output CT CT/ADC/GPIO
20 P0.1 Input ADC ADC/GPIO
21 P0.0 Input ADC ADC/GPIO
38 P2.2 Input DC DC/GPIO
39 P2.1 Both DD DD/GPIO
40 P0.2 Input RX RX

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 12 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 12 of 48
F8913 User Manual
41 P0.3 Output TX TX
42 RST Input Reset Module Reset
43 GND N/A N/A Ground
44 VCC N/A N/A Power Supply
45 P0.6 Input ADC ADC/GPIO
Notice: 1, Only the F8913-N support the red marked function.
2, The signal Input/Output relative to the module.

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 25 (SMT) 41(DIP)
RX 26 (SMT) 40 (DIP)
CT/ADC/GPIO 24 (SMT) 19 (DIP)
RT/ADC/GPIO 23 (SMT) 18 (DIP)
Please reference the chapter 3 for the UART operation details.

2.3 SPI

The serial communication prot 2 is SPI.The signal define as Table 2-3:


Table 2-3 SPI Signal Assignments
SPI Signal Name Pin Number
MI/GPIO 9 (SMT) 14 (DIP)
MO/GPIO 10 (SMT) 15 (DIP)
C/GPIO 11 (SMT) 16 (DIP)
SS/GPIO 12 (SMT) 17 (DIP)
Please reference the chapter 3 for the SPI operation details.

2.4 GPIO Specification

The F8913 have 6 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
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 13 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 13 of 48
F8913 User Manual
Logic 0 input voltage,4-mA pins (V) Output load 4mA 0.5
Logic 1 input voltage,4-mA pins (V) Output load 4mA 2.4
Logic 0 input voltage,20-mA pins (V) 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.
Notice:1, All the I/0 have pullup/pulldown except P1.0&P1.1.
2, The P1.0&P1.1 have 20mA drive capability, the other I/O have 4-mA drive
capability.

2.5 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:

Figure 2-3 The MM9329-2700/Murata dimension

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 14 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 14 of 48
F8913 User Manual

2.6 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.

Figure 2-4 Different antenna installation types

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 15 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 15 of 48
F8913 User Manual

2.7 Firmware Performance Specifications

Table 2-6 Firmware Performance Specfication


Baudrate 115200 (Default)
Configuration 8/N/1 (Default)
Max package size 512Bytes
UART
XOR 1-byte XOR
AT Command
Command Mode
Binary Command
Max nodes quantity 65000
0~65000
Node number range 0:The center node
Network
65535:Broadcast
Router table 180-way
RREQ table 4-way
Extenal Wakeup Mode
Wakeup Mode
RTC Wakeup Mode

2.8 Absolute Maximum 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 (≤3.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. Page 16 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 16 of 48
F8913 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

Figure 3-1 UART connection diagram


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 F8913 directly.

Figure 3-2 The UART convert to RF system

3.1.3 UART Characteristics

UART data format

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 17 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 17 of 48
F8913 User Manual

Start D0 D1 D2 D3 D4 D5 D6 D7 Stop
Figure 3-3 Data format
1) Communication interface: UART
2) Baudrate: 300,600,1200,2400,4800,9600 ,19200,38400,57600 ,115200 bps (default)
3) Start bit: 1bit
4) Data bit: 8bit
5) Stop bit: 1bit,2bit
6) 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
0x1F.

Figure 3-4 0x1F bit patterns

3.2 SPI

3.2.1 SPI signals description:

 C: serial clock.
 SS: Slave select.
 MO: Master Output Slave input
 MI: Master Input Slave output

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 18 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 18 of 48
F8913 User Manual

3.2.2 SPI connections

Figure 3-5 SPI connection diagram

3.2.3 SPI communication timing

The SPI is a kind of synchronous serial communication.The host processor will


provide the synchronous clock when it is communicate with the F8913.There is 1 bit
data locked at the rise edge of the clock, and every 8bits complete 1 byte transmit. The
figure 3-6 is the SPI communication timing.

Figure 3-6 SPI communication timing


Notice: Set the SPI_SSEL low before send the data,then set the SPI_SSEL high when 1
byte transmit is finished.There is need more then 105us latency time between two bytes.

3.3 Analog and Digital I/O

3.3.1 Signal Definition

The F8913 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 and table 3-2.
Table 3-1 Analog and Digital I/O pins (SMT)
Pin Number Pin Name Default Function
8 P2.0 Digital I/O3
13 P1.3 Digital I/O2
22 P0.6/ADC ADC3
27 P0.1/ADC ADC2

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 19 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 19 of 48
F8913 User Manual
28 P0.0/ADC ADC1

Table 3-2 Analog and Digital I/O pins (DIP)


Pin Number Pin Name Default Function
20 P0.1/ADC ADC2
21 P0.0/ADC ADC1
45 P0.6/ADC ADC3

3.3.2 Function Description

1, Digital I/O
The Digital I/O P1.3&P2.0 support 4mA drive capability.
2, ADC
The ADC support 7 to 12 bits of resolution. The ADC input voltage range is 0V to
VCC.
Please configure the right value when operate the I/O.
Table 3-3 I/O Configuration
Value Description
0 Disabled
1 Peripheral control
2 Analog
3 Data in monitored
4 Data out low
5 Data out high
Notice: Please reference the AT command “AT+DMn” in the charpter 4 for the details.

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 20 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 20 of 48
F8913 User Manual

Chapter 4 Parameter Configuration


Acronyms :
AREQ : Asynchronous Request
SREQ : Synchronous Request
SRSP : Synchronous Response

4.1 Configuration Connection

Before configuration, it’s need to connect the F8913 with a host controller.The host
controller could be a PC or other device which contain UART/SPI port. You can connect
the F8913 with PC by the Four-Faith F8913 EVB, as showing in the figure 4-1.

Figure 4-1 F8913 EVB connect with PC

4.2 Configuration Introduction

There are two ways to configure the F8913:


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: All the settings are configured through AT command, so any
device with serial port can configure it. Before configuration with AT command, you
should make F8913 enter configure state.
The following describes how to configure F8913 with AT command .At the same time,
it gives out the corresponding the configure software tool of each configuration item.

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 21 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 21 of 48
F8913 User Manual

4.3 Run the configure Tool: ZigbeeConfigure.exe

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

bottom, and follow the prompt,the node will enter configuration

state。

4.4 Modes of Operation

F8913 supports three modes of Operation:Transparent Mode,AT Command Mode and


API (Application Programming Interfaced) Mode.

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 22 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 22 of 48
F8913 User Manual

4.4.1 Transparent mode

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:
 In the AT command mode,send “AT+ESC<CR><LF>”through serial port.
 In the API mode, send “FE 01 21 2A 00 0A” through serial port.

4.4.2 AT command mode

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.
 In the API mde,send “FE 01 21 2A 00 0A” through serial port.
CHECK the AT command mode,send “AT<CR><LF>” through serial port, it will
return “OK”.

All AT command line should begin with “AT” or “at” and end with “<CR><LF>”.In
general, the AT command includes three forms, as shown in table 4-1.
Table 4-1 AT command forms
Form Description Instance
Set Set the custom AT+XXX=<……>
parameters
Query Query the current AT+XXX?
parameters value
Execute Execute the command AT+XXX

4.4.2.1 Set the PAN ID : AT+PID

Form Command Return

Set AT+PID=<number 0K
strings> ERROR
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 23 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 23 of 48
F8913 User Manual
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
4.4.2.2 Query current PAN ID: AT+PCD
Form Command Return

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 the physical channel : AT+CHA

Form Commad Return

Set AT+CHA=<number 0K
strings> ERROR
Query AT+CHA? +CHA: number string
OK
Parameter description :
number string Range: 11~26
Default: 11

4.4.2.4 Query the node MAC address : AT+MID

Form Command Return

Query AT+MID? +MID: hexadecimal strings


OK
Attention: This command is read only. It will return 16 hexadecimal strings.
For example: 051B9B01004B1200

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 24 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 24 of 48
F8913 User Manual

4.4.2.5 Set the node type: AT+TYP

Form Command Return

Set AT+TYP=<number 0K
string> 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 node address : AT+NID

Form Command Return

Set AT+NID=<number 0K
strings> 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 node current address : AT+NCD


Form Command Return

Query AT+NCD? +NCD: number strings


OK
Attention: 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.

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 25 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 25 of 48
F8913 User Manual

4.4.2.8 Set the transparent address : AT+TID

Form Command Return

Set AT+TID=<number 0K
strings> 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 the node baudrate : AT+IPR, AT+PAR, AT+STO

Form Command Return

Set AT+IPR=<number 0K
string> ERROR
Query AT+IPR? +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

Form Command Return

Set AT+PAR=<number 0K
string> ERROR
Query AT+PAR? +PAR: number string
OK
Parameter description :
number strings Range: 0 = none, 1 = even , 2 = odd
Default:0

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 26 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 26 of 48
F8913 User Manual
Form Command Return

Set AT+STO=<number 0K
string> ERROR
Query AT+STO? +STO: number string
OK
Parameter description :
number strings Range: 0 = ONE stop bit, 1 = TWO stop bit
Default: 0

4.4.2.10 Set the command echo : AT+ECH

Form Command Return

Set AT+ECH=<number 0K
string> ERROR
Query AT+ECH? +ECH: number string

Parameter description :
number strings Range: 0 = non-echo, 1 = echo
Default:0

4.4.2.11 Set node to get acknowledge : AT+ACK


Form Command Return

Set AT+ACK=<number 0K
string> ERROR
Query AT+ACK? +ACK: number string
OK
Attention : whether or not to get the acknowledge data
Parameter description :
number strings Range: 0 = no , 1 = yes
Default:0

4.4.2.12 Set debug level : AT+DBL

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 27 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 27 of 48
F8913 User Manual
Form Command Return

Set AT+DBL=<number 0K
string> 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

4.4.2.13 Set the node auto joins in the network : AT+AST

Form Command Return

Set AT+AST=<number 0K
string> ERROR
Query AT+AST? +AST:number string
OK
Parameter description :
number strings Range: 0 = not auto join, 1 = auto join
Default:1

4.4.2.14 Set the RF data output the serial port: AT+PRF


Form Command Return

Set AT+PRF=<number 0K
string> 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.

4.4.2.15 Query the softwarte version : AT+VER

Form Command Return

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 28 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 28 of 48
F8913 User Manual
Execute AT+VER Four-Faith Zigbee Standard
Ver: V1.10
Time: Jul 24 2012 11:21:04

4.4.2.16 Start the network : AT+STA


Form Command Return
Execute AT+STA OK
ERROR
Attention : When “AT+AST = 0”,this command can start the network.

4.4.2.17 Query the nodes network state : AT+NWS

Form Command Return


Execute AT+NWS OK
+NWS: <state>,<node
address>,<MAC address >,<node
type>



Command description :
When this command executed, it will recive Asynchronous response.
+NWS: <state>,<node address>,<MAC address >,<node type>
For example:
+NWS:0,0,1122334455667788,0
+NWS:0,2,1122334455667799,1
+NWS:0,8,1122334455667732,2
Attention: 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.
Table 4-2 State information
0 Normal
1 Not in the net
2 Don’t exist the node address
3 Opposite don’t response
4 Reserve
5 Invaild value

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 29 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 29 of 48
F8913 User Manual

4.4.2.18 Query the node address : AT+QNA


Form Command Return
Set AT+QNA=<MAC SRSP:OK
address> AREQ:
+NWS: <state>,<node address>,<MAC
address >,<node type>
SRSP:ERROR

Parameter description :
MAC Address : the required 16 hexadecimal strings

4.4.2.19 Query the node MAC address : AT+QMA


Form Command Return
Set AT+QNA=<node SRSP:OK
address> AREQ:
+NWS: <state>,<node address>,<MAC
address >,<node type>
SRSP:ERROR

Parameter description :
Node Address : the required node address

4.4.2.20 Query local node address net state: AT+SNS

Form Command Return

Execute AT+SNS +SNS:as shown table 4-3


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 authenticated by
trust center
06 Started as device after
authentication
07 Device joined, authenticated and is
a routerr
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 30 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 30 of 48
F8913 User Manual
08 Started as Zigbee Coordinator
09 Started as Zigbee Coordinator
10 Device has lost information about its
parent.

4.4.2.21 Send data (HEX mode): AT+TXH


Form Command Return

Set AT+TXH=<node OK
address><content> ERROR
Parameter description :
Node Address: two byte hexadecimal,the lowest byte comes first
Content: the hexadecimal data.
For example:
AT+TXH=0123383838383838<CR><LF>
The node address is 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


Form Command Return

Set AT+TXA=<node OK
address>,<content> 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 Node recive data


Form Command Return

+RCV:<source address>,<data
strings>
Parameter description :
Source Address: the sender node address
Content: ASCII data strings

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 31 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 31 of 48
F8913 User Manual

4.4.2.24 Node IO pins command


Attention:The return value from IO pins should be read in AT command mode or API
MODE.

4.5.2.24.1 Set IO pin mode : AT+DMn, (n :0~4)


Attention:n refer to the IO pin

Pins And Commands Relationship

n IOs Pins
0 IO5 P0.0
1 IO4 P0.1
2 IO3 P0.6
3 IO2 P1.3
4 IO1 P2.0

Form Command Return

Set AT+DMn=<number 0K
string> ERROR
Query AT+DMn? +DMn: number string
OK
Parameter description :
number string Range: 0 = Disabled
1 = ADC Analog to Digital Converter
2 = DI digital input
3 = DO low digital output low
4 = DO high digital output high
Default:0
For example: AT+DM0=1 set the IO1 Analog to Digital Converter

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 32 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 32 of 48
F8913 User Manual

4.4.2.24.2 Set IO pin data acquisition time interval : AT+DTn, (n :0~4)

Form Command Return

Set AT+DTn=<number 0K
strings> ERROR
Query AT+DTn? +DTn: number strings
OK
Parameter description :
number string Range: 0~65535 seconds,set the report time interval
0,not report
Default:0
Attention : 1.Only take effect in IO pin ADC and DI mode.
2.The collected data will send to the trans address node.
For example : in AT command mode
+NVn:<state>,<node address>,<pin>,<value>

4.4.2.24.3 Query IO pin value : AT+DVn, (n :0~4)


Form Command Return

Query AT+DVn? +DVn: number string


OK

Description :
Get local IO pin value (ADC or GPIO)
4.4.2.24.4 Query the net node IO pin value: AT+NVn, (n :0~4)
Form Command Return

Query AT+NVn=<node SRSP: OK


address> AREQ
+NVn:<state>,<node

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 33 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 33 of 48
F8913 User Manual
address>,<pin>,<value>
SRSP: ERROR
Parameter description :
Node Address : the required node address

4.4.2.24.5 Set remote node IO pin value : AT+NSn, (n :0~4)


Form Command Return

Set AT+NSn=<node SRSP: OK


address>,<configure AREQ
value> +NVn:<state>,<node
address>,<pin>,<state>
SRSP: ERROR
Parameter description :
State : the first is the command execute state, the second is the command set state.
Node Address : the required node address
Configure value : 0 = low level , 1 = high level
Attention : Wireless set the node IO pin value, only take effect on digital IO output
mode.

4.4.2.25 Set the End Device sleep mode:AT+SLE

Form Command Return

Set AT+SLE=<Number 0K
String> ERROR
Query AT+SLE? +SLE: Number String
OK
Parameter description :
number string : 0 = no sleep
1 = timer sleep
2 = deep sleep
Default: 0

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 34 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 34 of 48
F8913 User Manual

4.4.2.26 Set the End Device sleep time:AT+STC

Form Command Return

Set AT+STC=<number 0K
strings> ERROR
Query AT+STC? +STC: number strings
OK
Parameter description :
number string Range: 0~65535 seconds,when AT+SLE =1, set the sleep time
Default:0
Default operation:Report Pin IO5 Value.

4.4.2.27 Set the Data Interval:AT+ITV

Form Command Return

Set AT+ITV=<number 0K
strings> ERROR
Query AT+ ITV? + ITV: number strings
OK
Parameter description :
number string Range: 6-1980 ms
Default:20

4.4.2.28 Other execute command


Command Return Description

AT+SAV OK Save parameters

AT+ESC OK Escape AT command


mode
Then enter transparent
mode
AT+API OK Enter API mode

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 35 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 35 of 48
F8913 User Manual
AT+FAC OK Factory

AT+SRS OK Restart

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.
 In the AT command mode,send “AT+API<CR><LF>” through serial port.

The UART data frame structure is defined as follows:


SOF Length Command Frame data Frame
check
sequence
1 Byte 1 Byte 2 Bytes xx Bytes (xx<250) 1 Byte
SOF (Start of Frame): This is a one byte field with value equal to 0xFE 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-250 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;
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 36 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 36 of 48
F8913 User Manual
}
Attention : The data content should be send with little-endian, the lowest byte come first.

4.4.3.1 data send command


SREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 06 The length of data
Command Send 2 24 5F Fixed to 24 5F
Data Destination 2 00 00 Destination node
address
Content <80 41 41 41 41 The content to be send
FCS 1 7D Frame check
sequence
SRSP:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 64 5F Fixed to 64 5F
Data State 1 00 00 = success,
Others = error

FCS 1 3A Frame check sequence


AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 03 The length of data
Command Send 2 44 80 Fixed to 44 80
Data State 1 00 00 = success,
Others = error
2 0B 00 Fixed to 0B 00
FCS 1 CC Frame check sequence

4.4.3.2 data recive command


AREQ
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 06 The length of data
Command Recive 2 44 5F Fixed to 24 5F
Data Source 2 10 0E The sender node
address(little-endian)
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 37 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 37 of 48
F8913 User Manual
Content <80 41 41 41 41 The content to be
recived
FCS 1 03 Frame check sequence

4.4.3.3 Set the node current operating mode


SREQ :
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Set 2 21 2A Fixed to 21 2A
Data Mode 1 00 00 = transparent mode
01 = AT command
mode
02 = API mode
FCS 1 0A Frame check sequence
SRSP
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Set 2 61 2A Fixed to 61 2A
Data State 1 00 00 = success,
Others = error
FCS 1 4A Frame check sequence

4.4.3.4 OTA IO pin data acquisition


SREQ
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 04 The length of data
Command Send 2 24 5E Fixed to 24 5E
Data Destination 2 10 0E Destination node
address
Read 1 00 Fixed to 00
command
IO pin address 1 02 IO pin address(00 - 02)
FCS 1 62 Frame check
sequence
SRSP
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 38 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 38 of 48
F8913 User Manual
Command Send 2 64 5E Fixed to 64 5E
Data State 1 00 00 = success,
Others = error
FCS 1 3B Frame check sequence
AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 06 The length of data
Command send 2 44 5E Fixed to 44 5E
Data State 1 00 00 = success,
Others = error
Destination 2 10 0E Destination node
address
IO pin address 1 02 IO pin addres
Pin value n 00 00 Attention : it shows
little-endian,such as 12
34,equale to 0x3412
FCS 1 00 Frame check sequence

4.4.3.5 OTA Set remote node IO pin value


Attention : IO pin is set digital output mode.
SREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 06 The length of data
Command Send 2 24 60 Fixed to 24 60
Data Destination 2 10 0E Destination node
address
Write 1 01 Fixed to 01
IO pin address 1 02 IO pin address(00 - 02)
Pin value 1 01 00 Attention : it shows
little-endian,such as 01
00,equale to 0x0001
FCS 1 5E Frame check sequence
SRSP
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 64 60 Fixed to 64 60
Data State 1 00 00 = success,
Others = error
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 39 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 39 of 48
F8913 User Manual
FCS 1 05 Frame check sequence
AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 05 The length of data
Command Send 2 44 60 Fixed to 44 60
Data Send state 1 00 00 = success,
Others = error
Destination 2 10 0E Destination node
address
IO pin address 1 02 IO pin address(00 - 02)
Set state 1 00 00 = success,
Others = error
FCS 1 3D Frame check
sequence

4.4.3.6 OTA Query MAC address


SREQ
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 03 The length of data
Command Send 2 24 5D Fixed to 24 5D
Data Destination 2 10 0E Destination node
address
Query 1 02 Fixed to 02
command
FCS 1 66 Frame check
sequence
SRSP
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 64 5D Fixed to 64 5D
Data State 1 00 00 = success,
Others = error
FCS 1 38 Frame check sequence
AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 0C The length of data
Command Send 2 44 5D Fixed to 44 5D
Xiamen Four-Faith Communication Technology Co.,Ltd. Page 40 of 48
rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 40 of 48
F8913 User Manual
Data State 1 00 00 = success,
Others = error
Destination 2 10 0E Destination node address
MAC 8 8B D9 D1 Low byte come first
address 01
00 4B 12 00
Node type 1 01 00=coordinator
01=router
02=end device
FCS 1 D1 Frame check sequence

4.4.3.7 OTA Query node address


SREQ
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 09 The length of data
Command Send 2 24 5C Fixed to 24 5C
Data Query 1 03 Fixed to 03
command
MAC address 8 8B D9 D1 01 Low byte come first
00 4B 12 00
FCS 1 A9 Frame check
sequence
SRSP:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 64 5C Fixed to 64 5C
Data State 1 00 00 = success,
Others = error
FCS 1 39 Frame check sequence
AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 0C The length of data
Command Send 2 44 5D Fixed to 44 5D
Data State 1 00 00 = success,
Others = error
Destination 2 10 0E Destination node address
MAC 8 8B D9 D1 Low byte come first
address 01

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 41 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 41 of 48
F8913 User Manual
00 4B 12 00
Node type 1 01 00=coordinator
01=router
02=end device
FCS 1 D1 Frame check sequence

4.4.3.8 OTA Query all node address and MAC address


SREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 24 5B Fixed to 24 5B
Data Query 1 01 Fixed to 01
command
FCS 1 7F Frame check
sequence
SRSP:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 01 The length of data
Command Send 2 64 5B Fixed to 64 5B
Data State 1 00 00 = success,
Others = error
FCS 1 3E Frame check sequence
AREQ:
Fields Sub field Offset Example Description
SOF 1 FE 0xFE
Length 1 0C The length of data
Command Send 2 44 5D Fixed to 44 5D
Data State 1 00 00 = success,
Others = error
Destination 2 10 0E Destination node address
MAC 8 8B D9 D1 Low byte come first
address 01
00 4B 12
00
Node type 1 01 00=coordinator
01=router
02=end device
FCS 1 D1 Frame check sequence

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 42 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 42 of 48
F8913 User Manual

Chapter 5 Reference Circuit

5.1 Power

The F8913 typical operating voltage is 3.3VDC.The figure 5-1 is the recommend 5VDC
convert to 3.3VDC circuit.

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.

Figrue 5-2 UART convert to RS232


2, Ipc as epistatic machine: F8913 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 43 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 43 of 48
F8913 User Manual

Figrue 5-3 F8913 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 10kΩ resistance for the module power on
normally.The hardware reset can execution by a switch.Press down the swich will reset the F8913,
as figure 5-4.

Figure 5-4 Reset Circuit

5.4 Digital I/O

The figure 5-5 is the demo circuit of the digital I/O control a LED.

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 44 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 44 of 48
F8913 User Manual

Figure 5-5 Digital I/O Control a LED

5.5 ADC Sampling Circuit

The figure 5-6 is applies to voltage acquisition (0-5VDC).The figure 5-7 is applies to
current acquisition (0-20mA).

Figure 5-6 Voltage Acquisition (0-5VDC)

Figure 5-7 Current Acquisition (0-20mA)

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 45 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 45 of 48
F8913 User Manual

Chapter 6 Dimension and solder

6.1 Outline Dimension

Figure 6-1 Outline Dimension

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 46 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 46 of 48
F8913 User Manual

Figure 6-3 PCB Footprint (SMT)

Figure 6-4 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

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 47 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 47 of 48
F8913 User Manual

Chapter 7 Ordering Information

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

http://www.fourfaith.com

Xiamen Four-Faith Communication Technology Co.,Ltd. Page 48 of 48


rd
Add: J1-J3,3 Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .361008.China
http://www.fourfaith.com Tel: +86 592-6300326 6300325 6300324 Fax:+86 592-5912735
Page 48 of 48

You might also like