Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
515ae172
Commit
515ae172
authored
Nov 26, 2002
by
Ganesh Varadarajan
Committed by
Greg Kroah-Hartman
Nov 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] added support for insmod options to specify vendor/product id. this
parent
b4f4f2a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
36 deletions
+31
-36
Documentation/usb/usb-serial.txt
Documentation/usb/usb-serial.txt
+11
-34
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+20
-2
No files found.
Documentation/usb/usb-serial.txt
View file @
515ae172
...
@@ -94,10 +94,11 @@ HandSpring Visor, Palm USB, and Cli
...
@@ -94,10 +94,11 @@ HandSpring Visor, Palm USB, and Cli
Compaq iPAQ, HP Jornada and Casio EM500 driver
Compaq iPAQ, HP Jornada and Casio EM500 driver
This driver can be used to connect to Compaq iPAQ, HP Jornada and Casio EM500
This driver can be used to connect to Compaq iPAQ, HP Jornada and Casio EM500
PDAs running Windows CE 3.0 or PocketPC 2002 using a USB cable/cradle. It
PDAs running Windows CE 3.0 or PocketPC 2002 using a USB cable/cradle.
has been tested only on the Compaq H3135, but is rumoured to work on
It's very likely that every device supported by ActiveSync USB works with this
with the H3600 and later models as well as the Jornada 548 and 568.
driver. The driver supports the Compaq iPAQ, Jornada 548/568 and the Casio
With minor modifications, it may work for other CE based handhelds too.
EM500 out of the box. For others, please use module parameters to specify
the product and vendor id. e.g. modprobe ipaq vendor=0x3f0 product=0x1125
The driver presents a serial interface (usually on /dev/ttyUSB0) over
The driver presents a serial interface (usually on /dev/ttyUSB0) over
which one may run ppp and establish a TCP/IP link to the iPAQ. Once this
which one may run ppp and establish a TCP/IP link to the iPAQ. Once this
...
@@ -105,36 +106,12 @@ Compaq iPAQ, HP Jornada and Casio EM500 driver
...
@@ -105,36 +106,12 @@ Compaq iPAQ, HP Jornada and Casio EM500 driver
significant advantage of using USB is speed - you can get 73 to 113
significant advantage of using USB is speed - you can get 73 to 113
kbytes/sec for download/upload to the iPAQ.
kbytes/sec for download/upload to the iPAQ.
The driver works intermittently with the usb-uhci driver but quite
This driver is only one of a set of components required to utilize
reliably with the uhci driver. However, performance is much better
the USB connection. Please visit http://synce.sourceforge.net which
with usb-uhci. It does not seem to work with ohci at all.
contains the necessary packages and a simple step-by-step howto.
You must setup hotplug to invoke pppd as soon as the iPAQ is connected.
Once connected, you can use Win CE programs like ftpView, Pocket Outlook
A ppp script like the one below should be kept in the file
from the iPAQ and xcerdisp, synce utilities from the Linux side.
/etc/hotplug/usb/ipaq Remember to chmod +x. Make sure there are no
options in /etc/ppp/options or ~/.ppprc which conflict with the ones
given below.
#!/bin/bash
MYIP=linux.box.ip
REMOTEIP=ipaq.ip
MYDNS=my.dns.server
killall -9 pppd
/usr/sbin/pppd /dev/ttyUSB0 \
connect "/usr/sbin/chat -v TIMEOUT 60 CLIENT 'CLIENTSERVER\c'" \
nocrtscts local debug passive $MYIP:$REMOTEIP ms-dns $MYDNS noauth \
proxyarp
You must also download and install asyncd from http://synce.sourceforge.net
This is required to emulate keep-alive packets which are exchanged by
ActiveSync and the iPAQ.
On connecting the cable, you should see the usual "Device Connected",
"User Authenticated" messages flash by on your iPAQ. Once connected,
you can use Win CE programs like ftpView, Pocket Outlook from the iPAQ
and xcerdisp, synce utilities from the Linux side. Remember to enable IP
forwarding.
To use Pocket IE, follow the instructions given at
To use Pocket IE, follow the instructions given at
http://www.tekguru.co.uk/EM500/usbtonet.htm to achieve the same thing
http://www.tekguru.co.uk/EM500/usbtonet.htm to achieve the same thing
...
...
drivers/usb/serial/ipaq.c
View file @
515ae172
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* (26/11/2002) ganesh
* Added insmod options to specify product and vendor id.
* Use modprobe ipaq vendor=0xfoo product=0xbar
*
* (26/7/2002) ganesh
* (26/7/2002) ganesh
* Fixed up broken error handling in ipaq_open. Retry the "kickstart"
* Fixed up broken error handling in ipaq_open. Retry the "kickstart"
* packet much harder - this drastically reduces connection failures.
* packet much harder - this drastically reduces connection failures.
...
@@ -63,10 +67,13 @@
...
@@ -63,10 +67,13 @@
/*
/*
* Version Information
* Version Information
*/
*/
#define DRIVER_VERSION "v0.3"
#define DRIVER_VERSION "v0.4"
#define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>"
#define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>"
#define DRIVER_DESC "USB Compaq iPAQ, HP Jornada, Casio EM500 driver"
#define DRIVER_DESC "USB Compaq iPAQ, HP Jornada, Casio EM500 driver"
static
int
product
,
vendor
;
/* Function prototypes for an ipaq */
/* Function prototypes for an ipaq */
static
int
ipaq_open
(
struct
usb_serial_port
*
port
,
struct
file
*
filp
);
static
int
ipaq_open
(
struct
usb_serial_port
*
port
,
struct
file
*
filp
);
static
void
ipaq_close
(
struct
usb_serial_port
*
port
,
struct
file
*
filp
);
static
void
ipaq_close
(
struct
usb_serial_port
*
port
,
struct
file
*
filp
);
...
@@ -85,6 +92,8 @@ static void ipaq_destroy_lists(struct usb_serial_port *port);
...
@@ -85,6 +92,8 @@ static void ipaq_destroy_lists(struct usb_serial_port *port);
static
struct
usb_device_id
ipaq_id_table
[]
=
{
static
struct
usb_device_id
ipaq_id_table
[]
=
{
/* The first entry is a placeholder for the insmod-specified device */
{
USB_DEVICE
(
COMPAQ_VENDOR_ID
,
COMPAQ_IPAQ_ID
)
},
{
USB_DEVICE
(
COMPAQ_VENDOR_ID
,
COMPAQ_IPAQ_ID
)
},
{
USB_DEVICE
(
COMPAQ_VENDOR_ID
,
COMPAQ_IPAQ_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_548_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_548_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_568_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_568_ID
)
},
...
@@ -523,8 +532,12 @@ static int __init ipaq_init(void)
...
@@ -523,8 +532,12 @@ static int __init ipaq_init(void)
{
{
spin_lock_init
(
&
write_list_lock
);
spin_lock_init
(
&
write_list_lock
);
usb_serial_register
(
&
ipaq_device
);
usb_serial_register
(
&
ipaq_device
);
usb_register
(
&
ipaq_driver
);
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
if
(
vendor
)
{
ipaq_id_table
[
0
].
idVendor
=
vendor
;
ipaq_id_table
[
0
].
idProduct
=
product
;
}
usb_register
(
&
ipaq_driver
);
return
0
;
return
0
;
}
}
...
@@ -547,3 +560,8 @@ MODULE_LICENSE("GPL");
...
@@ -547,3 +560,8 @@ MODULE_LICENSE("GPL");
MODULE_PARM
(
debug
,
"i"
);
MODULE_PARM
(
debug
,
"i"
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM
(
vendor
,
"h"
);
MODULE_PARM_DESC
(
vendor
,
"User specified USB idVendor"
);
MODULE_PARM
(
product
,
"h"
);
MODULE_PARM_DESC
(
product
,
"User specified USB idProduct"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment