Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
IrLAP fast connect appnote V1.0.pdf
Скачиваний:
19
Добавлен:
23.08.2013
Размер:
416.97 Кб
Скачать

IrLAP Fast Connect

Version 1.0

Recv u:snrm:cmd:P:c:d Received a SNRM command frame with Poll bit set.

query-timer-expired The query timer has expired.

P-timer-expired The Poll bit Timer has expired.

recv u:ua:rsp:F A UA response frame has been received.

F-timer-expired Final Bit timer has expired.

4.4Action Descriptions

send Discovery-XID-Cmd: one Send a 1-slot XID command frame. This is the start of a 1-slot XID discovery procedure.

ProfileI = Pi Save the Initiator profile passed in the Fast Connect Request in the variable ProfileI.

start-slot-timer Start the slot timer. The slot timer is used to time the listen period between commands sent by the fixed initiator. This time cannot be shorter than 25ms. The Initiator profile specifies the actual time.

log := { } Set the discovery log to empty.

Change Speed to ProfileI listen speed Change the speed to the listen speed specified by the Initiator profile. Care must be taken by implementations when changing to a listen speed. It is possible that a frame can be sent at one speed and then the station must listen at a different speed. The listen speed should not be changed until any outgoing frames are finished being sent.

ProfileR = Pr Save the Responder profile passed in the Fast Connect Set Mode in the variable ProfileR.

FastConMode = True Set the variable, FastConMode, to True.

Change Speed to ProfileR listen speed Change the speed to the listen speed specified by the Responder profile. Care must be taken by implementations when changing to a listen speed. It is possible that a frame can be sent at one speed and then the station must listen at a different speed. The listen speed should not be changed until any outgoing frames are finished being sent.

FastConMode = False Set the variable, FastConMode, to False.

Change Speed to 9600bps Change the speed to 9600bps before sending a frame.

Change Speed to ProfileR speed Change the speed to the value specified by the Responder Profile before sending a frame.

Negotiate-Connection-Parameters(def) Compare the default parameters with the capability bytes for this IrLAP layer and determine the best connection capability that can be supported by both stations.

Negotiate-Connection-Parameters Compare the connection capability bytes of an incoming SNRM or UA frame with the capability bytes for this IrLAP layer and determine the best connection capability that can be supported by both stations.

Initialize-Connection-State Initialize the connection state variables: Vr := Vs := 0;

window := “negotiated window size”; remoteBusy := false;

retryCount := 0;

14

IrLAP Fast Connect

Version 1.0

Refer to the NRM(P) and NRM(S) state machines in the IrLAP specification for usage of these variables.

send u:ua:rsp:F Send a UA response frame.

Apply-Connection-Parameters Set internal controls to apply the connection and transmission parameters determined by the last Negotiate-Connection-Parameters action executed.

start-WD-time Start the NRM(S) watchdog timer from zero.

Send Discovery-XID-Rsp Send an XID response frame.

Start-query-timer Start the query timer. This timer is used when an XID response has been sent and the IrLAP layer is waiting for the final XID and/or a SNRM. The final XID will be sent if the XID response was sent at 9600 bps to an XID command sent at 9600 bps. In all cases a SNRM should be sent in response to an XID response frame. The value of the query timer should be around 100ms. The value can be shorter since the initiator must start sending the final XID or SNRM within 10ms of receiving the XID response. An implementation could set a faster query timer such as 20ms and if data has been received restart the query timer for a 100ms. If no data is received then assume the XID or SNRM will not come.

Generate-Random-ConnectionAdr(ca) Generate a new random 7-bit connection address, ca.

send u:snrm:cmd:P:ca:NA Send a SNRM command frame using the broadcast device address or the device address found in a Sniff frame if a Sniff frame triggered the sending of the SNRM..

start-P-timer Start the Poll bit timer. This timer is used by a responder after it has sent a SNRM frame in response to a profile allowed command frame. The responder is expecting a UA response. This timer is set to the value as specified in the IrLAP specification.

Perform non-IrLAP protocol response Respond to a non-IrLAP packet with the appropriate response.

Follow normal NDM state machines Perform according to the NDM state machines defined in the IrLAP specification. This is done when Fast Connect Mode is disabled.

ProfileI(state) = send XID9600 The Initiator Profile’s current state indicates that the speed used to send the next frame is 9600 bps.

Change Speed to ProfileI speed Change the speed for sending the next frame to the value specified by the Initiator profile.

send ProfileI frame Send the frame specified by the Initiator profile.

ProfileI(nextState) Go to the next state of the Initiator Profile. The next state specifies the next frame to send, the speed at which to send it and the speed to listen for the response.

Discovery-Indication(log) The service user is informed that a device (in the log) has been found. This indication is not required for the Fast Connect procedure but could be informative to the service layer.

Send SNRM (sa from log) Send a SNRM frame to the device address stored in the discovery log.

start-F-timer Start the Final bit timer. This timer is used by a fixed initiator after it has sent a SNRM frame. The Initiator is expecting a UA response. This timer is set to the value as specified in the IrLAP specification.

send End-Discovery-XID-Cmd Send the final XID command signaling the end of a 1-slot discovery procedure.

15

Соседние файлы в предмете Электротехника