Ethernet/PoE Modules

HTTP Command Set

72 views June 1, 2023 aryakrishna 1

This document describes the command sets used on the Numato Lab Ethernet/PoE Modules.

Sl. No.CommandUsageDescription
1info.cgiinfo.cgiDisplays the info data of the module.
2ver.cgiver.cgiDisplays the firmware version.
3idget.cgiidget.cgiReads the Device ID.
4usrget.cgiusrget.cgiReads the username.
5passget.cgipassget.cgiReads the password.
6reset.cgireset.cgiReset all the relays to off state.
7modulereboot.cgimodulereboot.cgiReboots the module to configuration mode.
8id.cgi?devid=[device id]id.cgi?devid=00000001Set new Device ID.

Device ID must be 8 in length.
9settings.cgi?cred=[username] [password]settings.cgi?cred=numato numatoSet new Username and Password.
Enter the username and password accordingly.
User name and password can be of length 1-8.
10relay.cgi?on=xrelay.cgi?on=xTurns on relay ‘x’,
x varies from 0 – 9 & A – V depending on the board configuration.
11relays.cgi?off=xrelays.cgi?off=xTurns off relay ‘x’,
x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
12relays.cgi?read=xrelays.cgi?read=xReads the state of relay ‘x’, x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
13relay.cgi?writeall=[value]relay.cgi?writeall=[value]On/off multiple relays at a time
Note: value is in hexadecimal from 00 to ffffffff depending on the number of relays onboard.
14relay.cgi?readallrelay.cgi?readallRead all relays status in hexadecimal value.
15gpio.cgi?set=xgpios.cgi?gpioset=0Set gpio x.
x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
16gpio.cgi?clear=xgpios.cgi?gpioclear=Clear gpio x.
x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
17gpio.cgi?read=xgpioread.cgi?gpio=5Reads gpio x.
x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
18gpiol.cgi?writeall=[value]gpiowriteall.cgi?gpiowriteall=ffffSet/clear multiple gpios at a time.
Note: value is in hexadecimal from 00 to ffffffff depending on the number of GPIOs onboard.
19gpio.cgi?iomask=[value]iomask.cgi?iomask=ffThis command masks the GPIOs in GPIO modules from changing the state..
Note: value is in hexadecimal from 00 to ffffffff depending on the number of GPIOs onboard.

0 – mask & 1 – unmask
20gpio.cgi?iodir=[value]iodir.cgi?iodir=ffffSet the Input/output direction of the GPIOs.
Note: value is in hexadecimal from 00 to ffffffff depending on the number of GPIOs onboard.

0 – Output & 1 – Input.
21gpio.cgi?status=xgpio.cgi?status=xReads gpio x status withput changing it's IO direction.
x varies from 0 – 9 , A – V, 000-031 depending on the board configuration.
22gpio.cgi?readallgpioreadall.cgiThis command reads status of all gpio.
23adc.cgi?read=xadcread.cgi?adc=0This command reads adc value at pin x.
x varies from 0 – 9 , A – D, 000-013 depending on the board configuration and only if Analog inputs available onboard.

Refer product page and user manual to know more about the number of relays/GPIOs/analog pins.

Note:

  1. “gpio – set, clear, status and adc read” commands are not Present on PoE Relay & PoE GPI modules.
  2. “gpio – iodir and iomask” are not Present on ETH Relay, PoE Relay and PoE GPI/GPO modules.
  3. “adcread” commands are not present on PoE GPIO modules.
  4. “relay – on, off, readall, writeall, reset” commands are only present on Relay modules.
  5. “gpio – writeall, readall” command are present only on ETH GPIO and PoE GPIO modules
  6. “gpio – iomask,  iodir” commands are present only on ETH GPIO modules.
  7. Prefex IP Address before all commands. Eg: 192.168.1.1/ver.cgi

Was this helpful?

Leave A Comment
*
*