Wireless Networking - themactep/thingino-firmware GitHub Wiki

Wireless Networking for IP Cameras

This article covers best practices and technical considerations for setting up your IP camera on a Wi-Fi network. A stable wireless connection is crucial for achieving a reliable, high-quality video feed.

Contents

Wi-Fi Standards

https://en.wikipedia.org/wiki/IEEE_802.11

IEEE Standard Link rate 2.4 GHz 5 GHz 6 GHz Generation
802.11 1–2 Mbit/s x
802.11b 1–11 Mbit/s x
802.11a 6–54 Mbit/s x
802.11g 6–54 Mbit/s x
802.11n 6.5–600 Mbit/s x x Wi-Fi 4
802.11ac 6.5–6933 Mbit/s x Wi-Fi 5
802.11ax 0.4–9608 Mbit/s x x in 6E Wi-Fi 6
802.11be 0.4–23059 Mbit/s x x x Wi-Fi 7
802.11bn 100000 Mbit/s x x x Wi-Fi 8

Most IP cameras communicate using one or more variants of the IEEE 802.11 wireless standard. The supported standard determines the camera's maximum potential speed and compatibility.

  • 802.11b/g/n: These are the most common standards found on IP cameras. They operate on the 2.4 GHz band.
  • 802.11a/n/ac/ax: Cameras that support these standards can also operate on the cleaner 5 GHz band (see below). While still less common than 2.4 GHz models, 5 GHz-capable cameras are becoming more prevalent.

The legacy 802.11b standard is slow and can cause high latency, resulting in an unstable video feed or disconnections. If your network does not have older devices that require it, it is highly advised to disable 802.11b mode on your wireless router to improve overall network stability for your cameras and other devices.

Frequency Bands

Modern Wi-Fi primarily uses two frequency bands, each with its own advantages and disadvantages.

2.4 GHz Band

Pros:

  • Better Range: Signals in the 2.4 GHz band travel farther and penetrate solid obstacles (like walls and floors) more effectively than 5 GHz signals.

Cons:

  • High Congestion: This band is crowded. It's used by many Wi-Fi networks, Bluetooth devices, baby monitors, and microwave ovens, leading to interference.
  • Fewer Channels: Only 3 non-overlapping channels (1, 6, 11) are available, increasing the chance of interference from neighboring networks.

2.4 GHz band is best for cameras that are located far from the router or in areas with many physical obstructions, where maximum range is the priority.

5 GHz Band

Pros:

  • Less Congestion: Far fewer devices use the 5 GHz band, resulting in less interference and a more stable connection.
  • More Channels: The band offers significantly more non-overlapping channels, drastically reducing interference from other networks.
  • Higher Speed: Generally supports faster data rates, which can benefit high-resolution video streams.

Cons:

  • Shorter Range: Higher frequency signals cannot penetrate solid objects as well and have a shorter effective range.

5 GHz band is best for cameras located closer to the router in environments with many other wireless networks and devices. A camera that supports 5 GHz will typically experience fewer issues on a congested network.

Optimizing Your Wireless Signal

A strong, stable signal is key to performance. Wireless networking works best when there is a clear, unobstructed path between the access point (your router) and the camera.

Reduce Physical Obstacles

Minimize the number of walls, ceilings, and large metal objects between your camera and router. Position the router in a central, elevated location if possible.

Antenna Orientation

If your router or camera has external antennas, their orientation matters. A vertical antenna radiates signal horizontally, which is ideal for a single-story home. For multiple floors, angling some antennas horizontally can help distribute signal vertically. Refer to your device's manual for recommendations.

Choose the Right Channel

Use your router's administration page to scan for the least congested Wi-Fi channel and manually select it. On the 2.4 GHz band, stick to channels 1, 6, or 11.

Check Signal Strength

Most camera apps or software will display the wireless signal strength (measured in dBm or as "bars"). Aim for at least -67 dBm (2-3 bars) for a reliable video stream. A value closer to -30 dBm is excellent, while anything below -80 dBm is likely too weak.

Troubleshooting Common Issues

Video is Choppy or Freezes:

This is often due to a weak or unstable signal. Move the camera closer to the router, reduce obstacles, or try switching bands (to 5 GHz if available and feasible).

Camera Frequently Disconnects:

Check for interference from other devices (like microwaves or cordless phones). Change your Wi-Fi channel to a less congested one. Ensure 802.11b mode and HT40 (40 MHz channel width) are disabled on your router.

HT20 and HT40 refer to Wi-Fi channel widths in 802.11n/ac standards. HT20 uses a 20 MHz channel, offering lower bandwidth but better stability and less interference, ideal for crowded environments like apartments. HT40 uses a 40 MHz channel, doubling potential throughput but increasing interference risk, better suited for open spaces with fewer networks. HT20 is more reliable in dense settings, while HT40 maximizes speed where interference is minimal.

Cannot Connect to Camera:

Verify the Wi-Fi password was entered correctly during setup. Ensure the camera is within a reasonable range of the router for the initial configuration.

WPA Supplicant Settings

ap_scan parameter in wpa_supplicant.conf means:

  • ap_scan=0: wpa_supplicant does not perform scanning or roaming; driver handles it.
  • ap_scan=1: wpa_supplicant requests scans and uses results to select AP.
  • ap_scan=2: wpa_supplicant attempts to associate with configured networks one by one without scanning, using the SSID and security policy (but not BSSID). It's for cases like hidden SSIDs or proprietary drivers, but not recommended for the nl80211 driver, as it can cause failures.