Network

getIPInfo
FunctionGet IP Info
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getIPInfo
ParamNone
Return
isDHCPObtain ip from dhcp server or not
ipip address(Can only support ipv4 yet)
gategateway(“0.0.0.0” when use dhcp)
masksubnet mask
dns1The first dns server addr(“0.0.0.0” when use dhcp)
dns2The second dns server addr(“0.0.0.0” when use dhcp)
Example/cgi-bin/CGIProxy.fcgi?cmd=getIPInfo&usr=admin&pwd=

setIpInfo
FunctionSet IP Info
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setIpInfo
Param
isDHCPObtain ip from dhcp server or not
ipip address(Can only support ipv4 yet)
gategateway
masksubnet mask
dns1The first dns server addr
dns2The second dns server addr
ReturnNone
NoteSystem will reboot automatically to take effect after call this CGI command
Example/cgi-bin/CGIProxy.fcgi?cmd=setIpInfo&isDHCP=0&ip=192.168.1.88&gate=192.168.1.1&mask=255.255.255.0&dns1=192.168.1.1&dns2=192.168.1.1&usr=admin&pwd=

refreshWifiList
FunctionStart scan the aps around
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=refreshWifiList
ParamNone
ReturnNone
NoteThis operation may takes a while, about 20 seconds or above, the other operation on this device will be blocked during the period.
Example/cgi-bin/CGIProxy.fcgi?cmd=refreshWifiList&usr=admin&pwd=

getWifiList
FunctionGet the aps around after refreshWifiList
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=getWifiList
Param
startNoThe start NO of the ap list you want to get. For example:The are 30 aps around you, you want to look at the last ten aps, then startNo=20
Return
totalCntTotal count of aps
curCntCurrent aps count
apNThe detail info of ap N Format: ssid+mac+quality+isEncrypt+encrypType
macAP’smac address
ssidAP name
qualitySignal quality(0~100)
isEncryptEncrypt or not
encrypType
0Open mode
1WEP
2WPA
3WPA2
4WPA/WPA2
NoteOnly 10 aps will be returned one time
Example/cgi-bin/CGIProxy.fcgi?cmd=getWifiList&startNo=0&usr=admin&pwd=

setWifiSetting
FunctionSet wifi config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setWifiSetting
Param
isEnableEnable state
isUseWifiUse wifi or not
ssidAP name
netType
0Infra net
1Ad-hoc, Not supported yet
encryptType
0Open mode
1WEP
2WPA
3WPA2
4WPA/WPA2
pskThe psk of WPA WPA2
authMode
0Open mode
1Shared key
2Auto mode
keyFormat
0ASIC
1Hex
defaultKey1~4
key1
key2
key3
key4
key1Len64 or 128
key2Len64 or 128
key3Len64 or 128
key4Len64 or 128
ReturnNone
NoteCamera will not connect to AP unless you enject your cable
Example/cgi-bin/CGIProxy.fcgi?cmd=setWifiSetting&isEnable=1&isUseWifi=1&ssid=fostar_soft&netType=0&encryptType=4&psk=software&authMode=0&keyFormat=0&defaultKey=1&key1=&key2=&key3=&key4=&key1Len=64&key2Len=64&key3Len=64&key4Len=64&usr=admin&pwd=

getWifiConfig
FunctionGet wifi config
privilegeVisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getWifiConfig
ParamNone
ReturnisEnable
Enablestate
isUseWifiUse wifi or not
isConnectedConnected state
connectedApConnedted ap
ssidAP name
encryptType
0Open modee
1WEP
2WPA
3WPA2
4WPA/WPA2
pskThe psk of WPA WPA2
authMode
keyFormat
0Open mode
1Shared key
2Auto mode
0ASIC
1Hex
defaultKey1~4
key1
key2
key3
key4
key1Len64 or 128
key2Len64 or 128
key3Len64 or 128
key4Len64 or 128
ReturnNone
NoteCamera will not connect to AP unless you enject your cable
Example/cgi-bin/CGIProxy.fcgi?cmd=getWifiConfig&usr=admin&pwd=

getPortInfo
FunctionGet http port and media port of camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo
ParamNone
Return
webPorthttp port (default value is 88)
httpsPorthttps port (default value is 443)
mediaPortmedia port (default value is 88)
rtspPortrtsp port (default value is 554)
NoteYou can call this CGI command without usr or pwd section
Example/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo&usr=admin&pwd=

