Wiznet makers

jaden

Published February 20, 2026 ©

107 UCC

18 WCC

57 VAR

0 Contests

0 Followers

0 Following

Original Link

Red Brick Ethernet Extension

Red Brick Ethernet Extension guide

COMPONENTS
PROJECT DESCRIPTION

 

How to Enable Ethernet on Tinkerforge RED Brick Using W5500?

Summary

Tinkerforge의 RED Brick은 Debian 기반 Linux를 실행하는 모듈형 임베디드 플랫폼이며, Ethernet Extension을 통해 유선 네트워크를 지원합니다. 이 Ethernet Extension에는 WIZnet W5500이 탑재되어 있으며, SPI 기반 이더넷 인터페이스를 제공합니다. RED Brick 환경에서는 TCP/IP 처리를 리눅스 커널 네트워크 스택이 담당하고, W5500은 MACRAW 기반 이더넷 컨트롤러로 동작합니다. 메이커는 복잡한 드라이버 구현 없이 안정적인 유선 네트워크를 사용할 수 있습니다.


What the Project Does

Tinkerforge는 Brick(프로세싱 모듈)과 Bricklet(I/O 확장 모듈)을 스택 구조로 결합해 빠르게 시스템을 구성할 수 있는 모듈형 하드웨어 플랫폼입니다. 사용자는 PCB를 직접 설계하지 않고도 센서, 액추에이터, 통신 모듈을 조합해 다양한 시스템을 구현할 수 있습니다.

 

그 중 RED Brick은 Linux(Debian)를 실행하는 고급 Brick으로, 일반적인 MCU 기반 모듈과는 다르게 다음과 같은 특징을 가집니다:

Python, C/C++ 애플리케이션 실행

로컬 데이터 처리 및 파일 시스템 활용

네트워크 기반 원격 제어

서버/클라이언트 소켓 프로그래밍 가능

RED Brick에서 유선 Ethernet을 사용하려면 Ethernet Extension이 필요하며, 이 확장 모듈에 WIZnet W5500이 탑재되어 있습니다.

공식 Linux 소스(red-brick-linux-sunxi)를 보면, W5500은 전용 드라이버를 통해 SPI 기반 이더넷 인터페이스로 동작하며, TCP/IP 처리는 Linux 커널 네트워크 스택이 수행합니다. 즉, RED Brick 구조에서는 W5500의 소켓 오프로딩 모드를 사용하는 것이 아니라, MACRAW 기반 네트워크 인터페이스로 사용됩니다.


Where WIZnet Fits

RED Brick + Ethernet Extension 구조에서 W5500은 SPI 기반 이더넷 MAC/PHY 인터페이스 역할을 수행합니다.

Git link

실제 구조 (Linux 드라이버 기반)

Architecture:

Application (Python / C on Linux)

Linux TCP/IP Stack (Kernel)

W5x00 MACRAW Driver

SPI

W5500

Ethernet PHY → RJ45

GitHub의 drivers/net/ethernet/wiznet/w5x00.c를 보면:

드라이버 설명이 MACRAW 기반으로 명시되어 있음

소켓을 MACRAW 모드로 열어 리눅스 네트워크 스택과 연결

일반 NIC처럼 동작

따라서 다음 문장이 더 정확합니다:

RED Brick에서는 TCP/IP를 W5500 하드웨어 소켓 엔진으로 처리하지 않고, Linux 커널 네트워크 스택에서 처리한다.

그럼에도 W5500이 의미 있는 이유

SPI 기반 안정적인 이더넷 인터페이스 제공

내부 32KB 버퍼로 프레임 처리

하드웨어 레벨 이더넷 컨트롤러로 설계 단순화

MCU 환경과 동일한 W5500 칩 사용 → 확장성 확보

메이커 입장에서는:

Wi-Fi 불안정성 없이 유선 네트워크 사용 가능

별도 PHY 설계 불필요

Linux 네트워크 도구(ifconfig, socket API 등) 그대로 사용 가능


