We have moved to a new Sailfish OS Forum. Please start new discussions there.
9

[feature request] share wifi connection over usb

asked 2014-09-03 15:03:33 +0300

bilog gravatar image

updated 2016-08-17 11:02:08 +0300

jiit gravatar image

One thing that I found myself needing today was the ability to share Jolla's WiFi connection through USB to the computer. Note that this is sort-of the reverse of this: the Jolla accesses the wireless, and I would like to use it via USB from my computer. I have set it up manually by following these steps (obviously replacing rmnet0 with wlan0). Having an UI for this would be nice.

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
1

answered 2014-09-03 15:47:41 +0300

Philippe De Swert gravatar image

Not exactly a very common use case. But something like that could be added to usb-moded. Most of the things are already there. Just needs a new mode and some code to get the wlan info from connman.

Grab the code here: https://github.com/nemomobile/usb-moded/ and just code away. I might add it myself if I feel brave enough to fight connmans dbus api again. But don't expect it any time soon.

edit flag offensive delete publish link more

Comments

I suspect though, that it should be connman the one configuring iptables, and not usb-moded. Connman already does it to enable wlan tethering.

javispedro ( 2014-09-03 17:58:04 +0300 )edit

@javispedro: Unfortunately connman cannot deal with a USB network connection. There is some theoretical support but it does not really work in reality.

Philippe De Swert ( 2014-09-03 18:02:27 +0300 )edit

ConnMan supports USB tethering just fine. What kind of issues you have with it?

jr ( 2014-09-04 15:09:51 +0300 )edit
1

@jr: That's new. I have never seen it work. It cannot even handle a USB "gadget" network device decently. (I know it claims it does, but as stated in my previous comment it just doesn't work. It might work with USB ethernet adapters though, but that is a different kind of device.)

Philippe De Swert ( 2014-09-04 15:16:16 +0300 )edit

ConnMan handles USB gadgets as uplink connections starting with 1.22 and can tether them since 1.17. It may be that the usb-moded somehow interferes with this or that something is not working properly with the particular USB gadget driver. We have seen USB gadget work both ways on the devices we can test with.

USB ethernet adapters have been working since day one, as they are indistinguishable from "normal" ethernet cards.

Can you elaborate on what approximately starts going wrong, perhaps by sending a mail to the ConnMan mailing list (see https://01.org/connman for info) ?

pfl ( 2014-09-04 16:43:04 +0300 )edit
0

answered 2015-03-02 21:19:38 +0300

You can do this with the same solution for Nokia N9. Here is link: https://asdfghjkl.me.uk/blog/n9tethering/ , I am not sure that you have to install these windows drivers, because I had it installed before. Connection is working only in Firefox, I don't know how to enable it for all windows applications. Of course You have to use login nemo and your password to login in putty. It's working, I'm using it right now, when posting this answer!

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-09-03 15:03:33 +0300

Seen: 750 times

Last updated: Mar 02 '15