Project

General

Profile

Menu Commands » History » Version 8

Hamish, 2008-05-15 19:49

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 6 Hamish
  binary
8
9
This command toggles the state of the binary mode.  Binary mode is required for correct use of file transfer protocols, such as *xmodem*.  This mode will be automatically turned on by some telnet clients (if they send the telnet option DO BINARY TRANSMISSION) in which case it may need to be manually turned off using this command.
10
11
h2. close
12
13 1 Hamish
  close
14
15 4 Hamish
If the serial port is current open, this command will close it and stop any serial communications.
16 3 Hamish
17 1 Hamish
h2. copyright
18
19 3 Hamish
  copyright
20 1 Hamish
21 3 Hamish
Print the copyright notice
22
23 1 Hamish
h2. data
24 3 Hamish
25 1 Hamish
  data *5|6|7|8*
26
27 4 Hamish
Sets the number of data bits.  This command will not have any affect until the port is closed and re-opened.
28 3 Hamish
29 1 Hamish
h2. help
30
31 3 Hamish
Show some quick help for the menu commands
32 1 Hamish
33 5 Hamish
h2. keepalive
34
35
  keepalive
36
37
Toggles the state of Telnet keepalives.  If keepalives are turned on, then a Telnet Keepalive option is sent approximately once every two seconds.  This will create significantly more network traffic than normal, but will help to avoid sessions being terminated unexpectedly
38
39 1 Hamish
h2. kill_conn
40
41 3 Hamish
  kill_conn *Connection ID*
42 1 Hamish
43 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.
44 1 Hamish
45
h2. open
46
47 3 Hamish
  open *[port number]*
48 1 Hamish
49 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.
50 1 Hamish
51
h2. parity
52
53 3 Hamish
  parity *no|even|odd|mark|space*
54
55 4 Hamish
Set the serial parity.  This command will not have any affect until the port is closed and re-opened.
56 3 Hamish
57 1 Hamish
h2. port
58
59 3 Hamish
  port *port number*
60 1 Hamish
61 4 Hamish
Set serial port number.  This command will not have any affect until the port is closed and re-opened.
62 3 Hamish
63 1 Hamish
h2. quit
64
65
  quit
66
67 3 Hamish
Exit from this session
68
69 1 Hamish
h2. show_conn_table
70
71
  show_conn_table
72
73
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
74
75
<pre style="background-color:black; color:green">
76
w000c2989d2df> show_conn_table
77 5 Hamish
Flags: A - Active Slot, N - Network active, S - Serial active,
78 7 Hamish
       M - Run Menu, B - Binary transmission, E - Echo enabled,
79
       K - Telnet Keepalives, * - This connection
80 5 Hamish
81 7 Hamish
s flags   id mThr net  netTh serial serialTh netrx nettx peer address
82
- ------- -- ---- ---- ----- ------ -------- ----- ----- ------------
83
0    ME    1 1884                               55  1598 192.168.1.1:43686
84 8 Hamish
1 ANSMBEK  2 1888 1880     0   1844     1836    68  4264 192.168.1.1:57184
85 7 Hamish
2*AN ME    3 1856 1868     0                   109  4657 127.0.0.1:4629
86
3          0    0                                0     0
87
4          0    0                                0     0
88
5          0    0                                0     0
89
6          0    0                                0     0
90
7          0    0                                0     0
91 4 Hamish
</pre>
92
93
* *id* contains the connection ID for this slot
94
95 2 Hamish
h2. speed
96
97 3 Hamish
  speed *bits per second*
98 1 Hamish
99 4 Hamish
Set serial port speed.  This command will not have any affect until the port is closed and re-opened.
100 1 Hamish
101 3 Hamish
h2. status
102 1 Hamish
103
  status
104 3 Hamish
105 1 Hamish
Show current serial port status
106 3 Hamish
107
<pre style="background-color:black; color:green">
108 2 Hamish
w000c2989d2df> status
109
status:
110
111
  port=1  speed=9600  data=8  parity=0  stop=0
112
  state=open
113
114 1 Hamish
  connectionid=1  hostname=w000c2989d2df
115 7 Hamish
  echo=1  binary=0  keepalive=0
116 2 Hamish
117
</pre>
118
119
h2. stop
120 1 Hamish
121 3 Hamish
  stop *1|1.5|2*
122
123 4 Hamish
Set number of stop bits.  This command will not have any affect until the port is closed and re-opened.