Moxa TC-6110-W7E [26/74] Moxa synmap oids list

Moxa TC-6110-CT-T-LX [26/74] Moxa synmap oids list
TC-6110 / Windows 7 Installing Moxa Software
4-12
1. Open a required file handle using mxgpio_open
2. Get data using the file handle, an assigned port, and
mxgpio_get_data
3. Evaluate the returned data, and make a logical/control decision
4. Use
mxgpio_set_data with the file handle to set a value
5. Use
mxgpio_close to close the file handle
These examples show, in concise form, the difficulties application developers face when dealing with low level
APIs. Developers must understand each system’s API and track down various device node IDs from within the
user manual, the sample code, or the general system. Synmap significantly simplifies this situation. In
comparison to the example just shown, the pseudo code that replaces it will look something like this:
GET an OID using SNMP and the localhost connection (127.0.0.1)
Evaluate the returned data, make a logical decision
SET an OID using SNMP and the localhost connection (127.0.0.1)
The benefits of using SNMP in this way should be clear.
First, the code is easily migrated across different computers and even different operating systems, because
Moxa’s SNMP libraries are supported on both Windows XPE and Linux, as well as a host of other platforms.
Second, the program can just as easily be ported to the network for remote operations simply by changing
the localhost connection (127.0.0.1) to the target IP address and hostname.
Third, the time needed to learn how to control a peripheral is drastically cut; all one needs to do is
understand how to use an SNMP OID, and start scripting.
Fourth, Developers are free to choose any kind of programming languages or utilities with which they might
be familiar, so long as they are apropos to the platform(s) on which they will be used. For example, in place
of the C API, Microsoft developers might want to use the SNMP libraries in .NET or Java to control remote
Linux devices, or it can be flipped around so that Linux developers use Net-SNMP libraries to control remote
Windows XPE machines.
All of these things mean that the Synmap virtualization makes the work of programming custom applications
much faster and simpler, and dramatically increases code interoperability. Complex controls such as USB notify,
mounting information, and BIOS settings have been integrated into the Synmap engine, so that creating a
customized monitoring or control application now only requires the coordination of a few SNMP SET/GET calls,
potentially allowing developers to save on hundreds of lines of code when authoring new applications.
Moxa Synmap OIDs List
The following table shows the OIDs currently supported on the TC-6110. For a full review of all Moxa Synmap
OIDs, check the Appendix section.
Item Name OID Access Description
productName 1.3.6.1.4.1.8691.17.1.1.1 read-only Returns the product name
productDesc 1.3.6.1.4.1.8691.17.1.1.2 read-only Returns a short device description
productVersion 1.3.6.1.4.1.8691.17.1.1.3 read-only Returns product version
productBuildDate 1.3.6.1.4.1.8691.17.1.1.4 read-only Returns the last software build date,
YYMMDDHH format
tempSensorsIndex 1.3.6.1.4.1.8691.17.1.5.1.1.1.1 read-only Reference index showing all
available temperature sensors;
starts from 1
tempSensorsDevice 1.3.6.1.4.1.8691.17.1.5.1.1.1.2 read-only Returns a list of the unique string
values that the database associates
with a temperature sensor index
value. May be used with

Содержание

Похожие устройства

Скачать