Shandong USR IOT Technology Limited USRGM3 用户手册

下载
页码 57
USR-GM3/GM3s User Manual
Jinan USR IOT Technology Limited
23 / 55
tec@usr.cn
“[0D]” means carriage return, 0x0D in hex number.
“[20]” means space, 0x20 in hex number.
2. Restart module, then send “data=www.usr.cn” to HTTP server via serial port,you will
get [www.usr.cn] from server.
NOTE: the server “www.usr.cn” is USR’s HTTP test server, if you send
“data=www.usr.cn” to it, it will feed back the data after “=” with “[]” including.
In the step 1, serial device send “data=www.usr.cn” to GM3, then GM3 prepares
HTTP
package with head information set before, so the package data is:
GET /1.php?data=www.usr.cn HTTP/1.1
Host: www.usr.cn
Accept:text/html
Accept-Language:zh-CN
User-Agent: Mozilla/5.0
Connection: Keep-Alive
After
After
After
After sending
sending
sending
sending data,
data,
data,
data, GM3
GM3
GM3
GM3 receives
receives
receives
receives data:
data:
data:
data:
HTTP/1.1 200 OK
Date: Wed, 24 Jun 2015 04:08:35 GMT
Server: Apache/2.0.63 (Win32) mod_ssl/2.0.65 OpenSSL/0.9.8o PHP/5.2.14
X-Powered-By: PHP/5.2.14
Cache-Control: max-age=600
Expires: Wed, 24 Jun 2015 04:18:35 GMT
Content-Length: 19
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html
[www.usr.cn]
After GM3 receives the above data, it will analysis the information, and send the result to
serial device.