4Udp Client Mode; 5Http Client Mode - Ebyte NE2-S1 Manual

Serial-ethernet smd module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

4.2.4UDP client mode

UDP Client is a connectionless transmission protocol that provides simple and unreliable
transaction-oriented information transmission services. There is no connection establishment and
disconnection. You only need to configure the destination IP and destination port to send data to the
other party. It is usually used in data transmission scenarios where there is no requirement for the
packet loss rate, the data packets are small and the sending frequency is fast, and the data needs to be
transmitted to the specified IP.
In UDP Client mode, the device will only communicate with the configured (destination IP and
destination port) remote UDP device .
In this mode, the target address is set to 255.255.255.255, and the sent data will be broadcast on
the entire network segment, but the sending and receiving devices need to ensure that the ports are
consistent, and the device can also receive broadcast data .
Note: In UDP mode, the length of a single data packet cannot exceed 1024 bytes.

4.2.5HTTP client mode

This mode can realize HTTP packet grouping function and provides two modes: GET and POST.
Customers can configure parameters such as URL and Header by themselves, and the device (serial
port server) will group and send the package to realize fast communication between the serial port
device and the HTTP server. Use In HTTP client mode, it is recommended to use random ports and
enable short connections to save HTTP server resources.
1. G ET
Use the HTTP mode of OneNET multi-protocol access to test the device HTTP-GET request, as
shown in the figure below.
(1) Return data configuration with header:
Data return test:
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
NE2-S1/NE2-S1-TB User Manual
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ne2-s1-tbNe2-t1Ne2-t1b

Table of Contents