You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please visit https://openipc.org/sponsor/ to learn more. Thank you.
173
173
```
174
174
175
-
There is no root password set, so don't forget to set it with `passwd` after the first login!
175
+
The root password is `12345`. Don't forget to change it with `passwd` after the first login!
176
176
177
177
If you are struggling with this tutorial and still want to try OpenIPC on a Smartwares CIP-37210, you can [buy it with OpenIPC v2.2 firmware pre-installed at open collective](https://opencollective.com/openipc/contribute/wifi-camera-showme-by-openipc-44355).
178
178
179
179
## Connecting to wifi
180
-
Now it's time to connect the camera to your 2.4 GHz Wi-Fi network. First of all, make sure that the firmware environment variables are set correctly. This is necessary so that `udhcpc` gets a DNS lease (because it is requesting `$ipaddr`) and the gateway is set correctly.
180
+
Now it's time to connect the camera to your 2.4 GHz Wi-Fi network. First of all, make sure that the firmware environment variables are set correctly.
181
+
182
+
First set the network driver:
181
183
182
184
```sh
183
-
fw_printenv ipaddr
184
-
fw_printenv gatewayip
185
-
fw_printenv netmask
185
+
fw_setenv wlandev rtl8188fu-generic
186
186
```
187
-
Set the correct values according to your needs, for example:
187
+
188
+
Then the correct values according to your needs, for example:
188
189
```sh
189
-
fw_setenv ipaddr 10.42.42.42
190
+
fw_setenv wlanssid guest
191
+
fw_setenv wlanpass guest-password
190
192
```
191
-
The last step is to configure the wlan0 interface:
193
+
194
+
You can check the settings as folows:
192
195
```sh
193
-
vi /etc/network/interfaces
196
+
fw_printenv wlandev
197
+
fw_printenv wlanssid
198
+
fw_printenv wlanpass
194
199
```
195
-
Delete or outcomment the eth0 block, the device doesn't have ethernet and the auto setting will slow down boot. Add the following lines to your interfaces file, alter your SSID and password accordingly.
196
200
197
-
```text
201
+
The last step is to configure the wlan0 interface:
202
+
```sh
203
+
cat <<EOF > /etc/network/interfaces.d/wlan0
198
204
auto wlan0
199
205
iface wlan0 inet dhcp
200
206
pre-up echo 3 > /sys/class/gpio/export
201
207
pre-up echo out > /sys/class/gpio/gpio3/direction
202
-
pre-up echo 1 > /sys/class/gpio/gpio3/value
208
+
pre-up echo 1 > /sys/class/gpio/gpio3/value # GPIO3 is the WIFI power
Check whether you can ping and ssh into the camera. Reboot and check, if the camera connects automatically to your wifi network. Reassamble the camera, now it's time so say goodbye to UART and use ssh and the web interface. (The credentials are root and the password you set earlier.)
230
+
231
+
Finally, you should look at `/etc/majestic.yaml` and in particular set this sections as follows in order to have a correct GPIO mapping for nighmode and audio.
0 commit comments