LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-05-2004, 04:36 AM   #1
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Direct modem-to-medem connection


I have a dreamcast console mith a modem and i was woundering if there is anyway to setup a direct modem-to-modem connection with my linux box (ie not using a phone line just running a cable between the modems) as i want to get the thing working online and i doubt ill be able to get hold of a broadband adapter.

It seems that i can set the dreamcast on "blind dial" so ignoring the dialing tone shouldn't be a problem. I can also change the modem init string if that helps. I can also set a blank number.

Is it possible to trick my linux box into establishing a connection like this with mgetty or is it just not possible.

Last edited by Hegemon; 01-06-2004 at 08:10 AM.
 
Old 01-06-2004, 08:11 AM   #2
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
^Bump
 
Old 03-04-2004, 09:20 PM   #3
KeithIrwin
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
It's definitely possible. There's an article here: http://www.kinox.org/articles/linuxdc.html
about it. The way he outlines is not the most straightforward way to go at it since it involves setting up mgetty to handle arbitrary dial-in ppp connections and then sending it a USR1 signal to tell it to pick up. This I'm sure will work, but this isn't the only way.

I'm actually a Mac OS X user who happened upon your question in a web search. I had some trouble getting mgetty working correctly on OS X and most of the recommended mgetty guides from the web page I mentioned did not exist. (And I don't mean that OS X versions didn't exist, I mean that the guides themselves had disappeared from the web). So I've figured out the other way to do it. I'll explain what I do below. You may have to adapt this some to linux, but it ought to work. The only thing that I know for certain that you'll have to change is the device. OS X uses /dev/cu.modem. There's no such device under Linux. I don't know what the appropriate serial device is under Linux, but I'm sure that you can figure it out or that someone else here knows. So replace /dev/cu.modem in my instructions with something else. Probably /dev/modem

On the Dreamcast side, you're on the right track with telling the modem to blind dial. That's the only real configuration needed on that end. It's also usually worth shortening or removing the number to be dialed just so that you don't have to wait for that. I know that I also removed the username and password on mine, but I don't think that you have to. On the computer end, there are two basic steps:

1) Once you've tried to connect on the DC, tell the modem to answer. This must be done by issuing an ATA command to the modem. Telling it to answer after any number of rings won't work since there are no rings, and telling it to answer after zero rings just turns off the auto-answer stuff.

2) Hand off to pppd.

I found two different ways to accomplish step 1:
a) cu
If you install UUCP it comes with a utility called CU which can send commands to the modem. It can be envoked with "sudo cu -l /dev/cu.modem -s 57600" (the sudo may not be needed under Linux). The 57600 is just the speed I used. It can be left out, but it will connect at a slower speed.
Then you type "ATA" and hit return. The modem should then pick up and you should hear them handshaking. Then funny characters should start appearing. Goto step 2.
b) minicom
You'll need to configure minicom to make sure it uses the right device. You may also need to run sudo minicom -s if you haven't ever run it before. Then run minicom, type "ATA" and hit return. Then funny characters should start appearing. Goto step 2.

In all truth, there are probably several other options. I suspect that chat and wvDial can accomplish this (although I'm not certain since there's no OS X version of chat or wvDial) and it wouldn't surprise me if there were a way to do it with shell scripting and a pipe.

Step 2:
Leave cu or minicom running. Just switch to another terminal. Then launch pppd. Pppd will then take over the device from the dialer. The argument set which worked for me is:
sudo pppd -detach /dev/cu.modem 57600 noauth 192.168.0.1:192.168.0.2
Is all of this necessary? Probably not. The sudo is needed on OS X, may not be on Linux. The -detach is definitely a good idea because it means that you'll actually see the error messages right then and there if any occur. The 57600 is just the speed. When I used minicom, it seemed to mostly connect at 38400 instead, so I used that. Noauth removes the need for a login (and is what requires the sudo). The IP numbers are just the computer and dreamcast IP addresses across the interface. They may or may not be needed depending on your set-up. I know that if I leave them out, the connection comes up fine, but then the Dreamcast can't find the rest of the internet.

I should also note that I have an /etc/ppp/options file which contains "debug" "default-asyncmap" and "ms-dns aaa.bbb.ccc.ddd" where aaa.bbb.ccc.ddd is the nameserver which my computer uses. The debug option is not needed. The ms-dns option could probably be done without, but according to the site mentioned, the default-asyncmap is definitely needed. You could put this on the command line instead if you'd like.

For the Dreamcast to use the computer's internet connection, you'll obviously also have to make sure that you have whatever NAT stuff you want to use set-up too. Under OS X, it means pushing the "share my internet connection" button in the control panel. I'm sure the linux one is a little trickier to set up, but undoubtedly much, much more flexible. Our ease of set-up is nice, but there are no options to tweak at all.

I'm sure that clever people can find all sorts of ways to improve on this, but it should be a good jumping-off point. Good luck.

Keith
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PC to Laptop : direct connection pppaaarrrkkk Linux - Newbie 8 08-05-2005 01:54 AM
Direct Connection Xp and Linux mecca Linux - Networking 4 06-27-2004 03:09 PM
Direct Cable Connection suchi Linux - Networking 4 11-23-2003 04:10 PM
Direct Connect QT ( Connection Problems ) digitalfallout Linux - Networking 3 11-17-2003 04:26 PM
direct connection through the firewall cam99 Linux - Security 1 08-03-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration