Search by:
Wireless & IrSimple (TM) Connectivity!

Home Price Quote About Us Contact Us Order

-- Test Center Showcase --

<< Back to ACTiSYS IrDA Test Center and Certification


The source codes to effect such efficient Test Frame implementation is 
listed as follows:

When the station is playing the secondary role in 
Normal Response Mode (NRM) and an incoming frame 
is received, one normally checks the following:

a) the CRC is correct
b) the C/R bit is set
c) the connection address is intended for this 

If the incoming frame passes all these, one then 
examines the Control field and takes the 
appropriate action accordingly. This can 
be implemented as a chain of "if (...) {...}", 
"else if (...) {...}", ..., "else {...}". 

To implement the test frame option, one needs 
to add the following code to that chain:

else if (frame_buffer[1] == 0xF3)
/* test frame + P bit received */
frame_buffer[0] &= 0xFE;
/* clear the C/R bit */

transmit (frame_buffer, incoming_size);
/* bounce it back with C/R bit cleared */

The procedure "transmit(...)" calculates the CRC 
and sends the frame out. The very first bit in the 
frame buffer (i.e., the C/R bit) is changed, thus 
the outgoing CRC will be totally different 
from that of the incoming frame. 

The Test Frame is already an optional feature in both IrLAP
1.0 and IrLAP 1.1. For example the IrLAP 1.1 State Chart for 
Secondary Role State Machine, NRM(S) in Section, 
Current State = RECV 
Event = Recv u:test:cmd:P

There are two alternative Actions. Alternative 1 is:
send u:test:rsp:F

And alternative 2 is:
Send s:rr:rsp:Vr:F

After either alternative Actions are taken, 
Next State = RECV

We suggest to use alternative 1 instead of alternative 2. 
That is, respond with u:test:rsp:F, and not 


[ Home Page | About ACTiSYS | Contact us | IrDA Products | Tutorials | IrDA Test Center | Compatibility |

[ Order | Price Quote | Technical Support | Downloads Track a Package | Jobs | Feedback | Privacy | Terms ]

ACTiSYS CORP.  | 921 Corporate Way | Fremont, CA 94539 | Tel: +1-510- 490-8024 |  Fax: +1-510- 623-7268 |

1996-2014 ACTiSYS Corporation, All Rights Reserved

Member of Infrared Data Association (IrDA) Since Its Founding Day!