The Coronis SDK - Protocol API allows connecting your modem through a serial driver high level protocol.
Only the Coronis Waveport implementation is available in the current version.
The Protocol API offers services to configure the radio settings, and to send/receive radio message/request/response to one are more radio device.
A more detailed information about Waveport implementation can be obtained from Protocol developer guide [WaveportProtocol_DevelopperGuide]
First, you have to create a new Java project into eclipse environment.
Coronis SDK has been design with JDK1.5.
In this tutorial, we will use the Coronis Waveport protocol implementation of Protocol API.
The Java implementation is based on the C native implementation.
Get the last Coronis Waveport protocol delivery package
Copy the following java libraries into a subfolder lib of the user project:
Copy property files:
Add Protocol API, Waveport, SerialDriver API, RS232driver and Domain libraries into the Java build path (project properties)
Execution reference to the Waveport and RS232driver C native libraries:
To use a protocol implementation user has 2 possibilities:
The second possibility is recommended for usage in OSGI context (dynamic module system for java).
Protocol implementation must use a SerialDriver implementation to send frame to the connected radio modem.
To indicate the serial driver implementation to use, many possibilities:
In this tutorial, we suppose that user has connected a Waveport radio modem on Port COM4.
We will send the request payload 0x20 to distant device @11604A329237, which correspond to application request GET_TYPE. So we wait for a response that contains a payload which begins with 0xAO (RESPONSE_TO_GET_TYPE)
Here are the main step that must be done before be able to process the request:
Process the request
At the end, following steps must be done before quit the program:
Coronis Domain module offers a logging feature, that is used by the protocol implementation to give internal process information.
The Java implementation of the logger feature is based on the C native implementation, thus a reference to the Domain C native library must be done in the execution context.
To activate it, user has to follow these steps:
Source of main program can be found here : [Java Protocol tutorial sources]
This example is available as an eclipse project (com.coronis.sdk.protocol.waveport.example.zip) inside the Coronis WaveportProtocol delivery package.
To have more details information about Protocol API, refer the documentation Java Protocol API
Wiki: Home
Wiki: Java Protocol tutorial sources
Wiki: WaveportProtocol_DevelopperGuide