>We regularly test with libmodbus 3.0.x, and the driver builds there.  We
do not currently test with libmodbus 3.1.2 or newer, which has this updated
timeout API.

>I just pushed a fix to 2.7 that should make hy_gt_vfd work with both old
and new versions of modbus.  I'll merge it into master later today.

>Thanks for the bug report!

Yes you are in right ... today I've control only .c file ....

bkt

2017-06-16 17:38 GMT+02:00 Sebastian Kuzminsky <[email protected]>:

> On 06/16/2017 09:19 AM, theman whosoldtheworld wrote:
>
>> today I've install new master ... during compiling an error referred
>> hy_vdf
>> and modbus on timout func .... I know the modbus story on linuxcnc ... so
>> I
>> regress my libmodbus version at 3.0.5 (at last with purge command and
>> istall using ubuntu repo) ... but error is stable ... so I correct the
>> file
>> in these manner, after a make clean commanad:
>>
>>     {
>>         struct timeval t;
>>
>>         // Set the response timeout.
>>         t.tv_sec = 0;
>>         t.tv_usec = 16 * 1000;
>>         modbus_set_response_timeout(mb, 0, 20000); /*** put the time you
>> want .. probabily solution is using int value in a int var ... but I know
>> is only a rude solution***/
>>
>>         // Set the byte timeout to -1, to just wait for the complete
>>         // response timeout instead.
>>         //t.tv_sec = -1;
>>         modbus_set_byte_timeout(mb, &t);
>>     }
>>
>> regards
>> bkt
>>
>
> You must mean the hy_gt_vfd driver, which is different from the hy_vfd
> driver.
>
> We regularly test with libmodbus 3.0.x, and the driver builds there.  We
> do not currently test with libmodbus 3.1.2 or newer, which has this updated
> timeout API.
>
> I just pushed a fix to 2.7 that should make hy_gt_vfd work with both old
> and new versions of modbus.  I'll merge it into master later today.
>
> Thanks for the bug report!
>
>
> --
> Sebastian Kuzminsky
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to