Skip to content
Tutorial emka
Menu
  • Home
  • Debian Linux
  • Ubuntu Linux
  • Red Hat Linux
Menu

Cara Membuat OTA Update (Over The Air Update) di Raspberry Pi W

Posted on March 13, 2024

Pada tutorial kali ini kita akan mengimplementasikan bootloader untuk Raspberry Pi Pico W yang memungkinkan pengunggahan kode program melalui WiFi (“Over The Air”). Cara paling mudah untuk menggunakannya adalah dengan menyertakan repositori ini sebagai submodule dalam aplikasi yang ingin kita dapatkan pembaruan melalui WiFi.

Contoh proyek menggunakan picowota dapat ditemukan di https://github.com/usedbytes/picowota_blink

Cara termudah untuk membangun picowota itu sendiri adalah:

mkdir build

cd build

export PICOWOTA_WIFI_SSID=picowota

export PICOWOTA_WIFI_PASS=password

export PICOWOTA_WIFI_AP=1

cmake -DPICO_BOARD=pico_w -DPICO_SDK_PATH=/path/ke/pico-sdk ../

make

Uji coba library PicoWOTA

Pertama, tambahkan picowota sebagai submodule ke proyek kita:

git submodule add https://github.com/usedbytes/picowota

git submodule update –init picowota

git commit -m “Tambahkan submodule picowota”

Kemudian, modifikasi CMakeLists.txt proyek kita untuk menyertakan direktori picowota:

add_subdirectory(picowota)

picowota dapat terhubung ke jaringan WiFi yang ada (secara default) atau membuat satu, dalam kedua kasus dengan SSID dan kata sandi yang diberikan.

kita dapat menyediakan informasi berikut sebagai variabel lingkungan atau mengaturnya sebagai variabel CMake:

PICOWOTA_WIFI_SSID # SSID jaringan WiFi

PICOWOTA_WIFI_PASS # Kata sandi jaringan WiFi

PICOWOTA_WIFI_AP # Opsional; 0 = terhubung ke jaringan, 1 = membuatnya sendiri

Selanjutnya, kita dapat membangun binary aplikasi mandiri (cocok untuk pembaruan melalui picowota ketika sudah ada di Pico) atau binary gabungan yang berisi bootloader dan aplikasi (cocok untuk flashing pertama kali):

picowota_build_stkitalone(nama_executable_kita)

picowota_build_combined(nama_executable_kita)

Mengunggah Kode Melalui picowota

Setelah picowota bootloader terinstal di Pico kita, kita dapat menggunakan alat https://github.com/usedbytes/serial-flash untuk mengunggah kode ke dalamnya.

Selama Pico berada dalam bootloader picowota (yaitu karena tidak ada kode aplikasi yang valid terunggah, atau aplikasi kita memanggil picowota_reboot(true);), kita dapat mengunggah file .elf aplikasi yang dibangun oleh picowota_build_stkitalone():

serial-flash tcp:192.168.1.123:4242 nama_executable_kita.elf

Setelah mengunggah kode, jika berhasil, Pico akan melompat ke aplikasi yang baru diunggah.

Cara Kerjanya

Ini berasal dari bootloader Pico non-W saya, https://github.com/usedbytes/rp2040-serial-bootloader, yang saya tulis dalam sebuah blog post: https://blog.usedbytes.com/2021/12/pico-serial-bootloader/

Kode bootloader berusaha menghindari “brick” dengan menyimpan CRC dari kode aplikasi yang diunggah. Jika CRC tidak cocok, maka aplikasi tidak akan dijalankan dan Pico akan tetap berada dalam mode bootloader picowota. Ini seharusnya membuatnya cukup kuat terhadap kesalahan dalam transfer, dll.

Recent Posts

  • How to Fix NVIDIA App Error on Windows 11: Simple Guide
  • How to Fix Excel Formula Errors: Quick Fixes for #NAME
  • How to Clear Copilot Memory in Windows 11 Step by Step
  • How to Show Battery Percentage on Windows 11
  • How to Fix VMSp Service Failed to Start on Windows 10/11
  • How to Fix Taskbar Icon Order in Windows 11/10
  • How to Disable Personalized Ads in Copilot on Windows 11
  • What is the Microsoft Teams Error “We Couldn’t Connect the Call” Error?
  • Why Does the VirtualBox System Service Terminate Unexpectedly? Here is the Full Definition
  • Why is Your Laptop Touchpad Overheating? Here are the Causes and Fixes
  • How to Disable All AI Features in Chrome Using Windows 11 Registry
  • How to Avoid Problematic Windows Updates: A Guide to System Stability
  • What is Microsoft Visual C++ Redistributable and How to Fix Common Errors?
  • What is the 99% Deletion Bug? Understanding and Fixing Windows 11 File Errors
  • How to Add a Password to WhatsApp for Extra Security
  • How to Recover Lost Windows Passwords with a Decryptor Tool
  • How to Fix Python Not Working in VS Code Terminal: A Troubleshooting Guide
  • Game File Verification Stuck at 0% or 99%: What is it and How to Fix the Progress Bar?
  • Why Does PowerPoint Underline Hyperlinks? Here is How to Remove Them
  • AI Bug Hunting with Semgrep
  • What is the Excel Power Query 0xc000026f Error?
  • How to Build Your Own Homelab AI Supercomputer 2026
  • How to Enable SSH in Oracle VirtualBox for Beginners
  • How to Intercept Secret IoT Camera Traffic
  • Build Ultra-Fast and Tiny Desktop Apps with Electrobun: A Beginner’s Guide
  • Inilah Rahasia ReciMe, Potensi Sukses dari Aplikasi Resep Sederhana
  • Perkuat Kemandirian Industri Alat Kesehatan Nasional, Astra Komponen Indonesia Hadirkan Alat Kesehatan Berbasis Teknologi Digital
  • Vidrush, Solusi Produksi Video massal buat Channel Faceless
  • Inilah Higgsfield AI Audio, Trik Canggih Buat Voice Cloning dan Dubbing Video Youtube Otomatis!
  • Everything You Need to Know About Project X and the Rumored AI-Powered Remaster of The Sims 4
  • How to Use Orbax Checkpointing with Keras and JAX for Robust Training
  • How to Automate Any PDF Form Using the Power of Manus AI
  • How to Training Your Own YOLO26 Object Detection Model!
  • How to Build a Full-Stack Mobile App in Minutes with YouWare AI
  • How to Create Consistent Characters and Cinematic AI Video Production with Seedance
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
©2026 Tutorial emka | Design: Newspaperly WordPress Theme