Author Message

<  Device Information  ~  [Solved]Device CH690 ,2077:1000 swithced . 2077:7001

PostPosted: Fri Feb 01, 2013 4:54 am Reply with quote
Posts: 3Joined: Fri Feb 01, 2013 4:35 am
It's VID 2077 PID1000 bef. switch
VID 2077 PID 7001 aft. switch


ubuntu 10.4 with kernel 3.0.0.-30 PAE
i captured the log from PID1000 ,but each of the messages was sent to the device ,but the PID did NOT change to PID7001,NO error echoed .


the config is :
DefaultVendor= 0x2077
DefaultProduct= 0x1000
TargetVendor= 0x2077
TargetProduct= 0x7001
#HuaweiMode=1
#DetachStorageOnly=1
MessageContent="55534243c0dce9812400000080000612000000240000000000000000000000"
#MessageContent="55534243601aed812400000080000612000000240000000000000000000000"
#MessageContent="55534243601aed813800000080000612000000380000000000000000000000"
#MessageContent="05800200330000004368616e67202020686f6e67202020202020202020202020322e33315000490050005f007b0043004100410041003900"
#MessageContent="555342433088d5810800000080000a25000000000000000000000000000000"
#MessageContent="55534243c0dce9810800000080000a4a010000000000000800000000000000"
#MessageContent="55534243c0dce9810000000000000600000000000000000000000000000000"

lsusb


Bus 002 Device 022: ID 2077:1000
Bus 002 Device 010: ID 80ee:0021
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


the mesg


* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Reading config file: /etc/usb_modeswitch.conf
DefaultVendor= 0x2077
DefaultProduct= 0x1000
TargetVendor= 0x2077
TargetProduct= 0x7001
TargetClass= not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint= not set
MessageContent="55534243c0dce9812400000080000612000000240000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 020 on 002
usb_os_find_devices: Found 010 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 020 on bus 002 ...
Using endpoints 0x05 (out) and 0x83 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

Received inquiry data (detailed identification)
-------------------------
Vendor String: Chang
Product String: hong
Revision String: 2.31
-------------------------

Device description data (identification)
-------------------------
Manufacturer: Changhong
Product: Changhong CH690
Serial No.: 000000000002
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x05 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.





lsusb
Bus 002 Device 022: ID 2077:1000
Bus 002 Device 010: ID 80ee:0021
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


what shall I do ?

thanks.
Attachments:
File comment: CAPTURED FROM VID2077 PID100
UsbSnoop.log [59.45 KiB]
Downloaded 151 times



Last edited by suisou on Fri Feb 01, 2013 8:47 am, edited 2 times in total.
Offline Profile
PostPosted: Fri Feb 01, 2013 6:56 am Reply with quote
Posts: 1106Location: Koh Samui, THJoined: Wed Jul 11, 2012 3:14 pm
Try the message from usb_modeswitch data package:

5553424308902082000000000000061b000000020000000000000000000000


and see what you get from that.

Please post the output from lsusb -v -d 2077:xxxx where xxxx is the switched product id.

edit: your usb snoop log contains that message so it should be the correct one.

00000000: 55 53 42 43 70 2e d3 81 00 00 00 00 00 00 06 1b
00000010: 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00

disregard the difference in bytes 4-7, they are not important.


Offline Profile
PostPosted: Fri Feb 01, 2013 7:43 am Reply with quote
Posts: 3Joined: Fri Feb 01, 2013 4:35 am
it works by the msg you posted.

Now ,the lsusb msg is follow.


but in the /dev , no new device files added!

How to added the ttySS0 automaticly!?


thanks!

root@suisou-desktop:/home/suisou# lsusb -v -d 2077:7001



Code:
Bus 002 Device 010: ID 2077:7001 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2077
  idProduct          0x7001
  bcdDevice            0.00
  iManufacturer           1 Changhong
  iProduct                2 Changhong  CH690
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          108
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval             128
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              3 Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)


Offline Profile
PostPosted: Fri Feb 01, 2013 8:14 am Reply with quote
Posts: 1106Location: Koh Samui, THJoined: Wed Jul 11, 2012 3:14 pm
suisou wrote:
it works by the msg you posted.

Now ,the lsusb msg is follow.

but in the /dev , no new device files added!

How to added the ttySS0 automaticly!?

thanks!



Intrface#0 from your lsusb listing looks like the modem interface which you will find as /dev/ttyUSB0 after loading the option.ko driver.
Your stick is not directly supported by the option driver but you can add it for on-the-fly support.

load the option driver:

modprobe usb_wwan
modprobe option

then

echo "2077 7001" > /sys/bus/usb-serial/drivers/option1/new_id


Offline Profile
PostPosted: Fri Feb 01, 2013 8:44 am Reply with quote
Posts: 3Joined: Fri Feb 01, 2013 4:35 am
thanks,
the new device files is added!

thanks.

root@suisou-desktop:/home/suisou/Downloads/usb-modeswitch-1.2.5# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 7594.411983] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 7594.412145] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 7594.412247] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB2


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
5 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