Network Commands Group allows to control network settings. For example, “get_IP_address” can be executed to learn IP address of TV, or “SETWIFIAPSECURITYPASSWORD Password1234” can be executed to set password of access point as Password1234. These commands can be seen below with their definitions, parameters and returns.
Commands | Definition | Parameters | Return |
set_IP_address | Set static IP address of eth0 network interface. | str-int n Example: set_IP_address 192.168.0.15 | #*IP address setting Succesfull or #*IP address setting NOK |
get_IP_address | Get IP address of eth0 network interface. Usage: get_IP_address | no parameter | #*IPaddr: … |
SAVEWIFIPROFILE | Save access point to wifi_profile. | str-int ssid, bssid key | Profile saved. or Number of profiles exceeds the maximum number to be stored. |
Wifi | checks if given SSID wifi is found or not and returns Pass or Fail. Works only in portal mode | str-int ssid | #*Pass or #*FAIL |
GETWIFIAPSSID | returns the SSID of access point | no parameter | #*Current stored Wifi AP SSID is () |
SETWIFIAPSSID | sets the SSID of access point. SSID must be maximum 32 characters | string n (example ‘AP-ac:6d:bb:82:a8:ac’ or ‘486dbb82a89ac’ ) | #*Error! SSID can not be changed when Access Point is active or #*Error! SSID parameter is too long. Should be less than 32 characters or #*Wifi AP SSID is already () or #*Setting Wifi AP SSID () succeeded |
GETWIFIAPSECURITYTYPE | returns the security type of access point | no parameter | #*Current stored Wifi AP Security type is () |
SETWIFIAPSECURITYTYPE | sets the security type of access point. The value should be “none” or “WPA2-PSK” | string n (‘none’ or ‘WPA2-PSK’ note: string is case insensitive) | #*Error! Security Type can not be changed when Access Point is active or #*Error! Security type parameter should be given or #*Error! Security type parameter is invalid or #*Security Type is set to () succeeded |
GETWIFIAPSECURITYPASSWORD | returns the password of access point | no parameter | #*Current stored Wifi AP Password is () |
SETWIFIAPSECURITYPASSWORD | sets the password of access point. Password must be maximum 64 characters | string n (example: ‘Password1234’) | #*Error! Security Password can not be changed when Access Point is active or |
GETWIFIAPSTATE | returns the access point state ‘active’ or ‘not active’ | no parameter | #*Wifi Access Point is () |
SETWIFIAPSTATE | sets the access point state. State should be ‘off’ or ‘on’ | string n ( ‘on’ or ‘off’ note: string is case insensitive) | #*Error! Access Point state parameter is invalid or #*Access Point state is already () or #*Setting Wifi AP state () succeeded |
GETWIFIAPCHANNEL | returns the stored channel of the wifi access point | no parameter | GETWIFIAPCHANNEL returns the stored channel of the wifi access point no parameter #*Current stored Wifi AP Channel is () |
SETWIFIAPCHANNEL | sets the channel of the wifi access point | n (integer channel) – (Channel number should be valid for current country. If invalid channel number is given all valid channel numbers will be listed.) | #*Setting Wifi AP Channel () succeeded or #*Wifi AP Channel is already () or #*Error! Invalid channel. Available channels for your country () are: |
GETWIFIAPTXPOWER | returns TX Power for wifi access point | no parameter | #*Current Wifi AP TX Power is |
SETWIFIAPTXPOWER | sets TX Power for wifi access point. | n (integer tx power in dBm) – should be in the range of 0 – 20 dbm (0 for default value) | #*Setting Wifi AP TX Power () is successful. or #*Wifi AP TX Power is already set to ()! or #*Error setting Wifi Access Point TX Power ()! TX Power should be in the range of 0 – 20 dbm (0 for default value) or #*Error setting Wifi Access Point TX Power ()! |
NETCLONE | Clone from FTP server, example: NETCLONE <ip-of-server/path> Before this process, please check network configuration (If a static ip address is set, it will also be cloned) | <ip-of-server/path> | Cloned |
SETNETWORKTYPE | set network type (eg. SETNETWORKTYPE value) (value should be ‘wired’, ‘wireless’ or ‘disabled’ as string) | string n (‘wired’, ‘wireless’ or ‘disabled’) | #*Network type is set to: |
GETNETWORKTYPE | get network type (eg. GETNETWORKTYPE) | no parameter | #*the network type is |
SETSUBNETMASK | set subnet mask (subnet mask value should be of format nnn.nnn.nnn.nnn) (eg. SETSUBNETMASK nnn.nnn.nnn.nnn) | string “nnn.nnn.nnn.nnn” | #*set subnet mask: nnn.nnn.nnn.nnn or #*setting subnet mask is failed |
GETSUBNETMASK | get subnet mask (eg. GETSUBNETMASK) | no parameter | #*the subnet mask is nnn.nnn.nnn.nnn |
SETDEFAULTGATEWAY | set default gateway (default gateway value should be of format nnn.nnn.nnn.nnn) (eg. SETDEFAULTGATEWAY nnn.nnn.nnn.nnn) | string “nnn.nnn.nnn.nnn” | #*set default gateway: nnn.nnn.nnn.nnn or #*setting default gateway is failed |
GETDEFAULTGATEWAY | get default gateway (eg. GETDEFAULTGATEWAY) | no parameter | #*the default gateway is nnn.nnn.nnn.nnn |
SETDNSCONFIGURATION | set DNS configuration mode (auto,manual) (eg. SETDNSCONFIGURATION mode (auto,manual)) | string n (‘auto’ or ‘manual’) | #*set DNS configuration to: or #*setting DNS configuration is failed |
GETDNSCONFIGURATION | get DNS configuration mode (auto,manual) (eg. GETDNSCONFIGURATION) | no parameter | #*the DNS configuration is manual or #*the DNS configuration is auto or on error: #*the DNS configuration is unknown |
SETDNS1 | set DNS server 1 (DNS server value should be of format nnn.nnn.nnn.nnn) (eg. SETDNS1 nnn.nnn.nnn.nnn) | string “nnn.nnn.nnn.nnn” | #*set DNS server 1 to: nnn.nnn.nnn.nnn or #*setting DNS server 1 failed |
GETDNS1 | get DNS server 1 (eg. GETDNS1) | no parameter | #*DNS server 1 is nnn.nnn.nnn.nnn |
SETDNS2 | set DNS server 2 (DNS server value should be of format nnn.nnn.nnn.nnn) (eg. SETDNS2 nnn.nnn.nnn.nnn) | string “nnn.nnn.nnn.nnn” | #*set DNS server 2 to: nnn.nnn.nnn.nnn or #*setting DNS server 2 failed |
GETDNS2 | get DNS server 2 (eg. GETDNS2) | no parameter | #*DNS server 1 is nnn.nnn.nnn.nnn |
INTERNETSPEED | start internet speed test | no parameter | Speed test is started. Prints “No internet connection found” message if fails. |
GETINTERNETSPEED | get internet speed | no parameter | #*The internet speed is … Mbps |
SETHOSTNAME | Creates the file (if does not exist) “/conf/ip_tuner/hostname.txt” and pastes the string into that file | string ABC(hostname) | #*SUCCESS Hostname ABC is written into the file |
GETHOSTNAME | Returns the customisable Hostname | no parameter | #*SUCCESS Hostname ABC is written into the file or #*FAILURE Hostname can not be set |
DELETEHOSTNAME | Deletes the Hostname file from file system | no parameter | #*SUCCESS Hostname is ABC or #*FAILURE Hostname can not be read |
SETPROXY | Sets proxy configuration | string (nnn.nnn.nnn.nnn:nnnn) | #*addr = nnn.nnn.nnn.nnn, port = nnnn |
GETPROXY | Gets proxy configuration | no parameter | #*Current proxy is nnn.nnn.nnn.nnn:nnnn or #*No proxy address |
CLEARPROXY | Clears proxy configuration | no parameter | #*Proxy was cleaned |
Table 1: Network commands