Sample Programs

Numerous sample programs are included in this package.

Sample programs can be built by using Apache Ant.

To build: ant build

To run the writer program: ant writer

To run the reader program: ant reader

The writer program encodes to message.dat and creates writer.log. The reader program decodes from message.dat and creates reader.log.

The ASN1C SDK includes a perl script that can be used to run all of the sample programs. The sample.pl script is located in the SDK installation folder. Commmands to use include: perl sample.pl java nasapi/test_ts24301_msgs [clean|test]. perl sample.pl java nasapi/test_ts24501_msgs [clean|test].