Sony Clie PEG-TJ37 vs. FreeBSD CURRENT (long)

From: Bruce A. Mah <bmah_at_freebsd.org>
Date: Thu, 1 Jul 2004 08:44:29 -0700
Hi--

Has anyone gotten a Sony Clie PEG-TJ37 (PalmOS 5.2.1-based PDA) to
establish a PPP connection with a 5-CURRENT/i386 machine over USB?
(If anyone has a TJ25 or TJ35, that's pretty close and I'd like to
hear from you too.)

I've been trying for awhile now without much success.  I'm generally
following the instructions from:

http://gja.space4me.com/things/Palm_TungstenC_Freebsd.html

I had to apply the following patches to allow the uvisor driver to
recognize the TJ37's USB ID:

Index: usbdevs
===================================================================
RCS file: /export/cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.184
diff -u -r1.184 usbdevs
--- usbdevs     27 Jun 2004 17:27:04 -0000      1.184
+++ usbdevs     1 Jul 2004 15:14:31 -0000
_at__at_ -1228,6 +1228,7 _at__at_
 product SONY CLIE_41_MS                0x0099  Sony Clie v4.1 Memory Stick slot product SONY CLIE_41           0x009a  Sony Clie v4.1
 product SONY CLIE_NX60         0x00da  Sony Clie nx60
+product SONY CLIE_TJ37         0x0169  Sony Clie tj37

 /* SOURCENEXT products */
 product SOURCENEXT KEIKAI8     0x039f  KeikaiDenwa 8
Index: uvisor.c
===================================================================
RCS file: /export/cvsroot/src/sys/dev/usb/uvisor.c,v
retrieving revision 1.22
diff -u -r1.22 uvisor.c
--- uvisor.c    27 Jun 2004 12:41:44 -0000      1.22
+++ uvisor.c    1 Jul 2004 15:14:31 -0000
_at__at_ -228,6 +228,7 _at__at_
        {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_NX60 }, PALM4 },
        {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_35 }, 0 },
 /*     {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_25 }, PALM4 },*/
+       {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_TJ37 }, PALM4 },
 };
 #define uvisor_lookup(v, p) ((const struct uvisor_type *)usb_lookup(uvisor_devs, v, p))

-----

/etc/usbd.conf snippet:

device "Sony Clie PEG-TJ37"
        devname "ucom0"
        vendor 0x054c
        product 0x0169
        attach "/usr/sbin/ppp -auto -unit0 palm"
        detach "killall ppp"

device "Handspring Visor Graphite"
        devname "ucom0"
        vendor 0x082d
        product 0x0100
        attach "/usr/sbin/ppp -auto -unit0 palm"
        detach "killall ppp"

-----

/etc/ppp/ppp.conf snippet:

palm:
 set device /dev/ucom0
 set cd off
 set dial
 set speed 115200
 set timeout 0
 set ctsrts on
 set log Phase Chat Connect LCP IPCP IPV6CP CCP tun command physical
 set ifaddr 10.1.1.1 10.1.1.2
 enable dns
 open

-----

When I hit "Connect" on the Clie's Network page, the Clie eventually
times out ("Error: PPP timeout (0x1231)").  /var/log/messages on the
CURRENT box shows that it actually did find the Clie and attach it to
the uvisor driver:

Jul  1 08:16:51 tomcat kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2
Jul  1 08:16:51 tomcat kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Warning: deflink: Unable to set physical to speed 0
Jul  1 08:17:08 tomcat last message repeated 2 times
Jul  1 08:17:37 tomcat kernel: ucom0: at uhub1 port 1 (addr 2) disconnected
Jul  1 08:17:37 tomcat kernel: ucom0: detached

-----

'usbdevs -v' output:

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: full speed, self powered, config 1, Palm Handheld(0x0169), Palm, Inc.(0x054c), rev 1.00
 port 2 powered

-----

Here's /var/log/ppp.log during that whole sequence:

