Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th August 2006, 04:04 PM
axaf Offline
Registered User
 
Join Date: Nov 2004
Posts: 43
minicom question

I'm trying to communicate with a piece of hardware through the serial port of my Linux box using minicom. I have the proper parameters established (e.g., baud rate, parity, etc). However, the minicom communication screen claims that it is off line, and that I can't talk to my piece of hardware. Can someone suggest to me how I would use the software to send commands up to my instrumentation?

Thanks,

Gary
Reply With Quote
  #2  
Old 10th August 2006, 06:58 PM
hiberphoptik's Avatar
hiberphoptik Offline
Registered User
 
Join Date: Apr 2004
Posts: 1,186
its been a while since i have seen/used minicom but i think you have to enter command mode and then you can type in your at commands.

also you can send commands directly to the serial port from the linux command line if you dont need to use minicom, that way you can even script your commands

something like: echo ata > /dev/modem
Reply With Quote
  #3  
Old 10th August 2006, 09:06 PM
dishawjp Offline
Registered User
 
Join Date: Mar 2004
Location: Central NY
Age: 61
Posts: 471
I'm assuming that you're talking direct connect, and not through a modem. I use both setups all the time and have never had an issue. Are you *certain* that you have the proper serial port configured. e.g., ttyS0 or ttyS1?

Are you doing this from a runlevel 3 or through an xterm? Could you post your /etc/.minirc.dfl and your ~/minirc.dfl?

If you're running it thouugh an Xterm, also post your /etc/xminicom file as well.

Jim

<edit>
also, what are you using for flow control? hardware, software, or none. I have had the best luck with it set to none except when directly communication without a modem. In that case, I use hardware flow control.
</edit>
__________________
Registered Linux User 294493

Last edited by dishawjp; 10th August 2006 at 09:10 PM.
Reply With Quote
  #4  
Old 15th August 2006, 03:33 PM
axaf Offline
Registered User
 
Join Date: Nov 2004
Posts: 43
Hi Jim,

Just to follow up...the computer system I'm using doesn't appear to have a /etc/xminicom or /etc/.minirc.dfl file.

However, here is the /etc/minirc.dfl file:

# Machine-generated file - use "minicom -s" to change parameters.
pr port /dev/ttyS0
pu baudrate 9600
pr bits 8
pr parity N
pu stopbits 1

These settings match up with the hardware from which I'm trying to receive data. Handshaking is allowed. There are two serial ports on this machine. I've tried out both ports with identical results.

By the way, I can only execute the 'stty' command as root. How can I change this to let other
users execute it?

Thanks,

Gary
Reply With Quote
  #5  
Old 15th August 2006, 08:02 PM
dishawjp Offline
Registered User
 
Join Date: Mar 2004
Location: Central NY
Age: 61
Posts: 471
Sorry about the typos, in /etc the file is minirc.dfl and in your home directory, it should be .minirc.dfl.

My /etc/minirc.dfl looks like this:
Code:
dishawjp@linux:~> cat /etc/minirc.dfl
# Machine-generated file - use "minicom -s" to change parameters.
pr port             /dev/ttyS0
pu baudrate         2400
pu bits             8
pu parity           N
pu stopbits         1
pu minit
pu mreset
pu mdialpre
pu mhangup
pu hasdcd           No
pu rtscts           Yes
dishawjp@linux:~>
and my ~/.minirc.dfl looks like this:
Code:
dishawjp@linux:~> cat .minirc.dfl
# Machine-generated file - use setup menu in minicom to change parameters.
pu baudrate         9600
pu bits             8
pu parity           N
pu stopbits         1
pu rtscts           No
dishawjp@linux:~> more /etc/minirc.dfl
note: The above files are taken from my OpenSUSE10 box at work and not my Fedora box at home. Minicom is pretty simple and old and *should* be the same between these two related distros, but no guarantee.

If you're certain that your baud rate is fine for the devices you're communicating with, check out your flow control. Try using "hardware flow control" if you're not using it now.

Jim Dishaw
__________________
Registered Linux User 294493
Reply With Quote
Reply

Tags
minicom, question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11 cant run minicom pianoman Using Fedora 1 25th July 2009 05:23 AM
Cannot type in Minicom karozans Using Fedora 0 10th November 2008 11:03 PM
Minicom Help bspear Hardware & Laptops 1 27th April 2008 08:15 AM
firefox with minicom blahboybang Servers & Networking 0 13th November 2006 11:43 PM
Minicom for gnome/kde ? jtang613 Using Fedora 2 15th March 2005 05:05 AM


Current GMT-time: 01:17 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat