Skip to content

Why Did a Four-Interface RFID Reader Put a W5500 on Its Only Wired Port?

A UHF RFID meat traceability reader with LoRa, RS485, USB and Ethernet. The authors picked the W5500 for a firmware reason: less code, less flash.

jaden

Published December 03, 2026 · © Creative Commons Attribution CC BY version 4.0 or later (CC BY 4+)

Original author: Jiping Qiao, Minghui Hao & Meicen Guo, Taiyuan University of TechnologyOriginal source (new tab)

Why Did a Four-Interface RFID Reader Put a W5500 on Its Only Wired Port?

Components

Hardware components

WIZnet parts

Project description

01 — What is this project?

Meat traceability is not one engineering problem. It is four, and they happen in four different buildings.

On the farm an animal wears a UHF RFID ear tag and a handheld reader walks between pens. At the slaughterhouse the ear tag ID has to be transferred onto a paper EPC tag that follows the carcass. In the logistics chain a reader logs transfer events and transit temperature from a moving truck. At the point of sale the RFID tag becomes a QR code a shopper can scan with a phone.

A reader that only speaks one protocol can serve exactly one of those stages. This project — from the College of Electrical & Power Engineering at Taiyuan University of Technology — builds a single UHF RFID reader that carries four independent communication interfaces and can therefore be deployed at any point in the chain:

InterfacePartRole in the chain
RJ45 EthernetWIZnet W5500Fixed installations: continuous upload to the local and central database
LoRa (410–441 MHz)SX1278Circulation link — "a moderate amount of data as well as a closer read-write distance"
RS485SP3485 half-duplexOne-to-many wiring, device addresses carried in the data frames
USB serialCH340GBench use: firmware download, debugging, LabVIEW VISA configuration of frequency and gain

Behind the reader sits a LabVIEW 2014 platform with a MySQL traceability database, split into farm, slaughter, logistics and sales modules, feeding both consumers and government authorities.

This write-up focuses on one question the paper answers unusually explicitly: of the four, why is the wired one a W5500?


02 — Why hardware TCP/IP on an STM32F103?

🔷 Reason 1 — The MCU was chosen to be small, and that decision cascades

The reader runs an STM32F103RET6 (Cortex-M3). The paper's stated reason for picking it is "a lower-cost platform... fewer pins, and lower system power consumption."

Having chosen a part for low cost, few pins and low power, you do not then spend its flash and RAM on a TCP/IP stack. The MCU in this design is already busy: it drives a MagicRF M100 transceiver, manages an RFPA0133410 power amplifier at up to 26 dBm, runs the EPC Gen2 anti-collision Q-algorithm, and services three other communication interfaces. The network stack is the one piece of that workload that can be bought as silicon.

🔷 Reason 2 — The paper's own argument: less code, less flash

This is the part worth reading twice, because it is rare for a published paper to state the firmware-footprint case for a hardwired stack in plain language. The authors write that they chose the W5500 "by comparing hardware and the TCP/IP protocol stack", and that the chip "has advantages such as high performance and value for money."

Then they give the consequence:

using the W5500 chip for communication in microcontroller software development leads to less code — and less flash storage space required on the microcontroller.

That is the whole hardwired-TCP/IP value proposition, written by a team that was optimizing for cost and pin count rather than for networking elegance. They did not need an argument about throughput. They needed the stack to not be in their flash budget.

🔷 Reason 3 — Four interfaces, one MCU, no interference

Each of the four links has to work without starving the others or the RF timing. A software stack competing for the same timers and buffers as the EPC Gen2 inventory round is a reliability hazard in a device whose job is reading tags at 5 m. A hardware engine with its own buffer memory removes that contention by construction.

🔷 Where the W5500 sits in the WIZnet line

The W5500 documentation lists what the authors were buying: "Supports 8 independent sockets simultaneously", "Internal 32Kbytes Memory for Tx/Rx Buffers", "Supports High Speed Serial Peripheral Interface(SPI MODE 0, 3)" at up to 80 MHz, "Supports following Hardwired TCP/IP Protocols : TCP, UDP, ICMP, IPv4, ARP, IGMP, PPPoE", "10BaseT/100BaseTX Ethernet PHY embedded", and "48 Pin LQFP Lead-Free Package (7x7mm, 0.5mm pitch)".

The paper's own description — "packaged in a 48-pin LQFP lead-free package" — matches that datasheet line exactly, which is a small but useful confirmation that the authors were working from the real part rather than a generic module.

Against the rest of the family, the W5500 is the natural pick here: the host is an MCU with a spare SPI peripheral and a tight pin budget, so the SPI-interface part is right (the parallel-bus W5300 would cost 8–16 pins this board does not have), and 8 sockets with 32 KB of buffer is comfortable headroom over the single upload channel the reader actually needs.


