9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* RE: [9fans] pcmcia modems
@ 2000-07-21 12:56 miller
  0 siblings, 0 replies; 6+ messages in thread
From: miller @ 2000-07-21 12:56 UTC (permalink / raw)
  To: 9fans

> If you're using ppp, don't use telco.

In fact if you want to use ppp with telco, it only takes a small change --
I happen to have done this a couple of days ago:

term% diff /sys/src/cmd/ip/ppp/ppp.c ppp.c
2277,2281c2277,2289
< 			fprint(2, "ppp: couldn't open %s\n", dev);
< 			exits(dev);
< 		}
< 		snprint(buf, sizeof buf, "%sctl", dev);
< 		cfd = open(buf, ORDWR);
---
> 			if(strchr(dev, '!')){
> 				if((mediafd = dial(dev, 0, 0, &cfd)) == -1){
> 					fprint(2, "ppp: couldn't dial %s: %r\n", dev);
> 					exits(dev);
> 				}
> 			} else {
> 				fprint(2, "ppp: couldn't open %s\n", dev);
> 				exits(dev);
> 			}
> 		} else {
> 			snprint(buf, sizeof buf, "%sctl", dev);
> 			cfd = open(buf, ORDWR);
> 		}


With this you can do 'ip/ppp -ufp telco!555-1234' or if your ndb has
a line like 'sys=demon telco=555-1234 telco=555-1234 telco=555-9999'
then you can do 'ip/ppp -ufp telco!demon' and dial() will try phone
numbers in order until one works.  (Note the repeated number to try
that one twice.)

-- Richard Miller


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [9fans] pcmcia modems
@ 2000-07-21 13:19 presotto
  0 siblings, 0 replies; 6+ messages in thread
From: presotto @ 2000-07-21 13:19 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 37 bytes --]

I'll add it to our version, thanks.

[-- Attachment #2: Type: message/rfc822, Size: 2378 bytes --]

From: miller@hamnavoe.demon.co.uk
To: 9fans@cse.psu.edu
Subject: RE: [9fans] pcmcia modems
Date: Fri, 21 Jul 2000 13:56:40 BST
Message-ID: <E13FcLO-0007sM-0B@finch-post-11.mail.demon.net>

> If you're using ppp, don't use telco.

In fact if you want to use ppp with telco, it only takes a small change --
I happen to have done this a couple of days ago:

term% diff /sys/src/cmd/ip/ppp/ppp.c ppp.c
2277,2281c2277,2289
< 			fprint(2, "ppp: couldn't open %s\n", dev);
< 			exits(dev);
< 		}
< 		snprint(buf, sizeof buf, "%sctl", dev);
< 		cfd = open(buf, ORDWR);
---
> 			if(strchr(dev, '!')){
> 				if((mediafd = dial(dev, 0, 0, &cfd)) == -1){
> 					fprint(2, "ppp: couldn't dial %s: %r\n", dev);
> 					exits(dev);
> 				}
> 			} else {
> 				fprint(2, "ppp: couldn't open %s\n", dev);
> 				exits(dev);
> 			}
> 		} else {
> 			snprint(buf, sizeof buf, "%sctl", dev);
> 			cfd = open(buf, ORDWR);
> 		}


With this you can do 'ip/ppp -ufp telco!555-1234' or if your ndb has
a line like 'sys=demon telco=555-1234 telco=555-1234 telco=555-9999'
then you can do 'ip/ppp -ufp telco!demon' and dial() will try phone
numbers in order until one works.  (Note the repeated number to try
that one twice.)

-- Richard Miller

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [9fans] pcmcia modems
@ 2000-07-20 23:46 presotto
  0 siblings, 0 replies; 6+ messages in thread
From: presotto @ 2000-07-20 23:46 UTC (permalink / raw)
  To: pdl, 9fans

In my plan9.ini, I have:

serial0=type=com port=0x2e8 irq=9

You may want to use a different irq, up to you.
That's the one xircom's help file recommended.

If you're using ppp, don't use telco.  Ppp just opens
up the modem and lets you type at it.  It's a failure
of vision that I'll fix in some fictional second life.

Run ppp as:

	ip/ppp -ufb 115200 -p '#t'/eia000

and when it wants you to type something, just
go for

	atdt<telephone number>

The carriage return is generated by typing control-m.

I'm about to do a little scripting language or steal someone
else's so that dialing is easier.

The only thing we use telco for is receiving and sending
faxes.  It should figure out the modem type.  If you want to
use it, just

	telco -vs 115200 /dev/eia000 &

somewhere in termrc or cpurc.  After that, any call to
dial() with a string starting with telco! will dial out.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [9fans] pcmcia modems
  2000-07-16 23:02 presotto
@ 2000-07-20 18:55 ` Peter LeBlond
  0 siblings, 0 replies; 6+ messages in thread
From: Peter LeBlond @ 2000-07-20 18:55 UTC (permalink / raw)
  To: 9fans

I picked up the modem and was wondering if you could tell me what I need to
do to set it up. Telco(4) explains how to dial out with a serial modem on
/dev/eia1. How do I configure the pcmcia modem and what should it be called
in /dev? Any help at all would be greatly appreciated.

pdl@borf.com

-----Original Message-----
From: owner-9fans@cse.psu.edu [mailto:owner-9fans@cse.psu.edu]On Behalf
Of presotto@plan9.bell-labs.com
Sent: Sunday, July 16, 2000 7:03 PM
To: sah@borf.com; 9fans@cse.psu.edu
Subject: Re: [9fans] pcmcia modems


I'm using the xircom creditcard modem 56, in fact i'm connected via ppp



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] pcmcia modems
@ 2000-07-16 23:02 presotto
  2000-07-20 18:55 ` Peter LeBlond
  0 siblings, 1 reply; 6+ messages in thread
From: presotto @ 2000-07-16 23:02 UTC (permalink / raw)
  To: sah, 9fans

I'm using the xircom creditcard modem 56, in fact i'm connected via ppp


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [9fans] pcmcia modems
@ 2000-07-15 16:03 sah
  0 siblings, 0 replies; 6+ messages in thread
From: sah @ 2000-07-15 16:03 UTC (permalink / raw)
  To: 9fans

Greetings,

I have an ibm 600e I'd like to get a modem for.  Can anyone recommend a
pcmcia modem that they have working?

Sam

--------------------------------------------------------------
Sam Hopkins
sah@borf.com

"... let us tame the savageness of man, and make
	gentle the life of this world."




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-07-21 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-21 12:56 [9fans] pcmcia modems miller
  -- strict thread matches above, loose matches on Subject: below --
2000-07-21 13:19 presotto
2000-07-20 23:46 presotto
2000-07-16 23:02 presotto
2000-07-20 18:55 ` Peter LeBlond
2000-07-15 16:03 sah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).