I'm confused. This patch seems to have been implemented back in June. I
guess the problem is that there aren't any new releases. I'll release one
today.

In fact, browsing the code in Sourceforge:
http://owfs.cvs.sourceforge.net/owfs/owfs/module/owlib/src/c/ow_com.c?view=markupshows
your code.

How were you getting your version?

Paul Alfille

On Mon, Aug 25, 2008 at 2:42 AM, Boyan Biandov
<[EMAIL PROTECTED]>wrote:

>  I did find a fix, it is not mine but I can confirm that it does work:
>
>
> http://www.nabble.com/Cannot-detect-DS2480-DS9097-interface-on--dev-ttyS0-td16727947.html
>
> Terminal parameters were not correctly setup in COM_open().
> Following *patch* fixes this. Please consider to apply this *patch* in
> your branch for next distributions.
>
> *owfs*-2.7p4/module/owlib/src/c/ow_com.c      2008-04-17
> 16:45:56.000000000 +0200
>
> @@ -53,18 +53,19 @@ int COM_open(struct connection_in *in)
>                ERROR_CONNECT("Trouble setting port speed: %s\n",
> SAFESTRING(in->name));
>        }
>        // Set to non-canonical mode, and no RTS/CTS handshaking
> -       newSerialTio.c_iflag = IGNBRK | IGNPAR | IXANY;
> -       //newSerialTio.c_oflag &= ~(OPOST);
> -       newSerialTio.c_oflag = 0;
> -       newSerialTio.c_cflag = CLOCAL | CS8 | CREAD;
> -       //newSerialTio.c_lflag &=
> ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|IEXTEN|ISIG);
> -       newSerialTio.c_lflag = 0;
> +       newSerialTio.c_iflag &=
> ~(BRKINT|ICRNL|IGNCR|INLCR|INPCK|ISTRIP|IXON|IXOFF|PARMRK);
> +       newSerialTio.c_iflag |= IGNBRK|IGNPAR;
> +       newSerialTio.c_oflag &= ~(OPOST);
> +       newSerialTio.c_cflag &= ~(CRTSCTS|CSIZE|HUPCL|PARENB);
> +       newSerialTio.c_cflag |= (CLOCAL|CS8|CREAD);
> +       newSerialTio.c_lflag &=
> ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|IEXTEN|ISIG);
>        newSerialTio.c_cc[VMIN] = 0;
>        newSerialTio.c_cc[VTIME] = 3;
>        if (tcsetattr(in->file_descriptor, TCSAFLUSH, &newSerialTio)) {
>                ERROR_CONNECT("Cannot set port attributes: %s\n",
> SAFESTRING(in->name));
>                return -EIO;
>        }
> +       tcflush(in->file_descriptor, TCIOFLUSH);
>        //fcntl(pn->si->file_descriptor, F_SETFL,
> fcntl(pn->si->file_descriptor, F_GETFL, 0) & ~O_NONBLOCK);
>        return 0;
>   }
> The interestring thing is that a message from Apr 17, 2008 says the patch
> has been applied but when I download the source from sf.net the ow_com.c
> file does not seem to contain the patch? Once I edit ow_com.c and made the
> changes my LINK started working
>
> ~Boyan
>
>
>  ------------------------------
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Paul Alfille
> *Sent:* Sunday, August 24, 2008 5:39 PM
> *To:* owfs-developers@lists.sourceforge.net
> *Subject:* Re: [Owfs-developers] OWFS on Ubuntu 8.04
>
>  Do you have a fix?
>
> Paul
>
> On Sun, Aug 24, 2008 at 5:58 PM, Boyan Biandov <[EMAIL PROTECTED]
> > wrote:
>
>> You know guys I have been monitoring the mailing list for years, ever
>> since owfs was in its infancy but lately I see no post addressing few
>> bugs that simply make the source unusable.
>>
>> I discovered this just recently when I got the latest svn (I have been
>> running an older version for 3 years) - there was a DTR line fix which
>> makes serial LINK modules not work since they don't get their power
>>
>> Has this been fixed? Is it just me NOT using USB adaptors any more hence
>> no one had complained about that?
>>
>> Thanks
>>  B
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Owfs-developers mailing list
>> Owfs-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to