-
Notifications
You must be signed in to change notification settings - Fork 17
Build Install Run
##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:
- clear Project
- Maven clean
- 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.
- Install the rxtx (apt-get).
- Config /dev/ttyAMA0 (see: https://cae2100.wordpress.com/2012/12/23/raspberry-pi-and-the-serial-port/).
- Install your optolink hardware.
- Copy: optolink-runtime.zip from the target folder to Rasberry and extract it.
- Edit conf/optolink.xml for your heading system.
- 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)