Re: ZTE mf626 USB modem support

2013-03-07 Thread Maximo Pech
Here is my output of lsusb -v, hope it helps

Bus 000 Device 001: ID 8086: Intel Corp.
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 1 Single TT
  bMaxPacketSize064
  idVendor   0x8086 Intel Corp.
  idProduct  0x
  bcdDevice1.00
  iManufacturer   1 Intel
  iProduct2 EHCI root hub
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0x40
  (Missing must-be-set bit!)
  Self Powered
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  0 Full speed (or root) hub
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval 255

Hub Descriptor:
  bLength  11
  bDescriptorType  41
  nNbrPorts 8
  wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
TT think time 8 FS bits
  bPwrOn2PwrGood  200 * 2 milli seconds
  bHubContrCurrent  0 milli Ampere
  DeviceRemovable0x00 0x00
  PortPwrCtrlMask0x00 0x00
 Hub Port Status:
   Port 1: .0500 highspeed power
   Port 2: .0500 highspeed power
   Port 3: .0503 highspeed power enable connect
   Port 4: .0500 highspeed power
   Port 5: .0500 highspeed power
   Port 6: .0500 highspeed power
   Port 7: .0500 highspeed power
   Port 8: .0500 highspeed power
Device Status: 0x0001
  Self Powered

Bus 000 Device 002: ID 19d2:0117 ZTE WCDMA Technologies MSM
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x19d2 ZTE WCDMA Technologies MSM
  idProduct  0x0117
  bcdDevice0.00
  iManufacturer   3 ZTE,Incorporated
  iProduct2 ZTE HSPA Technologies MSM
  iSerial 4 P680A1ZTED01
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  108
bNumInterfaces  4
bConfigurationValue 1
iConfiguration  1 ZTE Configuration
bmAttributes 0xc0
  Self Powered
 MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
 

Re: ZTE mf626 USB modem support

2013-02-28 Thread Stuart Henderson
On 2013-02-28, Maximo Pech mak...@gmail.com wrote:
 The patch that Stuart provided worked for my ZTE MF668 device.
 
 I got this on dmesg:

 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 umsm0 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom1 at umsm1
 umsm2 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom2 at umsm2
 umsm3 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2

 I think when it says umsm0 detached is when it does the mode
 switching because it didn't appear before and also the device takes a
 few seconds more to be ready.

 Thanks for all the help.



Problem with this patch is that it breaks another device with the
same vendor/product ID, ZTE K3565-Z.



Re: ZTE mf626 USB modem support

2013-02-27 Thread Maximo Pech
The patch that Stuart provided worked for my ZTE MF668 device.

I got this on dmesg:

umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
umsm0 detached
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2

I think when it says umsm0 detached is when it does the mode
switching because it didn't appear before and also the device takes a
few seconds more to be ready.

Thanks for all the help.



Re: ZTE mf626 USB modem support

2013-02-17 Thread Maximo Pech
Finally I got it to work, but strangely my device comes up on /dev/cuaU1
not on /dev/cuaU0. Still have not tested the diff though.

2013/2/14 Maximo Pech mak...@gmail.com

 The AT command thing did the trick, now I have some trouble setting up
 ppp.conf, but I hope to get that sorted out.

 At this time I can't test the patch, but I promise to do it later.

 El miércoles, 13 de febrero de 2013, Kirill Bychkov escribió:

 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
 Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
 from it's internal cd and then connected with putty to it's second
 serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage
 disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully
 test it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.



Re: ZTE mf626 USB modem support

2013-02-17 Thread Maximo Pech
It turns out that my modem is not the ZTE MF626, it is in reality the ZTE
MF668 and it works on /dev/cuaU1

2013/2/14 Kirill Bychkov ya...@linklevel.net

 On Thu, February 14, 2013 07:49, Kirill Bychkov wrote:
  On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
  Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
  from it's internal cd and then connected with putty to it's second
 serial
  port (ZTE NMEA Device), whick answers on AT comand with OK.
  After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
  autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage
 disappeared
  from my computer.
  Now I have in dmesg:
  umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umsm0: missing endpoint
  umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umsm1: missing endpoint
  umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated
 ZTE CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umass0: using SCSI over Bulk-Only
  scsibus5 at umass0: 2 targets, initiator 0
  sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
  serial.19d20031567890ABCDEF
  umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  ucom0 at umsm2
 
  At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
  I have no usable SIM for this provider-locked modem, so I can't fully
 test it.
 
  To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
  modem with cu.
  I hope this will help.
 

 My modem isn't provider-locked as I thought. Inserting another SIM helped
 to
 connect to ISP.
 I just copied /etc/ppp/ppp.conf.sample to /etc/ppp/ppp.conf, changed set
 device and allow user to reflect reality and just run 'ppp -ddial
 mobile'
 to connect.

 Patch adds mentioning MF626 support and gives clues how to handle such
 modems.
 OK? Comments?

 Index: umsm.4
 ===
 RCS file: /cvs/src/share/man/man4/umsm.4,v
 retrieving revision 1.87
 diff -u -r1.87 umsm.4
 --- umsm.4  4 Jan 2013 02:53:54 -   1.87
 +++ umsm.4  14 Feb 2013 06:00:08 -
 @@ -111,6 +111,7 @@
  .It Li ZTE AC2746 Ta USB
  .It Li ZTE MF112 Ta USB
  .It Li ZTE MF190 Ta USB
 +.It Li ZTE MF626 Ta USB
  .It Li ZTE MF633 Ta USB
  .It Li ZTE MF637 Ta USB
  .El
 @@ -167,6 +168,10 @@
  on the third port, and after that the actual PPP connection comes
  up on the first port.
  The function of the second and fourth ports is unknown.
 +.Pp
 +Some modems require enabling modem mode with AT commands.
 +This can be configured on other OS after installation of
 +software shipped with modem.
  .Sh EXAMPLES
  An example
  .Pa /etc/ppp/ppp.conf