03 — System architecture

   ┌──────────────── UHF RF front end (840–960 MHz, tested at 920.125 MHz) ────────────────┐
   │                                                                                        │
   │  Alien Higgs-3 tags          Antenna                                                   │
   │  (EPC Gen2, 96-bit EPC,         │      ┌──────────────────────┐                        │
   │   800-bit memory)               ├──────│ DC0710J5020AHF       │                        │
   │                                 │      │ directional coupler  │                        │
   │                                 │      └──────────┬───────────┘                        │
   │                                 │      ┌──────────▼───────────┐  ┌──────────────────┐  │
   │                                 └──────│ RFPA0133410 PA       │──│ MagicRF M100     │  │
   │                                        │ ~32 dB gain          │  │ QFN-32           │  │
   │                                        │ max 26 dBm, 1.5 dB   │  │ UHF transceiver  │  │
   │                                        │ steps                │  └────────┬─────────┘  │
   │                                        └──────────────────────┘           │            │
   └────────────────────────────────────────────────────────────────────────────┼────────────┘
                                                                                │
                        ┌───────────────────────────────────────────────────────▼─────────┐
                        │             STM32F103RET6  (Cortex-M3)                          │
                        │   EPC Gen2 Q-algorithm anti-collision · power/gain control       │
                        └──┬──────────────┬──────────────┬───────────────┬────────────────┘
                           │ SPI          │              │               │
              ┌────────────▼───────┐ ┌────▼────────┐ ┌───▼─────────┐ ┌──▼──────────────┐
              │ WIZnet W5500       │ │ SX1278 LoRa │ │ SP3485      │ │ CH340G          │
              │ 8 sockets, 32 KB   │ │ 410–441 MHz │ │ RS485       │ │ USB serial      │
              │ TOE TCP/IP         │ │             │ │ half-duplex │ │ LabVIEW VISA    │
              │ → RJ45             │ │             │ │ 120 Ω term. │ │ firmware/debug  │
              └────────────┬───────┘ └─────────────┘ └─────────────┘ └─────────────────┘
                           │ 10/100 Ethernet
              ┌────────────▼────────────────────────────────────────────────┐
              │  Local database  ──Internet──▶  Central platform database   │
              │  LabVIEW 2014 + MySQL                                       │
              │  modules: user mgmt · farm · slaughter · logistics · sales   │
              │        ──▶ consumers (QR / barcode)  ──▶ authorities         │
              └─────────────────────────────────────────────────────────────┘

   Power: 12 V adapter → MP2359 buck → 5 V (max 1.2 A) → AMS117 → 3.3 V

04 — Why the W5500? ⭐

🔷 The technical core: the stack is a purchased component, not a firmware project

The reader's firmware budget is spent on radio, not networking. The M100 transceiver needs register-level control; the PA needs 1.5 dB-step gain management; the EPC Gen2 inventory round needs the Q-algorithm with its frame-length adaptation. Adding LwIP to an STM32F103 would mean that stack and the RF state machine share flash, RAM and interrupt latency.

The W5500 ends that argument by holding TCP, UDP, ICMP, IPv4, ARP, IGMP and PPPoE in silicon, with 32 KB of its own buffer. The authors state the outcome directly — less code, less flash — and that is exactly the metric a cost-and-pin-constrained design cares about.

🔷 Socket mode used — TOE TCP

The reader's Ethernet job is a persistent upload path: readings go "to the local database and sent to the central platform database via the Internet." Traceability records cannot tolerate silent loss or reordering — a missing slaughter event breaks the chain for that carcass — so this is TOE TCP (Sn_MR_TCP) territory, with the reader acting as a client against the database host.

The paper does not name the application-layer protocol above TCP, and it does not state the host bus; it shows only the Ethernet driver circuit as a figure. What can be said from the part itself is that the W5500 is an SPI-interface device (SPI MODE 0/3, up to 80 MHz), so the link to the STM32F103 is an SPI one. Of the 8 available hardware sockets the reader needs very few, leaving the design room to add a second endpoint — a government reporting channel alongside the private database, say — without touching the MCU firmware's memory footprint.

IPRAW / MACRAW are not used. This is an industrial data uplink, not a packet tool.

🔷 Why Ethernet at all, when the reader already has LoRa?

Because the four links are not alternatives — they are assignments. The paper assigns LoRa to the circulation stage specifically for "a moderate amount of data as well as a closer read-write distance." That is a deliberate scoping statement: LoRa is for intermittent, low-volume, mobile reads.

A fixed reader at a slaughterhouse line or a packing station is the opposite case — mains powered, permanently installed, high duty cycle, feeding a database that regulators may audit. There it wants a stable IP address, full bandwidth, and a transport that guarantees delivery. RS485 covers multi-drop wiring within one facility; Ethernet covers getting out of the facility.

🔷 Verified evidence ✅

