Author Topic: Connecting to DCE router with Perl and Misterhouse  (Read 20184 times)

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Connecting to DCE router with Perl and Misterhouse
« on: March 10, 2005, 08:47:17 am »
Hi,

I've just installed Pluto and I see that I will have to learn a lot about it, to be able to contribute.

We had quite some discussion about integration of Pluto and Misterhouse (www.misterhouse.com) and this could be the first step.

I'd like to connnect to DCE router with Perl (probably over TCP socket) and would like to receive all messages from router, just to get some more knowledge about DCE Router operation.

On next step, I'd like to enhance this - so that MH could also send some commands, events to router and on next step MH act as parent device to all devices it currently supports.

One of the more interesting things I'd like to do through MH is whole house audio in SW (with speech announcements, VOIP calls, etc...) all through multi channel outputs on core....

Also I'm planning to do some more research work on adaptive house field (I'm post Ph.D researcher in speech processing and inteligent user speech interfaces).

So I kindly ask for some help on this one ....

Regards,

Tinia.

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
Connecting to DCE router with Perl and Misterhouse
« Reply #1 on: March 12, 2005, 02:07:42 pm »
Hi,

DCERouter is actually a pretty simple program.  All it does, essentially, is take a message (see DCE/Message.cpp) and route it the destination device(s).  It also handles "interceptors" (ie my device wants to be notified every time a sensor is tripped).

The easiest way to see what's happening is to tail /var/log/pluto/DCERouter.newlog.  Every DCE Device logs it's output to that directory.  If a device is restarted, the scripts move the .newlog contents to .log ,and start a .newlog file again.  At bootup, all the logs are compressed into an archive in /var/log/pluto/archive.  So you can just tail the .newlog for the module you're interested.  Optionall you could do a screen -ls, and tehn a screen -r to attach to the screen session -- all devices, including DCERouter run in screen sessions.

archived

  • Hello, I'm new here
  • Posts: 0
    • View Profile
I get it
« Reply #2 on: September 21, 2005, 05:59:12 am »
Lol, okay i get it now.