Products
IoT Gateways
Netcom Products
IoT Modules
PUSR CLoud
ODM/EMS
Pusr Cloud, a cloudplatform for the Internet of Things Zero programming comes with its own Internet of Things system.
200
+ Private Cloud project
Data localization
Business personalization
100k
+ Public Cloud registered
80% functions are free
White-labeling for VIP
LEARN MORE
KingView-A SCADA Software With 25+ Years Of Development History Nice Graphics display to monitor and Control Production flow System.
25
+ Development History
Data Collection, Analysis &
Management
100k
+ respond within 1
Perfect Alarm Monitoring &
Querying
LEARN MORE
PCB Design —— ODM/EMS We provide one-stop turnkey design service to help customers with the delivery of an out-of-the-box hardware platform that is fully tested and ready to use upon delivery.
10
+ years of experience
11 high-speed SMT
10 million pcs daily
200
+ Private Cloud project
ISO9001 cert.
Intelligent MES
LEARN MORE
Support Center
httpsd Client Mode of Ethernet Module USR-TCP232-T2
2020-05-11

 httpsd Client

1) In this mode, the user's terminal device can send request data to the specified https server through Ethernet module USR-TCP232-T2, and then T2 receives from https.
The server's data, parses the data and sends the results to the serial device.
2) The user does not need to pay attention to the data conversion process between the serial port data and the network data packet, and the serial port setting can be realized by simple parameter setting. A data request to the https server.
3) When T2 sends data to the https server through the serial port, the required URL and header, target domain name/IP, target port number, etc. can be passed.
Saved after T2 setting, only need to send request data every time data is sent, T2 will automatically add informat ion such as URL and header. Returned data, The user can choose whether to go to the header processing.
4) Specific use cases
 
httpsd Client web page settings
1.jpg
 
1. Set T2 to httpsd Client mode via web page and set the corresponding target port number and destination IP/domain name USRTCP23 2 T2 Software Design Manual https://h.usr.cn
2. Set the httpsd request method and the URL and header information of the request packet through the web page.
3. Whether the header of the server recovery information is removed or not can be set through the web page.
4. After setting, click Save Settings, then restart T2 to take effect.
5. Open the serial port to send data, then the serial port data will be submitted to your web server, and the serial port will also receive the server back. Complex information.
6. For details on sending a request, refer to the “httpsd Client Mode Description” icon, as shown below:
 
 httpsd Client
2.jpg
3.2.2.13AT+SOCK
Function: Set/Query Network Protocol Parameter Format
Format: Query:
AT+SOCK<CR>
<CR><LF>+OK=< protocol,
IP,port ><CR><LF>
Settings:
AT+SOCK=< protocol,IP,port ><CR>
<CR><LF>+OK<CR><LF>
parameter:
Protocol: protocol type, including
TCPS corresponds to TCP server
TCPC corresponds to TCP client
UDPS corresponds to UDP server
UDPC corresponds to UDP client
HTPC
corresponds to httpsd Client
IP: IP address or domain name of the target server when the module is set to "CLIENT"
Port: Port number: local port number in Server mode, remote port number in client mode,
decimal number, less than 65535
Example: AT+SOCK=TCPC,
192.168.0.201, 8234
3.2.2.23AT+HTPTP
Function: Set/Query the https request mode in httpsD Client mode.
Format: Query:
AT+HTPTP<CR>
<CR><LF>+OK=< status ><CR><LF>
Settings:
AT+HTPTP =< status ><CR>
<CR><LF>+OK<CR><LF>
parameter:
Status:
GET: The request method for https is get
POST: Represents https request method as post
Example: AT+HTPTP=GET
3.2.2.24AT+HTPURL
Function: Set/query the URL in POST mode.
Format: Query:
AT+HTPURL<CR>
<CR><LF>+OK=< URL ><CR><LF>
Settings:
AT+HTPURL =< URL ><CR>
<CR><LF>+OK<CR><LF>
parameter:
URL: gen
erally starts with "/" and is longer than 99 bytes.
Example: AT+HTPURL=/2.php
USR
TCP232 T2 Software Design Manual https://h.usr.cn
Jinan Personal Network Technology Co., Ltd. Page 48 of 55
www.usr.cn
3.2.2.25AT+HTPHEAD
Function: Set/Query httpsd Client User
defined header information
Format: Query:
AT+HTPHEAD<CR>
<CR><LF>+OK=< data ><CR><LF>
Settings:
AT+ HTPHEAD =< data ><CR>
<CR><LF>+OK<CR><LF>
parameter:
Data: User
defined header information, the maximum length of data is 199 bytes, and the
carriage retur n " r n" in the header is used.
<<CRLF>>Translated character substitution.
Example: AT+HTPHEAD=Accept:text<<CRLF>>
3.2.2.26AT+HTPCHD
Function: Set/Query whether to filter the header of the information returned by https
Format: Query:
AT+ HTPCHD <CR>
<CR><LF>+OK=< sta ><CR><LF>
Settings:
AT+ HTPCHD =< sta ><CR>
<CR><LF>+OK<CR><LF>
Parameters: Sta:
ON: On
OFF: off
Example: AT+HTPCHD=ON
 

 

Industrial loT Gateways Ranked First in China by Online Sales for Seven Consecutive Years **Data from China's Industrial IoT Gateways Market Research in 2023 by Frost & Sullivan
Subscribe
Be Honest, Do Best
Products Serial to Ethernet/WiFi
Cellular Modems
Cellular Routers
DIN Rail Devices
IoT Gateways
LoRa Modems
Ethernet Modules
WiFi Modules
4G Modules
Bluetooth Module
Support Downloads
Technical FAQ
Technical Support
Contact Us Email : inquiry@usriot.com
Tel : +86-531-88826739
Fax : +86-531-88826739-808
Copyright © Jinan USR IOT Technology Limited All Rights Reserved. Lu ICPB No. 16015649-5/ Sitemap / Privacy Policy