ClaimEvidence from the paper
W5500 chosen deliberately"chooses the more advantageous W5500 chip as the driver chip for RJ45 network port communication", "by comparing hardware and the TCP/IP protocol stack"
Firmware benefit"leads to less code", "less flash storage space required on the microcontroller"
Package"packaged in a 48-pin LQFP lead-free package" — matches the W5500 datasheet exactly
Host MCUSTM32F103RET6, chosen for "lower-cost platform... fewer pins, and lower system power consumption"
RF performanceMax RF output 26 dBm, adjustable in 1.5 dB steps; PA gain ~32 dB
Read range"the maximum recognition distance can reach 5 m to meet the actual demand"
Multi-tag behaviour"the system throughput rate can reach 36.7%"; recognition rate peaks "when the number of tags n is about the frame length"
Signal qualityRSSI stays between −40 dBm and −70 dBm when recognizing multiple tags
BandUHF 840–960 MHz, tested at 920.125 MHz; Alien Higgs-3 EPC Gen2 tags
DeploymentPlatform tested at a small farm, with coding schemes for pigs, cattle and sheep

05 — Key components

🌐 WIZnet W5500 — TOE TCP over SPI

8 independent hardware sockets, 32 KB internal TX/RX buffer, SPI MODE 0/3 up to 80 MHz, 10/100 PHY embedded, 48-pin LQFP 7×7 mm. Carries the reader's database uplink with the entire TCP/IP stack off the MCU — the authors' stated payoff being less firmware code and less flash consumed.

🧠 STM32F103RET6

Cortex-M3 host. Selected for cost, pin count and power. Runs RF control, the EPC Gen2 Q-algorithm anti-collision round, and all four communication interfaces.

📻 MagicRF M100 + RFPA0133410

UHF RFID transceiver in QFN-32 — the paper calls it "the smallest package size of any modern international RF chip" — paired with a ~32 dB power amplifier for up to 26 dBm output in 1.5 dB steps. A DC0710J5020AHF directional coupler, balanced/unbalanced converters and filters complete the front end.

📡 SX1278 LoRa, SP3485 RS485, CH340G USB

The other three interfaces. LoRa at 410–441 MHz for the mobile circulation stage; RS485 half-duplex with 120 Ω termination and per-device addressing for intra-facility multi-drop; CH340G for USB power, firmware download, debugging, and LabVIEW VISA configuration of frequency and gain.

🏷️ Alien Higgs-3 tags

EPC Gen2, 96-bit EPC code, 800-bit memory. Livestock ear tags on the farm, converted to paper EPC tags at slaughter, converted again to QR or barcode at retail.

🗄️ LabVIEW 2014 + MySQL platform

Five modules — user management, farm, slaughter, logistics, sales. Local database per site, replicated to a central platform database over the Internet, queried by consumers and government authorities.

⚡ Power train

12 V adapter → MP2359 buck converter to 5 V (max 1.2 A) → AMS117 regulator to 3.3 V.


06 — Application scenarios

01. Fixed-station traceability capture

Slaughterhouse lines, packing stations, cold-store doors. Mains power, permanent install, and an Ethernet uplink that a regulator can audit. This is the W5500's stage of the chain.

02. Multi-reader facility on one cable run

RS485 handles the one-to-many wiring inside a building with device addresses in the frame; one gateway node carries the facility's data out over Ethernet. Cheap to wire, single point of network configuration.

03. Mobile and in-transit reads

LoRa for the circulation stage — trucks, yards, pens — where data volume is modest and the reader moves. The same hardware, a different interface populated.

04. Consumer-facing provenance

The last hop converts RFID to a QR code on the package, so a shopper queries the same MySQL records that the farm wrote. The value of the whole chain depends on every upstream stage actually having uploaded — which is why the fixed stages use a transport that guarantees delivery.


Conclusion

A four-interface RFID reader shows what hardwired TCP/IP is actually bought for: not throughput, but firmware footprint. The authors picked the W5500 and said so plainly — less code, less flash.

  • ✅ W5500 selected by explicit comparison of "hardware and the TCP/IP protocol stack", not by default
  • ✅ Stated benefit is a firmware benefit: "less code" and "less flash storage space required on the microcontroller" — the clearest published statement of the hardwired-stack case for a cost-constrained MCU design
  • ✅ 8 hardware sockets and 32 KB of buffer entirely outside the STM32F103's memory budget
  • ✅ Four interfaces mapped to four supply-chain stages — Ethernet for fixed audited stations, LoRa for mobile, RS485 for in-facility multi-drop, USB for bench
  • ✅ 26 dBm max RF output in 1.5 dB steps, 5 m read range, 36.7% system throughput rate, RSSI −40 to −70 dBm on multi-tag reads
  • ✅ Complete chain implemented — farm ear tag → slaughter EPC tag → logistics log with transit temperature → retail QR code, over LabVIEW 2014 + MySQL
  • ✅ Package stated in the paper (48-pin LQFP) matches the W5500 datasheet exactly

