LinuxQuestions.org
Help answer threads with 0 replies.
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 10-24-2003, 09:56 AM   #1
ejoe
LQ Newbie
 
Registered: Oct 2003
Location: Australia
Posts: 8

Rep: Reputation: 0
Not receiving data from serial modem.


I have an external 56k swann speed demon connected to ttyS1. When I open minicom, the modem initialises (and the appropriate lights flash on the modem), but nothing will happen from there. It won't even echo back what I type in, even if I wait for ages. Similarly, when I attempt to dialup using KPPP it just sits there "Expecting: OK".

I am using a fresh installation of Mandrake 9.1. The modem worked without hassles on Mandrake 9.0.

Code:
# setserial /dev/ttyS1
/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
...which matches my BIOS settings.

Some things while KPPP is trying to connect:

Code:
# lsof /dev/ttyS*
COMMAND  PID USER  FD   TYPE DEVICE SIZE NODE NAME
X       1527 root   7u   CHR   4,64       414 /dev/tts/0
kppp    2908  joe  11u   CHR   4,65       417 /dev/tts/1
kppp    2909 root   3u   CHR   4,65       417 /dev/tts/1

# cat /proc/interrupts
...
  3:       22      XT-PIC  serial
...

# statserial
Signal  Pin  Pin  Direction  Status  Full
Name    (25) (9)  (computer)         Name
-----   ---  ---  ---------  ------  -----
FG       1    -      -           -   Frame Ground
TxD      2    3      out         -   Transmit Data
RxD      3    2      in          -   Receive Data
RTS      4    7      out         1   Request To Send
CTS      5    8      in          0   Clear To Send
DSR      6    6      in          0   Data Set Ready
GND      7    5      -           -   Signal Ground
DCD      8    1      in          0   Data Carrier Detect
DTR     20    4      out         1   Data Terminal Ready
RI      22    9      in          0   Ring Indicator
Any help greatly appreciated.
 
Old 10-24-2003, 12:04 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Check your /var/log/syslog to see if there are any errors there. Perhaps you need to configure nameserver in etc/ppp/resolv.conf
 
Old 10-24-2003, 08:40 PM   #3
ejoe
LQ Newbie
 
Registered: Oct 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
Nothing relevant in syslog. I wouldn't think it has to do with nameserver setup, but more with the configuration of the serial port.
 
Old 10-24-2003, 11:53 PM   #4
lachlan
Member
 
Registered: Jan 2002
Location: New Zealand
Distribution: Mandrake 9.1,Suse 8.2
Posts: 139

Rep: Reputation: 15
You could try running, dmesg with your modem switched on,it just might give you a different location than what you have set up in setseial.

Lachlan
 
Old 10-25-2003, 02:10 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
What message are you getting when you are in kppp setup and you do query modem?
 
Old 10-26-2003, 06:15 AM   #6
ejoe
LQ Newbie
 
Registered: Oct 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
It seems to query the modem properly, but all the messages are just empty. With everything I do, it's as though data can be sent to the modem, but none is ever received.
 
Old 10-26-2003, 06:17 AM   #7
ejoe
LQ Newbie
 
Registered: Oct 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by lachlan
You could try running, dmesg with your modem switched on,it just might give you a different location than what you have set up in setseial.

Lachlan
Can't find anything except what setserial says.
 
Old 03-30-2007, 05:44 PM   #8
Azadk
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Question Expecting OK

Hi all,
I'm having the same problem with my internal modem while using KPPP.
The "Initializing modem..." is displayed and Login Script Debug Window shows nothing while Expecting: ok is displayed at the botton.

Any help is appriciated.
Azad
 
Old 03-30-2007, 07:16 PM   #9
jerrywoodstock
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Same Issue withe Fedora Core 6 Help

I have a USR5686 E Serial modem located on ttyS0 this is not a win modem. KPPP will not detect the modem unless i create a soft link to /dev/modem. Once the link is created I can query my modem but nothing is returned. when i try to dial out the software says initializing modem and the log states waiting for OK.

I have run set serial command: setserial /dev/modem or setserial /dev/ttyS0 and setserial returns : Cannot get serial info:Invalid Argument

I have a A8V Asus Motherboard in the BIOS my serial port is assigned address 2E8/IRQ4.

The kernel version of Linux that I am using is 2.6.18-1.2798fc6xen Fedora Core 6

PPP Version ppp-2.4.4-1.fc6.i386.rpm


Also could you please include the file that i need to amend so that my /dev/modem soft link does not have to be recreated every time I reboot.


Any help would be greatly appreciated.
 
Old 03-30-2007, 07:24 PM   #10
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Be aware of hardware signals being received by the serial modem.

The Linux host must see DSR and CTS from the serial device.

The Linux host will raise DTR and RTS when the tty is opened by a process.

DSR tells the Linux host that the modem is in a Data Set Ready state ...

Make sure that the cable is good.


The typical AT command to enable echo is ATE1.
 
Old 03-30-2007, 07:26 PM   #11
jerrywoodstock
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Help newbie

Help I am not sure what you mean or how to check it sorry I am a big time Linux newbie.

All I know is the cable is working because I am using the modem from winxp atm
 
Old 03-30-2007, 07:28 PM   #12
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
You can check serial statistics through the /proc filesystem:
Code:
n600c ~ # cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 RTS|DTR
 
Old 03-30-2007, 07:52 PM   #13
jerrywoodstock
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
No Luck

When I tried that command it said no such directory so I navigated my way as far as I could in the file system and made it to /proc/tty/driver/ in the driver directory there was one file rfcomm I opened it with emacs its empty. also in /proc/tty/ there is a file drivers and ldisc both are empty as well.
 
Old 03-30-2007, 07:54 PM   #14
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Ok, it appears your kernel doesn't have the support...

What LED's are indicated on the modem ... when you open the TTY device ?
 
Old 03-30-2007, 08:14 PM   #15
jerrywoodstock
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
No Lights Flash

The only light that stays on is the CS led. Although it seems every time I Try and dial out or Query my modem from KPPP when i return to windows I have to reboot the modem to dial outfrom windows.
 
  


Reply


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
Best Data 56K Serial Modem installation Viper168 Linux - Hardware 10 05-07-2005 04:32 PM
Best Data 56K External Serial Modem undetected on Fedora Core edeb Linux - Newbie 4 04-24-2005 12:48 PM
modem stops receiving data positron Linux - Newbie 3 07-21-2004 04:32 AM
Receiving all data from socket Ohmu Programming 6 03-08-2004 02:58 PM
trouble receiving serial port data mtPete Linux - General 1 08-20-2003 05:27 PM


All times are GMT -5. The time now is 11:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration