
Armadillo-J
Startup Guide ver.2.03
6.2. Example of GPIO Utilization
This section describes how to receive a state transition notification message (trap) sent from the Armadillo-J.
To receive the state transition notification message, special software to receive a trap is required, such as:
NET-SNMP
(
http://net-snmp.sourceforge.net/
For information on how to install and use them, refer to the respective HP.
Then change the Armadillo-J GPIO settings. As an example, here the monitoring cycle is set to “100ms”,
manager IP address to “192.168.10.2”, port 1 mode to “input” and trap transmit time to “1000ms”. (For the
manager IP address, specify the IP address of the PC on which the trap receiving software is running).
Figure 6-5 Example of GPIO Settings
When the time duration of 1000ms has elapsed since the state of the Armadillo-J GPIO port number 1
(PORTA0 of CON2) was changed, the PC specified with the manager IP address is notified of the state transition.
An example of having received an Armadillo-J trap with NET-SNMP is shown in Figure 6-6.
snmphost:/root# snmptrapd -L o -f
2004-12-20 14:40:52 NET-SNMP version 5.1 Started.
2004-12-20 14:40:55 192.168.10.146 [192.168.10.146]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (32606) 0:05:26.06 SNMPv2-MIB::snmpTrapOID.0 = OID:
ATMARKTECHNO-MIB::changestatus.0 ATMARKTECHNO-MIB::portData.1 = INTEGER: low(0)
2004-12-26 14:41:44 192.168.10.146 [192.168.10.146]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (32826) 0:05:28.26 SNMPv2-MIB::snmpTrapOID.0 = OID:
ATMARKTECHNO-MIB::changestatus.0 ATMARKTECHNO-MIB::portData.1 = INTEGER: high(1)
Figure 6-6 Example of Having Received a Trap
15