Implementation Notes

RED Brick Linux 소스에는 W5500 전용 드라이버가 포함되어 있습니다.

예시 (개념 요약):

 
/* drivers/net/ethernet/wiznet/w5x00.c */ // MACRAW 모드로 소켓 오픈 ret = iinchip_open(sock, WSOCK_MACL_RAWM, 0, 0);

이 부분은 W5500을 하드웨어 TCP 소켓 엔진으로 사용하는 것이 아니라,
RAW Ethernet 프레임 인터페이스로 사용하는 구조임을 보여줍니다.

즉:

TCP 연결 관리 → Linux 커널

IP 처리 → Linux 커널

이더넷 프레임 송수신 → W5500

이 구조 덕분에 RED Brick 유저는 일반 Linux 서버처럼 소켓 프로그래밍을 하면 됩니다.


Practical Tips / Pitfalls

SPI 신호 무결성 확보 (배선 길이 최소화)

Linux 커널 네트워크 설정 확인 (ifconfig, ip addr)

MAC 주소 설정 충돌 주의

DHCP 사용 시 네트워크 환경 확인

고부하 환경에서는 SPI 대역폭 고려

100Mbps 이더넷이지만 SPI 병목 가능성 고려


FAQ

Q: RED Brick에서는 W5500의 하드웨어 TCP/IP 스택을 사용하나요?
A: 아니요. RED Brick Linux 드라이버에서는 MACRAW 모드로 사용되며, TCP/IP는 Linux 커널이 처리합니다.

Q: 그렇다면 왜 W5500을 사용하나요?
A: SPI 기반 이더넷 인터페이스를 간단하게 구현할 수 있고, 안정적인 유선 네트워크 환경을 제공하기 때문입니다.

Q: RED Brick과 W5500은 어떻게 연결되나요?
A: SPI 인터페이스로 연결되며, Linux 드라이버가 이를 네트워크 인터페이스로 등록합니다.

Q: 메이커도 쉽게 사용할 수 있나요?
A: 네. Linux 네트워크 환경과 동일하게 소켓 프로그래밍을 하면 되므로 비교적 접근성이 높습니다.

Q: MCU에서 W5500을 쓰는 방식과 무엇이 다른가요?
A: MCU 환경에서는 W5500의 하드웨어 TCP/IP 소켓 오프로딩을 사용하는 경우가 많지만, RED Brick Linux 환경에서는 커널 TCP/IP 스택을 사용합니다.


Source

Original Documentation:
https://www.tinkerforge.com/en/doc/Hardware/Bricks/RED_Brick.html#ethernet-extension

Linux Source Code:
https://github.com/Tinkerforge/red-brick-linux-sunxi

License: © Tinkerforge GmbH


Tags

#W5500
#Tinkerforge
#REDBrick
#EthernetExtension
#Maker
#EmbeddedLinux
#SPI
#LinuxNetwork

 

 

 

 

How to Enable Ethernet on Tinkerforge RED Brick Using W5500?

Summary

Tinkerforge’s RED Brick is a modular embedded platform running Debian-based Linux and supports wired networking through its Ethernet Extension. This extension integrates the WIZnet W5500, providing an SPI-based Ethernet interface. In the RED Brick architecture, TCP/IP processing is handled by the Linux kernel network stack, while the W5500 operates in MACRAW mode as an Ethernet controller. This allows makers to use stable wired networking without implementing low-level drivers or TCP/IP stacks themselves.


What the Project Does

Tinkerforge is a modular hardware ecosystem composed of Bricks (processing units) and Bricklets (I/O expansion modules). The stackable design allows users to rapidly prototype embedded systems without designing custom PCBs.

The RED Brick differs from typical microcontroller-based modules because it runs Linux (Debian). This enables:

Running Python and C/C++ applications directly on the device

Local data processing and file system usage

Remote access over network

Standard server/client socket programming

