<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Java_Protocol_UserGuide</title><link>https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/</link><description>Recent changes to Java_Protocol_UserGuide</description><atom:link href="https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 14 Dec 2012 21:42:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Java_Protocol_UserGuide modified by Thierry CHOMAUD</title><link>https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -19,7 +19,7 @@
 In this tutorial, we will use the Coronis Waveport protocol implementation of Protocol API.
 The Java implementation is based on the C native implementation.

-1. Get the last [*Coronis Waveport protocol*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_waveportprotocol_v1.0.0.zip/download) delivery package
+1. Get the last [*Coronis Waveport protocol*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_waveportprotocol_v2.0.0.zip/download) delivery package

 2. Copy the following java libraries into a subfolder *lib* of the user project:
     * SerialDriver API (*com.coronis.sdk.serialdriver.api.jar*)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thierry CHOMAUD</dc:creator><pubDate>Fri, 14 Dec 2012 21:42:01 -0000</pubDate><guid>https://sourceforge.net7ba32ca394a4d49f199a526a3cbd12cc0daf6959</guid></item><item><title>WikiPage Java_Protocol_UserGuide modified by Thierry CHOMAUD</title><link>https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -63,18 +63,18 @@
 #### 4. Process a Send Request (main program) ####
 
 In this tutorial, we suppose that user has connected a Waveport radio modem on Port *COM4*.
-We will send the frame *0x5005*, which correspond to the local service request *READ_RADIO_ADDRESS*. So we must receive spontaneously after the sending, a frame which begins with 0x51
+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*)
 
-1. Here are the main step that must be done before be able to send the frame:
+1. Here are the main step that must be done before be able to process the request:
 
-    * Instanciation the RS232Driver class
-    * Configure the instance
-        * port ID setting
+    * Instanciation the Waveport class
+    * Instanciation the RS232Driver class and port ID setting
+    * Configure the Waveport instance
+        * serial driver setting
         * initialization (default configuration values)
-    * Register a listener to receive spontaneous frame
     * Open the connection
 
-2. Send the frame
+2. Process the request
 
 3. At the end, following steps must be done before quit the program:
 
@@ -82,13 +82,13 @@
 
 #### 5. Activate the Coronis Domain logger (optional) ####
 
-Coronis Domain module offers a logging feature, that is used by the rs232driver implementation to give internal process information.
+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:
 
 1. Make the execution reference to the Domain C native library:
-    * For native Java project, the RS232driver C native library must be copy to the execution path of the user project (root of the user project)
+    * For native Java project, the Domain C native library must be copy to the execution path of the user project (root of the user project)
         * *csdomain.dll* for Windows platform
         * *libcsdomain.so* for Linux platform
     * For OSGI module, the specific fragment, which contains the C native library must be added to the execution configuration.
@@ -99,10 +99,10 @@
 
 #### Resources ####
 
-Source of main program can be found here : [Java Serial Driver tutorial sources]
+Source of main program can be found here : [Java Protocol tutorial sources]
 
-This example is available as an eclipse project (com.coronis.sdk.serialdriver.rs232driver.example.zip) inside the [*Coronis RS232Driver*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_rs232driver_v1.0.0.zip/download) delivery package. 
+This example is available as an eclipse project (com.coronis.sdk.protocol.waveport.example.zip) inside the [*Coronis WaveportProtocol*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_waveportprotocol_v1.0.0.zip/download) delivery package. 
 
 ## Going further ##
 
