This article is part of a series on Tizen on the Raspberry Pi 2.
- Bringing Tizen to a Raspberry PI 2 Near You…
- Tizen on RPi2: Now Supporting 3D Acceleration
- RPi2: Getting Smart on Tizen
- Setup WiFi on Your Raspberry Pi 2 with Tizen
Once you have your RPi2 up and running with Tizen, it is helpful to get network connectivity setup. This guide will describe how to enable WiFi on your RPi2. Doing this will make it much easier to work on the device because it will allow you to connect using ssh through your wireless network and access remote resources on the Internet.
Get Familiar With the Hardware
The procedure to enable WiFi on Tizen for Raspberry PI2 (Rpi2) is simple.
You will first want to make sure Tizen detects your WiFi adapter. You can find it by running lsusb which will display all connected usb devices, including . My own RPi2 is using a Realtek device based on the RTL 8188CUS chipset:
Bus 001 Device 006: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Once connected, it produces the following messages:
[ 2.787810] usb 1-1.4: new high-speed USB device number 6 using dwc_otg [ 2.889252] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=8176 [ 2.889265] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.889274] usb 1-1.4: Product: 802.11n WLAN Adapter [ 2.889283] usb 1-1.4: Manufacturer: Realtek [ 2.889292] usb 1-1.4: SerialNumber: 00e04c000001 [ 16.520739] usbcore: registered new interface driver rtl8192cu
You can use view this on your own device by running dmesg -wH before plugging in the device. This command will show you Kernel messages as the device is connected.
Getting WiFi Running Wih Connman
The Tizen distribution uses connman to setup the Network interfaces. In order to use, it is required to enable WiFi and to configure connman to create a service. This is done via
root@raspberrypi2:~# connmanctl connmanctl> enable wifi Enabled wifi connmanctl> agent on Agent registered connmanctl> services *AO Wired ethernet_b8dead85dead_cable *A mynetwork wifi_deaddeaddead_00dead00dead_managed_psk wifi_deaddeaddead_hidden_managed_psk othernet wifi_deaddeaddead_4756542d42323dead_managed_psk connmanctl>connect wifi_deaddeaddead_00dead00dead_managed_psk Connected wifi_deaddeaddead_00dead00dead_managed_psk connmanctl> exit
mynetwork requires a passphrase, it will ask when connect is issued:
root@raspberrypi2:~# connmanctl connmanctl> enable wifi Enabled wifi connmanctl> agent on Agent registered connmanctl> services *AO Wired ethernet_b8dead85dead_cable *A mynetwork wifi_deaddeaddead_00dead00dead_managed_psk wifi_deaddeaddead_hidden_managed_psk othernet wifi_deaddeaddead_4756542d4232dead_managed_psk connmanctl> connect wifi_deaddeaddead_00dead00dead_managed_psk Connected wifi_deaddeaddead_00dead00dead_managed_psk Phassphrase? [type your password here] connmanctl> exit
The configuration associated with the above, including the password, will be saved at
Please notice that connman won’t start wifi network after reboot. So, if you need to enable wifi again, after reboot, you’ll need to call:
connmanctl connect wifi_deaddeaddead_00dead00dead00dead_managed_psk
Raspberry Pi is a trademark of the Raspberry Pi Foundation