You are here

Java

BASIC

Java ETK

The eWON JAVA toolkit (v1.4.2 | Release note) is designed around the J2SE (JAVA Standard Edition) technology. The J2SE profile provides a language and a framework for developing your applications.

Standard package
  • Java implementation including multithreading and synchronization (locking)
  • java.lang: classes for basic types, floats, runtime, ... manipulations
  • java.io: stream operations
  • java.util: Calendar, Hashtable, Stack, Vector,...
  • etc.
eWON package "com.ewon.ewonitf"
  • IO Server tags
  • Custom web site
  • Scheduled actions management
  • Event log
  • etc.

More information about this eWON JAVA toolkit can be found in the eWON Java Toolkit User guide - J2SE

If the firmware version of the eWON device is older than v12.2s0, you must use the JavaToolkit linked to the J2ME instead of the J2SE.

The eWON JAVA toolkit (v1.4b | Release note) is designed around the J2ME (JAVA Micro Edition) technology. The J2ME profile provides a language and a framework for developing your applications.

For details, check the eWON Java Toolkit User guide - J2ME

BASIC IDE

Get started

To get started, you will need the eWON Java Toolkit that can be downloaded in the Java ETK section here above.
If you want a proper Java environment, we suggest downloading the Java IDE called Eclipse.
And finally, if you wish to test how the Java works in the eWON, try out our Test Application

If you also need a clean template to start developing your own I/O Server, we have one for you.

Code Examples

  • Retrieve system information

    To read the system information of the eWON (SerialNumber, firmwareVersion, IOServerCounter, ... all info from the estat.htm file), you need to use the getItem to extract it from the SysControlBlock.INF...

    GO
  • FTP Gateway

    Java Addon will be configured to use the eWON as an FTP gateway.In other words, to copy files from one FTP server (PLC for example) to another one automatically.

    GO
  • Set / Retrieve tags through a Telnet server

    Here's an example of a small Telnet server that will let you get or set tags. It deals with multi-sessions, read/write tags...

    GO
  • Enabling/disabling the WAN interface

    A common example of controlling the WAN communication through scripting is enabling and disabling the WAN port based on the state of a tag.In the example below, the boolean tag Switch ...

    GO
  • Telnet IO Server

    This example of Java IO Server makes it possible to turn the eWON into an Telnet client. This IO Server has been used to demonstarte the new Java IO Server feature during Flexthink! 2015.Download the package !

    GO
  • Danfoss IO Server

    Example of IOserver to communicate with Danfoss AK systems. Actually this device features a web server and uses XML exchanges to read and write the data.

    GO
  • Weather Station with a Java IO Server

    IO Server used to communicate to Conrad WH2600 Weather Station. It allows to read all the Weather live data (Temperature, Humidity, Pressure,...)

    GO
  • Parse JSON when using a Java IO Server

    How to Parse Json files with JAVA on eWON

    GO
  • Custom Configuration Page with JAVA

    This add-on allows to create a Custom Web page that will enable the configuration of an eWON using a user with limited permissions.

    GO
  • MQTT - Get Started

    If you wish to get started with MQTT and the eWON using JAVA, this is where you need to look at....

    GO
  • Add-on Modbus RTU

    This add-on allows the polling of Modbus RTU devices which is quite useful when you want to poll two Modbus serial networks.

    GO