LinuxQuestions.org
Review your favorite Linux distribution.
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 01-06-2017, 06:34 AM   #1
MaxW
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
RHEL 6.8 & D-Link DWM-157 3g USB modem


Hi,

I have this issue: Need to setup/make working 3G USB modem D-Link DWM-157 (HW B1, SW 2.0.1EU) on RHEL 6.8

I did following:
I have installed USB modeswitch data 20160803 and USB modeswitch 2.4.0 - I ran the 'Make install' command in terminal in proper folder, and got no error msg - so I suppose all was installed fine.
I have libusb1-1.0.9.7.rc1 installed

It looks like modeswitch works somehow, as 'lsusb' command output shows 'ID 2001:7d02 D-Link Corp.'(switched from '2001:a707').
However when I open Computer from desktop, the device is shown as 'HSPA USB SCSI CD-ROM'.

I see 'segfault' in output of dmesg command (check attached file), can this be the issue?

Any idea how to solve this & make the device shown as USB 3g modem?
My guess is drivers are missing - any chance to get them somewhere?

As it is not possible to attach files here, so here is the file content:
**** LSUSB ****
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 002 Device 003: ID 8087:07dc Intel Corp.
Bus 002 Device 004: ID 04f2:b39a Chicony Electronics Co., Ltd
Bus 002 Device 007: ID 2001:7d02 D-Link Corp.
***************
**** dmesg ****
usb 2-1: new high speed USB device number 6 using xhci_hcd
usb 2-1: New USB device found, idVendor=2001, idProduct=a707
usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
usb 2-1: Product: D-Link DWM-157
usb 2-1: Manufacturer: D-Link,Inc
usb 2-1: SerialNumber: 536502507953430
usb 2-1: configuration #1 chosen from 3 choices
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb 2-1: USB disconnect, device number 6
usb_modeswitch[20181]: segfault at 50 ip 0000003dd0803076 sp 00007ffdef1aa9b0 error 4 in libusb-1.0.so.0.1.0[3dd0800000+e000]
usb 2-1: new high speed USB device number 7 using xhci_hcd
usb 2-1: New USB device found, idVendor=2001, idProduct=7d02
usb 2-1: New USB device strings: Mfr=9, Product=10, SerialNumber=0
usb 2-1: Product: D-Link DWM-157
usb 2-1: Manufacturer: D-Link,Inc
usb 2-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 4:0:0:0: Direct-Access HSPA USB SCSI CD-ROM 6225 PQ: 0 ANSI: 0 CCS
sd 4:0:0:0: Attached scsi generic sg1 type 0
sd 4:0:0:0: [sdb] Attached SCSI removable disk
*************



Thanks

PS: I am not a Linux guy, plz talk to me in a simple way when hinting what to do : )
 
Old 01-06-2017, 12:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,698

Rep: Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738Reputation: 5738
Quote:
Originally Posted by MaxW View Post
Hi,
I have this issue: Need to setup/make working 3G USB modem D-Link DWM-157 (HW B1, SW 2.0.1EU) on RHEL 6.8

I did following: I have installed USB modeswitch data 20160803 and USB modeswitch 2.4.0 - I ran the 'Make install' command in terminal in proper folder, and got no error msg - so I suppose all was installed fine. I have libusb1-1.0.9.7.rc1 installed

It looks like modeswitch works somehow, as 'lsusb' command output shows 'ID 2001:7d02 D-Link Corp.'(switched from '2001:a707').
However when I open Computer from desktop, the device is shown as 'HSPA USB SCSI CD-ROM'.
..which means that the mode did NOT switch, since if it did, you'd not see the CD-ROM device, but the communications device. How did you install usb_modeswitch? You *SHOULD* be able to run
Code:
yum install wvdial usb_modeswitch-data usb_modeswitch
...and have it installed from repositories.
Quote:
I see 'segfault' in output of dmesg command (check attached file), can this be the issue?
Segfaults usually indicate the program crashed...if so, it didn't work, so it didn't do what you needed.
Quote:
Any idea how to solve this & make the device shown as USB 3g modem? My guess is drivers are missing - any chance to get them somewhere?
Drivers aren't needed here; you need to install and make function the usb_modeswitch program.
Quote:
As it is not possible to attach files here, so here is the file content:
PS: I am not a Linux guy, plz talk to me in a simple way when hinting what to do : )
Please don't use text-speak here...see the LQ Rules.

If you're not a 'Linux guy', why on EARTH would you use RHEL? It is not made for 'consumer' hardware, but rather for back-room servers that typically don't even have keyboards/mice, much less sound/graphics/wifi/etc. Also, RHEL 6.8 is old...latest is 7.x, and most importantly, RHEL is NOT FREE...unless you're paying for RHEL, you will not have access to any updates/patches/bugfixes/drivers/security fixes, ever. You can use it, but it will be MUCH harder to use. If you absolutely NEED a server-class distro, stop where you are and load the latest version of CentOS instead...it is identical to RHEL in pretty much every way, but totally free.

If you do NOT need a server-class distro, and you're just starting out, load the latest version of Mint...chances are, everything will 'just work' right out of the box. Also, after you're done, you'll need to configure the way for it to 'dial out'...and that will depend on the desktop GUI you're using, or wvdial if you're sticking with command-line.
 
  


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
Which is the suitable usb modem for rhel 6 & fedora. robinselvam Linux - Software 1 06-02-2014 10:00 AM
[SOLVED] how to install dlink dwm-156 hsupa usb adapter(3g modem) in ubuntu 13.10? rubankumars Linux - Hardware 1 02-25-2014 06:01 AM
Reconnect failure with D-LINK DWM-156 modem v2george Slackware 7 11-15-2012 05:45 AM
how to enable D-Link usb modem in fedora ..model : dwm-156 vinoypm88 Linux - Newbie 2 11-06-2012 07:59 AM
D-Link DFM-560ES modem driver for RHEL 4 needed linbie1 Linux - Newbie 1 10-04-2007 01:18 AM

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

All times are GMT -5. The time now is 10:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration