This is mnoGoSearch's cache of https://lists.gambas-basic.org/pipermail/user/2015-January/051437.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Sun, 04 Jan 2015, 03:20:24 CET    Size: 4604
[Gambas-user] SerialPort: RS232 DTR problem

[Gambas-user] SerialPort: RS232 DTR problem

Benoît Minisini gambas at ...1...
Sun Jan 4 03:20:24 CET 2015


Le 03/01/2015 15:40, Tobias Boege a écrit :
> On Fri, 02 Jan 2015, Beno?t Minisini wrote:
>> Le 16/12/2014 15:52, Tobias Boege a ?crit :
>>> Hi,
>>>
>>> [ this is a forwarded bug report -- and this time I'm only translating. I
>>>     don't understand any of these hardware things. If there are questions
>>>     left, don't hesitate; ]
>>>
>>> a user complains that SerialPort.DTR is buggy on his system: after
>>> initialisation, this property is False and the voltage is -12V.
>>>
>>> Setting it to True works and the voltage raises to +12V. But setting it to
>>> False afterwards does nothing: the property continues to return True the
>>> voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB
>>> adapter.
>>>
>>> He says it worked with Gambas2 and he first noticed that it didn't with
>>> Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the
>>> error still happens with 3.6.2.
>>>
>>> Attached is the project we came up with to reproduce the issue. He also
>>> mentioned that behaviour changed slightly when he left out the graphical
>>> component he initially used his project with: with a graphical component,
>>> the hardware didn't react and the property remained True and without a
>>> graphical component, the hardware reacts correctly, only the property gives
>>> the wrong value -- if I got him right.
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> Does the last revision (#6792) change anything?
>>
>
> He says no.
>

A stupid bug in the DTR property implementation... It should be fixed in 
revision #6804. Please ask him to confirm.

Regards,

-- 
Benoît Minisini




More information about the User mailing list