Wireless network connection

Wireless network connectionRoutine explanationIntroductionComplete codeTroubleshooting common connection failure causes

 

Routine explanation

Introduction

The Yabo Smart K230 has a built-in WIFI chip. In this section, we will try to connect to a nearby WIFI hotspot.

We change the "[WIFI SSID]" in the sample code to the name of the WIFI nearby (preferably in English), and "[WIFI PASSWORD]" to the password corresponding to the WIFI hotspot. After changing, click the run button in the lower left corner of CanMV IDE. Let's look at the output of the console. If the output is "Connect successfully", it means that WIFI can communicate normally.

image-20250512173317428

The complete output is as follows

Complete code

The complete code file is in [Source Code Summary/11.Network/01.wifi/connetc_wifi.py]

Troubleshooting common connection failure causes

  1. First test whether the WIFI can be connected by a mobile phone or other device to determine whether the router is good or bad.
  2. Check if the SSID and password are correct.
  3. According to the official documentation of the chip, it only supports 2.4Ghz WIFI, and does not support WIFI of other frequency bands. (During my test, 5Ghz can be connected with probability, but the compatibility and stability may be poor)
  4. If the error message: run connect failed appears, and you are sure that the WIFI name (SSID) and password are correct, please try to unplug the USB cable (power off), wait for 5 seconds, then plug in the USB cable and try again, or try to connect to another WIFI.