13.2. Citobox and GPIO devices activation

Add the CB fake card with the command:

[12:56:09] ABILIS_CPX:a dev:cb-1

COMMAND EXECUTED 

[12:57:03] ABILIS_CPX:d dev

- Not Saved (SAVE CONF) -------------------------------------------------------

------------------ Active PCI Cards and Physical Resources: -------------------
Card(s)     Run Physical Resource(s) or CTI Port(s)          SlotId  Addr  Irq
-------------------------------------------------------------------------------
ASY-1       Yes Async-1  . . . . . . . . . . . . . . . . . .      -   3F8    4
ETH-1       Yes Eth-1  . . . . . . . . . . . . . . . . . . .     15   PCI (  9)
ETH-2       Yes Eth-2  . . . . . . . . . . . . . . . . . . .     14   PCI ( 10)
POTS-1      Yes 101..116 . . . . . . . . . . . . . . . . . .     12   PCI (  7)
CB-1        No  241..248 . . . . . . . . . . . . . . . . . .      -   PCI (  -)

Add the citobox and GPIO devices to abilis using the following commands. The devices status shows now two CTIP in the range 241 .. 248.

[21:36:02] ABILIS_CPX:A DEV:CITOBOX-1

COMMAND EXECUTED

[21:36:12] ABILIS_CPX:A DEV:GPIO-1

COMMAND EXECUTED

[21:37:19] ABILIS_CPX:d dev

...
------------------ Active USB Devices and Physical Resources: -----------------
Device(s)   Run Con Physical Resource(s) or CTI Port(s)    USBPORTID
-------------------------------------------------------------------------------
GPIO-1      Yes Yes Gpio-1 . . . . . . . . . . . . . . . . 0.3.0
CITOBOX-1           241..242 . . . . . . . . . . . . . . .
 CITO-1     Yes Yes .  . . . . . . . . . . . . . . . . . . 0.3.2
 AUDIO-1    Yes Yes .  . . . . . . . . . . . . . . . . . . 0.3.1
...
[Caution]Caution

Remember to save the configuration using save conf and that on a working Abilis, a system restart is required.

Since Citobox appears as two devices (one Citobox and one GPIO which manages outputs), the GPIO device needs to be configured setting it active with the command:

[11:43:22] ABILIS_CPX:_s p gpio-1 act:yes

COMMAND EXECUTED

[11:43:32] ABILIS_CPX:_d p gpio-1

RES:Gpio-1 - Not Saved (SAVE CONF), Not Refreshed (INIT) ----------------------
       ------------------------------------------------------------------------
       DESCR:
       LOG:NO               ACT:YES              LIVE-EXPIRY:10
       - ePorter specific -----------------------------------------------------
       GATE-WAIT-CONNECT:60     GATE-MAX-DURATION:300
       FLAT-WAIT-CONNECT:60     FLAT-MAX-DURATION:300    FLAT-BELL-GUARD:2

Initialize the device and save the configuration with init res:gpio-1 and save conf.

GPIO resource allows to view the state of each digital input/output line and to read values from analog inputs.

[11:14:44] ABILIS_CPX:d d gpio

RES:Gpio-1 --------------------------------------------------------------------
       STATE:UP             USB-STATE:CONNECTED
       - Digital Input Lines State --------------------------------------------
        1..16| off off off off ON  off off off off off .   .   .   .   .   .
       17..32| .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
       33..48| .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
       49..64| .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
       ------------------------------------------------------------------------
       - Digital Output Lines State -------------------------------------------
        1..16| off off off off off off off off off off off off off off off off
       17..32| off off off off off off off off off off off off off off off off
       33..48| off off off off off off .   .   .   .   .   .   .   .   .   .
       49..64| .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
       ------------------------------------------------------------------------
       - Analog Input Lines State ---------------------------------------------
        1.. 8| .       .       .       .       .       .       .       .
        9..16| .       .       .       .       .       .       .       .
       ------------------------------------------------------------------------
       - Analog Input Lines Values --------------------------------------------
        1.. 8| .       .       .       .       .       .       .       .
        9..16| .       .       .       .       .       .       .       .
       ------------------------------------------------------------------------