LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-27-2003, 02:00 AM   #1
DJ_Cyberdance
LQ Newbie
 
Registered: Oct 2003
Location: Austria
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Disable Hardware Flow Control at serial port


Hi!
I'm trying to connect a modem to my ttyS0, I'd like to establish a dialin server with mgetty. Unfortunately it seems that i can only connect to the modem, when hardware & software flow control are disabled.
Connecting works fine with minicom, when flow control is disabled, I can send AT commands and so on. But not with mgetty. I didn't find an option for disabling flow control. That's what the mgetty logfile says:

11/26 14:55:00 yS0 locking the line
11/26 14:55:00 yS0 makelock(ttyS0) called
11/26 14:55:00 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
11/26 14:55:00 yS0 lock made
11/26 14:55:00 yS0 tio_get_rs232_lines: status: RTS DTR
11/26 14:55:00 yS0 WARNING: DSR is off - modem turned off or bad cable?
11/26 14:55:00 yS0 lowering DTR to reset Modem
11/26 14:55:01 yS0 tss: set speed to 19200 (016)
11/26 14:55:01 yS0 tio_set_flow_control( HARD )
11/26 14:55:01 yS0 waiting for line to clear (VTIME), read:
11/26 14:55:01 yS0 send: \dATQ0V1H0[0d]
11/26 14:55:01 yS0 waiting for ``OK''
11/26 14:55:01 yS0 got:
11/26 14:55:21 yS0 timeout in chat script, waiting for `OK'
11/26 14:55:21 yS0 init chat timed out, trying force-init-chat

This modem only works with 19200kbit, 8n1 and flow control disabled. Any idea how to change these settings? I've tried using setserial, but i couldn't figure out how to change flowcontrol etc., the same with stty. I called stty like this:

stty -F /dev/ttyS0 -xon -crtscts

but when calling just stty -F /dev/ttyS0 it returns this:

speed 19200 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

any help would be kindly appreciated :-))
 
  


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
hardware control through the parallel port Darkfalz Linux - Hardware 1 11-03-2005 11:03 AM
Serial flow control in 2.6.8 kidzmom3 Linux - General 1 12-08-2004 08:47 AM
EXT3-control flow? shrey_j Programming 0 10-18-2004 12:42 AM
serial port hardware flowcontrol blackzone Programming 1 08-17-2004 01:21 AM
what should be my flow control values? HW? SF? or NONE? kublador Linux - Networking 0 06-07-2003 11:03 PM

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

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