Hello!
First of all I'd make sure that the modem actually responds.
I had problems with my USB-Serial Adapter that sometimes I wasn't able
to transmit/receive any data over it, reopening the port or replugging
it to the computer
helped there.
You can do this i.e. by using a terminal application (Hyperterminal,
Minicom, TeraTerm)
and try to talk to the modem there. When you're sure it works, try
your application.
Also (even if it doesn't say so in the docs) try to send "AT\r\n"
if you don't receive anything with just "AT\r"; I guess this depends
on the modem firmware...
Regards,
Andreas
Zitat von Alexander Dietz
Hi,
this example is really useful, I created a class to talk to a serial modem. However, the 'talking ' usually does not work! I am sending an AT\r to the modem and wait for an OK. In most of the cases the code waits and waits and waits and nothing is happening. Any ideas what to check? Or what mailing list/forum to ask this question?
Thanks Alex
On Fri, Sep 28, 2012 at 8:39 AM, Andreas Wehrmann
wrote: On 09/28/2012 01:58 AM, Lemay.Steve wrote:
I have the same need. It appears boost::asio provides a good place to start. Here's an example I found.
http://www.webalice.it/fede.tft/serial_port/serial_port.html
I'd love to hear any other expert opinions on the best approach to this as well.
SGL steven.lemay@igt.com
Hello!
I have already used this class to implement communication with serial devices in a professional environment. There's actually not much to say about it, since its use is so easy and straightforward.
Regards,
Andreas
I forgot to mention, that I've been using this on Windows as well as (embedded) Linux platforms. Am using it for controlling radio devices.
Regards
-- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -------------------------------------------------------------- Center Communication Systems GmbH A-1210 Wien, Ignaz-Köck-Straße 19 Sitz in Wien FN 796 88p, Firmenbuchgericht Wien www.centersystems.com
Tel.: +43 (0) 190 199 - 3616 Mobile: +43 (0) 664 884 75916 Fax: +43 (0) 190 199 - 2110 E-Mail: a.wehrmann@centersystems.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users