-To have more details information about Serial Driver API, refer the documentation [Java SerialDriver API](http://coronissdk.sourceforge.net/sourcedocs/api_SerialDriver_Java/index.html)   
+To have more details information about Protocol API, refer the documentation [Java Protocol API](http://coronissdk.sourceforge.net/sourcedocs/api_Protocol_Java/index.html)   
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thierry CHOMAUD</dc:creator><pubDate>Sat, 30 Jun 2012 21:29:58 -0000</pubDate><guid>https://sourceforge.net4e0b66a85ac35a337b7fd959f64a407e6fe2363d</guid></item><item><title>WikiPage Java_Protocol_UserGuide modified by Thierry CHOMAUD</title><link>https://sourceforge.net/p/coronissdk/wiki/Java_Protocol_UserGuide/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,108 @@
-To be completed (TCD)
+## Overview ##
 
-Java native usage
-Java OSGI usage
+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.
 
-Java simple example
+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]
+
+## Getting started ##
+
+#### 1. Create user Java project ####
+
+First, you have to create a new Java project into eclipse environment.
+Coronis SDK has been design with JDK1.5.
+
+#### 2. Import Protocol implementation ####
+
+In this tutorial, we will use the Coronis Waveport protocol implementation of Protocol API.
+The Java implementation is based on the C native implementation.
+
+1. Get the last [*Coronis Waveport protocol*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_waveportprotocol_v1.0.0.zip/download) delivery package
+
+2. Copy the following java libraries into a subfolder *lib* of the user project:
+    * SerialDriver API (*com.coronis.sdk.serialdriver.api.jar*)
+    * Coronis RS232driver implementation (*com.coronis.sdk.serialdriver.rs232driver.jar*)
+    * Protocol API (*com.coronis.sdk.protocol.api.jar*)
+    * Coronis Waveport implementation (*com.coronis.sdk.protocol.waveport.jar*)
+    * Coronis Domain module (*com.coronis.sdk.domain.jar*)
+        * It includes the Payload and RadioAddress definition that must be used for Coronis Waveport implementation:
+
+3. Copy property files:
+    * the *csrs232driver.properties* file to the root of the user project
+        * This file contains the default rs232driver configuration and is loaded during initialization step.
+    * the *cswaveportprotocol.properties* file to the root of the user project
+        * This file contains the default waveport configuration and is loade during the initialization step.
+
+4. Add Protocol API, Waveport, SerialDriver API, RS232driver and Domain libraries into the Java build path (project properties)
+
+5. Execution reference to the Waveport and RS232driver C native libraries:
+    * For native Java project, the Waveport and RS232driver C native libraries must be copy to the execution path of the user project (root of the user project)
+        * *cswaveportprotocol.dll* and *csrs232driver.dll* for Windows platform
+        * *libcswaveportprotocol.so* and *libcsrs232driver.so* for Linux platform
+    * For OSGI module, specific fragments contains the C native libraries and must be added to the execution configuration.
+        * *com.coronis.sdk.protocol.waveport.win32.x86* and *com.coronis.sdk.serialdriver.rs232driver.win32.x86* for Windows platform
+        * *com.coronis.sdk.protocol.waveport.linux.x86* and *com.coronis.sdk.serialdriver.rs232driver.linux.x86* for Linux platform
+
+#### 3. Instanciate Protocol implementation ####
+
+To use a protocol implementation user has 2 possibilities:
+
+1. Instanciate class that implements the IProtocolService (Waveport class in this example).
+2. Use the Protocol loader function provided by the domain module (Loader.loadProtocol(String protocolId))
+
+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:
+
+1. Instanciate class that implements the ISerialDriverService and set this instance to the Protocol implementation using the service *setSerialDriverInstance*.
+2. Use the protocol service *setSerialDriverId* to let the protocol implementation automatically instanciate the correspondant SerialDriver instance. (csrs232driver id in this example)
+
+#### 4. Process a Send Request (main program) ####
+
+In this tutorial, we suppose that user has connected a Waveport radio modem on Port *COM4*.
+We will send the frame *0x5005*, which correspond to the local service request *READ_RADIO_ADDRESS*. So we must receive spontaneously after the sending, a frame which begins with 0x51
+
+1. Here are the main step that must be done before be able to send the frame:
+
+    * Instanciation the RS232Driver class
+    * Configure the instance
+        * port ID setting
+        * initialization (default configuration values)
+    * Register a listener to receive spontaneous frame
+    * Open the connection
+
+2. Send the frame
+
+3. At the end, following steps must be done before quit the program:
+
+    * Close the current connection
+
+#### 5. Activate the Coronis Domain logger (optional) ####
+
+Coronis Domain module offers a logging feature, that is used by the rs232driver 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:
+
+1. Make the execution reference to the Domain C native library:
+    * For native Java project, the RS232driver C native library must be copy to the execution path of the user project (root of the user project)
+        * *csdomain.dll* for Windows platform
+        * *libcsdomain.so* for Linux platform
+    * For OSGI module, the specific fragment, which contains the C native library must be added to the execution configuration.
+        * *com.coronis.sdk.domain.win32.x86* for Windows platform
+        * *com.coronis.sdk.domain.linux.x86* for Linux platform
+2. Copy the *cslogger.properties* file to the root of your project
+    * Edit the logger properties if needed (log level, destination file)
+
+#### Resources ####
+
+Source of main program can be found here : [Java Serial Driver tutorial sources]
+
+This example is available as an eclipse project (com.coronis.sdk.serialdriver.rs232driver.example.zip) inside the [*Coronis RS232Driver*](http://sourceforge.net/projects/coronissdk/files/public/coronissdk_rs232driver_v1.0.0.zip/download) delivery package. 
+
+## Going further ##
+
+To have more details information about Serial Driver API, refer the documentation [Java SerialDriver API](http://coronissdk.sourceforge.net/sourcedocs/api_SerialDriver_Java/index.html)   
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thierry CHOMAUD</dc:creator><pubDate>Sat, 30 Jun 2012 21:17:54 -0000</pubDate><guid>https://sourceforge.net26115e8dfb73b343989619387710da22fa2e2cb8</guid></item></channel></rss>