Le mer, 21 jun 2000, Jean-Bernard JACQUET a �crit � propos de "Re: [debutant] 
onduleur":

Re-Bonjour,
 
> faire dmesg dans un console. Dans les premieres lignes on doit trouver "Serial
> driver version  4.27 ......
> Puis les diff�rents terminaux de type 
> ttyS00 at .....
> ttyS01 at .....
> Combien y a t-il de ports et a quelle adresse et irq ?

Ok, il y as 2 ports :

Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A

> normalement :
> 0: io 3F8; irq 4
> 1: io 2F8; irq 3
> 2: io 3e8; irq 4
> 3: io 2e8; irq 3
> 
> Est-ce bien le cas ?

Bon, y a pas les 3 et 4, mais jusqu'a la, c'est bon.
 
> puis regarder dans /proc/ioport on doit trouver les adresses des ports
> dans /proc/tty/driver/serial on peut trouver l'�tat des ports le nombre
> d'interruption  en emission, r�ception et l'�tat des signaux de ligne.

dans /proc/ioport : 

02f8-02ff : serial(auto)
03f8-03ff : serial(auto)

et dans /proc/tty/driver/serial : 

serinfo:1.0 driver:4.27
0: uart:16550A port:3F8 irq:4 baud:2400 tx:3880 rx:0 DTR|RI
1: uart:16550A port:2F8 irq:3 tx:0 rx:0 

Donc c'est le 0 qu'il faut prendre, soit ttyS0.

c'est celui que j'ai d�clar� en ce moment, et xpowerchute me dit "No UPS found - Check 
Cable"

je fais un ps -A et je trouve 
 572 ?        00:00:00 _upsd

donc le d�mon ups "� l'air" bien lanc� (c'est quoi le _ devant ?)

je relance la config de powerchute et il me dit :


/dev/ttyS0 verified as a valid tty

The following Port validations for /dev/ttyS0 may take a few moments....
/dev/ttyS0 appears to be a local control port

making backup copy of shutdown files...
modifying shutdown files....

----------------------------------------------------------------------------
WARNING: Could not communicate with device on /dev/ttyS0.
Check that the communications cable is attached properly to both the device
and the serial port.
----------------------------------------------------------------------------
WARNING: Serial communications never verified, the installed product may
not work properly.  You may want to try the following:

        1) Check that specified serial device exists.
        2) Check the device configuration is appropriate for your UPS type
        3) Rebuild or create the serial device using the utility appropriate
           for your system.


�a a pas l'air concluant ...



> Amicalement.
 

-- 
Olivier Fleury
Technicien Info. & Admin. Reseaux.
LTP Providence Misericorde, Rouen.

Répondre à