F8913D
User Manual
Xiamen Four-Faith Communication Technology Co.,Ltd.
Page 48 of 99
Add
:
J1-J3,3
rd
Floor,No.44,GuanRiRoad,SoftWare Park,XiaMen .China
http
:
//www.fourfaith.com Tel
:
+86 592-6300326 6300325 6300324 Fax
:
+86 592-5912735
4.4.3.4 Remote set a device IO mode
Send command:FE 07 24 60 10 0E 01 02 01 00 00 5F
SOF
Length
Command
Data
FCS
FE
07
24 60
Destination
address
(2 bytes)
Write
command
(1 byte)
IO pin
(1 byte)
IO
mode
(1 byte)
IO value
(2 bytes)
5F
10 0E
01
02
01
00 00
Data Description: ( little-endian)
Destination address
:
10 0E means 0x0E10 = 3600
IO pin:
00 = D0
01 = 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
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
(1 byte)
C5
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
(2 bytes)
IO pin:
(1 byte)
State
(1 byte)
3C
10 0E
02
00
Data Description: ( little-endian)
Sender address: 10 0E means 0x0E10 = 3600
IO pin :
00 = D0
01 = D1
02 = D2
03 = D3
04 = D4
State
:
00 = Set success
01 = Set failure