|
Boost Users : |
Subject: Re: [Boost-users] C++ (boost) library for serial port communication
From: Jan Krabbenbos (jan.krabbenbos_at_[hidden])
Date: 2012-10-02 11:31:22
Hi Alex,
The first check I would do is to check if there is really something send over the serial line, e.g. with a serial line sniffer. Further check the parameters for the serial connection: baud rate, start, stop and data bits. This should be the same as what your modem is expecting.
I have not looked at the code yet. But that's the next step, especially if there is nothing going over the serial line and the serial parameters are correct.
Regards,
Jan
On 2 okt. 2012, at 16:31, Alexander Dietz <alexworkswiss_at_[hidden]> wrote:
> 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
> <a.wehrmann_at_[hidden]> 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_at_[hidden]
>>>
>>>
>>> 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_at_[hidden]
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Met vriendelijke groet,
Jan Krabbenbos
jan.krabbenbos_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net