User Tools

Site Tools


projects:emb_linux_starterkit_wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
projects:emb_linux_starterkit_wifi [2013/07/28 20:49] – created mkuciaprojects:emb_linux_starterkit_wifi [2013/07/28 22:50] (current) mkucia
Line 6: Line 6:
 By default device have enabled tty0 console at serial line connected to on-board USB hub. When board is connected to PC it should see new virtual COM port. By default device have enabled tty0 console at serial line connected to on-board USB hub. When board is connected to PC it should see new virtual COM port.
 The only user on the device is root without password. I am using unmodified stock firmware. The only user on the device is root without password. I am using unmodified stock firmware.
 +
 +  - Connect board to PC using USB cable. Power the board.
 +  - Connect to board using PuTTY (Serial 11500) COM port number depends on user system.
 +  - Start or re-boot board
 +  - Login as root
 +  - Create psk hex using [[http://linux.die.net/man/8/wpa_passphrase|wpa_passphrase]] and put it in ''/etc/wpasupplicant.conf'' (''<nowiki>wpa_passphrase network_ssid password >> /etc/wpasupplicant.conf</nowiki>''). 
 +  - Edit ''/etc/network/interfaces'' (use [[http://www.rru.com/~meo/useful/vi/|vi]])
 +    - Comment out current ''wlan0'' interface definition
 +    - Add new ''wlan0'' interface definition: <code>auto wlan0
 +iface wlan0 inet dhcp
 +    wpa-conf /etc/wpa_supplicant.conf</code>
 +  - Reset network interface ''/etc/init.d/networking restart''
 +  - Now device should connect to AP. User can reset device to check if connection is acquired on boot.
 +
 +If the network connection is successful user can telnet or ssh into board. USB connection is no more needed.
 +
 +===== Static IP =====
 +User might want to set static IP. It is possible to set static IP in AP((Access Point)) DHCP settings. To set static IP in embedded device
 +use following changes for ''/etc/network/interfaces'':
 +<code>auto wlan0
 +iface wlan0 inet static
 +    wpa-conf /etc/wpa_supplicant.conf
 +    address 192.168.1.10
 +    netmask 255.255.255.0
 +    gateway 192.168.1.1</code>
projects/emb_linux_starterkit_wifi.1375037365.txt.gz · Last modified: 2013/07/28 20:49 by mkucia