Welcome, Guest. Please login or register.
Did you miss your activation email?
January 29, 2012, 01:09:20 AM
Home Help Search Login Register
+  Answers@Comp
|-+  IT Technical Support
| |-+  Others
| | |-+  Android settings for NUS Wireless
« previous next »
Pages: [1] Go Down Print
Author Topic: Android settings for NUS Wireless  (Read 4711 times)
wp
Administrator
Newbie
*****
Offline Offline

Posts: 16


View Profile
« on: January 06, 2010, 02:19:22 PM »

For FROYO (2.2), refer to http://waipeng.blogspot.com/2010/07/nus-wireless-on-android-froyo.html

For ECLAIR (2.1 and below), follow the below instructions

You need adb to be working. Please refer to http://developer.android.com/sdk/index.html

To confirm that it is working, issue "adb device". Your device should show up.

  • Copy the wpa_supplicant file to your computer
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf wpa_supplicant.conf

  • Edit the wpa_supplicant.conf to reflect the below
Code:
ap_scan=2

network={
   ssid="NUS"
   key_mgmt=IEEE8021X
   group=WEP104 WEP40
   auth_alg=OPEN SHARED
   eap=PEAP
   identity="<nusnetid>"
   anonymous_identity="<nusnetid>"
   password="<password>"
   ca_cert="/data/misc/wifi/cert.pem"
   phase2="auth=MSCHAPV2"
}

  • Download the attached cert.pem.
  • Push both cert.pem and wpa_supplicant.conf to the device.
Code:
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb push cert.pem /data/misc/wifi/cert.pem

  • Change the permissions of the file
Code:
chown wifi.wifi /data/misc/wifi/wpa_supplicant.conf
chown wifi.wifi /data/misc/wifi/cert.pem
    « Last Edit: March 13, 2011, 01:18:38 PM by wp » Logged
    lzs
    Administrator
    Jr. Member
    *****
    Offline Offline

    Posts: 93



    View Profile
    « Reply #1 on: January 06, 2010, 04:13:47 PM »

    Why so complicated one? Tongue Will the Nexus One be better?
    Logged
    melynx
    Administrator
    Jr. Member
    *****
    Offline Offline

    Posts: 98



    View Profile Email
    « Reply #2 on: January 08, 2010, 11:24:13 PM »

    cause android uses wpa_supplicant and although it supports it, the UI doesn't... so it takes some voodoo magic to make it work... i think 1.6 supports configuration through the ui... though i never knew where to place the certs....
    Logged
    melynx
    Administrator
    Jr. Member
    *****
    Offline Offline

    Posts: 98



    View Profile Email
    « Reply #3 on: January 17, 2010, 10:00:29 PM »


    • Change the permissions of the file
    Code:
    chmod wifi.wifi /data/misc/wifi/wpa_supplicant.conf
    chmod wifi.wifi /data/misc/wifi/cert.pem

      it should be chown.... not chmod... ^_^
      Logged
      wp
      Administrator
      Newbie
      *****
      Offline Offline

      Posts: 16


      View Profile
      « Reply #4 on: January 26, 2010, 12:46:43 PM »


      • Change the permissions of the file
      Code:
      chmod wifi.wifi /data/misc/wifi/wpa_supplicant.conf
      chmod wifi.wifi /data/misc/wifi/cert.pem

        it should be chown.... not chmod... ^_^


        Okie changes made. Tongue
        Logged
        wp
        Administrator
        Newbie
        *****
        Offline Offline

        Posts: 16


        View Profile
        « Reply #5 on: August 02, 2010, 04:17:49 PM »

        For Froyo, the following config works Wink

        Quote
        network={
                ssid="NUS"
                scan_ssid=1
                key_mgmt=IEEE8021X
                auth_alg=OPEN SHARED
                eap=PEAP         
                identity="username"   
                password="password" 
                phase2="auth=MSCHAPV2"
        }
        Logged
        melynx
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 98



        View Profile Email
        « Reply #6 on: August 02, 2010, 11:14:57 PM »

        have you tried using the GUI to configure?
        Logged
        lzs
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 93



        View Profile
        « Reply #7 on: August 03, 2010, 01:15:13 PM »

        The froyo gui still faill to produce a config that works out of the box.
        Logged
        melynx
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 98



        View Profile Email
        « Reply #8 on: August 03, 2010, 10:07:55 PM »

        even after the cert is imported?
        Logged
        lzs
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 93



        View Profile
        « Reply #9 on: August 03, 2010, 11:12:40 PM »

        even after the cert is imported?

        Ah ok that I didn't try. I presumed it's not needed since my working config doesn't require the cert.

        Put froyo on your phone? WP has it working liao. Smiley
        Logged
        melynx
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 98



        View Profile Email
        « Reply #10 on: August 04, 2010, 11:06:20 AM »

        later i drop by your office lor... then send the rom over.. Cheesy
        Logged
        xxzagxx
        Newbie
        *
        Offline Offline

        Posts: 1


        View Profile
        « Reply #11 on: August 25, 2010, 07:39:21 AM »

        Hi, where can i find the pem file?... cheers!
        Logged
        melynx
        Administrator
        Jr. Member
        *****
        Offline Offline

        Posts: 98



        View Profile Email
        « Reply #12 on: August 25, 2010, 08:20:58 PM »

        its an attached file that is found at the start of this thread... ^_^
        Logged
        Pages: [1] Go Up Print 
        « previous next »
        Jump to:  


        Login with username, password and session length

        Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!