[Visit https://www.nuvoton.com/iot_startup for more IoT solutions]
CyCloneTCP, developed by Oryx Embedded, is an IPv4/IPv6 TCP/IP stack specifically designed for resource-constrained microcontrollers. The post provides detailed instructions on creating a demonstration using CyCloneTCP and FreeRTOS on NuMaker IoT boards. Although Oryx Embedded has not yet released a Modbus TCP demo for NuMaker IoT boards, we have undertaken the task of porting the demo to the NuMaker-IoT-M467 board.
To proceed, kindly refer to the post for downloading and extracting the CyCloneTCP Open Source Version. Subsequently, download and extract the attached zip file to the YOUR-CYCLONE_TCP-DIRECTORY\demo\nuvoton directory.
The two new demos can be located in the YOUR-CYCLONE_TCP-DIRECTORY\demo\nuvoton\numaker_iot_m467 directory:
- _modbus_client_demo
- _modbus_server_demo
- Includes #define GPL_LICENSE_TERMS_ACCEPTED in os_port_config.h, indicating acceptance of the GPL license for using the demo code.
- Disables DHCP and utilizes a fixed IP address (192.168.0.20) for client and fixed IP address (192.168.0.100) for server.
For those preferring DHCP for IP address allocation, locate #define APP_USE_DHCP_CLIENT in main.c and set it to ENABLE. Additionally, modify the server address in the client demo by finding #define APP_MODBUS_SERVER_NAME in main.c to ensure successful client-server connectivity.
Enjoy it.
![Wink ;)](./images/smilies/icon_e_wink.gif)