TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139059 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Echo Server

Rating:

0

Author: MIKROE

Last Updated: 2024-07-09

Package Version: 2.0.0.12

mikroSDK Library: 2.0.0.0

Category: Ethernet

Downloaded: 18 times

Not followed.

License: MIT license  

The application demonstrates CycloneTCP echo server functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Echo Server" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Echo Server" changes.

Do you want to report abuse regarding "Echo Server".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
GCC for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

CycloneTCP Echo Server DEMO

This example demonstrates echo server functionality. Observe UART/Application output and wait until server address is resolved, singnaling that echo server running on the MCU is ready to be used. Connect to the server with Tera Term or any other terminal of your choice. Set Host: to either "echo-server-demo" or the IP address from UART/Application output, and use Port: "7". Write something into the terminal, and observe it being echoed back by the echo server.

Hardware Support

  • Connect Ethernet cable to ETH connector on the right side of the board.
  • Connect USB-C cable to USB-UART connector on the left side of the board.

image

Software Support

We provide demo code for testing echo server functionality. For example to work, proper clock setup is needed. To create a setup with the adequate clock scheme, follow these steps:

  1. Click on Setups and select New.
  2. Select GCC ARM or RISC-V compiler and click on Advanced.
  3. From Redirect standard output to: drop down menu, select UART, and then click Save.
  4. Select Board you are using.
  5. Select your MCU and click on Advanced.
  6. Select Config scheme from drop down menu, it will have MCU_NAME_ETHERNET name.
  7. If you dont see MCU_NAME_ETHERNET scheme for your MCU then ETHERNET module is not supported.
  8. Click Save, then Next.
  9. Select desired display, and choose programmer/debugger tool.
  10. Click Finish.
  11. Program the MCU.
  12. In case of a setup with UART open Tools view (Ctrl + 7) and select UART Terminal. In case of setup with Application output, run debug and go straight to step 18.
  13. Click on Options and change Port to the one you are using.
  14. Furthemore, change Baud rate to 115200 bps.
  15. Press Configure.
  16. Click on Connect.
  17. Observe UART/Application output, and wait until host address is resovolved, signaling that Echo server is ready to be used.
  18. Open Tera Term or other terminal of you choice.
  19. Select TCP/IP.
  20. Set Host to "echo-server-demo", without quotes, or the IP address given in step 17.
  21. For Service: select Telnet.
  22. Set TCP port# to 7.
  23. Click "OK".
  24. Write "Hello World!" into the terminal and press Enter. Observe that the echo server running on the MCU will echo "Hello World!" back.

example

example

example


ALSO FROM THIS AUTHOR

RN4870 Click

0

RN4870 Click carries the RN4870 Bluetooth® 4.2 low energy module from Microchip. The Click is designed to run on a 3.3V power supply. It uses ASCII Command Interface over UART for communication with target microcontroller, with additional functionality provided by the following pins on the mikroBUS™ line: PWM, INT, RST, CS.

[Learn More]

MMC FAT16 Legacy Library

5

The Multi Media Card (MMC) is a Flash memory card standard. MMC cards are available in sizes up to and including 32 GB and are used in cellular phones, digital audio players, digital cameras and PDA’s.

[Learn More]

Power Monitor 2 Click

0

Power Monitoring 2 Click is a compact add-on board for precise power monitoring of connected load devices. This board features two INA219 12-bit I2C-output digital power monitors from Texas Instruments. This Click board™ monitors current and voltage on two separate power rails - 3.3V and 5V - of an onboard mikroBUS™ socket, providing real-time digital readings of the power consumption of added Click boards™. It supports high-speed I2C communication with configurable I2C addresses and operates at 3.3V and 5V logic levels, which makes it ideal for applications in power management, system diagnostics, and energy optimization in embedded systems.

[Learn More]