Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb_modeswitch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Wed Jun 29, 2016 11:19 am    Post subject: usb_modeswitch Reply with quote

I have a :
Bus 001 Device 002: ID 19d2:1024 ZTE WCDMA Technologies MSM


I was following https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem
to configure this device, the drivers are build as modules not into the kernel

I'm going through the second step trying to switch modes, here's /etc/usb_modeswitch.conf:
DefaultVendor= 0x19d2
DefaultProduct= 0x1024
TargetVendor= 0x19d2
argetProduct= not set
TargetProductList=0001,0002,0015,0016,0017,0031,0037,0052,0055,0063
TargetClass= not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
DisableMBIMGlobal=1

when I try to run usb_modeswitch:
g50-80 ~ # usb_modeswitch -c /etc/usb_modeswitch.conf
Look for target devices ...
Error: entry in product ID list has wrong length: 0063 . Ignored
No devices in target mode or class found
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 002 on bus 001
Current configuration number is 1
Use interface number 0
Error: message endpoint not given or found. Abort


and there are no ttyUSB devices
g50-80 ~ # ls -l /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory



I want to be able to connect using this USB modem.

thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43194
Location: 56N 3W

PostPosted: Wed Jun 29, 2016 5:52 pm    Post subject: Reply with quote

Adel Ahmed,

It looks like you are on the right track. My 3G modem appears as three devices at the same time, so I don't use usb_modeswitch.
This post says a few words about usb_modeswitch.conf
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Fri Jul 01, 2016 12:24 pm    Post subject: Reply with quote

I've tried following directions in that post and Im getting the same error
it seems I have to configure the message endpoint correctly

lsusb shows the endpoint as :
bEndpointAddress 0x81 EP 1 IN


which I had configured but no dice
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Fri Jul 01, 2016 1:04 pm    Post subject: Reply with quote

here's my latest config:
DefaultVendor= 0x19d2
DefaultProduct= 0x1024
TargetVendor= 0x19d2
TargetProduct=0x1022
TargetClass= not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
MessageEndpoint=0×81
ResponseEndpoint=0x01
Interface=0x00


g50-80 usb_modeswitch # usb_modeswitch -c /etc/usb_modeswitch.conf
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 007 on bus 001
Current configuration number is 1
Use interface number 0
Error: message endpoint not given or found. Abort
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Jul 04, 2016 8:20 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Wed Jul 06, 2016 11:35 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Jul 11, 2016 6:59 pm    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Jul 26, 2016 8:21 am    Post subject: Reply with quote

still stuck :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum