본문 바로가기

전체 글

(16)
WIZnet RP2040-HAT을 통한 MQTT - Publish & Subscribe [CircuitPython] WIZnet RP2040-HAT github - https://github.com/Wiznet/RP2040-HAT-CircuitPython MQTT? M2M과 사물인터넷에서 사용하기 위해 만들어진 경량의 메시지 프로토콜 TCP에서 동작하는 형태 와 구조가 아닌 구조로 이루어져있다. 는 Topic을 발행한다 는 Topic을 구독한다 는 중계 역할을 하며 1:N 통신에 적합하다 Environment 1. Mosquitto? + 설치하기 - 모스키토는 MQ Telemetry Trasport 프로토콜 (MQTT) 3.1과 3.1.1을 구현한 오픈소스 메세지 브로커이다. - 저전력 파워센서, 모바일디바이스, 임베디컴퓨터, 아두이노, 마이크로 컨트롤러같은 "디바이스 To 디바이스"의 메세징 처리에 적합하다. htt..
WIZnet W5500 Chip Freezing Test W5500 칩이 영하 -20도 이하로 떨어지는 환경에서 정상동작 여부를 확인하며 일반적인 냉동고에서 테스트를 진행했다. WIZnet 홈페이지에서 표기한 칩의 정상동작 범주는 영하 -40~+85이다. Raspberry Pi Pico MCU를 채택했고 Wiznet W5500칩을 사용한 Ethernet Shield를 피코위에 작착하여 테스트를 진행하였다. 이더넷 쉴드는 W5500이 내장되어 있고 SPI0 인터페이스를 통해 Raspberry Pi Pico와 연결된다. AX2 툴을 이용하여 Loopback 속도 테스트를 진행하였다. AX2 Tool Link - https://iotedition.tistory.com/7 AX2 - WIZnet TCP/UDP 속도 측정 Tool 데이터를 송수신하고 속도를 측정해서 출..
AX2 - WIZnet TCP/UDP 속도 측정 Tool 데이터를 송수신하고 속도를 측정해서 출력해주는 AX2 Tool 기본적으로 AX2에서 먼저 데이터를 보내도록 설정되어 있고 보낸 데이터를 다 받으면 속도를 계산해서 출력해주는 방식. TCP Server에서 연결됐는 지 확인하고 보낼 파일을 선택. 100k Data.txt 파일. T1 버튼을 눌러 데이터를 전송하면 서버에서 데이터 수신. code.py import board import busio import digitalio import time from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket SPI0_SCK = board.GP2 SPI0_TX =..
W5500 Ethernet Shield(Raspberry Pi Pico) 서버 + Wizfi360 WiFi Module (Raspberry Pi Pico)클라이언트 온도 측정 데이터 전달 TCP/IP를 통해 소켓(SOCKET) 통신 구축. 개념 설명 *프로토콜(PROTOCOL) 프로토콜은 원래 외교상의 언어로써 의례나 국가간의 약속을 의미하며, 통신에서는 어떤 시스템이 다른 시스템과 통신을 원할하게 수용하도록 해주는 통신 규약, 약속 *IP 전 세계 컴퓨터에 부여된 고유의 식별 주소 *포트(PORT) 포트는 네트워크 상에서 통신하기 위해 호스트 내부적으로 프로세스가 할당받아야 하는 고유한 숫자. 한 호스트 내에서 네트워크 통신을ㅇ 하고 있는 프로세스를 식별하기 위해 사용되는 값이므로 같은 호스트 내에서 서로 다른 프로세스가 같은 포트 넘버를 가질 수 없다. 즉, 같은 컴퓨터 내에서 프로그램을 식별하는 번호이다. 1. Overview Wiznet W5500 Ethernet Sheiled(R..
라즈베리 파이 피코 Raspberry Pi Pico + WizFi360-EVB-Mini 로 WiFi Network 구축 HARDWARE 구성 Wiznet WizFi360-EVB-Mini http://wizwiki.net/wiki/doku.php/products:wizfi360:board:wizfi360-evb-mini:start products:wizfi360:board:wizfi360-evb-mini:start [Document Wiki] wizwiki.net + Raspberry Pi Pico RP2040 https://www.raspberrypi.org/documentation/rp2040/getting-started/#board-specifications https://www.raspberrypi.org/documentation/rp2040/getting-started/#board-specifications Doc..
WizFi360-EVB-Mini 무선 모듈 + AT command Wizfi360 와이파이 모듈 기반의 미니 EVB보드 https://wizwiki.net/wiki/doku.php/products:wizfi360:board:wizfi360-evb-mini:start products:wizfi360:board:wizfi360-evb-mini:start [Document Wiki] wizwiki.net Features WiFi 2.4G, 802.11 b/g/n Support Station / SoftAP / SoftAP+Station operation modes Support “Data pass-through” and “AT command data transfer” mode Support serial AT command configuration Support TCP Ser..
Raspberry Pi Pico + WIZ850io(W5500) Ethernet 환경 구성하기 - (2) Raspberry pi Pico + WIZ850io(W5500) 하드웨어 연결 SPI1_SCK ----> WIZ850io SCLK SPI1_TX ----> WIZ850io MOSI SPI1_RX ----> WIZ850io MISO SPI1_CSn ----> WIZ850io SCNn GP15 ----> WIZ850io RSTn 3.3V, GND 1. pico-W5500 Library 다운로드 https://github.com/bjnhur/Adafruit_CircuitPython_Wiznet5k 상기 링크에서 하기 파일들을 다운로드하여 lib에 복사 - adafruit_wiznet5k - adafruit_bus_device - adafruit_request.mpy 2. IP address Ping Test ..
Raspberry Pi Pico + WIZ850io(W5500) Ethernet 환경 구성하기 - (1) Hardware 구성 + Circuitpython 설치 Raspberry pi Pico에 CircuitPython 설치하기. https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/micropython-or-circuitpython Getting Started with Raspberry Pi Pico and CircuitPython The Raspberry Pi foundation changed single-board computing when they released the Raspberry Pi computer, now they're ready to do the same for microcontrollers wit..