LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2015, 12:14 PM   #1
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Rep: Reputation: 15
problem with HC25 Modem


Hello,
I have a Siemens HC25 modem on my board on which there is the following linux version.
Code:
Linux version 3.13.6-porteus (root@porteus) (gcc version 4.8.2 (GCC) ) #2 SMP PREEMPT Fri Jun 13 15:44:09 CEST 2014
Apparently, the modem is detected as a flash storage, please, look at the output of dmesg heafter.
Code:
[  710.179187] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[  710.211207]  sdc:
[  710.241196] sd 5:0:0:0: [sdc] No Caching mode page found
[  710.241206] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[  710.241216] sd 5:0:0:0: [sdc] Attached SCSI removable disk
[  831.000131] usb 3-1: USB disconnect, device number 5
[  931.916072] usb 3-1: new full-speed USB device number 6 using uhci_hcd
[  932.067329] option 3-1:1.0: GSM modem (1-port) converter detected
[  932.067481] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[  932.069324] option 3-1:1.1: GSM modem (1-port) converter detected
[  932.069488] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[  932.071322] option 3-1:1.2: GSM modem (1-port) converter detected
[  932.071480] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[  934.072198] option1 ttyUSB2: option_instat_callback: error -2
[  934.073193] option1 ttyUSB1: option_instat_callback: error -2
[  942.206089] usb 3-1: USB disconnect, device number 6
[  942.206333] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  942.206360] option 3-1:1.0: device disconnected
[  942.208447] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  942.208478] option 3-1:1.1: device disconnected
[  942.208703] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  942.208727] option 3-1:1.2: device disconnected
[  942.854101] usb 3-1: new full-speed USB device number 7 using uhci_hcd
[  943.006218] usb-storage 3-1:1.0: USB Mass Storage device detected
[  943.011078] scsi6 : usb-storage 3-1:1.0
[  944.016181] scsi 6:0:0:0: Direct-Access     Siemens  HC25 flash disk  0.00 PQ: 0 ANSI: 2
[  944.023172] sd 6:0:0:0: [sdc] 18432 512-byte logical blocks: (9.43 MB/9.00 MiB)
[  944.026157] sd 6:0:0:0: [sdc] Write Protect is off
[  944.026166] sd 6:0:0:0: [sdc] Mode Sense: 0b 00 00 08
[  944.032159] sd 6:0:0:0: [sdc] No Caching mode page found
[  944.032168] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[  944.067151] sd 6:0:0:0: [sdc] No Caching mode page found
[  944.067160] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[  944.090177]  sdc:
[  944.114167] sd 6:0:0:0: [sdc] No Caching mode page found
[  944.114177] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[  944.114186] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 1016.895077] usb 3-1: reset full-speed USB device number 7 using uhci_hcd
[ 1025.670096] usb 3-1: reset full-speed USB device number 7 using uhci_hcd
[ 1152.227089] usb 3-1: USB disconnect, device number 7
That's quite normal as far as I know since a device on the usb is seen as a storage as soon as it is attached to a board or a PC and than (if you are on Windows) the driver to configure it as a modem starts.
In Linux, I know that we have to switch the usb mode, so I tried the commands in the following order.
lsusb in order to know product id and vendor id

Code:
Bus 002 Device 002: ID 03f0:0324 Hewlett-Packard SK-2885 keyboard
Bus 003 Device 007: ID 0681:0040 Siemens Information and Communication Products 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
then I tried
Code:
usb_modeswitch -R -v 0681 -p 0040
which returned

Code:
Look for default devices ...
 No devices in default mode found. Nothing to do. Bye!
Why I used -R option? Because at best of my knowledge there is no special command message for Siemens device
()

Then I tried with product id 0041, Why 0041? I cannot remember all my monkey attempts to make things work, but I noticed this
id somewhere.

Code:
usb_modeswitch -R -v 0681 -p 0041
which returned

Code:
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 007 on bus 003
Get the current device configuration ...
 OK, got current device configuration (1)
Use interface number 0
Use endpoints 0x05 (out) and 0x84 (in)
Inquire device details; driver will be detached ...
Looking for active driver ...
No active driver found. Detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: Siemens 
   Model String: HC25 flash disk 
Revision String: 0.00
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: Siemens
     Product: HC25 Mass Storage
  Serial No.: not provided
-------------------------
Warning: no switching method given. See documentation
Reset USB device .
 Device was reset
-> Run lsusb to note any changes. Bye!
Now the output of lsusb is
Code:
Bus 002 Device 002: ID 03f0:0324 Hewlett-Packard SK-2885 keyboard
Bus 003 Device 007: ID 0681:0041 Siemens Information and Communication Products 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
But still the modem is a storage, dmesg looks pretty similar to the one above.

According to this post I also tried to start option and usbserial.
To tell the truth, they were already running. I just removed both and I started one at a time. Unfortunately no effect.
I list the modules (maybe it helps you).

Code:
Module                  Size  Used by
option                 25400  0 
usb_wwan                3552  1 option
usbserial              12792  2 option,usb_wwan
Plx9030                13028  2 
ipv6                  169924  14 
arc4                    1172  2 
8250_pci               23628  0 
snd_intel8x0           18444  0 
snd_ac97_codec         67700  1 snd_intel8x0
ac97_bus                 492  1 snd_ac97_codec
i2c_i801                6872  0 
rng_core                1928  0 
e100                   19004  0 
mii                     2388  1 e100
ath5k                  98640  0 
ath                    12036  1 ath5k
led_class               1500  1 ath5k
mac80211              170632  1 ath5k
cfg80211              116676  3 ath,ath5k,mac80211
rfkill                  8148  1 cfg80211
i915                  474332  1 
shpchp                 16572  0 
video                   8532  1 i915
drm_kms_helper         23928  1 i915
fan                     1472  0 
intel_agp               6480  1 i915
intel_gtt               7176  3 i915,intel_agp
thermal                 5864  0 
8250                   17972  1 8250_pci
serial_core            12020  3 8250
Also, I checked the file lib/udev/rules.d/40-usbmodeswitch.rules in which there is no line regarding Siemens product.
I haven't seen the files /lib/udev/modem-modemswitch neither /lib/udev/action-modeswitch.

Thank you in advance for any suggestion.
 
Old 11-18-2015, 12:22 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,599

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Since you've already tried the usb_modeswitch program, have you tried simply mounting the storage partition, then UNmounting it? Sometimes that'll do it.
 
Old 11-19-2015, 04:40 AM   #3
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks TBOne, I'll try it and I'll keep posting my attempts.
 
Old 11-24-2015, 03:23 PM   #4
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks to the help of other colleagues we managed to sort it out (partially).
What you have to do is:
1) shutdown the usb device, you can see that it disappears from the listed device with lsusb
2) start it again
3) there are few seconds when the device works as NetMod, you will see that the product id is 0040
4) send the command AT^ModMod I don't remember exactly it, in other word if you look on the manual you will find the AT command to change the mode.

Now we have another problem, all of sudden the device turns to the mass storage mode again.
Anyone can help me?
Thank you in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with HC25 3g modem axel_lin Linux - Networking 2 03-15-2011 10:35 PM
problem with configuring my usb edge modem (wvdialconf can not detect modem):fedora 9 Asif Akter Linux - Hardware 1 01-10-2011 06:06 AM
modem(Agere PCI soft modem) problem sajeev Linux - Hardware 1 04-17-2006 07:26 AM
Problem with a modem Mathijs Linux - Newbie 2 01-16-2003 10:18 AM
Can you help with my modem problem? Paul_Lee Linux - Newbie 12 07-21-2001 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration