pico-stuff/apps/tcp_server
Luigi F. Cruz 9e1a4030cf
Disable UART when IP core is active.
2023-01-28 22:15:30 -08:00
..
CMakeLists.txt Disable UART when IP core is active. 2023-01-28 22:15:30 -08:00
README.md
main.c Add RNDIS helper library for PiccoloSDR. 2021-03-12 01:21:43 -03:00

README.md

TCP Server

This is a TCP Server that will work with the USB Network Stack library to provide a TCP/IP connection between the host (computer) and the device (Pico). This example is a demonstration of how to send high-frequency data to the host using a TCP connection.

Dependencies

Usage

This program will start when a TCP connection is established. For this example, we are going to use Netcat. The command bellow should connect the host with the device. When the connection is opened, the device will start to stream data from the internal temperature sensor with ASCII characters. Binary data can also be sent.

$ netcat 192.168.7.1 7777
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C
TEMP: 23.393365 °C