Wiznet makers

mark

Published March 06, 2026 ©

88 UCC

8 WCC

42 VAR

0 Contests

0 Followers

0 Following

Original Link

How to Build an Industrial IoT HTTP Service with MIoTKit and W5500 Ethernet?

his project explains the network architecture and source code structure of the .mkit-web HTTP service used in the MIoTKit ecosystem.

COMPONENTS
PROJECT DESCRIPTION

How to Build an Industrial IoT HTTP Service with MIoTKit and W5500 Ethernet?

Summary

EN
This project explains the network architecture and source code structure of the .mkit-web HTTP service used in the MIoTKit ecosystem. The system uses a WIZnet W5500 Ethernet controller to provide stable TCP/IP networking for an embedded device. Through the .mkit-web service, the device can expose HTTP APIs, enabling configuration, monitoring, and control from a browser or external applications in Industrial IoT deployments.

KR
이 프로젝트는 MIoTKit 생태계에서 사용되는 .mkit-web HTTP 서비스의 네트워크 아키텍처와 소스 코드 구조를 설명합니다. 시스템은 WIZnet W5500 이더넷 컨트롤러를 사용하여 임베디드 장치에 안정적인 TCP/IP 네트워크를 제공합니다. .mkit-web 서비스는 HTTP API를 제공하여 브라우저 또는 외부 애플리케이션에서 장치 설정, 모니터링, 제어를 수행할 수 있도록 합니다.


What the Project Does

EN

The video explains the internal structure of the .mkit-web HTTP service implementation used with MIoTKit.

This service enables an embedded IoT device to run a lightweight web server that allows users to interact with the device over a standard HTTP interface.

The system architecture can be divided into three layers.

Device Layer

Embedded MCU device

WIZnet W5500 Ethernet controller

MIoTKit firmware stack

.mkit-web HTTP service module

Network Layer

Wired Ethernet communication

TCP/IP networking handled by the W5500 hardware stack

Local network router or industrial gateway

Application Layer

HTTP-based web interface

Device configuration API

Status monitoring and control commands

Typical workflow:

The device initializes the W5500 Ethernet controller.

Network parameters (IP, gateway, subnet) are configured.

The .mkit-web module starts an embedded HTTP server.

A user accesses the device through a browser.

The device returns configuration pages or API responses.

This approach allows Industrial IoT devices to provide direct browser-based management without requiring dedicated software tools.


KR

영상에서는 MIoTKit에서 사용하는 .mkit-web HTTP 서비스 구현 구조를 설명합니다.

이 서비스는 임베디드 IoT 장치에서 경량 웹 서버를 실행하여 HTTP 인터페이스를 통해 장치를 제어할 수 있도록 합니다.

시스템 구조는 다음과 같이 구성됩니다.

Device Layer

MCU 기반 임베디드 장치

WIZnet W5500 이더넷 컨트롤러

MIoTKit 펌웨어 스택

.mkit-web HTTP 서비스 모듈

Network Layer

유선 Ethernet 통신

W5500 하드웨어 TCP/IP 스택

로컬 네트워크 라우터 또는 산업용 게이트웨이

Application Layer

HTTP 기반 웹 인터페이스

장치 설정 API

상태 모니터링 및 제어 명령

동작 과정:

장치가 W5500 이더넷 컨트롤러를 초기화합니다.

IP, Gateway, Subnet 등 네트워크 설정을 수행합니다.

.mkit-web 모듈이 임베디드 HTTP 서버를 실행합니다.

사용자가 브라우저에서 장치에 접속합니다.

장치는 설정 페이지 또는 API 응답을 반환합니다.

이 방식은 추가 프로그램 없이 웹 브라우저만으로 IoT 장치를 관리할 수 있는 장점이 있습니다.


Where WIZnet Fits

EN

The WIZnet W5500 Ethernet controller provides the networking infrastructure required for the HTTP service.

In this architecture, the W5500 performs several critical functions:

Hardware TCP/IP protocol handling

Stable wired Ethernet connectivity

TCP socket management for HTTP sessions

Offloading network processing from the MCU

Because the W5500 integrates a hardware TCP/IP offload engine, the embedded MCU does not need to implement a full software network stack.

This enables lightweight embedded systems to host web services without excessive CPU or memory usage.

For Industrial IoT devices deployed in factories or control systems, Ethernet provides more reliable connectivity than wireless solutions.


KR

WIZnet W5500 이더넷 컨트롤러는 HTTP 서비스가 동작하기 위한 네트워크 인프라를 제공합니다.

이 구조에서 W5500의 주요 역할:

TCP/IP 프로토콜 하드웨어 처리

