Author Message

<  Setup Discussion  ~  ZTE MF637

PostPosted: Mon Apr 26, 2010 7:53 pm
Posts: 5Joined: Fri Apr 23, 2010 1:14 pm
Hi
Thank you for your answer. I did, what you had advised me. Downloaded the newest data from
http://www.draisberghof.de/usb_modeswitch/#intro

Now my config file is:
root@vhjlinux1 ~>cat /etc/usb_modeswitch.conf
# Configuration for the usb-modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch" in /lib/udev
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)

My command:

./usb_modeswitch -Wc /etc/usb_modeswitch.conf

And the result remained as it was:
Reading config file: /etc/usb_modeswitch.conf

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.1 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x19d2
DefaultProduct= 0x2000
TargetVendor= 0x19d2
TargetProduct= 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

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
USB error: couldn't opendir(): No such file or directory

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.

For me it is the most problematic line, that it cann't open a direktory?

If I plugg in my USB stick to a Windows PC, I see some .exe file , a setup.ini and an AutoRun.dat. Thier content:
setup.ini
[Startup]
EnableLangDlg=Y
ProductGUID=A9E5EDA7-2E6C-49E7-924B-A32B89C24A04
CompanyName=ZTE
CompanyURL=http://www.zte.com.cn
ErrorReportURL=http://www.installshield.com/isetup/ProErrorCentral.asp?ErrorCode=%d : 0x%x&ErrorInfo=%s
MediaFormat=0
LogMode=1
Resource=_Setup.dll
SmallProgress=Y
SplashTime=
CheckMD5=Y
CmdLine=
ShowPasswordDialog=N
EngineVersion=14.0.0.162
EngineBinding=1
[Languages]
Default=0x0009
count=9
key0=0x0009
key1=0x0007
key2=0x0013
key3=0x0015
key4=0x001a
key5=0x0005
key6=0x000e
key7=0x001b
key8=0x0c1a

The AutoRun.dat
[SETUP_CONFIG]
PRODUCT_GUID_KEY=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A9E5EDA7-2E6C-49E7-924B-A32B89C24A04}
USB_ID=USB\Vid_19D2&Pid_2000
APP_SETUP_PATH=Data\setup.exe
APP_VERSION_KEY=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A9E5EDA7-2E6C-49E7-924B-A32B89C24A04}
APP_VERSION_NAME=AppVersion
APP_VERSION_VALUE=TMO_HU_P673A3_PCV1.0.0B01
APP_FILE_NAME=UIMain.exe
APP_PARAMETER_FLAG=0
APP_PARAMETER= -appid DESKBOARDAPP
APP_PATH_KEY=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A9E5EDA7-2E6C-49E7-924B-A32B89C24A04}
APP_PATH_NAME=InstallLocation
FILE_CHECK_NUM=1

[FILE_CHECK_LIST]
FILE0=UIMain.exe


Thank you again for your help
Ljutka :cry:


Offline Profile
PostPosted: Mon Apr 26, 2010 9:59 pm
Site AdminPosts: 4815Joined: Sat Nov 03, 2007 12:30 am
Hmm, can you check if "lsusb" works? And if yes, what does it say if the stick is plugged?


Offline Profile
PostPosted: Tue Apr 27, 2010 3:26 pm
Posts: 5Joined: Fri Apr 23, 2010 1:14 pm
:cry:
Hi,
My busybox is an early version, it doesnot contains lsusb. (version 1.0 ). I try to update or upgrade it.
I pluged the USB stick into a PC wich works with Debian, and got the following:

debian-otthon:/home/lj/usb# lsusb
Bus 001 Device 001: ID 1d6b:0001

I hope it tells the same Id on any PC.
Thanks
ljutka


Offline Profile
PostPosted: Tue Apr 27, 2010 7:25 pm
Site AdminPosts: 4815Joined: Sat Nov 03, 2007 12:30 am
ljutka wrote:
My busybox is an early version, it doesnot contains lsusb.
"lsusb" is a separate program which is based on libusb like usb_modeswitch.
But never mind, do a "cat /proc/bus/usb/devices". This should give you a list of active USB devices (which was the purpose of lsusb too).
The point is to see that the modem is actually there and recognizable by any programs.
ljutka wrote:
I pluged the USB stick into a PC wich works with Debian, and got the following:

debian-otthon:/home/lj/usb# lsusb
Bus 001 Device 001: ID 1d6b:0001
This is the ID of the Linux root hub. There should be more devices listed; the modem has the 19d2:2000 initially.



Offline Profile
PostPosted: Wed May 05, 2010 4:30 pm
Posts: 5Joined: Fri Apr 23, 2010 1:14 pm
:cry:

Hi,
I pluged-in my USB stick to a PC working with Debian, but neither the lsusb commende nore the cat /proc/bus/usb/devices commande didn't give any answer. Later I pluged-in the stick to a PC working with Ubuntu, and I got the following answer:


$lsusb -d 19d2:2000
Bus 001 Device 004: ID 19d2:2000 ONDA Communication S.p.A
$lsusb -d 19d2:2000 -v

Bus 001 Device 004: ID 19d2:2000 ONDA Communication S.p.A
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2 ONDA Communication S.p.A
idProduct 0x2000
bcdDevice 0.00
iManufacturer 3
iProduct 2
iSerial 4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 1
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
can't get device qualifier: Operation not permitted
can't get debug qualifier: Operation not permitted
cannot read device status, Operation not permitted (1)

Could you advice me something?

Thanks for your help
ljutka


Offline Profile
PostPosted: Wed May 05, 2010 7:45 pm
Site AdminPosts: 4815Joined: Sat Nov 03, 2007 12:30 am
Always run "lsusb" as root or with "sudo"!!


Offline Profile
PostPosted: Thu May 06, 2010 10:52 am
Posts: 5Joined: Fri Apr 23, 2010 1:14 pm
:cry:
Of course, I run lsusb as root, but no reasult have got.
ljutka


Offline Profile
PostPosted: Thu May 06, 2010 1:27 pm
Site AdminPosts: 4815Joined: Sat Nov 03, 2007 12:30 am
Your command prompt ("$") and the "Operation not permitted" error suggests otherwise.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
8 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Post new topic  Reply to topic
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 post attachments in this forum
cron