Can't connect to modem
Ladies & Gentelmen
I am trying to set up a modem to answer incomming calls. I have 2 problems preventing me from success. 1. The modem answers the incomming call but a it seams that the username and password is not getting there. In the mgetty log I have this for every atempt. Code:
2/07 16:52:32 dem mgetty: interim release 1.1.36-Jun15 lspci -vn Code:
00:0c.0 0780: 14f1:1036 (rev 08) 2.6.26-2-686 fully updated. I have been searching google but the howto's are somewhat dated. I also have not been able to find a good howto about how to access the modem and send commands to it. What info there is is scattered and limited. If this matters, I am trying to dial-in from a laptop running Debian Squeeze amd64 fully updated. Using kppp and a cell phone. 2. The second issue I am having is that the modem answers after 1 ring. This may be part of the problem of the first issue in that it may not be allowing the caller-id info time to be populated so the incomming phone number is not there to be checked and so the call is rejected. So far I have not been able to find any way of changing this behavior. I have seen some vauge references to a string in the modem that can control this and to a setting in mgetty that can control this, but no indication of how to set either one. I suspose that a discription of what i am trying to do is in order. I have cable internet service on my local network. I am trying to set up a dial-in server on that network so that I can call in and get network access and internet access. All relevent computers are running linux. Can anyone point me to a better howto/tutorial on how to set this up? Or give post a request for additional info or commands to run. I will be happy to provide it. Thanks |
The easiest method IMHO to send commands to the modem is via minicom. The auto answer can be set via an AT command (ATS0=x where x is the number of rings and 0 is a zero). Depending on the hardware you can either program the modem or have the computer send an initialization string.
|
Thanks michaelk
I tried minicom but was not able to figure out how to send commands to the modem beyond what the menu system would do. More info; Code:
Dec 8 08:29:21 RBees mgetty[11326]: data dev=modem, pid=11326, caller='none', conn='115200', name='', cmd='/bin/login', user='+++ATH' I have also tried a stright command line config with the same results. In reguards to the second issue from the howto http://www.linux.org/docs/ldp/howto/...dem-hayes.html Quote:
Reading the mgetty man, I found, not sure how I missed it a switch to control when it answers. I added it in the inittab file and did # init q So that part of the problem is fixed for now. Now that it doesn't answer so fast there is some other info in the log. Code:
13:22:56 RBees mgetty[12077]: mdm_read_byte: read returned -1: Interrupted system call If I could just find some current easy to understand for an old man info I think I could get it working. |
Did you ever get this working properly? I use dial-up. If you did not get this working post your /etc/ppp/chat-username file, minus any sensitive info of course.
|
OK, I finally got back to this.
SharpyWarpy, no I have not gotten this to work yet, but trying again. First: is that I have acquired a us robotics 5610b hardware modem that is fully supported by the linux kernel. Second: I am now using different hardware, but same os version. Third: I didn't mention before that the land-line connected to the dial-in server is a voip line and may be causing problems. It some point I want to hook it to a standard land line just to check and may have to do that just to get a connect to start with. So to eliminate the cell phone issues on one end I have had a friend dial in from a standard land line and winXP and he is at least able to get a user id rejection notice. the log on the server Code:
07/18 10:04:00 yS2 wfr: waiting for``RING'' Code:
07/14 10:24:16 yS2 wfr: waiting for ``RING'' I did however just come across some other info to pursue. That may actually help http://ubuntuforums.org/showthread.php?t=150339 I would still happily take any advice you have to offer. Thanks |
/me has joy
I did get to work. What I had to do was just forget the how-to and use the debian defaults for the most part. I did change the debug level and the number of rings in /etc/initab but for the most part the settings are at default my initab Code:
S1:2345:respawn:/sbin/mgetty -n 4 -x 6 -D ttyS2 Code:
# Every regular user can use PPP and has to use passwords from /etc/passwd I am still having some issues with getting a change in the answer-rings to be reflected by when the modem answers, but hey it is working. :) There may be a few other small changes that I don't remember at the moment. Now if I can just get my cell to hook up correctly, but that should be OK now. Hope this helps someone else. |
oh one more thing.
I did not have any success getting the firmware update to install to this modem. So it still has the original firmware. |
All times are GMT -5. The time now is 12:47 AM. |