setPortInfo
FunctionSet http port and media port of camera
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo
Param
webPorthttp port (default value is 88)
mediaPortmedia port(default value is 88)
httpsPorthttps port (default value is 443)
rtspPortrtsp port (default value is 554)
ReturnNone
NoteRe login is needed after call this CGI command
Example/cgi-bin/CGIProxy.fcgi?cmd=setPortInfo&webPort=88&mediaPort=88&httpsPort=443&usr=admin&pwd=

getUPnPConfig
FunctionGet UpnP config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getUPnPConfig
ParamNone
Return
isEnableis Enable UpnP function
Example/cgi-bin/CGIProxy.fcgi?cmd=getUPnPConfig&usr=admin&pwd=

setUPnPConfig
FunctionSet UpnP config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setUPnPConfig
Param
isEnableis Enable UpnP function
ReturnNone
Example/cgi-bin/CGIProxy.fcgi?cmd=setUPnPConfig&isEnable=1&usr=admin&pwd=

getDDNSConfig
FunctionGet DDNS config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getDDNSConfig
ParamNone
Return
isEnableis Enable DDNS update
hostNameDDNS domain
ddnsServer
0Factory DDNS
1Oray
23322
3no-ip
4dyndns
useruser name
passwordpassword
factoryDDNSfactory ddns
Example/cgi-bin/CGIProxy.fcgi?cmd=getDDNSConfig&usr=admin&pwd=

setDDNSConfig
FunctionSet DDNS config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setDDNSConfig
Param
isEnableis Enable DDNS update
hostNameDDNS domain
ddnsServer
0Factory DDNS
1Oray
23322
3no-ip
4dyndns
useruser name
passwordpassword
ReturnNone
NoteThis command can only be used to set the third party ddns
Example/cgi-bin/CGIProxy.fcgi?cmd=setDDNSConfig&isEnable=1&hostName=test.dyndns.org&ddnsServer=4&user=test&password=test&usr=admin&pwd=

setFtpConfig
FunctionSet FTP config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfig
Param
ftpAddrFTP server address, you can contain sub directory in it
ftpPortFTP port
mode
0PASV mode
1PORT mode
userNameuser name
passwordpassword
Example/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfig&ftpAddr=ftp://192.168.1.2/sbuDir&ftpPort=21&mode=0&userName=test&password=test&usr=admin&pwd=

getFtpConfig
FunctionGet FTP config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getFtpConfig
Return
ftpAddrFTP server address, you can contain sub directory in it
ftpPortFTP port
mode
0PASV mode
1PORT mode
userNameuser name
passwordpassword
Example/cgi-bin/CGIProxy.fcgi?cmd=getFtpConfig&usr=admin&pwd=

testFtpServer
FunctionTest FTP server
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=testFtpServer
Param
ftpAddrFTP server address, you can contain sub directory in it
ftpPortFTP port
mode
0PASV mode
1PORT mode
userNameuser name
passwordpassword
Return
testResult
0Success
-1Fail
Example/cgi-bin/CGIProxy.fcgi?cmd=testFtpServer&ftpAddr=ftp://192.168.1.2/sbuDir&ftpPort=21&mode=0&userName=test&password=test&usr=admin&pwd=

getSMTPConfig
FunctionGet mail config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getSMTPConfig
ParamNone
Return
isEnableis enable camera send mail?
serverSMTP server address
portsmtp port
isNeedAuthNeed auth user account or not
tls
0None
1TLS
2STARTTLS
useruser name
passwordpassword
senderUse “,” between 2 senders, for exapler: aaa@123.com,bbb@456.com
reciever
Example/cgi-bin/CGIProxy.fcgi?cmd=getSMTPConfig&usr=admin&pwd=

setSMTPConfig
FunctionGet mail config
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfig
Param
isEnableis enable camera send mail?
serverSMTP server address
portsmtp port
isNeedAuthNeed auth user account or not
tls
0None
1TLS
2STARTTLS
useruser name
passwordpassword
senderUse “,” between 2 senders, for exapler:aaa@123.com,bbb@456.com
reciever
Example/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfig&isEnable=1&server=smtp.gmail.com&port=587&isNeedAuth=1&user=test&password=test&send=test@gmail.com&reciever=aa@123.com,bb@456.com&usr=admin&pwd=

smtpTest
FunctionTest mail setting
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=smtpTest
Param
smtpServerSMTP server address
portsmtp port
isNeedAuthNeed auth user account or not
tls
0None
1TLS
2STARTTLS
useruser name
passwordpassword
Return
testResult
0Success
-1Fail
NoteYou must call setSMTPConfig firstly. We will send a test mail to all recievers
Example/cgi-bin/CGIProxy.fcgi?cmd=smtpTest& smtpServer =smtp.gmail.com&port=587&isNeedAuth=1&user=test&password=test&usr=admin&pwd=