From 2638e1214025888365107c7b27d9b161fe90d91c Mon Sep 17 00:00:00 2001 From: alexandra <83598143+gorillagripcore@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:21:00 +0200 Subject: [PATCH] Wi-Fi Troubleshooting [HC-1454] (#377) * First draft * Spelling errors / Linter * Added additional step * Rename wi-fi-troubleshooting.md to Wi-Fi-troubleshooting.md * Update content/Arduino Cloud/General Cloud/Wi-Fi-troubleshooting.md Co-authored-by: per1234 * Update content/Arduino Cloud/General Cloud/Wi-Fi-troubleshooting.md Co-authored-by: per1234 * Moved "Frequency Bands" part * moved image * Revised "Reset Network Credentials" part * Revised "Reset Network Credentials" part * Added correct link * Apply suggestions from code review Co-authored-by: Renat0Ribeir0 <86349945+Renat0Ribeir0@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Renat0Ribeir0 <86349945+Renat0Ribeir0@users.noreply.github.com> * linter * Apply suggestions from code review Co-authored-by: per1234 * feedback updates * Update content/Arduino Cloud/General Cloud/If-your-Arduino-device-can-t-connect-to-a-Wi-Fi-network.md Co-authored-by: Renat0Ribeir0 <86349945+Renat0Ribeir0@users.noreply.github.com> * Minor edits --------- Co-authored-by: per1234 Co-authored-by: Renat0Ribeir0 <86349945+Renat0Ribeir0@users.noreply.github.com> Co-authored-by: seaxwi <71350948+seaxwi@users.noreply.github.com> --- ...device-can-t-connect-to-a-Wi-Fi-network.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 content/Arduino Cloud/General Cloud/If-your-Arduino-device-can-t-connect-to-a-Wi-Fi-network.md diff --git a/content/Arduino Cloud/General Cloud/If-your-Arduino-device-can-t-connect-to-a-Wi-Fi-network.md b/content/Arduino Cloud/General Cloud/If-your-Arduino-device-can-t-connect-to-a-Wi-Fi-network.md new file mode 100644 index 000000000..f8bf8ee17 --- /dev/null +++ b/content/Arduino Cloud/General Cloud/If-your-Arduino-device-can-t-connect-to-a-Wi-Fi-network.md @@ -0,0 +1,58 @@ +--- +title: "If your Arduino device can’t connect to a Wi-Fi network" +--- + +Learn how to troubleshoot Wi-Fi connectivity issues if your Arduino device can't connect to a network. Check the sections below to identify and resolve potential issues. + +--- + +## 1. Connect to a 2.4 GHz network + +Arduino boards and most IoT devices can only be used with 2.4 GHz networks. The 2.4 GHz band offers better range and signal strength through obstacles compared to the 5 GHz band. Learn [how to check if your network operates on the 2.4 GHz band](https://support.arduino.cc/hc/en-us/articles/14144656051740-Supported-Wi-Fi-bands). + +> [!TIP] +If your network operates on the 5 GHz band, a quick solution is to [create a 2.4 GHz network using the hotspot feature on an Android or iOS device](https://support.arduino.cc/hc/en-us/articles/14144656051740-Supported-Wi-Fi-bands#create-hotspot). + +## 2. Avoid common network names + +Make sure your Wi-Fi network has a distinct name. Avoid using generic names like 'default' or 'home' to prevent your device from accidentally connecting to a different network with the same name, which can lead to performance issues. + +## 3. Reset network credentials for your Thing + +### Verifying or changing network credentials in Arduino Cloud + +If the Wi-Fi connection is not working, you might need to reset the [network credentials](https://support.arduino.cc/hc/en-us/articles/360016495559-Add-and-connect-a-device-to-Arduino-Cloud#:~:text=Click%20the%20Network,adding%20the%20device) for your Thing in Arduino Cloud. + +1. Navigate to the [Thing](https://app.arduino.cc/things) that is experiencing Wi-Fi issues. + +1. Under **Network**, click the button labeled "Change" + +1. Re-enter your Wi-Fi credentials with your Wi-Fi Name (SSID) and Password (Encryption Key). Ensure there are no typos and the credentials match those set on your router. + +1. Open the sketch and click the **Upload** button to properly apply the new network settings to your device. + +### Verifying or changing the credentials defined in the sketch + +To verify or change the network credentials directly defined in a sketch, whether the sketch was created in Arduino Cloud or IDE, follow these steps: + +1. Locate the section in your Arduino sketch where the network credentials are defined. This is typically in the main sketch file, the `arduino_secrets.h` file (for the IDE), or the **Secret** tab (for Arduino Cloud). + +1. Check the variables for SSID and password to ensure they match your network credentials. You may also need to modify the "key index" value if you're using a WEP encrypted network. + +1. After making any necessary changes, save the sketch. + +1. Upload the modified sketch by clicking the Upload button in the Arduino IDE or Cloud Editor. + +Additionally, you can check Serial Monitor for error messages. This can provide insight into what might be going wrong during the connection process. + +## 4. Check your power supply + +Wi-Fi connectivity problems are often caused by insufficient power. Since Wi-Fi usage demands more power than other operations, ensure your device is adequately powered by: + +- Connecting your device directly to a USB port on your computer or a dedicated power source. USB hubs might not supply sufficient power, especially if multiple devices are connected. + +- Ensuring you are using a high-quality USB cable capable of delivering consistent power. + +- Verifying that your power supply meets the necessary input voltage for your device. You can find hardware information for your device in [Arduino Docs](https://docs.arduino.cc/hardware/). + +For more detailed information about power supplies, you can find additional guidance [here](https://support.arduino.cc/hc/en-us/articles/360018922259-What-power-supply-can-I-use-with-my-Arduino-board).