Jul  1 08:16:51 tomcat ppp[3468]: Phase: Using interface: tun0
Jul  1 08:16:51 tomcat ppp[3468]: Phase: deflink: Created in closed state
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: set device /dev/cuaa1
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: set speed 115200
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: set timeout 180
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: default: enable dns
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set device /dev/ucom0
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set cd off
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set dial
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set speed 115200
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set timeout 0
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set ctsrts on
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set log Phase Chat Connect LCP IPCP IPV6CP CCP tun command physical
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: set ifaddr 10.1.1.1 10.1.1.2
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: enable dns
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Command: palm: open
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Phase: bundle: Establish
Jul  1 08:16:51 tomcat ppp[3468]: tun0: Phase: deflink: closed -> opening
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: PPP Started (auto mode).
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: deflink: Connected!
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: deflink: opening -> dial
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: deflink: dial -> carrier
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: deflink: carrier -> login
Jul  1 08:16:51 tomcat ppp[3469]: tun0: Phase: deflink: login -> lcp
Jul  1 08:16:51 tomcat ppp[3469]: tun0: LCP: FSM: Using "deflink" as a transportJul  1 08:16:51 tomcat ppp[3469]: tun0: LCP: deflink: State change Initial --> Closed
Jul  1 08:16:51 tomcat ppp[3469]: tun0: LCP: deflink: State change Closed --> Stopped
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP: deflink: LayerStart
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP:  ACFCOMP[2]
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP:  PROTOCOMP[2]
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP:  MRU[4] 1500
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP:  MAGICNUM[6] 0x46b45a79
Jul  1 08:16:52 tomcat ppp[3469]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jul  1 08:16:52 tomcat ppp[3469]: tun0: Physical: write
Jul  1 08:16:52 tomcat ppp[3469]: tun0: Physical:  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28  ~.}#.!}!}!} }8}(
Jul  1 08:16:52 tomcat ppp[3469]: tun0: Physical:  7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20  }"}'}"}"}&} } }
Jul  1 08:16:52 tomcat ppp[3469]: tun0: Physical:  7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 46 b4 5a  } }!}$}%.}%}&F.Z
Jul  1 08:16:52 tomcat ppp[3469]: tun0: Physical:  79 27 b1 7e                     y'.~
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP:  ACFCOMP[2]
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP:  PROTOCOMP[2]
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP:  MRU[4] 1500
Jul  1 08:16:55 tomcat ppp[3469]: tun0: LCP:  MAGICNUM[6] 0x46b45a79
Jul  1 08:16:55 tomcat ppp[3469]: tun0: Physical: write
Jul  1 08:16:55 tomcat ppp[3469]: tun0: Physical:  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28  ~.}#.!}!}!} }8}(
Jul  1 08:16:55 tomcat ppp[3469]: tun0: Physical:  7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20  }"}'}"}"}&} } }
Jul  1 08:16:55 tomcat ppp[3469]: tun0: Physical:  7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 46 b4 5a  } }!}$}%.}%}&F.Z
Jul  1 08:16:55 tomcat ppp[3469]: tun0: Physical:  79 27 b1 7e                     y'.~
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP:  ACFCOMP[2]
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP:  PROTOCOMP[2]
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP:  MRU[4] 1500
Jul  1 08:16:58 tomcat ppp[3469]: tun0: LCP:  MAGICNUM[6] 0x46b45a79
Jul  1 08:16:58 tomcat ppp[3469]: tun0: Physical: write
Jul  1 08:16:58 tomcat ppp[3469]: tun0: Physical:  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28  ~.}#.!}!}!} }8}(
Jul  1 08:16:58 tomcat ppp[3469]: tun0: Physical:  7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20  }"}'}"}"}&} } }
Jul  1 08:16:58 tomcat ppp[3469]: tun0: Physical:  7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 46 b4 5a  } }!}$}%.}%}&F.Z
Jul  1 08:16:58 tomcat ppp[3469]: tun0: Physical:  79 27 b1 7e                     y'.~
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP:  ACFCOMP[2]
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP:  PROTOCOMP[2]
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP:  MRU[4] 1500
Jul  1 08:17:01 tomcat ppp[3469]: tun0: LCP:  MAGICNUM[6] 0x46b45a79
Jul  1 08:17:01 tomcat ppp[3469]: tun0: Physical: write
Jul  1 08:17:01 tomcat ppp[3469]: tun0: Physical:  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28  ~.}#.!}!}!} }8}(
Jul  1 08:17:01 tomcat ppp[3469]: tun0: Physical:  7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20  }"}'}"}"}&} } }
Jul  1 08:17:01 tomcat ppp[3469]: tun0: Physical:  7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 46 b4 5a  } }!}$}%.}%}&F.Z
Jul  1 08:17:01 tomcat ppp[3469]: tun0: Physical:  79 27 b1 7e                     y'.~
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP:  ACFCOMP[2]
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP:  PROTOCOMP[2]
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP:  MRU[4] 1500
Jul  1 08:17:04 tomcat ppp[3469]: tun0: LCP:  MAGICNUM[6] 0x46b45a79
Jul  1 08:17:04 tomcat ppp[3469]: tun0: Physical: write
Jul  1 08:17:04 tomcat ppp[3469]: tun0: Physical:  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28  ~.}#.!}!}!} }8}(
Jul  1 08:17:04 tomcat ppp[3469]: tun0: Physical:  7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20  }"}'}"}"}&} } }
Jul  1 08:17:04 tomcat ppp[3469]: tun0: Physical:  7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 46 b4 5a  } }!}$}%.}%}&F.Z
Jul  1 08:17:04 tomcat ppp[3469]: tun0: Physical:  79 27 b1 7e                     y'.~
Jul  1 08:17:08 tomcat ppp[3469]: tun0: LCP: deflink: LayerFinish
Jul  1 08:17:08 tomcat ppp[3469]: tun0: LCP: deflink: State change Req-Sent --> Stopped
Jul  1 08:17:08 tomcat ppp[3469]: tun0: LCP: deflink: State change Stopped --> Closed
Jul  1 08:17:08 tomcat ppp[3469]: tun0: LCP: deflink: State change Closed --> Initial
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Warning: deflink: Unable to set physical to speed 0
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Phase: deflink: Disconnected!
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Phase: deflink: lcp -> logout
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Phase: deflink: logout -> hangup
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Warning: deflink: Unable to set physical to speed 0
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Phase: deflink: Disconnected!
Jul  1 08:17:08 tomcat ppp[3469]: tun0: Warning: deflink: Unable to set physical to speed 0
Jul  1 08:17:09 tomcat ppp[3469]: tun0: Phase: deflink: Connect time: 18 secs: 0 octets in, 260 octets out
Jul  1 08:17:09 tomcat ppp[3469]: tun0: Phase: deflink: 0 packets in, 5 packets out
Jul  1 08:17:09 tomcat ppp[3469]: tun0: Phase:  total 14 bytes/sec, peak 20 bytes/sec on Thu Jul  1 08:16:55 2004
Jul  1 08:17:09 tomcat ppp[3469]: tun0: Phase: deflink: hangup -> closed
Jul  1 08:17:09 tomcat ppp[3469]: tun0: Phase: bundle: Dead

-----

Basically it looks like the FreeBSD machine isn't receiving any data
from the Clie at all.

After flailing around with this for awhile, I pulled out my old
Handspring Visor Graphite to see if it would work (until now I'd been
using it with a serial cradle as a workaround for needing to figure
out this USB zaniness).  It works perfectly (at least to the point
that I can ping the Visor from the FreeBSD box, haven't tried anything
higher-layer).

Any suggestions?

Thanks in advance!

Bruce.

PS.  Bonus points if someone can help me get the Clie to talk (via
802.11b) to my Cisco Aironet 340 series access point.  I know about
the long preamble hack for the 350 series AP...it didn't seem to
help.  :-(

Received on Thu Jul 01 2004 - 13:54:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:59 UTC