Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 04:06:54 -0600 (CST)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org, sam.gh1986@gmail.com
Subject:   Re: modem communication
Message-ID:  <201212151006.qBFA6sob067474@mail.r-bonomi.com>
In-Reply-To: <CAA_1SgGLQ2Y9uWaR7gCzeWuxS7oU003YtzU82ruZT=u2wsc-0w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org  Sat Dec 15 03:27:08 2012
> Date: Sat, 15 Dec 2012 12:54:44 +0330
> Subject: modem communication
> From: s m <sam.gh1986@gmail.com>
> To: freebsd-questions@freebsd.org
>
> hello guys,
>
> please forgive me if my question is not related to this list but i don't
> know where i should ask about it.
>
> i have a freebsd8.2 and wanna talk my modem by com port. when i connect my
> modem to com port, everything is ok.
>
> for some reasons, i have to communicate with modem, run a command, close
> the connection, connect again, run another command, close connection,... .
> in the other words, in each communication i have to run just one ati
> command and close connection.

BAD IDEA(TM)

> my question is: are there any ati commands in modems that should be run
> continuously (in the same communication)?  i mean running one command,
> close connection, open it again and run another command would make any
> wrong?

yes. 


> my program should work with all modems not a specific one.
>
> any hints or comments are really appreciated.

Open the serial port at the beginning of the 'session', keep it open while
you do everything needed, then (and only then!) close the serial port.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212151006.qBFA6sob067474>