On page “Getting Started Guide with WIZ550web” there is a line: “Users can learn how to control the H/W (I/O, UART, Registers and Etc.) using the web page.”
Would be better if these fictions where documented already for people who have no idea where to look.
Anyway. I did some digging around:
Issues I’ve found:
- dout.cgi are inverted? on = 0 and off = 1, this is not the case on set_diostate.cgi
- USART names are wrong in the Demo site
USART1 on page = UART2 on data sheet (Serial Port - Data) and
USART2 on page = UART1 on data sheet (Serial Port - AT command)
GET Commands
Example:
curl -G http://192.168.11.100/get_dio5.cgi or use web browser
widget.cgi (Get Basic Settings)
io.cgi (Get I/O all status, include pin 90,91 on-board LED)
io_alias.cgi (Get all I/O status. direction and port names)
adc.cgi (Get all ADC Status/values)
get_devinfo.cgi (Get Device info)
get_netinfo.cgi (Get Network info)
get_serial_data.cgi (Get serial data from buffer) (Console port)
get_uart0info.cgi Get Serial port 1 settings (UART1, Console)
get_uart1info.cgi Get Serial port 1 settings (UART2, AT command)
get_ain0.cgi ~ get_ain3.cgi (Get ADC info per port)
get_dio0.cgi ~ get_dio15.cgi (Get I/O status per port)
SET Set commands
Example:
curl -d “pin=5&val=1” http://192.168.11.100/set_diostate.cgi (Set I/O port 5 to On/High) or
curl -d “lip=192.168.11.100” http://192.168.11.100/config.cgi (to set only the “lip” parameter
config.cgi (Basic configure setup: Device name, LAN, UART2 = AT Port))
devicename=WIZ550WEB
dhcp=0
lip=192.168.11.100
gw=192.168.1.1
sub=255.255.255.0
dns=0.0.0.0
baudrate=0-9 (600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400)
databit=8,9
parity=0-2 (None, Odd, Even)
stopbit=1,2
flowcontrol=0-3 (None, CTS/RTS, RS422, RS485)
dout.cgi (Set I/O port On/Off)
pin=0-15,90,91 (I/O port number, 90/91=on-board led)
val=0 (High/On)
val=1 (Low/Off)
save_alias.cgi (Change name of I/O port)
pin=0-15 (I/O port number)
val=Digital IO #5
dir_change.cgi (Change I/O direction)
pin=0-15 (I/O port number)
val=0-2 (Not used,Input,Output)
tx_serial_data.cgi (Send serial data to UART1 = Console port)
data=text here
set_default_io_status.cgi (IO Settings Factory Reset and Reboot)
io_reset=1
set_devinfo.cgi (Configure Device name) **changes takes effect after reboot
devname=WIZ550WEB
set_netinfo.cgi (Configure Lan port) **changes takes effect after reboot
ip=192.168.11.100
gw=192.168.11.1
sub=255.255.255.0
dns=0.0.0.0
set_uart0info.cgi (Configure UART1= Console Port) **changes takes effect after reboot
baud=0-9 (600,1200,2400,4800,9600,19200,38400,57600,115200,230400)
databit=8,9
parity=0-2 (None,odd,even)
stopbit=1,2
flow=0-3 (None,CTS/RTS,RS422,RS485)
set_uart1info.cgi (Configure UART2 = AT port) **changes takes effect after reboot
baud=0-9 (600,1200,2400,4800,9600,19200,38400,57600,115200,230400)
databit=8,9
parity=0-2 (None,odd,even)
stopbit=1,2
flow=0-3 (None,CTS/RTS,RS422,RS485)
set_diodir.cgi (Change I/O direction. same as dir_change.cgi)
pin=0-15 (I/O port number)
val=0-2 (Not used,Input,Output)
set_diostate.cgi (Set I/O port On/Off. almost the same as dout.cgi)
pin=0-15 (I/O port number)
val=0 (Low/Off)
val=1 (High/On)
set_dioalias.cgi (Change name of I/O port. same as save_alias.cgi)
pin=0-15
val=Digital IO #5
Wiz Team, feel tree to add this in the Wiz Wiki