LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-30-2009, 10:58 AM   #1
atziazas
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Connect to /dev/ttyS1?


Ok so to my understanding, /dev/ttyS1 is a serial port on my device and it is connected to a GSM modem (that is what the company claims).

So I want to be able to "converse" with that modem and send in some AT instructions.

I was told I could use "chat" or "screen" but I have tried everything in chat and I can't get it to talk to me. "screen" does not exist on Angstrom and since I do not have an internet connection on the device, I don't know how to get it on there.

Any ideas?

Here's an example of what I did:

chat -v -s '' 'AT#BND?' 'OK' /dev/ttyS1
send (AT#BND?^M)
expect (OK) AT#BND?
alarm
Failed

I also tried without the 'OK' part.

Not quite sure what to do.

Thanks
 
Old 06-30-2009, 01:13 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by atziazas View Post
Not quite sure what to do.
Have you tried opening a minicom session and typing the desired commands from there? You can use minicom to debug your chat script.

WvDial is also very handy. It can auto-detect a lot of modem settings.
 
Old 06-30-2009, 02:00 PM   #3
atziazas
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Re:

My distribution of Angstrom did not come with minicom and it is running on a single board computer.

I also don't have the "make" command on my linux.

Any ideas?
 
Old 06-30-2009, 05:45 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by atziazas View Post
Any ideas?
When I had a similar problem, I got everything working on a desktop Linux machine using WvDial. When everything was working, I looked at the options and commands WvDial was using and then wrote chat scripts to do the same thing. I trimmed lines from the chat scripts until I had the minimal script needed to get the modem working. Then I moved those scripts to the target and everything worked.

Your other option is to install Ubuntu on the single board computer (SBC). If you just install Linux without the GUI (GNOME), it might fit.
 
Old 07-01-2009, 10:29 AM   #5
atziazas
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
I am using my Mac and Kermit. I can connect to the device but I don't know how to make kermit connect directly to ttyS1 instead of wherever it currently connects.
 
Old 07-06-2009, 09:56 AM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by atziazas View Post
I can connect to the device but I don't know how to make kermit connect directly to ttyS1 instead of wherever it currently connects.
I am assuming you have the modem connected to your Mac.

Here is the option to tell Kermit which serial port to use:
Code:
-l arg 	N 	(Lowercase letter L) Make a connection on the given
                serial communications device. Equivalent to the SET
                LINE (SET PORT) command.
                Argument: Serial device name, e.g. /dev/ttyS0.
This is from the Kermit tutorial and man page.
 
  


Reply

Tags
chat, gsm


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
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 03:07 PM
CAnnot access /dev/ttys1 with Minicom on Korn Shell Yves Plasse Linux - Newbie 4 01-10-2009 12:55 PM
creating /dev/ttyS0 or ttyS1 MToloo Linux - Hardware 3 03-05-2007 10:09 AM
respawn changes to off on ttyS1 DownhillGeezer Linux - General 4 02-19-2007 12:25 PM
No such device /dev/ttyS1 gsancho Debian 3 09-23-2004 06:40 PM


All times are GMT -5. The time now is 04:16 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