Q&A

Q. Which W5500 socket mode does this use? A. TOE TCP (Sn_MR_TCP), as a client uploading to the local and central databases. Traceability records cannot tolerate silent loss, so TCP's guarantees are the point. The paper does not name the application-layer protocol above it.

Q. How is the W5500 wired to the STM32? A. The paper shows only the Ethernet driver circuit as a figure and does not state the bus. The W5500 itself is an SPI-only part (SPI MODE 0/3, up to 80 MHz), so the connection is SPI. This is worth flagging as a chip fact rather than a paper claim.

Q. Why not the parallel-bus W5300, or a Wi-Fi module? A. Pin budget and role. The MCU was explicitly chosen for "fewer pins"; a parallel-bus part would consume 8–16 of them. And the Ethernet interface exists precisely for the fixed, mains-powered, permanently-installed stages — a Wi-Fi link would reintroduce the reconnection and credential problems that the LoRa interface already covers for the mobile case.

Q. Does the paper benchmark the W5500 against alternatives? A. No. It states that the choice followed from comparing hardware and TCP/IP stack support, and reports the consequence qualitatively (less code, less flash), but it names no competing chip and gives no figures. The quantitative results in the paper are RF results — range, throughput rate, RSSI.

Q. Are design files available? A. No. The Data Availability Statement reads "Not applicable." Schematics appear only as figures; there is no BOM file, no board source, and no firmware release. Reproducing this means redrawing from the paper.

Q. What is the 36.7% throughput rate? A. It is an EPC Gen2 anti-collision figure, not a network figure. In a Q-algorithm inventory round, throughput peaks when the number of tags in the field is close to the frame length — the classic framed-slotted-ALOHA result. It describes the air interface, not the Ethernet link.


한국어 버전

통신 인터페이스 4개를 가진 육류 이력추적 리더기 — 그리고 이더넷 포트에 W5500이 들어간 이유

#W5500 #TOE #TCP #UHF-RFID #STM32F103 #이력추적 #LoRa #RS485 #식품안전 #EPCGen2

📚 맥락: 심사를 거친 계측 논문, Sensors (MDPI) 2023 — 타이위안이공대학 검증 상태: 칩 선정 이유·패키지·근거가 논문 본문에 명시. 단 설계 파일은 비공개


01 — 어떤 프로젝트인가

육류 이력추적은 하나의 공학 문제가 아닙니다. 네 개이고, 서로 다른 건물에서 일어납니다.

농장에서는 가축이 UHF RFID 귀표를 달고 있고 휴대형 리더기가 축사 사이를 돌아다닙니다. 도축장에서는 귀표 ID를 도체를 따라가는 종이 EPC 태그로 옮겨야 합니다. 물류 단계에서는 움직이는 트럭에서 리더기가 이송 이력과 운송 중 온도를 기록합니다. 판매 지점에서는 RFID 태그가 소비자가 휴대폰으로 찍는 QR 코드로 바뀝니다.

프로토콜 하나만 말하는 리더기는 이 중 정확히 한 단계만 담당할 수 있습니다. 타이위안이공대학 전기전력공학부의 이 프로젝트는 독립된 통신 인터페이스 4개를 탑재한 단일 UHF RFID 리더기를 만들어, 체인의 어느 지점에든 배치할 수 있게 했습니다.

인터페이스부품체인에서의 역할
RJ45 이더넷WIZnet W5500고정 설치: 로컬·중앙 데이터베이스로 상시 업로드
LoRa (410~441 MHz)SX1278유통 단계 — "중간 정도의 데이터량과 비교적 가까운 읽기·쓰기 거리"
RS485SP3485 반이중일대다 배선, 데이터 프레임에 장치 주소 포함
USB 시리얼CH340G작업대 용도: 펌웨어 다운로드, 디버깅, LabVIEW VISA로 주파수·게인 설정

리더기 뒤에는 LabVIEW 2014 플랫폼과 MySQL 이력추적 데이터베이스가 있고, 사용자 관리·농장·도축·물류·판매 모듈로 나뉘어 소비자와 정부 당국 양쪽에 공급됩니다.

이 글은 논문이 이례적으로 명확하게 답해주는 한 가지 질문에 집중합니다. 넷 중 유선이 왜 W5500인가?


02 — STM32F103에 왜 하드웨어 TCP/IP인가

🔷 이유 1 — MCU를 작게 고른 결정이 연쇄된다

리더기는 STM32F103RET6(Cortex-M3)를 씁니다. 논문이 밝힌 선정 이유는 "더 낮은 비용의 플랫폼… 더 적은 핀 수, 더 낮은 시스템 전력 소모" 입니다.

