Menu

Sending Time and Date to the BUS

Help
Ronny
2007-11-23
2012-12-14
  • Ronny

    Ronny - 2007-11-23

    Hi guys,

    first of all - thank you for providing such a piece of software for us!
    What do I need to do to send (let's say once a minute) the time and the date to the bus?
    I have a Merten Plantec switch which could display the time and the date if it would have a group address to ask for the time.
    So what I would like to do is having a small application running telling the time having a spcial source adress. Is this possible?

    I do have an IP Interface (Siemens IP 148 N) does your application communicate over EibNET/IP as well or just over the classical RS 232?

    Thanks in advance,
    Ronny

     
    • jef2000

      jef2000 - 2007-11-24

      Hi,

      Yes, it's possible to send time and date on the bus. You have to add the following lines to your linknx configuration file:
      In the <objects> section:
      <object id="cur_date" gad="1/1/151" forcewrite="true" type="EIS4">Current Date</object>
      <object id="cur_time" gad="1/1/150" type="EIS3">Current Time</object>
      In the <rules> section:
      <rule id="time_date">
          <condition type="timer" trigger="true">
              <every>60</every>
          </condition>
          <actionlist>
              <action type="set-value" id="cur_time" value="now" />
              <action type="set-value" id="cur_date" value="now" />
          </actionlist>
      </rule>

      you'll have to adapt "1/1/150" and "1/1/151" to the desired group addresses. The forcewrite flag is only needed if you want the date to be sent every minute, even if it didn't change. (the time doesn't need this flag because it always changes)

      Linknx doesn't communicate directy with the bus. it only communicates with the eibd deamon ( http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd ). This deamon can access the bus using various interfaces:
          * FT1.2 / BCU 2
          * PEI16 / BCU 1 (using the BCU 1 kernel driver or an experimental user mode driver)
          * TPUART (The use of the TPUART kernel driver is supported, but the user mode implementation is simpler to use and lacks no features)
          * EIBnet/IP Routing and Tunneling
          * KNX on USB (only EMI1 and EMI2 are supported; CEMI is not really supported by current USB interfaces)

      Kind regards,

      Jean-François

       
      • Ronny

        Ronny - 2007-11-25

        Thanks a lot for the fast reply. As you have seen in my question propably I did not yet start your application. I first need to compile EIBD and Linknx and then make them work together.

        So maybe as an future improvement you could provide a x86 tar.gz binary archive having everything in it to be able to start up both. I think that would enlarge the number of users usng your nice piece of software.

        Thanks again for proving it to us.

        Ronny

         
        • jef2000

          jef2000 - 2007-12-02

          Hi,

          It's very difficult to provide an x86 tar.gz with binary software, because every linux distribution is different and a lot of incompatibilities between system libraries and architectures can happen.
          A more convenient way to distribute it is via source rpm packages. Using a .src.rpm package, you can easily build and install a binary .rpm for your system.

          The details on how to build rpm packages can be found in the Wiki:
          http://linknx.wiki.sourceforge.net/Creating+rpm+packages

          Kind regards,

          Jean-François

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.