Re: ZTE mf626 USB modem support

2013-02-14 Thread Stuart Henderson
On 2013-02-14, Maximo Pech mak...@gmail.com wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.



It is likely to work with this diff:

Index: umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.89
diff -u -p -r1.89 umsm.c
--- umsm.c  4 Jan 2013 02:49:44 -   1.89
+++ umsm.c  14 Feb 2013 16:34:01 -
@@ -169,7 +169,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_QUANTA2, USB_PRODUCT_QUANTA2_Q101 }, 0},
 
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC2746 }, 0},
-   {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER }, DEV_UMASS4},
+   {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER }, DEV_UMASS6},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2 }, DEV_UMASS6},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER3 }, DEV_UMASS7},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER4 }, DEV_UMASS4},


This is what usb_modeswitch on linux does for all devices with this
vendor/product ID so it may be appropriate for us to do the same.

However it would really need testing on other *working* devices to
make sure it doesn't cause a problem there. (identifying which
devices need testing is made harder because you can't just check
usbdevs -v / lsusb after they have connected because the device
stops using the installer product id at that point).



Re: ZTE mf626 USB modem support

2013-02-14 Thread Maximo Pech
The AT command thing did the trick, now I have some trouble setting up
ppp.conf, but I hope to get that sorted out.

At this time I can't test the patch, but I promise to do it later.

El miércoles, 13 de febrero de 2013, Kirill Bychkov escribió:

 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
 Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
 from it's internal cd and then connected with putty to it's second serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully test
 it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.



ZTE mf626 USB modem support

2013-02-13 Thread Maximo Pech
Hi list, I see this was asked before but never got solved, so I ask again.

Has someone got this device working on openbsd? Is it supported?

Thanks and regards.



Re: ZTE mf626 USB modem support

2013-02-13 Thread Kirill Bychkov
On Thu, February 14, 2013 06:24, Maximo Pech wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.


Hi. I plugged this modem on my Win7 notebook, installed software and drivers
from it's internal cd and then connected with putty to it's second serial
port (ZTE NMEA Device), whick answers on AT comand with OK.
After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered Close
autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
from my computer.
Now I have in dmesg:
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umsm0: missing endpoint
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umsm1: missing endpoint
umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct removable
serial.19d20031567890ABCDEF
umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
ucom0 at umsm2

At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
I have no usable SIM for this provider-locked modem, so I can't fully test it.

To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
modem with cu.
I hope this will help.



Re: ZTE mf626 USB modem support

2013-02-13 Thread Kirill Bychkov
On Thu, February 14, 2013 07:49, Kirill Bychkov wrote:
 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.


 Hi. I plugged this modem on my Win7 notebook, installed software and drivers
 from it's internal cd and then connected with putty to it's second serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully test it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.


My modem isn't provider-locked as I thought. Inserting another SIM helped to
connect to ISP.
I just copied /etc/ppp/ppp.conf.sample to /etc/ppp/ppp.conf, changed set
device and allow user to reflect reality and just run 'ppp -ddial mobile'
to connect.

Patch adds mentioning MF626 support and gives clues how to handle such modems.
OK? Comments?

Index: umsm.4
===
RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.87
diff -u -r1.87 umsm.4
--- umsm.4  4 Jan 2013 02:53:54 -   1.87
+++ umsm.4  14 Feb 2013 06:00:08 -
@@ -111,6 +111,7 @@
 .It Li ZTE AC2746 Ta USB
 .It Li ZTE MF112 Ta USB
 .It Li ZTE MF190 Ta USB
+.It Li ZTE MF626 Ta USB
 .It Li ZTE MF633 Ta USB
 .It Li ZTE MF637 Ta USB
 .El
@@ -167,6 +168,10 @@
 on the third port, and after that the actual PPP connection comes
 up on the first port.
 The function of the second and fourth ports is unknown.
+.Pp
+Some modems require enabling modem mode with AT commands.
+This can be configured on other OS after installation of
+software shipped with modem.
 .Sh EXAMPLES
 An example
 .Pa /etc/ppp/ppp.conf