저비용·소핀·저전력을 이유로 부품을 골랐다면, 그 플래시와 RAM을 TCP/IP 스택에 쓰지 않습니다. 이 설계의 MCU는 이미 바쁩니다 — MagicRF M100 트랜시버를 구동하고, RFPA0133410 전력증폭기를 최대 26 dBm까지 관리하고, EPC Gen2 충돌방지 Q-알고리즘을 돌리고, 나머지 통신 인터페이스 3개를 서비스합니다. 그 작업량 중 실리콘으로 사올 수 있는 유일한 조각이 네트워크 스택입니다.

🔷 이유 2 — 논문 자신의 논거: 코드가 줄고 플래시가 줄어든다

두 번 읽을 만한 부분입니다. 발표된 논문이 하드와이어드 스택의 펌웨어 용량 논거를 평범한 문장으로 적어두는 일은 드물기 때문입니다. 저자들은 "하드웨어와 TCP/IP 프로토콜 스택을 비교하여" W5500을 골랐다고 쓰고, 이 칩이 "고성능과 가격 대비 가치 같은 이점을 가진다"고 적습니다.

그리고 결과를 제시합니다.

마이크로컨트롤러 소프트웨어 개발에서 통신에 W5500 칩을 쓰면 코드가 줄어들고 — 마이크로컨트롤러에 요구되는 플래시 저장 공간도 줄어든다.

이것이 하드와이어드 TCP/IP의 가치 제안 전체이고, 네트워킹의 우아함이 아니라 비용과 핀 수를 최적화하던 팀이 써놓은 것입니다. 이들에게 처리량에 관한 논거는 필요하지 않았습니다. 스택이 자신들의 플래시 예산에 없기만 하면 됐습니다.

🔷 이유 3 — 인터페이스 4개, MCU 1개, 간섭 없음

네 링크 각각이 서로를 굶기지 않고 RF 타이밍도 건드리지 않으면서 동작해야 합니다. EPC Gen2 인벤토리 라운드와 같은 타이머·버퍼를 두고 경쟁하는 소프트웨어 스택은, 5 m 거리에서 태그를 읽는 것이 본업인 장비에서 신뢰성 위험입니다. 자기 버퍼 메모리를 가진 하드웨어 엔진은 그 경합을 설계상 없애버립니다.

🔷 제품군 안에서 W5500의 자리

W5500 문서가 저자들이 산 것을 열거합니다 — "Supports 8 independent sockets simultaneously", "Internal 32Kbytes Memory for Tx/Rx Buffers", 최대 80 MHz의 "Supports High Speed Serial Peripheral Interface(SPI MODE 0, 3)", "Supports following Hardwired TCP/IP Protocols : TCP, UDP, ICMP, IPv4, ARP, IGMP, PPPoE", "10BaseT/100BaseTX Ethernet PHY embedded", "48 Pin LQFP Lead-Free Package (7x7mm, 0.5mm pitch)".

논문 자신의 서술 — "48핀 LQFP 무연 패키지로 패키징" — 이 데이터시트 항목과 정확히 일치합니다. 작지만 저자들이 범용 모듈이 아니라 실제 부품을 보고 작업했다는 유용한 확인입니다.

제품군 내에서 보면 여기서 W5500은 자연스러운 선택입니다. 호스트가 여유 SPI 페리페럴을 가졌고 핀 예산이 빡빡한 MCU이므로 SPI 인터페이스 부품이 맞고(병렬 버스인 W5300은 이 보드에 없는 핀 8~16개를 요구합니다), 리더기가 실제로 필요한 업로드 채널 하나에 비해 소켓 8개와 버퍼 32 KB는 넉넉한 여유입니다.


