The text of a manual · part 16 of 32
3270 Terminal Emulation Programmer's Reference Guide: Section 8: Controller Commands, pages 147 to 155
Pages 147 to 155 of 278, from 3270 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 147
SECTION 8
EXAMPLE 2:
Command: Response:
"
Controller Commands
CMT20<cr> 4,4,4,4<cr> (assumes setting from example 1)
CMT21 One Character Address Mode With CMT21 enabled, the controller appears to be an RM2216 Controller at powerup. The controllers deliver the same powerup message. That is, there is no wireless station powerup type on the reset message, and there is a 1-byte wireless station addresses. With the controller’s async host mode configured as RM2216, and the RM2216 mode enabled, CMT21,1 (one character address mode enabled), causes the controller to act like a 1-byte address RTC controller, with RTC wireless station reset messages. The CMT21 command does nothing if the controller is configured in normal character address mode. Host Command
Controller Response
CMT21,x<cr>
OK<cr>
Variables:
x = 0 (disable) x = 1 (enable)
Default:
x = 0 (disable)
EXAMPLE 1:
Command Response:
CMT21,1<cr> OK<cr> Sets one character address, RTC mode if host mode setup is RM2216
EXAMPLE 2:
Command Response:
CMT21<cr> 1,<cr> Reports the setting from example 1
3270 Terminal Emulation Programmer’s Reference Guide
8-19
Page 148
SECTION 8
"
Controller Commands
CMT22 Multiple Buffering Mode The CMT22 command is a means of the controller buffering commands sent by the host. Up to 25 commands per wireless station may be buffered before the controller rejects the host command with an out-of-buffers, ?10, response. This can easily happen if the host program issues commands to a wireless station that is not powered up or is out of range. The wireless station must act on the commands before the controller allows the host to send more commands. When the option is disabled, which is the default, the controller handles commands in a transaction based order. The controller expects the host to wait until the response to the command is sent back to the host before the host sends the next command. If the host program violates this protocol by sending several commands to the controller in succession without the controller fully acting on the command, the commands may be overwritten and lost. Host Command
Controller Response
CMT22,x<cr>
OK<cr>
Variables:
x = 0 (disable) x =1 (enable)
Default:
x = 0 (disable)
Examples Following are examples of multiple buffering disabled and multiple buffering enabled.
8-20
3270 Terminal Emulation Programmer’s Reference Guide
Page 149
SECTION 8
"
Controller Commands
Multiple Buffering Disabled Suppose that the host program issues the time to a particular wireless station every second. For a native datastream wireless station the command syntax may be W000DB/08:38:00<cr>, followed one second later with W000DB/08:38:01<cr>, W000DB/08:38:02<cr>, ... In the default case with multiple buffering disabled, the transaction may be processed as: Host Command
Controller Response
Wireless Station Display
W000DB/08:38:00
OK<cr>
08:38:00
W000DB/08:38:01
OK<cr>
08:38:00
W000DB/08:38:02
OK<cr>
08:38:00
W000DB/08:38:03
OK<cr>
08:38:00
W000DB/08:38:04
OK<cr>
08:38:04
The results in this case cannot be predicted and is dependent on system transaction throughput and host overhead. This shows that “newer” host commands may overwrite “older” commands before that older command is actually transmitted to the wireless station.
Multiple Buffering Enabled With multiple buffering enabled, host commands are not overwritten. They are buffered in the controller and issued to the wireless station sequentially. (There is no guarantee that these commands arrive at the wireless station exactly 1 second apart.) See the following chart.
3270 Terminal Emulation Programmer’s Reference Guide
8-21
Page 150
SECTION 8
"
Controller Commands
Host Command
Controller Response
Wireless Station Display
W000DB/08:38:00
OK<cr>
08:38:00
W000DB/08:38:00
OK<cr>
08:38:00 tMMMa_LMUWPUWMN lhYÅê[
MUWPUWMM tMMMa_LMUWPUWMO lhYÅê[
MUWPUWMM tMMMa_LMUWPUWMP lhYÅê[
MUWPUWMN tMMMa_LMUWPUWMQ lhYÅê[
MUWPUWMO
CMT23 Enhanced Host Poll Mode Enhanced host polling is a more efficient method of host to controller communication. With this option enabled the controller can respond to a wireless station command with data instead of a simple acknowledgement. It reduces response time by reducing the number of read commands required to send data to the host. Host Command
Controller Response
CMT23,x<cr>
OK<cr>
Variables:
x = 0 (disable) x = 1 (enable)
Default:
x = 0 (disable)
EXAMPLE 1: Regular Host Polling W000D/\C0 OK R 000K\\0
8-22
Enhanced Host Polling W000D/\C0 001Kresponse W001D/PROMPT 000K\\0
3270 Terminal Emulation Programmer’s Reference Guide
Page 151
SECTION 8
"
Controller Commands
Example 1 shows the traditional polling method and the potential advantages of the enhanced polling method. The controller does not have to wait for a Read command to be issued by the host in order to respond. However, as example 2 shows, it is possible with the combination of enhanced host polling and multiple buffering for the commands to get out of step with the responses. EXAMPLE 2: tMMMaLy`M OK W000D/\XXXXXX 000K\\0 R 000D\\9
In this example the \\0 response is in response to the W000D/\C0 command, not the W000D/\XXXXXX command. The host program must keep track of which response is paired to which command.
CMT24 Set Respond Timer The CMT24 command sets the timer between 0 and 255 in tenths of a second. The default is 10, or one second. An asynchronous host-to-controller link running in full-duplex mode uses two timers, one at each end of the link. CMT24 is the full-duplex asynchronous command. Two timers monitor message response time, one at each end of the message link. The respond timer is started when a message is received, and expires after the set length of time from 0 to 255, in tenths of a second. The default is 10, or one second. 3270 Terminal Emulation Programmer’s Reference Guide
8-23
Page 152
SECTION 8
"
Controller Commands
When the respond timer expires, it signals that the received message must be acknowledged. An “ACK” must be sent even if there is no data to send. If a message is transmitted, the timer is stopped. " NOTE:
This command applies to full duplex operation only. Host Command
Controller Response
CMT24,x<cr>
Data or ACK<cr>
Syntax:
CMT24,x<cr>
Default:
x = data or ACK
CMT25 Flow Control CMT25 controls the maximum number of bytes of data the controller can send without acknowledgement. The controller monitors the size of the frames outstanding in its 8-buffer transmit queue. When data from a wireless station is ready to be sent to the host, the number of bytes in the frame is added to the unacknowledged number in the queue. It the number exceeds the parameter set by CMT25, and if the number in the queue is greater than 64 bytes, the frame is not sent. The host must acknowledge more data to receive more messages from the host. If the queue contains 64 bytes or less, messages of any length are not stopped. The command parameter “n” sets the maximum message to n x 128 bytes, between n = 1 and n = 45, for a range of 128 to 5760 bytes. To leave space for controller responses that may follow a data transmission, the host should set the number of bytes to 128 or 256 bytes less than the actual size of the host’s receive buffer. The default setting is n = 15 (1920 bytes). 8-24
3270 Terminal Emulation Programmer’s Reference Guide
Page 153
SECTION 8
" NOTE:
EXAMPLE:
"
Controller Commands
This command applies to full duplex operation only. Host Command
Controller Response
CMT25,n<cr>
OK<cr>
Syntax:
CMT25,n<cr>
Default:
n =15
Command: Response:
CMT25,21<cr> OK<cr> The controller is allowed to send a maximum of 2688 bytes without acknowledgement
CMT Request All Parameters The CMT command returns the value of all CMT parameters. The CMT command can be used with all controllers, but the return varies with the controller in use: " "
The controller returns CMT0 through CMT23 Full duplex fda host controllers return CMT24 and CMT25
CMT20 always returns a “0” even if it contains nonzero values.
EXAMPLE:
Command
Controller Response
CMT<cr>
002,255,000,000,000,000,000,006,000,000,000,00 0,000,000,000,000,000,047,000,000<cr>
Variables:
None
Syntax:
CMT<cr>
Command: Response:
CMT<cr> 002,255,000,000,000,000,000,006,000,000,000,000, 000,000,000,000,000,047,000,000<cr>
3270 Terminal Emulation Programmer’s Reference Guide
8-25
Page 154
SECTION 8
"
Controller Commands
CMT, Controller List The CMT, command allows the programmer to set the parameters for CMT0 through CMT25 at once with one command line. Default settings are maintained by leaving out a parameter and including the comma (example 1). Parameters following an incomplete series remain unchanged (example 2). In full duplex mode, CMT0 through CMT25 can be set. In asynchronous mode, CMT0 through CMT23 can be set. Host Command
Controller Response
CMT,a,b,c,d,e,f,g, h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w<cr>
OK<cr>
Variables: a = CMT0 b = CMT1 c = CMT2 d = CMT4 e = CMT5 f = CMT7 g = CMT8 Syntax: EXAMPLE 1:
8-26
Command: Response:
h = CMT9 i = CMT11 j = CMT12 k = CMT13 l = CMT14 m = CMT15 n = CMT16 o = CMT17 v = CMT24 p = CMT18 w = CMT25 q = CMT19 r = CMT20 s = CMT21 t = CMT22 u = CMT23
CMT,a,b,c,d,e,f,g,h,i, j,k,l,m,n,o,p,q,r,s,t,u,v,w<cr> CMT,2,2,1,,,,,,,,,,,,,,47,,<cr> OK<cr> Sets: CMT0 to 2 CMT1 to 2 CMT2 to 1 CMT17 to 47 CMT3 through CMT16, CMT18 CMT20 to default values
3270 Terminal Emulation Programmer’s Reference Guide
Page 155
SECTION 8
EXAMPLE 2:
Command: Response:
"
Controller Commands
CMT,1,1,<cr> OK<cr> Sets: CMT0 to 1 and CMT1 to 1, and leaves the remaining parameters set at the values in example 1, assuming that example 1 precedes example 2
CCS System Callsign The CCS command defines and reads the FCC (Federal Communications Commission) callsign used by the network. CCS without the “x” variable returns the callsign. " NOTE:
This command applies to UHF operation only. Controller
Host Command
Controller Response
RC3250 (UHF)
CCS/[callsign] <cr>
OK<cr>
Variables:
[callsign] = FCC callsign (such as: KD22895)
EXAMPLE 1:
Command: Response:
CCS/KD22895<cr> Transmits “KD22895” at least once in each 15-minute interval while the network is on the air
EXAMPLE 2:
Command: Response:
CCS<cr> KD22895<cr>
E Enable or Disable Wireless Stations The E command enables wireless stations in a network. Wireless stations may be enabled individually or all at once. See CMT10 for extended response details. 3270 Terminal Emulation Programmer’s Reference Guide
8-27