« Another round of comment SPAM | Main | ROKR - Why a limit of 100? »

Treo 650 w/ OpenBSD 3.7-current - Wireless Modem

I have been working on different ways of getting my X40 (ThinkPad), which runs OpenBSD 3.7-current, connected to SprintPCS's CDMA2K network. On other machines, like my PowerBook, I simply use a bluetooth connection to the Treo (650) or a Moto V710. Bluetooth use under OpenBSD is still beyond me (I haven't had the time to see or try to understand how it works), so I decided to go back to the old days and use the USB cable. I came across using a treo 600 with openbsd, which led be to believe the same thing should work with the 650. Last night I got started by trying to better understand pppd under OpenBSD and how to properly configure the serial/usb device that you need to use to connect to the Treo (or any other type of wireless PC Card, for that matter). The example given at jcs's:


sprintpcs:
   set device /dev/ttyU1
   set speed 115200
   set phone "#777"
   set dial "TIMEOUT 30 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT"
   add! default HISADDR

of using device /dev/ttyU1 is only the correct device if your machine sees the USB device as:

uvisor0 at uhub1 port 1
uvisor0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2
ucom0 at uvisor0 portno 1: portno 1, Generic
ucom1 at uvisor0 portno 2: portno 2, HotSync

In my case the line that has been darkened shows portno 0: portno 0, so I needed to change set device /dev/ttyU1 to set device /dev/ttyU0. Yes, this is very obvious, unless you are not looking like I wasn't last night. As the page recommended, I pushed the hotsync button to test whether or not I could get the device to attach to the other side of the ppp link before the hotsync timed out and I couldn't . Everything looked like it was working as jcs had mentioned, but it seemed as if the hotsync kept timing out too quickly. So, I found my old, trusty copy of wmodem from NotifyMail and tried it out but kept getting errors that wmodem couldn't connect to the serial device.
Stupid me... I had the Laptop Connected Via: set to Wireless Modem and not usbd (which is the port I found works correctly - you have number of options and only by watching dmesg on the laptop was I able to figure out which port should be used). The Cradle port does not work.

So, to put this all together, here is what you need:
- Laptop with OpenBSD 3.7 (according to jcs's page, it sounds like this works in 3.5+)
- Free USB Port
- Sync Cable or Cradle
- wirelessmodem from NotifyMail

Configure /etc/ppp/ppp.conf:


sprintpcs:
   set device /dev/ttyU0
   set speed 115200
   set phone "#777"
   set dial "TIMEOUT 30 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT"
   add! default HISADDR

Turn on wireless modem and enable modem. And type:

$ sudo ppp -background sprintpcs

You should see:

Working in background mode
Using interface: tun0
Warning: No default entry found in config file.
PPP enabled

and away you go. I'll get jcs's permission to copy more of the info from his site and post it here, but this should at least get you up and running.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 10, 2005 10:25 AM.

The previous post in this blog was Another round of comment SPAM.

The next post in this blog is ROKR - Why a limit of 100?.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.