Hi,

I have ipaq hw6515, windows mobile driver [1] installed on it so the machine
looks like modem but there is problem. It responds to AT commands but
not for ppp LCP ConfReq requests.

I wonder if your linux ipaq driver supports using ipaq as an modem in that way?

This diff was needed for driver to recognize device:

$ diff -u drivers/usb/serial/ipaq.c~ drivers/usb/serial/ipaq.c
--- drivers/usb/serial/ipaq.c~  2005-12-04 20:43:36.000000000 +0100
+++ drivers/usb/serial/ipaq.c   2005-12-21 22:22:54.000000000 +0100
@@ -316,6 +316,7 @@
        { USB_DEVICE(0x0B05, 0x9200) }, /* ASUS USB Sync */
        { USB_DEVICE(0x0B05, 0x9202) }, /* ASUS USB Sync */
        { USB_DEVICE(0x0BB4, 0x00CE) }, /* HTC USB Sync */
+       { USB_DEVICE(0x0BB4, 0x00CF) }, /* ipaq HTC USB modem */
        { USB_DEVICE(0x0BB4, 0x0A01) }, /* PocketPC USB Sync */
        { USB_DEVICE(0x0BB4, 0x0A02) }, /* PocketPC USB Sync */
        { USB_DEVICE(0x0BB4, 0x0A03) }, /* PocketPC USB Sync */

while device itself is:

Bus 002 Device 003: ID 0bb4:00cf High Tech Computer Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.01
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        16
  idVendor           0x0bb4 High Tech Computer Corp.
  idProduct          0x00cf
  bcdDevice            0.90
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      2
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         9984
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         2 Communications
      bInterfaceSubClass    255
      bInterfaceProtocol    255
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 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
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0101  1x 257 bytes
        bInterval               0
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         9984
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         2 Communications
      bInterfaceSubClass    255
      bInterfaceProtocol    255
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 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
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0101  1x 257 bytes
        bInterval               0

and ppp logs:
Dec 21 22:27:49 iarm chat[7850]: abort on (BUSY)
Dec 21 22:27:49 iarm chat[7850]: abort on (ERROR)
Dec 21 22:27:49 iarm chat[7850]: abort on (NO CARRIER)
Dec 21 22:27:49 iarm chat[7850]: send (AT^M)
Dec 21 22:27:49 iarm chat[7850]: expect (OK)
Dec 21 22:27:49 iarm chat[7850]: ^M
Dec 21 22:27:49 iarm chat[7850]: OK
Dec 21 22:27:49 iarm chat[7850]:  -- got it
Dec 21 22:27:49 iarm chat[7850]: send (AT+CGDCONT=1,"IP","www.idea.pl","",0,0^M)
Dec 21 22:27:50 iarm chat[7850]: expect (OK)
Dec 21 22:27:50 iarm chat[7850]: ^M
Dec 21 22:27:50 iarm chat[7850]: ^M
Dec 21 22:27:50 iarm chat[7850]: OK
Dec 21 22:27:50 iarm chat[7850]:  -- got it
Dec 21 22:27:50 iarm chat[7850]: send (ATD"*99***1#"^M)
Dec 21 22:27:50 iarm chat[7850]: expect (CONNECT)
Dec 21 22:27:50 iarm chat[7850]: ^M
Dec 21 22:27:50 iarm chat[7850]: ^M
Dec 21 22:27:50 iarm chat[7850]: OK^M
Dec 21 22:27:58 iarm chat[7850]: ^M
Dec 21 22:27:58 iarm chat[7850]: CONNECT
Dec 21 22:27:58 iarm chat[7850]:  -- got it
Dec 21 22:27:58 iarm pppd[7848]: Serial connection established.
Dec 21 22:27:58 iarm pppd[7848]: using channel 2
Dec 21 22:27:58 iarm pppd[7848]: Using interface ppp0
Dec 21 22:27:58 iarm pppd[7848]: Connect: ppp0 <--> /dev/tts/USB0
Dec 21 22:27:59 iarm pppd[7848]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0xe315f506>]
Dec 21 22:28:02 iarm pppd[7848]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0xe315f506>]
Dec 21 22:28:05 iarm pppd[7848]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0xe315f506>]
Dec 21 22:28:08 iarm pppd[7848]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0xe315f506>]
and after a few more LCP ConfReq it just says that LCP failed.

[1]. http://h18007.www1.hp.com/support/files/HandheldiPAQ/us/download/23071.html
-- 
Arkadiusz Miƛkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to