Examples‎ > ‎

Built in commands

The system has a command interpreter, so you can add your own commands to the console. Anyway, there are a lot of commands that will let you to check the status of the device, and to detect any abnormal  operation. Here you will find some very useful commands that you can try in the system.

tasks: Listing the running tasks.

Name                   Status Pr Stack  Used  Count    Start Sleep  Wakeup Msgs
---------------- ------------ -- ----- ----- ------ -------- ----- ------- ----
Ethernet         wait-event    0   500   304    207  1250333     0       0    0
SerialManager    wait-event    1   600   156      1       32     0       0    0
AudioPlayer      global-event  1   400   132      1       32     0       0    0
TelnetServer     running       3   700   412     75  1250343     0 1250343    0
WebServer        wait-message  3   700   152      1       32     0       0    0
FtpServer        wait-message  3   600   212      1       32     0       0    0
Sip Server       wait-message  3   500   132      1       32     0       0    0
ModbusServer     wait-message  3   500   148      1       32     0       0    0

timers: Listing the running timers.

Name                  Parameter Expiration Wakeup    Count  Type
--------------------- --------- ---------- --------- ------ --------
Watchdog                      0       1000   2007000   2006 continuous
ARP                           0       1000   2007030   2006 continuous
SNTP                  536872732    3600000   3610030      1 continuous
RTP report            536902688       5000    2010031   401 continuous
RTP report            536902556       5000    2010121   402 continuous
IO control                  100        100    2006231 20042 continuous
Info LED                    100        100    2006232 20061 continuous
Terminal expiration   536890456     300000    2306131     0 one shoot
SendTimeout           536873344       2000    2008131     0 continuous

heap -s: Checking the memory heap status.

Size:              26624 bytes
Available:          9664 bytes
Minimun available:  8088 bytes
Fragments:             4 holes
Allocation errors:     0
Free errors:           0

dir root: Listing files in the root directory.

config.ini           1340 bytes -> this is the configuration file
IPefono.fmw        219492 bytes -> this is the last uploaded firmware file
config.bak           1340 bytes
CallReceived.wav    25578 bytes
OutOfService.wav    15066 bytes

netstat -s: Network sockets status

Protocol    Local Address Port   Remote Address Port       Status
-------- --------------------- --------------------- ------------
UDP                       1024                     0  ESTABLISHED
UDP                        123                     0  ESTABLISHED
TCP                         23                     0  LISTEN
TCP                         80                     0  LISTEN
TCP                         21                     0  LISTEN
UDP                       7912                     0  ESTABLISHED
UDP                       5060                     0  ESTABLISHED
UDP           24.192.0.17 5004                     0  ESTABLISHED
UDP          224.192.0.17 5005                     0  ESTABLISHED
TCP                        502                     0  LISTEN
TCP            192.168.3.17 23      192.168.3.2 4853  ESTABLISHED

arp -a: Displaying the address resolution table

IP address        Ethernet address  Status
--------------- ------------------ -------
192.168.3.2          001676:C14A31  active


There are a lot of commands in the system. You can use the "help" command to get information about all of them.


Comments