LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2009, 02:00 PM   #1
sam_o_rogers
Member
 
Registered: Apr 2006
Posts: 47
Blog Entries: 1

Rep: Reputation: 15
Use a com port and the modem commands AT DT from Ubuntu 6.06.


I'm logging as a newbie. I should know this.

I have a modem on comm port 3 on a Toshiba Laptop, running Ubuntu 6.06.

I need to connect to another modem, using the AT DT modem commands, log in and simply use the terminal on the other system. The other system is not connected to the internet, it has an Auto Answer modem setup.

All right now, I seem to remember Kermit. But when I go to add applications, and try kermit, there are no finds. PUTTY, or ssh are fine for connections to another system via an IP address, but won't allow me to setup connection to a port. From what I can determine, COMM PORT 3 is linked to /dev/ttys3.

Tried getty, but nothing provided me with a response. Oh yes, it probably is using the software modem.

If you want a Windows equivilent, I can run Dynamic Connect on the Windows side, (VT 220 emulator) This can be configured to connect to Comm Port 3.

So does anyone have any clues for this clueless one who should know better?
 
Old 04-07-2009, 04:35 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
You should minicom to connect to your serial port and manage the modem using Hayes (AT) commands. Mind that com3 should be /dev/ttyS2
Of course your modem must have been recognized by the OS (Ubuntu), that could be a pain in the *** since it's a software modem.

Last edited by bathory; 04-15-2009 at 02:48 PM. Reason: wrong ttSx name
 
Old 04-15-2009, 07:43 AM   #3
sam_o_rogers
Member
 
Registered: Apr 2006
Posts: 47
Blog Entries: 1

Original Poster
Rep: Reputation: 15
bathory,

Thank you for the response, particularly the note about using ttyS4, (rather ttyS2 in response to your edit.)

All right now, running ubuntu 6.06. As far as I can determine, minicom is not installed. When I go to add remove programs, and looking for minicom, I come up with a blank. So the first question is there a repository I should be adding?

I did a search of sourceforge for minicom. As far as I can determine, a debian package for minicom is not available. I am assuming that I would need to compile the source. I have had poor luck compiling applications because of dependency problems. Almost like the Windows .dll ....

It appears that there is a release level 2.2 which came out in October of 06, which is the same approximate time I installed by Ubuntu, and if push comes to shove, I may try that one.

There is also komport which is available in a .deb package, and is supposed to be a version of minicom developed for Knoppix. I'm tempted to try that, even though I am running GNU linux.

So, my question is what am I missing?

A word of caution, before anyone suggest I upgrade to Ubuntu 8.10, the serial port I am trying to get working for a character dial out to another Unix machine is a secondary use for this computer. Mainline, I use a wireless link to a cable modem. I have had no luck getting the wireless to work with the live CD for Ubuntu 8.04 or 8.10, and hesitate to install the newer version until I get that particular issue resolved. That is a problem for a different thread, but if someone felt like answering that here I wouldn't complain.

Last edited by sam_o_rogers; 04-16-2009 at 07:13 AM. Reason: Comment changed in response to bathroy's edit of that post.
 
Old 04-15-2009, 08:26 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
I was wrong. com3 should be /dev/ttyS2 in linux, since serial ports start from 0. (Edited also in previous post)
Note that there is also gtkterm that is like the windows hyperterminal program.
Anyway did you try to: apt-get install minicom
According to this, there is a package for Ubuntu. There also useful info about minicom usage.

Regards

Last edited by bathory; 04-15-2009 at 02:48 PM.
 
Old 04-16-2009, 07:10 AM   #5
sam_o_rogers
Member
 
Registered: Apr 2006
Posts: 47
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
I was wrong. com3 should be /dev/ttyS2 in linux, since serial ports start from 0. (Edited also in previous post)
Note that there is also gtkterm that is like the windows hyperterminal program.
Anyway did you try to: apt-get install minicom
According to this, there is a package for Ubuntu. There also useful info about minicom usage.

Regards

Ah yes, sudo apt-get install minicom

It's a good thing I posted this under Newbie, anywhere else I'd be defiled for cluelessness. Thank you. Got the package fine.

This looks like it will do what I want. Now the only question is whether or not I can get it to recognize the built in modem.

I still don't know which /dev/ttyS will be used. I had assumed, which we know what happens when you assume, that COM 0 would be ttyS0, COM 1 would be ttyS1, COM 2 would be ttyS2 and COM 3 would be ttyS3. Unfortunately this little laptop does not have any standard RS232 connections to use with an external modem. I don't know why the internal modem is tied to COM 3.

I will post when I've got this figured out.
 
Old 04-16-2009, 07:33 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
You can run:
Code:
setserial -g /dev/ttyS[0-3]
to see what serial port is recognized.
Maybe you can change the serial port through BIOS. The difficult thing is to find a driver for your winmodem, so that it can be used by linux.

Regards
 
  


Reply

Tags
minicom


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sending AT commands to a SMS modem narmida Linux - Hardware 2 09-24-2009 02:05 PM
Serial Modem Won't Respond To AT Commands ssenuta Linux - Hardware 1 08-25-2008 03:45 PM
serial port (ttyS1) - Sending commands via terminal... HELP!!! Nalorin Linux - Networking 2 08-21-2005 11:22 PM
Extra commands in modem Cii Linux - Hardware 0 07-31-2003 10:39 AM
zoom modem at commands techni Linux - General 0 10-03-2001 03:10 PM


All times are GMT -5. The time now is 02:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration