UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wifi hotspot and Nexus4

    Scheduled Pinned Locked Moved Support
    hotspot nexus4access pointwifi
    2 Posts 2 Posters 1.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • HendriXXXH Offline
        HendriXXX
        last edited by HendriXXX

        For couple of days I have been trying to get hotspot working in my nexus4 with ubports OTA-2. I really need that when on the road. I am not any developer, I can't code anything. I just like to try to get things working..

        First I tried this script. It worked really great, and with WPA-PSK security. I tested it (3hours) with all my phones and computers at same time and performance was good. Phone warmed a little bit, but it wasn't hot or anything. But problems started when I shutdown hotspot, then my wifi went totally off, it didn't do anything anymore. It died totally. Only clean reflash resolved problem. I think it really messed up some files.
        https://github.com/oblique/create_ap

        Second I did experiments with nmcli command line tool. I did work good.
        BUT I only get open wifi hotspot. Speed was good and it was reliable. It doesn't even need sudo. And I can enable it and disable all nite long and it just works..

        WPA-PSK didn't work with this way. BUT when shutting off hotspot, it did need only reboot and wifi was back.

        Here are commands that I used:
        Create a connection
        nmcli connection add type wifi ifname '*' con-name my-hotspot autoconnect no ssid my-local-hotspot

        Put it in Access Point
        nmcli connection modify my-hotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared

        Set a WPA password (you should change it)
        nmcli connection modify my-hotspot 802-11-wireless-security.key-mgmt wpa-psk 802-11-wireless-security.psk myhardpassword

        Enable it (run this command each time you want to enable the access point)
        nmcli connection up my-hotspot

        Disable it (run this command each time you want to enable the access point)
        nmcli connection up my-hotspot

        If someone knows how to configure WEP or knows how to get WPA-PSK work with nmcli tool?
        Maybe someone could find why first script works with WPA-PSK but second way wont.
        Simple gui would be nice if someone know how to put it together?

        Thanks! 🙂

        1 Reply Last reply Reply Quote 0
        • M Offline
          markhascole
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote -1
          • First post
            Last post