Page 1 of 1

4 dongles of same type, not switching on system Boot

Posted: 28 Apr 2015, 16:37
by ramakrishna
Hi,
My setup contains :
1. Laptop.
2. USB powered HUB.
3. Four dongles of same type. {In my case HUAWEI Model : EC159}
4. Installed usb-modeswitch 2.2.1 version

I plugged all the 4 dongles in USB powered HUB and connected to the pc.
Now i powered up the system ,After booting only few dongles got modeswitch {like 1 & 4} other are in devices like "sr, bg and sd " which may be cd-rom and storage device.
if i reconnect only usb cable, from the powered hub other, dongles which are not modeswitched like 2 & 3 are modeswitching one of them.This same steps need to repeat until the dongles are getting modeswitch.

Now i need to use 8 dongles.

Normally on boot all the 8 dongles need to be mode switch.
But this is not happening in this version, even i tried in older version like usb-modeswitch-1.2.3.

I checked for the power{this is perfect}
I checked with two different powered hubs {same happens in both the case}


Thanks and Regards,
Ramakrishna
Watchy Tech

Re: 4 dongles of same type, not switching on system Boot

Posted: 29 Apr 2015, 08:41
by Josh
This line from the log is completely bogus:

Code: Select all

/usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg (null)   -v 12d1 -p 1446 2>&1
You are certainly not using the original usb_modeswitch - are you running Ubuntu or Fedora?

Since version 1.2.1, the bus and device number are used internally to identify individual modems. The original approach before that - which is obviously still used in the fork you are running - is not suitable for driving a modem bank of identical models.

Try the package from this site.

Re: 4 dongles of same type, not switching on system Boot

Posted: 02 May 2015, 16:00
by ramakrishna
yes i am using ubuntu 14.04.01

I took the source from here but i changed some lines inside the usb_modeswitch.sh
which is shell file.

Let me check with the default source and build the new files and install.



Thanks for the reply.

Regards,
Ramakrishna.
Watchy Technology

Re: 4 dongles of same type, not switching on system Boot

Posted: 15 May 2015, 15:59
by ramakrishna
Hi josh,

i installed from default Ubuntu packages {usb-modeswitch version 2.1.1 and usb-modeswitch-data version 20140327 }
as you said here also i find the same line

/usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1 -v 12d1 -p 1505 2>&1

This is in usb_modeswitch.log

Can you please check.
if there any patch please let me know.


Thanks and Regards,
Ramakrishna.

Re: 4 dongles of same type, not switching on system Boot

Posted: 15 May 2015, 17:12
by Josh
I have probably made myself not clear enough.

If you use the original source code that you can get right from this site, you should never see the log line which contains this: "-c /run/usb_modeswitch/current_cfg"

So, please install the source from here for testing. You can always re-install the Ubuntu package later, should you want it.

Re: 4 dongles of same type, not switching on system Boot

Posted: 16 May 2015, 08:20
by ramakrishna
Hi Josh,

I installed from the site, "make install" the usb-modeswitch and usb-modeswitch-data

Separate log files are coming.
And the command was "usb_modeswitch -W -D -s 20 -u -1 -b 3 -g 29 -v 12d1 -p 1505 -f $configBuffer"

When the Debian will released for the 2.2.1 version?

for reference i downloaded source of 2.1.1 from the ubuntu packages source
$sudo apt-get source usb-modeswitch

i build the source and installed the deb file.
after connecting dongle which gives one log file
and the command was "/usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1 -v 12d1 -p 1505 2>&1"




Thanks and Regards,
Ramakrishna.

Re: 4 dongles of same type, not switching on system Boot

Posted: 16 May 2015, 11:51
by Josh
O.K., and what happens now when you try to switch 8 dongles during boot, with the version from this site installed?

Re: 4 dongles of same type, not switching on system Boot

Posted: 16 May 2015, 12:03
by ramakrishna
only one dongle is getting mode switched and other are in storage device state.

Re: 4 dongles of same type, not switching on system Boot

Posted: 16 May 2015, 15:32
by Josh
I just checked on my Mageia installation, with two powered hubs and four different modems.

When booting, I get four log files as expected. The mode switch succeeded on all four (including one Huawei E173).

The log files are getting their names according to the reported kernel device name. I noticed some inconsistencies there which I'll try to track down. I'm not sure it's an issue that affects switching though.

Re: 4 dongles of same type, not switching on system Boot

Posted: 16 May 2015, 15:51
by ramakrishna
All the dongles i am using are same model.

Re: 4 dongles of same type, not switching on system Boot

Posted: 10 Dec 2015, 09:21
by ramakrishna
Hi Josh ,

Still the issue is not solved.
One thing is fine only one dongle is mode-switching other are remaining as storage device,
With installation from "site" or "ubuntu package"

And these many days i followed to do the mode-switch the dongles using script after some interval of time using scripting.


I am attaching the two files
first one - from the site , i took the source code and "make installed" only one dongle is mode-switched
second one - from the Ubuntu packages , here also one dongle is only mode-switch

Re: 4 dongles of same type, not switching on system Boot

Posted: 10 Dec 2015, 19:35
by Josh
Are you using the latest usb_modeswitch version from this site?

Re: 4 dongles of same type, not switching on system Boot

Posted: 10 Dec 2015, 20:32
by ramakrishna
Yes Josh i am using 2.2.6 from the site ...

Re: 4 dongles of same type, not switching on system Boot

Posted: 10 Dec 2015, 23:40
by Josh
Ah, I can see you have "upstart" on your system ... I'm not sure I can test that on my systems any longer; most seem to have settled with "systemd".

It's likely that the problem is there somewhere. I'll try to check.

Re: 4 dongles of same type, not switching on system Boot

Posted: 23 Dec 2015, 10:02
by ramakrishna
Hi Josh,
Are you tried on the option which you are suspecting on the issue happened.
If you want some data to analyse please let me know.