03 — 시스템 구조

   ┌──────────── UHF RF 프론트엔드 (840~960 MHz, 920.125 MHz에서 시험) ──────────────┐
   │                                                                                  │
   │  Alien Higgs-3 태그          안테나                                              │
   │  (EPC Gen2, 96비트 EPC,         │      ┌──────────────────────┐                  │
   │   800비트 메모리)               ├──────│ DC0710J5020AHF       │                  │
   │                                 │      │ 방향성 결합기         │                  │
   │                                 │      └──────────┬───────────┘                  │
   │                                 │      ┌──────────▼───────────┐  ┌─────────────┐ │
   │                                 └──────│ RFPA0133410 PA       │──│ MagicRF M100│ │
   │                                        │ 게인 약 32 dB        │  │ QFN-32      │ │
   │                                        │ 최대 26 dBm,         │  │ UHF 트랜시버 │ │
   │                                        │ 1.5 dB 스텝          │  └──────┬──────┘ │
   │                                        └──────────────────────┘         │        │
   └─────────────────────────────────────────────────────────────────────────┼────────┘
                                                                             │
                        ┌────────────────────────────────────────────────────▼────────┐
                        │             STM32F103RET6  (Cortex-M3)                      │
                        │   EPC Gen2 Q-알고리즘 충돌방지 · 출력/게인 제어              │
                        └──┬──────────────┬──────────────┬───────────────┬───────────┘
                           │ SPI          │              │               │
              ┌────────────▼───────┐ ┌────▼────────┐ ┌───▼─────────┐ ┌──▼──────────────┐
              │ WIZnet W5500       │ │ SX1278 LoRa │ │ SP3485      │ │ CH340G          │
              │ 소켓 8개, 32 KB    │ │ 410~441 MHz │ │ RS485       │ │ USB 시리얼       │
              │ TOE TCP/IP         │ │             │ │ 반이중      │ │ LabVIEW VISA    │
              │ → RJ45             │ │             │ │ 120 Ω 종단  │ │ 펌웨어/디버그    │
              └────────────┬───────┘ └─────────────┘ └─────────────┘ └─────────────────┘
                           │ 10/100 이더넷
              ┌────────────▼────────────────────────────────────────────────┐
              │  로컬 DB  ──인터넷──▶  중앙 플랫폼 DB                        │
              │  LabVIEW 2014 + MySQL                                       │
              │  모듈: 사용자관리 · 농장 · 도축 · 물류 · 판매                │
              │        ──▶ 소비자 (QR / 바코드)  ──▶ 정부 당국               │
              └─────────────────────────────────────────────────────────────┘

   전원: 12 V 어댑터 → MP2359 벅 → 5 V (최대 1.2 A) → AMS117 → 3.3 V

04 — 왜 W5500이어야 했는가 ⭐

🔷 기술적 핵심: 스택이 펌웨어 프로젝트가 아니라 구매 부품이다

리더기의 펌웨어 예산은 네트워킹이 아니라 무선에 쓰입니다. M100 트랜시버는 레지스터 수준 제어가 필요하고, PA는 1.5 dB 스텝 게인 관리가 필요하고, EPC Gen2 인벤토리 라운드는 프레임 길이 적응을 포함한 Q-알고리즘이 필요합니다. STM32F103에 LwIP를 얹는다는 건 그 스택과 RF 상태기계가 플래시·RAM·인터럽트 지연을 공유한다는 뜻입니다.

W5500은 TCP·UDP·ICMP·IPv4·ARP·IGMP·PPPoE를 자기 버퍼 32 KB와 함께 실리콘에 들고 있음으로써 그 논쟁을 끝냅니다. 저자들은 결과를 직접 적습니다 — 코드가 줄고 플래시가 줄어든다 — 그리고 그것이 비용·핀 제약 설계가 신경 쓰는 바로 그 지표입니다.

🔷 사용 소켓 모드 — TOE TCP

리더기의 이더넷 임무는 상시 업로드 경로입니다. 측정값이 "로컬 데이터베이스에 업로드되고 인터넷을 통해 중앙 플랫폼 데이터베이스로 전송" 됩니다. 이력추적 기록은 조용한 손실이나 순서 역전을 감당할 수 없습니다 — 도축 이벤트 하나가 빠지면 그 도체의 체인이 끊어집니다 — 그래서 이것은 TOE TCP (Sn_MR_TCP) 영역이고, 리더기가 데이터베이스 호스트에 대해 클라이언트로 동작합니다.

논문은 TCP 위의 응용 계층 프로토콜을 밝히지 않고, 호스트 버스도 명시하지 않습니다. 이더넷 드라이버 회로를 그림으로만 보여줍니다. 부품 자체로부터 말할 수 있는 것은 W5500이 SPI 인터페이스 장치(SPI MODE 0/3, 최대 80 MHz)라는 점이고, 따라서 STM32F103과의 연결은 SPI입니다. 가용 하드웨어 소켓 8개 중 리더기가 쓰는 것은 아주 적어서, MCU 펌웨어의 메모리 사용량을 건드리지 않고 엔드포인트를 하나 더 — 가령 사설 DB와 나란히 정부 보고 채널을 — 추가할 여유가 설계에 남아 있습니다.

IPRAW / MACRAW는 사용하지 않습니다. 이것은 산업용 데이터 업링크이고 패킷 도구가 아닙니다.

🔷 LoRa가 이미 있는데 왜 이더넷인가

네 링크가 대안이 아니라 배치이기 때문입니다. 논문은 LoRa를 유통 단계에 배정하는데, 그 이유를 "중간 정도의 데이터량과 비교적 가까운 읽기·쓰기 거리" 라고 명시합니다. 의도적인 범위 설정입니다 — LoRa는 간헐적이고 저용량이고 이동하는 읽기용입니다.

