Access Keys:
Skip to content (Access Key - 0)
 

Problem with controller

DIMITАR АNGЕLОV

On Nov 24, 2009 17:25

Hello everyone!

I am pleased to find such helpful and pleasant community. This is my first try using OpenRemote. My aim is to get familiar with it, so I can setup a KNX-based system in my new apartment. Unfortunately, I encountered difficulties even with the simple task I tried (described below). I am not a programmer, but i have good computer background and decent programming and technical knowledge, so I think with your help I might be able to deal with these issues.

To my problem:

I am using Windows 7, running on a Macbook White. Currently running JAVA JDK 6 Update 17, properly set-up Envoironment Variables, managed to run the controller (localhost:8080/controller is properly functioning), created and downloaded A1156 apple remote zip from the User Interface Controller. Just to be clear - I am running bootcamp, and the Apple Remote perfectly works with my current setup. My iPhone is on my Wireless network, and properly connects to the controller and gets the Interface information. But stumbled accross a simple task - the commands it sends do not seem to be able to execute. For some reason, files are missing, or this is what my log says:

2009-11-24 18:38:36,409 ERROR [HTTP-Thread-3] org.openremote.controller.protocol.infrared.IREvent.irsend(89) | /usr/local/bin/irsend SEND_ONCE Apple_Mac minus failed.
java.io.IOException: Cannot run program "/usr/local/bin/irsend": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:431)
    at java.lang.Runtime.exec(Runtime.java:328)
    at org.openremote.controller.protocol.infrared.IREvent.irsend(IREvent.java:83)
    at org.openremote.controller.protocol.infrared.IREvent.exec(IREvent.java:53)
    at org.openremote.controller.service.impl.ButtonCommandServiceImpl.trigger(ButtonCommandServiceImpl.java:67)
    at org.openremote.controller.rest.ButtonCommandRESTServlet.doPost(ButtonCommandRESTServlet.java:84)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    ... 27 more

The "/usr/local/bin/" path does not exist in my OpenRemote installation. Should it? The "irsend" also. Am I mistaken somewhere? Sorry if it is a dummy question, I've beentrying to deal with it for the past hour with no luck.

Appritiate your help.

 
Labels: , , , , , ,
Participants: DIMITАR АNGЕLОV , Juha Lindfors
  1. Nov 24, 2009

    Juha Lindfors says:

    Hello Dimitar, I haven't finished the instructions for infrared yet but here's ...

    Hello Dimitar,

    I haven't finished the instructions for infrared yet but here's the short version of it:

    The infrared codes you can browse from the database are for LIRC. LIRC is supported with Linux only.

    So your options are either to try using Linux instead or get an infrared hardware that works with Windows. Two options for the latter are IRTrans and GlobalCache. Of the two, my understanding is IRTrans can support LIRC infrared configuration (the ones you can browse from the database currently).

    Will be working on more material around setting things up around infrared with Windows/Mac as the OS platform.

    – Juha

    1. Nov 25, 2009

      DIMITАR АNGЕLОV says:

      Hi Juha, Thank you for your reply. I understand. This was just a test for me, ...

      Hi Juha,

      Thank you for your reply.

      I understand. This was just a test for me, and I'll be definately running a Linux distribution on my KNX IP gateway.

      Thanks again.

      Cheers.

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license