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

[Idea] : USB IP address [answered]

asked 2013-12-29 22:07:28 +0200

manu007 gravatar image

updated 2014-01-19 21:33:37 +0200

lk gravatar image

It seems that the USB IP address is hard coded in module usb_moded to 192.168.2.15, this can conflict with some networks (in fact, with my N900), need to add a special route when connected by USB.

It would be great to have the IP address in a configuration file with a default value.

The connection by KDE is very easy, only need to config the peer address with knetworkmanager...

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by JSEHV
close date 2016-02-08 14:16:57.483636

Comments

@mgafotas actually it's not answered... can you either reopen or accept an answer plz?

AL13N ( 2014-01-01 23:31:24 +0200 )edit

4 Answers

Sort by » oldest newest most voted
3

answered 2013-12-29 22:17:09 +0200

AL13N gravatar image

updated 2013-12-29 22:19:12 +0200

For this exact reason, there are 2 IP addresses you can use, see part of changelog

quoting:

If a factory reset cannot be performed or if the device has booting issues,

  • Unplug USB cable and turn off device
  • Press volume down and power on the device
  • Plug in USB cable and using USB networking telnet to 192.168.2.15 or 10.42.66.66 and follow the instructions
edit flag offensive delete publish link more

Comments

Ok, but IMHO this things are better in configuration files than hardcoded in the module. ;-)

manu007 ( 2013-12-29 22:38:46 +0200 )edit

yes... but, you can add ip addresses with a single command... you're not limited to having one ip address in an interface:

ip addr add XX.YY.ZZ.WW/24 dev $INT
AL13N ( 2013-12-30 00:45:48 +0200 )edit
1

answered 2014-01-02 11:12:38 +0200

manu007 gravatar image

Sorry, IMHO the answer was this :

Just edit /etc/usb-moded/usb-moded.ini and add :

[network]

ip = 192.168.2.17 (or something else)

I have not found any document explaining how to configure the UI developer mode works. I thought of a basic configuration for users requiring not touch anything in the system, can be, an option in the config menu for advanced users with options to configure stuff like this.
I intend to replace my N900 by Jolla and I need it to have at least the basic functionality that I have with my N900.
Really, i apreciate your help. :-)

edit flag offensive delete publish link more

Comments

Very simple. Settings -> system settings ->developer mode -> tap on the ip shown next to the usb icon and you can change it.

Basically right in the same place where you enabled the developer mode. I would think it is easy enough no? ;)

Philippe De Swert ( 2014-01-03 03:28:41 +0200 )edit

Too much easy.... :-D Sometimes we look at the moon when things are right under our noses or to much years working with Unix/Linux... ;-) Great, this GUI changes the /etc/usb-moded/usb-moded.ini. Many thanks, will continue now with files .m3u...

manu007 ( 2014-01-03 10:38:39 +0200 )edit
0

answered 2013-12-30 15:15:30 +0200

Philippe De Swert gravatar image

updated 2013-12-30 15:15:50 +0200

Actually it is not hard-coded there. It is a hard-coded fallback.

Documentation on changing the config manually (by editing the config file) can be found here: https://github.com/nemomobile/usb-moded/blob/master/docs/usb_moded-doc.txt

From the command line you can also use usb_moded_util (example below)

usb_moded_util -n set:ip,10.0.0.2

Or you use the developer mode UI, where you can change the IP to anything you like.

edit flag offensive delete publish link more
0

answered 2013-12-31 22:49:53 +0200

manu007 gravatar image

Just edit /etc/usb-moded/usb-moded.ini and add :

[network]

ip = 192.168.2.17 (or something else)

edit flag offensive delete publish link more

Comments

And as I stated earlier in the answer (weirdly enough below) you can just use the developer mode UI to change the IP. No need to edit files by hand.

Philippe De Swert ( 2014-01-02 10:46:36 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2013-12-29 22:07:28 +0200

Seen: 646 times

Last updated: Jan 02 '14