안정적인 유선 Ethernet 연결 제공

HTTP 세션을 위한 TCP 소켓 관리

MCU의 네트워크 처리 부하 감소

W5500은 하드웨어 TCP/IP 오프로딩 엔진을 내장하고 있기 때문에 MCU에서 소프트웨어 네트워크 스택을 구현할 필요가 없습니다.

이 덕분에 비교적 리소스가 제한된 임베디드 시스템에서도 웹 서비스를 안정적으로 실행할 수 있습니다.

산업용 IoT 환경에서는 Wi-Fi보다 Ethernet 기반 네트워크가 더욱 안정적인 통신을 제공합니다.


Implementation Notes

The video explains the initialization flow for running the .mkit-web HTTP service on top of the W5500 network stack.

Conceptual integration example based on WIZnet ioLibrary

 
#include "wizchip_conf.h"

// Register SPI communication callbacks
reg_wizchip_spi_cbfunc(spi_read, spi_write);

// Configure socket buffer sizes
uint8_t txsize[8] = {2,2,2,2,2,2,2,2};
uint8_t rxsize[8] = {2,2,2,2,2,2,2,2};

wizchip_init(txsize, rxsize);

// Configure network information
wiz_NetInfo netinfo = {
    .mac = {0x00,0x08,0xDC,0x11,0x22,0x33},
    .dhcp = NETINFO_DHCP
};

// Apply configuration
wizchip_setnetinfo(&netinfo);
 

EN Explanation

After the W5500 network interface is initialized, the MIoTKit firmware starts the .mkit-web service. The HTTP server listens for incoming TCP connections and returns HTML pages or API responses.

KR 설명

W5500 네트워크 인터페이스 초기화 후 MIoTKit 펌웨어가 .mkit-web 서비스를 실행합니다. HTTP 서버는 TCP 연결 요청을 수신하고 HTML 페이지 또는 API 응답을 반환합니다.


Practical Tips / Pitfalls

EN

Verify SPI wiring between MCU and W5500.

Check Ethernet link status before starting the HTTP server.

Use static IP configuration for industrial networks.

Limit the number of simultaneous sockets to avoid resource exhaustion.

Implement session timeout handling for long-running HTTP connections.

KR

MCU와 W5500 사이 SPI 연결을 확인합니다.

HTTP 서버 실행 전에 Ethernet 링크 상태를 확인합니다.

산업용 네트워크에서는 고정 IP 설정을 권장합니다.

소켓 수 제한을 고려하여 동시 연결을 관리합니다.

장시간 연결을 위한 HTTP 세션 타임아웃 처리를 구현합니다.


FAQ

Q1: Why use W5500 for an embedded web server?

EN:
The W5500 provides hardware TCP/IP processing, allowing embedded systems with limited resources to host HTTP services efficiently.

KR:
W5500은 TCP/IP 처리를 하드웨어에서 수행하여 리소스가 제한된 임베디드 장치에서도 HTTP 서비스를 효율적으로 실행할 수 있습니다.


Q2: How does the W5500 connect to the MCU?

EN:
The W5500 communicates through an SPI interface using MOSI, MISO, SCK, and CS pins.

KR:
W5500은 MOSI, MISO, SCK, CS 핀을 사용하는 SPI 인터페이스로 MCU와 연결됩니다.


Q3: What role does W5500 play in the .mkit-web architecture?

EN:
It provides the Ethernet networking interface used by the HTTP server to handle TCP connections.

KR:
W5500은 HTTP 서버가 TCP 연결을 처리하기 위한 Ethernet 네트워크 인터페이스 역할을 합니다.


Q4: Can beginners implement this system?

EN:
Developers with basic embedded programming and networking knowledge should be able to implement it using MIoTKit and W5500 libraries.

KR:
기본적인 임베디드 프로그래밍과 네트워크 지식을 갖춘 개발자라면 MIoTKit과 W5500 라이브러리를 사용하여 구현할 수 있습니다.


Q5: Why use Ethernet instead of Wi-Fi in Industrial IoT?

EN:
Ethernet provides stable and deterministic communication, which is critical for industrial control and monitoring systems.

KR:
Ethernet은 안정적이고 예측 가능한 통신을 제공하므로 산업용 제어 및 모니터링 시스템에 적합합니다.


Source

Original Video
https://www.bilibili.com/video/BV1kESwYGEfo/


Tags

#W5500
#MIoTKit
#mkit-web
#IndustrialIoT
#EmbeddedWebServer
#EthernetIoT
#EmbeddedSystems
#HTTPServer

 
 
Documents
Comments Write