Project

General

Profile

Menu Commands » History » Version 4

Hamish, 2008-04-23 16:33

1 1 Hamish
h1. Menu Commands
2
3 4 Hamish
Note that it is currently planned to completely replace the menu system for the next version of wconsd, so these commands will be changing.
4
5 1 Hamish
h2. close
6
7
  close
8
9 4 Hamish
If the serial port is current open, this command will close it and stop any serial communications.
10 3 Hamish
11 1 Hamish
h2. copyright
12
13 3 Hamish
  copyright
14 1 Hamish
15 3 Hamish
Print the copyright notice
16
17 1 Hamish
h2. data
18 3 Hamish
19 1 Hamish
  data *5|6|7|8*
20
21 4 Hamish
Sets the number of data bits.  This command will not have any affect until the port is closed and re-opened.
22 3 Hamish
23 1 Hamish
h2. help
24
25 3 Hamish
Show some quick help for the menu commands
26 1 Hamish
27
h2. kill_conn
28
29 3 Hamish
  kill_conn *Connection ID*
30 1 Hamish
31 4 Hamish
Stop a given connection's serial communications.  This will close the serial port being used by the given *connection ID* and thus allow someone else to open that port.  This command can be used when an existing session has crashed, or if someone else has logged in and is blocking your work.  Since there is no authentication, this command is obviously open to abuse.
32 1 Hamish
33
h2. open
34
35 3 Hamish
  open *[port number]*
36 1 Hamish
37 4 Hamish
Connect or resume communications with a serial port.  If no port number is specified then the current default port number is used.  If an serial port is already open, this will just resume communication with that port.
38 1 Hamish
39
h2. parity
40
41 3 Hamish
  parity *no|even|odd|mark|space*
42
43 4 Hamish
Set the serial parity.  This command will not have any affect until the port is closed and re-opened.
44 3 Hamish
45 1 Hamish
h2. port
46
47 3 Hamish
  port *port number*
48 1 Hamish
49 4 Hamish
Set serial port number.  This command will not have any affect until the port is closed and re-opened.
50 3 Hamish
51 1 Hamish
h2. quit
52
53
  quit
54
55 3 Hamish
Exit from this session
56
57 1 Hamish
h2. show_conn_table
58
59 3 Hamish
  show_conn_table
60 2 Hamish
61 4 Hamish
Show the connections table.  This table is mostly used for internal debugging information, however it contains the connection ID for all the current connections, which can be used with the *kill_conn* command
62 3 Hamish
63
<pre style="background-color:black; color:green">
64 2 Hamish
w000c2989d2df> show_conn_table
65
slot state id Menu mThr Net net  netTh Ser serial serialTh Echo netrx nettx
66
---- ----- -- ---- ---- --- ---- ----- --- ------ -------- ---- ----- -----
67 1 Hamish
0    ACTIV  1 YES  1884 OK  1900     0 OK    1848     1840 YES     76  1886
68 2 Hamish
1    ACTIV  2 YES  1860 OK  1872     0         -1        0 YES     14   783
69 1 Hamish
2           0         0        0     0          0        0 NO       0     0
70
3           0         0        0     0          0        0 NO       0     0
71
4           0         0        0     0          0        0 NO       0     0
72
5           0         0        0     0          0        0 NO       0     0
73
6           0         0        0     0          0        0 NO       0     0
74
7           0         0        0     0          0        0 NO       0     0
75
</pre>
76
77 4 Hamish
* *state* is *ACTIV* if the slot contains valid data
78
* *id* contains the connection ID for this slot
79
* *Menu* is *YES* if this connection is currently at the menu prompt
80
* *Net* is *OK* if there is a network connection for this slot and signals that the other two net columns contain valid data.  In normal operations, there should never be an ACTIV slot with no Net connection
81
* *Ser* is *OK* if there is an open serial connection for this slot and signals that the other two ser columns contain valid data.
82
83
84 2 Hamish
h2. speed
85
86 3 Hamish
  speed *bits per second*
87 1 Hamish
88 4 Hamish
Set serial port speed.  This command will not have any affect until the port is closed and re-opened.
89 3 Hamish
90 1 Hamish
h2. status
91
92 3 Hamish
  status
93 1 Hamish
94 3 Hamish
Show current serial port status
95
96 2 Hamish
<pre style="background-color:black; color:green">
97
w000c2989d2df> status
98
status:
99
100
  port=1  speed=9600  data=8  parity=0  stop=0
101
  state=open
102 1 Hamish
103 2 Hamish
  connectionid=1  hostname=w000c2989d2df
104
105
</pre>
106
107
h2. stop
108 1 Hamish
109 3 Hamish
  stop *1|1.5|2*
110
111 4 Hamish
Set number of stop bits.  This command will not have any affect until the port is closed and re-opened.