Dialin-Server using mgetty via Nokia 3109c modem
this is my first post - hopefully placed in the correct category :rolleyes:
I'm trying to build a dial-in server using the modem in my nokia 3109c. The phone is connected using bluetooth and has a german sim-card inserted. In the logs it's shown that an incoming call is arrived and mgetty has sent an "ATA" to pick up the line. Well that does actually work, but it's the mobile phone who picks up the call and not the pc. I can hear the other (remote) modem through the phone's speaker.
My guess is that i'm missing some fancy init-chatscript to tell the phone "act as modem" or something equal.
Another problem i'm dealing with is that if i start mgetty from the inittab (using startup) it continiously trys to reach /dev/comm0 - which does not exist while the phone is not connected via bluetooth. Is there a way to manually start mgetty and prevent the "cannot set controlling tty (ioctl): Operation not permitted" message?
Hope you can give me some hints..
02/16 12:02:50 mm0 check for lockfiles
02/16 12:02:50 mm0 checklock: stat failed, no file
02/16 12:02:50 mm0 locking the line
02/16 12:02:50 mm0 makelock(rfcomm0) called
02/16 12:02:50 mm0 do_makelock: lock='/var/lock/LCK..rfcomm0'
02/16 12:02:50 mm0 lock made
02/16 12:02:50 mm0 tio_get_rs232_lines: status: RTS CTS DSR DTR
02/16 12:02:50 mm0 tss: set speed to 57600 (10001)
02/16 12:02:50 mm0 tio_set_flow_control( HARD )
02/16 12:02:50 mm0 waiting for line to clear (VTIME=1), read:
02/16 12:02:51 mm0 send: AT&F&C1&D2[0d]
02/16 12:02:51 mm0 waiting for ``OK''
02/16 12:02:51 mm0 got: AT&F&C1&D2[0d]
02/16 12:02:51 mm0 CND: AT&F&C1&D2[0d][0a]OK ** found **
02/16 12:02:51 mm0 send: at+cbst=12,0,1;+chsn=1,1,0,4[0d]
02/16 12:02:51 mm0 waiting for line to clear (VTIME=3), read: [0d][0a]at+cbst=12,0,1;+chsn=1,1,0,4[0d][0d][0a]OK[0d][0a]
02/16 12:02:51 mm0 removing lock file
02/16 12:02:51 mm0 waiting...
02/16 12:03:34 mm0 select returned 1
02/16 12:03:34 mm0 checking lockfiles, locking the line
02/16 12:03:34 mm0 makelock(rfcomm0) called
02/16 12:03:34 mm0 do_makelock: lock='/var/lock/LCK..rfcomm0'
02/16 12:03:34 mm0 lock made
02/16 12:03:34 mm0 wfr: waiting for ``RING''
02/16 12:03:34 mm0 got: [0d][0a]RING[0d]
02/16 12:03:34 mm0 CND: RING
02/16 12:03:34 mm0 wfr: rc=0, drn=0
02/16 12:03:34 mm0 CND: check no: 'none'
02/16 12:03:34 mm0 cannot set controlling tty (ioctl): Operation not permitted
02/16 12:03:34 mm0 >>> this might be caused because you have run mgetty/vgetty
02/16 12:03:34 mm0 >>> from the command line. Don't do that, use /etc/inittab!
02/16 12:03:34 mm0 send: ATA[0d]
02/16 12:03:34 mm0 waiting for ``CONNECT''
02/16 12:03:34 mm0 got: ATA[0d]
02/16 12:03:34 mm0 CND: OKATA[0d][0a]OK[0d]
02/16 12:03:34 mm0 CND: OK[0a][0d][0a]NO CARRIER ((( <<<= Manual hangup
02/16 12:03:39 mm0 found action string: ``NO CARRIER''
02/16 12:03:39 ##### failed A_FAIL dev=rfcomm0, pid=2861, caller='none', conn='', name=''
I am having similar issues as you with a simpler setup - my modem is a PCI card. I get the similar "cannot set controlling tty (ioctl): Operation not permitted" message when I run mgetty from CLI, but I read somewhere it is benign and can be ignored. I am inclined to agree, because the operation does not fail there, but proceeds, as in your logs
To get rid of the pesky ioctl problem, run mgetty like this:
thanks for your reply. I will try your code.
The page you mentioned also has another clever suggestion to be able to start mgetty by inittab, but being able to manually start the service:
The wrapper is easy:
while test -f /etc/nologin.ttyS1
exec /usr/local/sbin/mgetty ttyS1
This should also fix the ioctl problem - i guess.
But my nokia problem remains :(
Unfortunately, I still don't have a lab to work on this; didn't get any useful suggestions yet. I have some ideas that I'll try out, but need some additional hardware which I am hoping I'll get today.
If you have some ideas about AT commands to use in the meantime, or any references, can you please post them on this thread? I'll do the same once I get a lab to work with... :)
|All times are GMT -5. The time now is 12:55 PM.|