도축 라인이나 포장 스테이션의 고정 리더기는 정반대 경우입니다 — 상용 전원, 상설 설치, 높은 가동률, 그리고 규제기관이 감사할 수 있는 데이터베이스로의 공급. 거기서는 안정된 IP 주소, 충분한 대역폭, 전달을 보장하는 전송이 필요합니다. RS485는 한 시설 내부의 멀티드롭 배선을 담당하고, 이더넷은 시설 밖으로 나가는 일을 담당합니다.

🔷 검증된 증거 ✅

주장논문의 근거
W5500을 의도적으로 선정"RJ45 네트워크 포트 통신의 드라이버 칩으로 더 유리한 W5500 칩을 선택", "하드웨어와 TCP/IP 프로토콜 스택을 비교하여"
펌웨어 이득"코드가 줄어든다", "마이크로컨트롤러에 요구되는 플래시 저장 공간이 줄어든다"
패키지"48핀 LQFP 무연 패키지" — W5500 데이터시트와 정확히 일치
호스트 MCUSTM32F103RET6, "더 낮은 비용 플랫폼… 더 적은 핀 수, 더 낮은 시스템 전력 소모" 이유로 선정
RF 성능최대 RF 출력 26 dBm, 1.5 dB 스텝 조정, PA 게인 약 32 dB
인식 거리"최대 인식 거리가 5 m에 도달해 실제 수요를 충족"
다중 태그 거동"시스템 처리율이 36.7%에 도달", 인식률은 "태그 수 n이 프레임 길이와 비슷할 때" 최대
신호 품질다중 태그 인식 시 RSSI가 −40 dBm ~ −70 dBm 구간 유지
대역UHF 840~960 MHz, 920.125 MHz에서 시험. Alien Higgs-3 EPC Gen2 태그
적용소규모 농장에서 플랫폼 시험, 돼지·소·양 코딩 체계 포함

05 — 핵심 구성요소

🌐 WIZnet W5500 — SPI로 붙는 TOE TCP

독립 하드웨어 소켓 8개, 내부 TX/RX 버퍼 32 KB, SPI MODE 0/3 최대 80 MHz, 10/100 PHY 내장, 48핀 LQFP 7×7 mm. 리더기의 DB 업링크를 담당하며 TCP/IP 스택 전체를 MCU에서 내립니다. 저자들이 밝힌 대가는 펌웨어 코드 감소와 플래시 절감입니다.

🧠 STM32F103RET6

Cortex-M3 호스트. 비용·핀 수·전력을 이유로 선정. RF 제어, EPC Gen2 Q-알고리즘 충돌방지 라운드, 통신 인터페이스 4개 전부를 담당합니다.

📻 MagicRF M100 + RFPA0133410

QFN-32 UHF RFID 트랜시버 — 논문은 이를 "현대 국제 RF 칩 중 가장 작은 패키지" 라고 서술 — 에 약 32 dB 전력증폭기를 붙여 1.5 dB 스텝으로 최대 26 dBm 출력. DC0710J5020AHF 방향성 결합기, 밸런스/언밸런스 변환기, 필터가 프론트엔드를 완성합니다.

📡 SX1278 LoRa, SP3485 RS485, CH340G USB

나머지 세 인터페이스. 이동형 유통 단계용 LoRa 410~441 MHz, 시설 내 멀티드롭용 120 Ω 종단·장치별 주소 RS485 반이중, USB 전원·펌웨어 다운로드·디버깅·LabVIEW VISA 주파수·게인 설정용 CH340G.

🏷️ Alien Higgs-3 태그

EPC Gen2, 96비트 EPC 코드, 800비트 메모리. 농장에서 가축 귀표, 도축 시 종이 EPC 태그로 전환, 소매에서 다시 QR 또는 바코드로 전환.

🗄️ LabVIEW 2014 + MySQL 플랫폼

모듈 5개 — 사용자 관리·농장·도축·물류·판매. 사이트별 로컬 DB를 인터넷으로 중앙 플랫폼 DB에 복제하고, 소비자와 정부 당국이 조회합니다.

⚡ 전원부

12 V 어댑터 → MP2359 벅 컨버터로 5 V(최대 1.2 A) → AMS117 레귤레이터로 3.3 V.


06 — 응용 시나리오

01. 고정 스테이션 이력 수집

도축 라인, 포장 스테이션, 저온창고 출입구. 상용 전원, 상설 설치, 그리고 규제기관이 감사할 수 있는 이더넷 업링크. 체인에서 W5500의 단계입니다.

02. 케이블 한 줄에 리더기 여러 대

RS485가 프레임에 장치 주소를 담아 건물 내부 일대다 배선을 처리하고, 게이트웨이 노드 하나가 시설의 데이터를 이더넷으로 밖으로 내보냅니다. 배선이 싸고 네트워크 설정 지점이 하나입니다.

03. 이동·운송 중 읽기

유통 단계에는 LoRa — 트럭, 야드, 축사 — 데이터량이 적고 리더기가 움직이는 곳. 같은 하드웨어, 다른 인터페이스를 채운 것입니다.

