User's Manual
Shenzhen hailingke Electronico.,Ltd
Tel:0755-23152658 Fax:0755-83575196
Page 14 / 31 Pages
GPI001 Output/Input High/Low Voltage Write/Read by at command I/O
GPI002 Output/Input High/Low Voltage Write/Read by at command I/O
For example:
At+GW=0,1 GPIO0 Output High Voltage
At+GR=2 Query GPIO2 Input Voltage
Udp Control below:
when the module have connect to the ap.Then establish udp client, prot is 988,in defa
ult setting,you can send:hlkATat+GW=0,1\r,the GPIO0 will output high voltage
2.6 Network Protocol
The serial to network have two method: Transparent transmission,at command
2.6.1 Transparent transmission
There are 4 mode of serial to network:TCP Server、TCP Clinet、UDP Server、UDP Client。
TCP Server
Fig10.TCP Server
In this mode,HLK-M35 is waiting for the TCP Client connection.All TCP data is sent dir
ectly to the serial port.Serial data is transmitting to all TCP Clien terminal.
The HLK-M35 support 4 tcp client.
TCP Client
HLK-M35
TCP Server
TCP Client
TCP Client
TCP Client