To enable wired Ethernet, the RED Brick uses an Ethernet Extension, which integrates the WIZnet W5500.

By examining the official Linux source repository (red-brick-linux-sunxi), we can see that the W5500 is used via a dedicated Linux driver over SPI. Importantly, TCP/IP is processed by the Linux kernel network stack. The W5500 is not used in hardware socket offload mode but instead operates in MACRAW mode as a network interface controller.


Where WIZnet Fits

In the RED Brick + Ethernet Extension architecture, the W5500 functions as an SPI-based Ethernet MAC/PHY interface.

Git link

Actual Architecture (Based on Linux Driver)

Architecture:

Application (Python / C on Linux)

Linux TCP/IP Stack (Kernel)

W5x00 MACRAW Driver

SPI

W5500

Ethernet PHY → RJ45

The Linux source (drivers/net/ethernet/wiznet/w5x00.c) shows:

The driver explicitly supports MACRAW mode

The socket is opened in MACRAW configuration

The W5500 behaves like a standard network interface

Therefore, the accurate statement is:

On RED Brick, TCP/IP is handled by the Linux kernel, not by the W5500 hardware socket engine.

Why W5500 Still Matters

Even without hardware TCP offloading, W5500 provides:

A stable SPI-based Ethernet interface

Integrated Ethernet controller with internal buffering (32 KB)

Simplified hardware design without external PHY integration

Reuse of a well-known Ethernet chip also used in MCU-based systems

For makers, this means:

Reliable wired networking without Wi-Fi interference

No need to design a custom Ethernet controller circuit

Full access to standard Linux networking tools (ifconfig, ip, socket APIs)


Implementation Notes

The RED Brick Linux source includes a dedicated W5500 driver.

Example (conceptual excerpt):

 
/* drivers/net/ethernet/wiznet/w5x00.c */ // Open socket in MACRAW mode ret = iinchip_open(sock, WSOCK_MACL_RAWM, 0, 0);

This confirms that the W5500 is used in RAW Ethernet frame mode rather than hardware TCP socket offload mode.

In this setup:

TCP connection management → Linux kernel

IP processing → Linux kernel

Ethernet frame transmission/reception → W5500

As a result, RED Brick developers can use standard Linux socket programming without interacting directly with low-level TCP/IP implementation details.


Practical Tips / Pitfalls

Ensure SPI signal integrity (short traces, proper grounding)

Verify network interface configuration using ip addr or ifconfig

Avoid MAC address conflicts on the same network

Check DHCP server behavior in local networks

Consider SPI bandwidth limits under heavy traffic

Although Ethernet is 100 Mbps, SPI throughput may become the bottleneck


FAQ

Q: Does RED Brick use the W5500 hardware TCP/IP stack?
A: No. In the RED Brick Linux implementation, the W5500 operates in MACRAW mode, and TCP/IP is handled by the Linux kernel.

Q: Why use W5500 if TCP is handled by Linux?
A: The W5500 provides a stable and compact SPI-based Ethernet controller, simplifying hardware design and enabling reliable wired networking.

Q: How is W5500 connected to RED Brick?
A: It is connected via SPI. The Linux driver registers it as a network interface.

Q: Is this suitable for makers?
A: Yes. Since it behaves like a standard Linux network interface, developers can use familiar socket programming without dealing with low-level networking details.

Q: How is this different from MCU-based W5500 usage?
A: In MCU environments, developers often use the W5500’s hardware TCP/IP socket offload. In RED Brick’s Linux environment, the Linux TCP/IP stack is used instead.


Source

Original Documentation:
https://www.tinkerforge.com/en/doc/Hardware/Bricks/RED_Brick.html#ethernet-extension

Linux Source Code:
https://github.com/Tinkerforge/red-brick-linux-sunxi

License: © Tinkerforge GmbH


Tags

#W5500
#Tinkerforge
#REDBrick
#EthernetExtension
#Maker
#EmbeddedLinux
#SPI
#LinuxNetwork

Documents
Comments Write