[Nut-upsdev] Megatec - modem control lines

Carlos Rodrigues carlos.efr at mail.telepac.pt
Mon Jun 18 12:42:37 UTC 2007


On 6/18/07, Arjen de Korte <nut+devel at de-korte.org> wrote:
> So far, the megatec driver doesn't do anything with the modem control
> lines at all. This may be OK if these are indeed not used by the
> interface (for instance if only TX and RX are wired). But if they are
> used to provide cable power this is not right. The build in NUT
> functions don't do anything with the modem control lines and will leave
> them in the state they are in before the driver started. If that happens
> to be the right state, fine, but if they are not, we have a problem.
> Therefor, I want to propose the following patch:
>
[snip]
>
> This should be backwards compatible, since we never did anything with
> these lines before, so the state would have been 'random' until now.Note
> that at power up, these often will be cleared so usually they will be
> cleared, but if the port had been used before by other applications, the
> state they're in is undefined.
>
> The least this patch will do, is to define a state for the modem control
> lines.

Well, in principle I don't have a problem with this. I'll test it
later at night.

-- 
Carlos Rodrigues



More information about the Nut-upsdev mailing list