[Nut-upsdev] Megatec driver : Definitely a serial com setup issue !

Michel Bouissou michel-nut at bouissou.net
Tue May 27 05:54:33 UTC 2008


Hi there,

Le Saturday 24 May 2008 15:41:09 Arjen de Korte, vous avez écrit :
>
> Try if setting the lines
> ser_set_dtr(upsfd, 0);
> ser_set_rts(upsfd, 1);
> in upsdrv_initups() in 'megatec.c' helps.

Thank you Arjen, it solves the issue and the Megatec driver immedately sees my 
UPS with this.

Strange enough, the original megatec.c had exactly the (not working) 
contrary :

ser_set_dtr(upsfd, 1);
ser_set_rts(upsfd, 0);

...a bug ?

Best regards.

-- 
Michel Bouissou <michel at bouissou.net> OpenPGP ID 0xEB04D09C



More information about the Nut-upsdev mailing list