Skip to content
Stefan Andres edited this page Nov 22, 2015 · 5 revisions

##Build Make your own copy of optolink repositorie
The application is develop in Eclipse (Luna) with maven support.
Requierd Lib's: rxtx, slf4j, logback (see pom.xml file)

You can build runtime by (right mouse click on project foulder) Run->Run As->Maven install. Files for runtime are found in ./traget

Node: If you have problems to build:

  1. clear Project
  2. Maven clean
  3. check Project -> Properties -> Java Compiler: Compiler compliance level must be 1.7

##Install & running

Normal the oracle java 1.7 runtime environment is already installed on Raspberry PI.

  1. Install the rxtx (apt-get).
  2. Config /dev/ttyAMA0 (see: https://cae2100.wordpress.com/2012/12/23/raspberry-pi-and-the-serial-port/).
  3. Install your optolink hardware.
  4. Copy: optolink-runtime.zip from the target folder to Rasberry and extract it.
  5. Edit conf/optolink.xml for your heading system.
  6. Start it: ./start.sh (the application goes into background) ; stop it: ./stop.sh.

Node: If you like a console output (debug) use ./start_debug.sh or for more output (trace) use ./start_trace.sh. To stop the application use ctrl-c.

Node: for permanent installing read the INSTALL_AUTOSTART.txt in the ./optolink folder.

##Test it Run a terminal programm (like PuTTY), connect to Raspberry by using port 31113 and raw protocol.

Suported command:

  • list list all (thing) definition in optolink.xml
  • get <Thing.id> get Data for thing from heating system.
  • get <Thing.id> Channel.id[,Channel.id,...] get Data for channel(s) of a thing from heating system.
  • set <ThingId>:<ChannelId> <value> set data in the heating system (The syntax of Value is not checked)
Clone this wiki locally