Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

4 dongles of same type, not switching on system Boot

Post by ramakrishna » 28 Apr 2015, 16:37

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
Attachments
reported_usb_modeswitch_log.txt
i added this log which i captured while i am doing experiments
(9.65 KiB) Downloaded 722 times

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 29 Apr 2015, 08:41

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.

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 02 May 2015, 16:00

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

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 15 May 2015, 15:59

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.

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 15 May 2015, 17:12

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.

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 16 May 2015, 08:20

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.

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 16 May 2015, 11:51

O.K., and what happens now when you try to switch 8 dongles during boot, with the version from this site installed?

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 16 May 2015, 12:03

only one dongle is getting mode switched and other are in storage device state.

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 16 May 2015, 15:32

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.

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 16 May 2015, 15:51

All the dongles i am using are same model.

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 10 Dec 2015, 09:21

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
Attachments
usb_modeswitch_1-1.2.2.log
just i rename this file orginally its like usb_modeswitch_1-1.2.2
(2.7 KiB) Downloaded 611 times
usb_modeswitch.log
(6.94 KiB) Downloaded 596 times

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 10 Dec 2015, 19:35

Are you using the latest usb_modeswitch version from this site?

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 10 Dec 2015, 20:32

Yes Josh i am using 2.2.6 from the site ...

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

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

Post by Josh » 10 Dec 2015, 23:40

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.

ramakrishna
Posts: 9
Joined: 28 Apr 2015, 16:02

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

Post by ramakrishna » 23 Dec 2015, 10:02

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.

Post Reply