I really don't know and can't tell from here. You may have to keep fiddling with stty until communication with the modem is established. I don't even know if your modem responds quite like mine does. Perhaps 'chat' will work better for you, as well.
ok thanks
---------- Post updated at 01:00 PM ---------- Previous update was at 12:57 PM ----------
Quote:
Originally Posted by neutronscott
Totally don't learn anything this way. you NEED to learn scripting so you can make modifications. such as adding a timeout in the chat command.. adding options to stty to better setup the modem ... changing the APN or M2M destination... etc.
edit: or condensing it and understanding whether you want to, like
Thanks You are very kind and very good..
i've doing this and with stty 115200 i have error on stty but if i put stty 9600 i have this error:
i've also put stty 9600 -clocal cs8 -parenb -cstopb for to have 8n1 but why i cant put 115200?
for timeout I insert sleep (2) for example but where in your script? Perphas:
if ! send_expect 'AT+CGDCONT=1,"IP","web.omnitel.it"' 'OK' sleep(2); then
die 'APN setup failed'
fi
hello. i'm attempting to use minicom in linux, but i'm having some difficulties. When i type in "minicom", the application opens up. It says 'starting minicom/finding modem'(something like that). However, once it actually starts, I can't do anything. No matter what I type in, it doesn't work. ... (2 Replies)
Does anyone have a working minicom script they would care to post as I can't get the scripting working and the scriptdemo and unixlogin sample scripts are on my system either.
Thanx,
I (2 Replies)
Hi,
I am new to use minicom. I want script to run on minicom with username and password as automated.(Expect). please could anyone suggest the sample code for it.
Thanks in advance (2 Replies)
Hi,
I am new to using minicom. I want how to write a expect script for minicom login? I wrote a code but its not acting what iam expecting. here I have my code:
#!/usr/bin/expect
set fd
fconfigure $fd
spawn -open $fd
spawn minicom
expect “enter:”
send "\n"
send "\n"
... (3 Replies)
Hi all,
I have some trouble getting stty to talk to some serial/usb converter.
Getting minicom to work was however quite simple after I entered the following settings in addition to its standard-setup:
pu port /dev/ttyUSB0
pu baudrate 19200
pu bits 8
pu... (3 Replies)
This is what I've tried:
#!/bin/sh
send sh
send showifs
send exit
! killall minicom
My problem is that for some reason when I do this it doesn't give me the results of the prior commands sent like showifs
So I suspect my syntax is wrong. (1 Reply)
I'm a fairly new user to Linux based systems and am still a little uncomfortable with using the command interface. I'm trying to get my feet wet but have unfortunately hit a wall and am actually not even sure what I am trying to accomplish is at all possible.
Basically, I am trying to use a... (0 Replies)
Hi All,
I am testing expect script in command prompt without issue, but in crontab it is not working, i check the output error as below:
#cat /var/log/testexp.log
spawn minicom -C /var/log/minicom1.log
No cursor motion capability (cm)
AT+COPS=?
I am new in scripting, together... (1 Reply)
Hey All,
I am trying to find something similar to minicom, but it needs the ability to be ran during a remote dialup session on the remote
device's side.
If I dial into the remote server (*using minicom) and then try to run minicom on the remote server I get the following:
# minicom... (20 Replies)