Re: [NTLK] Connecting Newton to OSX (unixnpi)

From: zbir_at_urbanape.com
Date: Fri Feb 22 2002 - 17:28:42 EST


> On Wednesday, February 20, 2002, at 05:50 AM, zbir_at_urbanape.com wrote:
>
> > Just run the following command:
> >
> > (zbir_at_gibbon ~/unixnpi-1.1.3) $ cc -o unixnpi unixnpi.c
> > (zbir_at_gibbon ~/unixnpi-1.1.3) $ mv unixnpi /where/it/lives/bin/
> > (zbir_at_gibbon ~/unixnpi-1.1.3) $ cp unixnpi.rc ~/.unixnpi.rc
>
> This doesn't quite work as is -- there is another .c file that has to be
> compiled and linked in. It's best to edit the Makefile, change "gcc" to
> "cc" in there, and then back to the shell and "make".
>
> Also the default rc file seems to be stored in a sub-directory called
> "template", so your cp command there would generate an error.

Woops! My bad on that. I was writing from memory. Of course, there is a
good README in that archive as well :)

> Now, all that said, I am still having difficulty getting unixnpi to
> work. :)
>
> I have a KeySpan Twin Serial adapter on my PowerBook G4, and installed
> KeySpan's driver (the very recent one, for Mac OS X 10.1.3). I get the
> two entries in /dev.

[ problems I don't know too much about snipped ]

> Running NBU under Classic allows me to send packages flawlessly, but if
> I could get unixnpi to work, I'd be happy to make a nice OS X native
> Cocoa front-end for it and share with you all.
>
> BTW, I assume the .1 and .2 extensions on the KeySpan /dev files refer
> to the two ports on the adapter, not the two USB ports on the system.
> Is that true?

In my iBook, it works like this:

If it's plugged into USB1 ( which I refer to as the one closest to the
front of the iBook ), you'll get these:

(zbir_at_nic-125-c40-225 ~) $ ls -l /dev/tty.Key*
crw-rw-rw- 1 root wheel 8, 14 Feb 22 17:09 /dev/tty.KeyUSA28X11.1
crw-rw-rw- 1 root wheel 8, 16 Feb 22 17:09 /dev/tty.KeyUSA28X11.2

and if it's plugged into USB2 ( behind it ), you'll get these:

(zbir_at_nic-125-c40-225 ~) $ ls -l /dev/tty.Key*
crw-rw-rw- 1 root wheel 8, 18 Feb 22 17:10 /dev/tty.KeyUSA28X21.1
crw-rw-rw- 1 root wheel 8, 20 Feb 22 17:10 /dev/tty.KeyUSA28X21.2

The .1 and .2 refer to the port on the adapter only.

Zachery Bir <zbir_at_urbanape.com>
<URL:http://www.urbanape.com/>

-- 
This is the Newtontalk mailinglist - http://www.newtontalk.net
To unsubscribe or manage: visit the above link or
	mailto:newtontalk-request_at_newtontalk.net?Subject=unsubscribe



This archive was generated by hypermail 2.1.2 : Sat Mar 02 2002 - 10:03:36 EST