Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - digitaldan

Pages: [1]
1
Developers / Ruby GSD codes help
« on: September 30, 2008, 04:21:38 pm »
Hi I'm very close to releasing a ruby/GSD interface to HAI's ( http://www.homeauto.com ) Omni line of home automation controllers.  As it stands I have the networking, 128 bit aes encryption, lights, security, thermostats and aux sensors working. I just have a few questions I'm hoping a GSD guru might help me out with.

1. How or who calls "#756 Report Child Devices" ? I can call this manually but I would assume LinuxMCE would do this for me.  My code will auto discover children, I would assume this is the right place to put it. Right now its not automatically being called.

2. On startup or reload LinuxMCE needs to know the state of lights, temps, etc.... Is this something that should be done in "#355 Process Initialize" or is there another method for reporting state?  If so, again what triggers linuxmce to do this?

3. How or where can I found out how methods are called and who calls them? I don't understand the relationship between  "command groups", "events" and the "device category" and how they effect what GSD methods get called and by what.  Could someone explain this a little more?

For what its worth my device is in the "Interfaces - Security Interface #80" and has the "Ruby Internal Commands" and "Security Panel" command groups.  It also has "Alarm panel mode change #67", "Reporting Child Devices #54" and  "Sensor Tripped #9" events.

Thanks!
Dan-

 

2
Developers / External_Media_Identifier (id-my-disk)
« on: February 02, 2008, 06:44:47 pm »
Hi, I'm trying to find the source to /usr/bin/External_Media_Identifier.  As far as I can tell this is part of the id-my-disk deb package, but I can't find its source in the public svn or through dpkg. Anyone know where I can find it?

Thanks
Dan-


3
Installation issues / DCERouter dying
« on: April 12, 2007, 04:23:28 pm »
Hi,

I posted this last night in a different conversation, but i wanted this problem to have its own topic.  After a clean wipe of the system and a fresh install (actually many fresh installs, always reformating the partitions) the DCERouter dies as soon as it starts up. The script that spawns this process tries up to 200 times and then stop all together.  I have a GDB trace of the seg-fault, it seems to be choking trying to read the DBName var from some where (pluto.conf?), very strange.  I'm hoping someone can help me out here since I think this is effecting many people who are having the "black" screen problems.  My hardware is very standard and I did install linuxmce last week without this issue, so it may be a updated package that is causing the problem.  The database is working correctly, i can connect to it as root and query pluto_main, my pluto.conf also looks fine.... I will post that below if it helps.

Anyways, here is the GDB bt.

root@dcerouter:/usr/pluto/bin# gdb ./DCERouter
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run -h localhost
Starting program: /usr/pluto/bin/DCERouter -h localhost
[Thread debugging using libthread_db enabled]
[New Thread -1226340688 (LWP 20843)]
Copyright (C) 2004 Pluto, Inc., a Florida Corporation
www.plutohome.com
Phone: +1 (877) 758-8648
This program is distributed according to the terms of the Pluto Public License, available at:
http://plutohome.com/index.php?section=public_license
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the Pluto Public License for more details.
---------------

[New Thread -1226441824 (LWP 20868)]
21      04/11/07 22:31:01.800           lock(0x80dee80) (>2) messagequeue: DCERouter.cpp:1782  <0xb6e5fba0>
21      04/11/07 22:31:01.801           acquired(0x80dee80) #0 (>2) messagequeue DCERouter.cpp:1782  <0xb6e5fba0>
10      04/11/07 22:31:01.801           ProcessQueue going to sleep <0xb6e5fba0>
21      04/11/07 22:31:01.801           start cond wait DCERouter.cpp:1782 (0x80dee80)  <0xb6e5fba0>
10      04/11/07 22:31:01.800           Running as device: 2 installation: 12610 using path: /usr/pluto/ <0xb6e786b0>
10      04/11/07 22:31:01.812           AlarmManager::AlarmManager 0x80e4730 <0xb6e786b0>
21      04/11/07 22:31:01.812           lock(0x80e4774) (>3) alarm: AlarmManager.cpp:87  <0xb6e786b0>
21      04/11/07 22:31:01.813           acquired(0x80e4774) #0 (>3) alarm AlarmManager.cpp:87  <0xb6e786b0>
21      04/11/07 22:31:01.813           unlock(0x80e4774) #0 (>3) alarm: AlarmManager.cpp:87  <0xb6e786b0>
21      04/11/07 22:31:01.813           removed from map (0x80e4774) #0 (>3) alarm: AlarmManager.cpp:87  was: 2 size, now 1 Rel: Y Got: Y <0xb6e786b0>
[New Thread -1234834528 (LWP 20870)]
21      04/11/07 22:31:01.814           lock(0x80e4774) (>4) alarm: AlarmManager.cpp:102  <0xb665eba0>
21      04/11/07 22:31:01.814           acquired(0x80e4774) #0 (>4) alarm AlarmManager.cpp:102  <0xb665eba0>
21      04/11/07 22:31:01.814           start cond wait AlarmManager.cpp:102 (0x80e4774)  <0xb665eba0>
[New Thread -1243227232 (LWP 20871)]
21      04/11/07 22:31:01.815           lock(0x80e4774) (>5) alarm: AlarmManager.cpp:102  <0xb5e5dba0>
21      04/11/07 22:31:01.815           acquired(0x80e4774) #0 (>5) alarm AlarmManager.cpp:102  <0xb5e5dba0>
21      04/11/07 22:31:01.815           start cond wait AlarmManager.cpp:102 (0x80e4774)  <0xb5e5dba0>
[New Thread -1251619936 (LWP 20872)]
21      04/11/07 22:31:01.816           lock(0x80e4774) (>6) alarm: AlarmManager.cpp:102  <0xb565cba0>
21      04/11/07 22:31:01.816           acquired(0x80e4774) #0 (>6) alarm AlarmManager.cpp:102  <0xb565cba0>
21      04/11/07 22:31:01.817           start cond wait AlarmManager.cpp:102 (0x80e4774)  <0xb565cba0>
[New Thread -1260012640 (LWP 20873)]
10      04/11/07 22:31:01.818           Executed query UPDATE Device SET Registered=0,psc_mod=psc_mod (0 rows) <0xb6e786b0>
21      04/11/07 22:31:01.818           lock(0x80e4774) (>Cool alarm: AlarmManager.cpp:102  <0xb4e5bba0>
21      04/11/07 22:31:01.818           acquired(0x80e4774) #0 (>Cool alarm AlarmManager.cpp:102  <0xb4e5bba0>
21      04/11/07 22:31:01.818           start cond wait AlarmManager.cpp:102 (0x80e4774)  <0xb4e5bba0>
10      04/11/07 22:31:01.961           Created the server device: 1 CORE <0xb6e786b0>
10      04/11/07 22:31:01.961           Created device 2 DCERouter (mdl: 1) routed to: 2 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.961           Created DCE device 3 File Grids Plug-in (mdl: 10) routed to: 3 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.961           Created DCE device 4 General Info Plug-in (mdl: 27) routed to: 4 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.961           Created DCE device 5 Climate Plug-in (mdl: 31) routed to: 5 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.961           Created DCE device 6 Datagrid Plug-in (mdl: 9) routed to: 6 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 7 Infrared Plug-in (mdl: 39) routed to: 7 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 8 Lighting Plug-in (mdl: 32) routed to: 8 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 9 Orbiter Plug-in (mdl: 12) routed to: 9 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 10 Media Plug-in (mdl: 2) routed to: 10 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 11 Telecom Plug-in (mdl: 34) routed to: 11 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 12 Event Plug-in (mdl: 52) routed to: 12 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 13 Security Plug-in (mdl: 33) routed to: 13 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 14 Plug And Play Plug-in (mdl: 1809) routed to: 14 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 23 Xine Plug-in (mdl: 6) routed to: 23 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 25 MythTV Plug-In (mdl: 36) routed to: 25 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 15 App Server (mdl: 26) routed to: 15 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 16 Asterisk (mdl: 45) routed to: 16 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 17 Text To Speech (mdl: 57) routed to: 17 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created the server device: 18 Generic PC as MD <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 19 OnScreen Orbiter (mdl: 62) routed to: 19 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 20 Orbiter Embedded Phone (mdl: 1759) routed to: 20 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 22 Xine Player (mdl: 5) routed to: 22 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 24 MythTV Player (mdl: 35) routed to: 24 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 26 Disk Drive (mdl: 11) routed to: 26 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 27 Photo Screen Saver (mdl: 1825) routed to: 27 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.962           Created DCE device 21 HAL (mdl: 1808) routed to: 21 (1 CORE) <0xb6e786b0>
10      04/11/07 22:31:01.963           Created device 28 GeForce or TNT2 (mdl: 1736) routed to: 28 (1 CORE) <0xb6e786b0>
[New Thread -1268405344 (LWP 20910)]
13      04/11/07 22:31:01.976           TCPIP: Listening on 3450. <0xb465aba0>
13      04/11/07 22:31:01.978           TCPIP: Accepting incoming connection on socket 9, port 3450, from IP 127.0.0.1. <0xb465aba0>
21      04/11/07 22:31:01.978           lock(0x80decb8) (>9) listener Router Dev #0: SocketListener.cpp:234  <0xb465aba0>
21      04/11/07 22:31:01.978           acquired(0x80decb8) #0 (>9) listener Router Dev #0 SocketListener.cpp:234  <0xb465aba0>
10      04/11/07 22:31:01.978           ServerSocket::Created 0x8102358 m_Socket: 9 <0xb465aba0>
[New Thread -1276798048 (LWP 20912)]
10      04/11/07 22:31:01.980           Thread created for Incoming_Conn Socket 9 127.0.0.1 dev -1 ptr 0x8102358 <0xb465aba0>
21      04/11/07 22:31:01.980           unlock(0x80decb8) #0 (>9) listener Router Dev #0: SocketListener.cpp:234  <0xb465aba0>
21      04/11/07 22:31:01.980           removed from map (0x80decb8) #0 (>9) listener Router Dev #0: SocketListener.cpp:234  was: 6 size, now 5 Rel: Y Got: Y <0xb465aba0>
10      04/11/07 22:31:01.980           Running socket 0x8102358... m_bTerminate: 0 <0xb3e59ba0>
10      04/11/07 22:31:02.480           Waiting for listener thread <0xb6e786b0>
10      04/11/07 22:31:02.481           DCERouter Version: 1.0 <0xb6e786b0>
05      04/11/07 22:31:02.818           Loaded plug-in device: 3 master device: 10 -- ./File_Grids_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.064           Loaded plug-in device: 4 master device: 27 -- ./General_Info_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.123           Loaded plug-in device: 5 master device: 31 -- ./Climate_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.175           Loaded plug-in device: 6 master device: 9 -- ./Datagrid_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.254           Loaded plug-in device: 7 master device: 39 -- ./Infrared_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.326           Loaded plug-in device: 8 master device: 32 -- ./Lighting_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:03.603           Loaded plug-in device: 9 master device: 12 -- ./Orbiter_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.058           Loaded plug-in device: 10 master device: 2 -- ./Media_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.276           Loaded plug-in device: 11 master device: 34 -- ./Telecom_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.362           Loaded plug-in device: 12 master device: 52 -- ./Event_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.458           Loaded plug-in device: 13 master device: 33 -- ./Security_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.571           Loaded plug-in device: 14 master device: 1809 -- ./Plug_And_Play_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.664           Loaded plug-in device: 23 master device: 6 -- ./Xine_Plugin.so <0xb6e786b0>
05      04/11/07 22:31:04.789           Loaded plug-in device: 25 master device: 36 -- ./MythTV_PlugIn.so <0xb6e786b0>
10      04/11/07 22:31:04.796           Activating 14 plug-ins <0xb6e786b0>
10      04/11/07 22:31:04.796           Device: 3 loaded as plug-in <0xb6e786b0>
[New Thread -1296467040 (LWP 20913)]
21      04/11/07 22:31:04.801           lock(0x82e0278) (>44) MessageQueue: Command_Impl.cpp:769  <0xb2b97ba0>
21      04/11/07 22:31:04.801           acquired(0x82e0278) #0 (>44) MessageQueue Command_Impl.cpp:769  <0xb2b97ba0>
21      04/11/07 22:31:04.801           start cond wait Command_Impl.cpp:769 (0x82e0278)  <0xb2b97ba0>
13      04/11/07 22:31:04.801           TCPIP: Accepting incoming connection on socket 11, port 3450, from IP 127.0.0.1. <0xb465aba0>
21      04/11/07 22:31:04.801           lock(0x80decb8) (>45) listener Router Dev #0: SocketListener.cpp:234  <0xb465aba0>
21      04/11/07 22:31:04.801           acquired(0x80decb8) #0 (>45) listener Router Dev #0 SocketListener.cpp:234  <0xb465aba0>
10      04/11/07 22:31:04.801           ServerSocket::Created 0x81663a0 m_Socket: 11 <0xb465aba0>
[New Thread -1304859744 (LWP 20914)]
10      04/11/07 22:31:04.803           Thread created for Incoming_Conn Socket 11 127.0.0.1 dev -1 ptr 0x81663a0 <0xb465aba0>
21      04/11/07 22:31:04.803           unlock(0x80decb8) #0 (>45) listener Router Dev #0: SocketListener.cpp:234  <0xb465aba0>
21      04/11/07 22:31:04.804           removed from map (0x80decb8) #0 (>45) listener Router Dev #0: SocketListener.cpp:234  was: 9 size, now 8 Rel: Y Got: Y <0xb465aba0>
10      04/11/07 22:31:04.804           Running socket 0x81663a0... m_bTerminate: 0 <0xb2396ba0>
21      04/11/07 22:31:04.804           lock(0x80dee08) (>71) core: DCERouter.cpp:1449  <0xb2396ba0>
21      04/11/07 22:31:04.804           acquired(0x80dee08) #0 (>71) core DCERouter.cpp:1449  <0xb2396ba0>
21      04/11/07 22:31:04.804           unlock(0x80dee08) #0 (>71) core: DCERouter.cpp:1449  <0xb2396ba0>
21      04/11/07 22:31:04.804           removed from map (0x80dee08) #0 (>71) core: DCERouter.cpp:1449  was: 9 size, now 8 Rel: Y Got: Y <0xb2396ba0>
10      04/11/07 22:31:04.804           Setting timeout for socket 10 to 30 <0xb6e786b0>

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226340688 (LWP 20843)]
0xb70cb1bf in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb70cb1bf in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1  0xb3645c02 in DCE::Router::sDBName_get (this=0x82e0150) at ../DCE/DCERouter.h:244
#2  0xb36416ca in DCE::File_Grids_Plugin::GetConfig (this=0x82e0150) at File_Grids_Plugin.cpp:72
#3  0xb363afc6 in RegisterAsPlugIn (pRouter=0x80dec90, PK_Device=3, pPlutoLogger=0x80e1ec8) at Main.cpp:98
#4  0x0808bfec in DCE::Router::PlugIn_Activate (this=0x80dec90, PK_Device=3, RegisterAsPlugin=0xb363ae82 <RegisterAsPlugIn>, sLogFile=@0xbf8d3108) at DCERouter.cpp:613
#5  0x0808d6b1 in DCE::Router::RegisterAllPlugins (this=0x80dec90) at DCERouter.cpp:512
#6  0x0808dc37 in DCE::Router::Run (this=0x80dec90) at DCERouter.cpp:1589
#7  0x080774b9 in main (argc=3, argv=0xbf8d3304) at Main.cpp:184
(gdb)



pluto.conf
# Pluto config file
MySqlHost = localhost
MySqlUser = root
MySqlPassword =
MySqlDBName = pluto_main
DCERouter = localhost
MySqlPort = 3306
DCERouterPort = 3450
PK_Device = 1
Activation_Code = 1111
PK_Installation = 12610
PK_Users = 1
PK_Distro = 14
Display = 4
OfflineMode = false

PlutoVersion = 1.0
Bookmark_Media = 4,5
RA_CheckRemotePort = 1
TimeZoneSet = 1
FirstBoot = false
AVWizardDone = 1

Pages: [1]