I've been wondering how to deal with more than one Xiaomi Yi Dash Cam within single system. These are results.
- Raspberry Pi N with Raspbian Stretch (but should apply to any Linux)
- Two WiFi NICs
- At least two Xiaomi Yi Dash Cam
- Setup your cameras to have separated SSIDs (and preferrable — passwords),
- Make sure your Wifi cards are working under your OS,
- Connect cards to the cameras,
- Setup NICs to have static IPs (append to
/etc/dhcpcd.conf
):
interface wlan0
static ip_address=192.168.1.11/24
interface wlan1
static ip_address=192.168.1.22/24
- Use
firewall.sh
to setup connectivity within your system, - Access camera by requesting its network static IP address of your NIC.
- Run
wpa_cli
, then:
> add_network
> select_network 0
> set_network 0 ssid "NameOfNetwork"
> set_network 0 psk "Passw0rd"
> save
- If you're using setup with dhcpcd,
mv /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
- Repeat above for the second (following) interfaces
- Check if everything is ok using
iwconfig