04. 소비자 대면 원산지 조회

마지막 구간이 RFID를 포장 위 QR 코드로 바꾸고, 소비자는 농장이 기록한 바로 그 MySQL 레코드를 조회합니다. 체인 전체의 가치는 상류 모든 단계가 실제로 업로드했는지에 달려 있고, 그래서 고정 단계가 전달을 보장하는 전송을 쓰는 것입니다.


Conclusion

인터페이스 4개짜리 RFID 리더기가 하드와이어드 TCP/IP를 실제로 무엇 때문에 사는지 보여줍니다 — 처리량이 아니라 펌웨어 용량입니다. 저자들은 W5500을 골랐고 그 이유를 평범하게 적었습니다. 코드가 줄고 플래시가 줄어든다고.

  • ✅ "하드웨어와 TCP/IP 프로토콜 스택을 비교하여" W5500을 명시적으로 선정 — 관성이 아님
  • ✅ 명시된 이득이 펌웨어 이득: "코드가 줄어든다", "플래시 저장 공간이 줄어든다" — 비용 제약 MCU 설계에서 하드와이어드 스택 논거를 가장 명확히 발표한 문장
  • ✅ 하드웨어 소켓 8개와 버퍼 32 KB가 STM32F103의 메모리 예산 완전히 바깥에
  • ✅ 인터페이스 4개를 공급망 4단계에 대응 — 고정·감사 대상 스테이션에 이더넷, 이동형에 LoRa, 시설 내 멀티드롭에 RS485, 작업대에 USB
  • ✅ 최대 RF 출력 26 dBm(1.5 dB 스텝), 인식 거리 5 m, 시스템 처리율 36.7%, 다중 태그 시 RSSI −40 ~ −70 dBm
  • ✅ 체인 전체 구현 — 농장 귀표 → 도축 EPC 태그 → 운송 온도 포함 물류 기록 → 소매 QR, LabVIEW 2014 + MySQL 기반
  • ✅ 논문이 밝힌 패키지(48핀 LQFP)가 W5500 데이터시트와 정확히 일치

Q&A

Q. W5500의 어떤 소켓 모드를 쓰나요? A. TOE TCP(Sn_MR_TCP)이고, 로컬·중앙 데이터베이스로 업로드하는 클라이언트입니다. 이력추적 기록은 조용한 손실을 감당할 수 없으므로 TCP의 보장이 요점입니다. 그 위의 응용 계층 프로토콜은 논문이 밝히지 않습니다.

Q. W5500이 STM32에 어떻게 연결되나요? A. 논문은 이더넷 드라이버 회로를 그림으로만 보여주고 버스를 명시하지 않습니다. W5500 자체가 SPI 전용 부품(SPI MODE 0/3, 최대 80 MHz)이므로 연결은 SPI입니다. 이건 논문의 주장이 아니라 칩 사양에서 나온 것이라는 점을 밝혀둡니다.

Q. 병렬 버스인 W5300이나 Wi-Fi 모듈은 왜 아닌가요? A. 핀 예산과 역할입니다. MCU를 "더 적은 핀 수" 를 이유로 명시적으로 골랐는데, 병렬 버스 부품은 그중 8~16개를 먹습니다. 그리고 이더넷 인터페이스는 정확히 고정·상용전원·상설 설치 단계를 위해 존재합니다 — Wi-Fi 링크는 이동형 경우를 이미 LoRa가 담당하는 상황에서 재접속과 자격증명 문제를 다시 끌어들일 뿐입니다.

Q. 논문이 W5500을 대안과 벤치마크했나요? A. 아닙니다. 하드웨어와 TCP/IP 스택 지원을 비교한 결과라고 서술하고 그 결과를 정성적으로(코드 감소, 플래시 감소) 보고하지만, 경쟁 칩을 거명하지 않고 수치도 주지 않습니다. 논문의 정량 결과는 RF 쪽 — 거리, 처리율, RSSI입니다.

Q. 설계 파일을 받을 수 있나요? A. 없습니다. Data Availability Statement가 "Not applicable" 입니다. 회로도는 그림으로만 있고, BOM 파일도 보드 소스도 펌웨어 공개도 없습니다. 재현하려면 논문을 보고 다시 그려야 합니다.

Q. 처리율 36.7%는 무슨 뜻인가요? A. 네트워크 수치가 아니라 EPC Gen2 충돌방지 수치입니다. Q-알고리즘 인벤토리 라운드에서는 필드 내 태그 수가 프레임 길이에 가까울 때 처리율이 최대가 됩니다 — 고전적인 framed-slotted-ALOHA 결과입니다. 공중 인터페이스를 설명하는 값이고 이더넷 링크와는 무관합니다.


Original Link: https://doi.org/10.3390/s23073372

Comments

Similar projects you might like

Comments