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.5k 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post