Author Topic: Pandaboard and Standalone DCE  (Read 46931 times)

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Pandaboard and Standalone DCE
« Reply #15 on: August 02, 2011, 11:45:49 pm »
did you use the proper hash for the password?
rock your home - http://www.agocontrol.com home automation

rages

  • Guru
  • ****
  • Posts: 182
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #16 on: August 03, 2011, 08:00:16 pm »
= Install on Pandaboard (Rages) =

I installed the Standalone DCE in a pandaboard with Ubuntu 11.04, these are the steps I followed:

* Install apache2 php5 and mysql, option phpmyadmin
         ° sudo apt-get install apache2
         ° sudo apt-get install php5 libapache2-mod-php5
         ° sudo apt-get install mysql-server mysql-client
         ° sudo apt-get install libapache2-mod-auth-mysql php5-mysql
         ° in option sudo apt-get install phpmyadmin, sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin,
           You will need to edit /etc/phpmyadmin/config.inc.php and delete "//" from:
           // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

* Install build requirements
         ° sudo apt-get install build-essential g++ libmysqlclient15-dev libattr1-dev libxml2-dev

* Download the source
         ° mkdir -p /home/public/arm-pandaboard
         ° cd /home/public/arm-pandaboard
         ° svn co http://svn.linuxmce.org/svn/people/hari/mini/   

* Make
         ° cd /home/public/arm-pandaboard/mini/src/
         ° edit Makefile and delete AEt_EMC2000. I needed a bin file of EIB-eibd and I added this to the makefile,
           but we must have installed eibd.
         ° make
         ° now copy the bin directory in /usr/pluto/bin and in /opt/pluto/bin

* Import the database

         ° go in /home/public/arm-pandaboard/mini/dumps and run ./import.sh

* Run mini-install.sh
         ° go in /home/public/arm-pandaboard/mini/installer and run ./mini-install.sh

* Install lmce_admin
         ° download the source, go in /var/www/ and sudo svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/web/lmce-admin
         ° now for simplicity we can use phpMyAdmin, and see in the database pluto_main the table Users and
           Installers and insert the data of our users, your password should be md5, then (thanks Possy)
           in mysql:

           "update Users set password = md5 ('your-password) where PK_Users = 1;"

         ° in Installers_Users modifiy userCanModifyInstallation at 1 and you check that FK_users and
           FK_Installation match PK_Users and PK_Installetion in tables Users and Installetion.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Pandaboard and Standalone DCE
« Reply #17 on: August 04, 2011, 08:46:11 am »
rages,

thanks for the write-up. Please add the stuff you just created to the wiki's mini page.

Thanks.

rages

  • Guru
  • ****
  • Posts: 182
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #18 on: August 13, 2011, 09:20:50 pm »
Hi,

I just got back from holiday, and I'm testing dcerouter with my pandaboard, eibd it's ok, i tested with groupswrite and the light go in on, but from web admin the light don't work and I can not load the EIB address from file, so I create a light with template 37, i write the group address manually but no telegram on busmonitor.

EIB bin is on /usr/pluto/bin.

Emanuele

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Pandaboard and Standalone DCE
« Reply #19 on: August 17, 2011, 01:55:57 pm »
try MessageSend on the commandline.

Btw, you might need to change the paths in the web admin, mini installs to /opt/pluto, the lmce-admin expects /usr/pluto. A symlink might also help.

br Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Pandaboard and Standalone DCE
« Reply #20 on: August 17, 2011, 01:56:44 pm »
try MessageSend on the commandline.
or the RPC plugin..
rock your home - http://www.agocontrol.com home automation

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Pandaboard and Standalone DCE
« Reply #21 on: August 17, 2011, 05:12:17 pm »
rages,

did you add a regular light, i.e. device template 37, and the EIB interface device template (49) to your system - and specified that the device, which uses DT 37, is controlled by the device, which uses DT 49? And did you add the GAs in the proper format to your light device, i.e. like outlined in http://wiki.linuxmce.org/index.php/EIB/KNX_with_eibd#Adding_a_light_switch

rages

  • Guru
  • ****
  • Posts: 182
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #22 on: August 17, 2011, 06:19:22 pm »
Thanks for your help, then:

Hari, I have copied the bin file in /opt/pluto and /usr/pluto, there is no way to debug the message?

Posde, I have created a device is 37 and the interface and I used the corrected GA, I used EIB in my previous installation of LMCE 8.10 and I've never had major problems.

For the problem that I do not load the GA from file?

Emanuele

rages

  • Guru
  • ****
  • Posts: 182
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #23 on: August 17, 2011, 06:58:16 pm »
I try with RPCplugin

sudo ./DCERouter
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 GNU Public License, available at:
http://www.fsf.org/licensing/licenses/gpl.html
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 GNU Public License for more details.
---------------

01   08/17/11 18:54:11.747      Can't open plug-in file './File_Grids_Plugin.so': ./File_Grids_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.748      Cannot load plug-in for device: 3. Be sure the file File_Grids_Plugin exists <0x40168000>
05   08/17/11 18:54:11.750      Loaded plug-in device: 4 master device: 27 -- ./General_Info_Plugin.so <0x40168000>
01   08/17/11 18:54:11.750      Can't open plug-in file './Climate_Plugin.so': ./Climate_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.750      Cannot load plug-in for device: 5. Be sure the file Climate_Plugin exists <0x40168000>
01   08/17/11 18:54:11.751      Can't open plug-in file './Datagrid_Plugin.so': ./Datagrid_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.751      Cannot load plug-in for device: 6. Be sure the file Datagrid_Plugin exists <0x40168000>
01   08/17/11 18:54:11.751      Can't open plug-in file './Infrared_Plugin.so': ./Infrared_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.751      Cannot load plug-in for device: 7. Be sure the file Infrared_Plugin exists <0x40168000>
05   08/17/11 18:54:11.752      Loaded plug-in device: 8 master device: 32 -- ./Lighting_Plugin.so <0x40168000>
01   08/17/11 18:54:11.752      Can't open plug-in file './Orbiter_Plugin.so': ./Orbiter_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.752      Cannot load plug-in for device: 9. Be sure the file Orbiter_Plugin exists <0x40168000>
01   08/17/11 18:54:11.753      Can't open plug-in file './Media_Plugin.so': ./Media_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.753      Cannot load plug-in for device: 10. Be sure the file Media_Plugin exists <0x40168000>
01   08/17/11 18:54:11.753      Can't open plug-in file './Telecom_Plugin.so': ./Telecom_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.753      Cannot load plug-in for device: 11. Be sure the file Telecom_Plugin exists <0x40168000>
01   08/17/11 18:54:11.753      Can't open plug-in file './Event_Plugin.so': ./Event_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.753      Cannot load plug-in for device: 12. Be sure the file Event_Plugin exists <0x40168000>
05   08/17/11 18:54:11.756      Loaded plug-in device: 13 master device: 33 -- ./Security_Plugin.so <0x40168000>
01   08/17/11 18:54:11.756      Can't open plug-in file './Plug_And_Play_Plugin.so': ./Plug_And_Play_Plugin.so: cannot open shared object file: No such file or directory <0x40168000>
01   08/17/11 18:54:11.756      Cannot load plug-in for device: 14. Be sure the file Plug_And_Play_Plugin exists <0x40168000>
05   08/17/11 18:54:11.757      Loaded plug-in device: 22 master device: 2032 -- ./RPC_Plugin.so <0x40168000>
05   08/17/11 18:54:11.840      Plugin 4 activated <0x40168000>
05   08/17/11 18:54:11.917      Plugin 8 activated <0x40168000>
01   08/17/11 18:54:11.998      Connect failed Unknown database 'pluto_security' <0x40168000>
01   08/17/11 18:54:11.998      Security Plugin: Cannot connect to database pluto_security! <0x40168000>
05   08/17/11 18:54:12.003      Socket::ReceiveData 0x1049e98 failed, bytes left 0 start: 350000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 16 Incoming_Conn Socket 16 127.0.0.1EVENT 13 T=33 Event #13 <0x46a27460>
05   08/17/11 18:54:12.003      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 16 127.0.0.1EVENT 13 T=33 Event #13 <0x46a27460>
05   08/17/11 18:54:12.004      TCPIP: Closing connection to 13 (Router Dev #0) 0x1049e98 m_Socket: -1 <0x46a27460>
05   08/17/11 18:54:12.004      Router::RemoveAndDeleteSocket 0x1049e98 13 <0x46a27460>
05   08/17/11 18:54:12.004      Plugin 13 activated <0x40168000>
01   08/17/11 18:54:12.005      Cannot initialize plug-in for device: 13 <0x40168000>
05   08/17/11 18:54:12.005      Socket::ReceiveData 0x1063790 failed, bytes left 0 start: 350000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 18 Incoming_Conn Socket 18 127.0.0.1EVENT 13 T=33 Event #13 <0x47227460>
05   08/17/11 18:54:12.005      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 18 127.0.0.1EVENT 13 T=33 Event #13 <0x47227460>
05   08/17/11 18:54:12.006      TCPIP: Closing connection to 13 (Router Dev #0) 0x1063790 m_Socket: -1 <0x47227460>
05   08/17/11 18:54:12.006      Router::RemoveAndDeleteSocket 0x1063790 13 <0x47227460>
05   08/17/11 18:54:12.083      Plugin 22 activated <0x40168000>
08   08/17/11 18:56:51.919      Received Message from -1003 (unknown / ) to 24 (Ingresso / Cucina), type 1 id 192 Command:On, retry none, parameters: <0x47a27460>
05   08/17/11 18:56:51.919      The target device 24 (routed to 20) has not registered. <0x4166d460>
[1313600212] [error] [client 192.168.80.104] GET /favicon.ico: Error 404: Not Found

[1313600212] [error] [client 192.168.80.104] GET /favicon.ico: Error 404: Not Found



rages

  • Guru
  • ****
  • Posts: 182
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #24 on: August 20, 2011, 05:56:39 pm »
HI,
with the help of hari and possy, now my mini installation is up and running.
Thanks to the suggestion of hari I created a little script to launch the DCERouter and EIB:

Code: [Select]
#!/bin/sh

screen -dmS DCERouter -t DCERouter /usr/pluto/bin/DCERouter
screen -dmS EIB -t EIB /usr/pluto/bin/EIB -d 27

exit 0


Emanuele

LA

  • Regular Poster
  • **
  • Posts: 26
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #25 on: September 08, 2011, 09:43:26 pm »
        ° in option sudo apt-get install phpmyadmin, sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin,
           You will need to edit /etc/phpmyadmin/config.inc.php and delete "//" from:
           // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
it is not quite clear what to do here.
If I do:
  • sudo apt-get install phpmyadmin
  • sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin
  • sudo gedit /etc/phpmyadmin/config.inc.php
    and then delete // before $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
is it correct?

I would also suggest to add the following steps
1) install subversion;
2) copy all files from mini/src/lib to usr/lib
and to clarify that:
1) no password should be defined during mysql installation
2) phpmyadmin can be accessed at http://localhost/phpmyadmin
3) Installers_Users should be replaced with Installation_Users
« Last Edit: September 09, 2011, 07:51:20 pm by LA »

LA

  • Regular Poster
  • **
  • Posts: 26
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #26 on: September 09, 2011, 08:32:45 pm »
while starting DCERouter on Ubuntu 11.04 I am getting the following error:
Quote
Connect failed Unknown MySQL server host
'dcerouter' (1) <0xb78026do>
how can I fix that? what should I verify?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Pandaboard and Standalone DCE
« Reply #27 on: September 10, 2011, 08:56:33 am »
add '127.0.0.1 dcerouter' to /etc/hosts or pass the database server name as parameter to dcerouter
rock your home - http://www.agocontrol.com home automation

LA

  • Regular Poster
  • **
  • Posts: 26
    • View Profile
Re: Pandaboard and Standalone DCE
« Reply #28 on: September 10, 2011, 06:20:40 pm »
thanks, hari.
Which port is used by Mini webserver now? I thought that it is 8088, but http://127.0.0.1:8088 shows nothing.
However I am not sure if this is running correctly:
Quote
user@ubuntu:/opt/pluto/bin$ ./DCERouter -h 127.0.0.1
touch: cannot touch `/opt/pluto/var/DCERouter.running': No such file or directory
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 GNU Public License, available at:
http://www.fsf.org/licensing/licenses/gpl.html
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 GNU Public License for more details.
---------------

01   09/10/11 12:15:24.265      Can't open plug-in file './File_Grids_Plugin.so': ./File_Grids_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.266      Cannot load plug-in for device: 3. Be sure the file File_Grids_Plugin exists <0xb78da6d0>
05   09/10/11 12:15:24.347      Loaded plug-in device: 4 master device: 27 -- ./General_Info_Plugin.so <0xb78da6d0>
01   09/10/11 12:15:24.347      Can't open plug-in file './Climate_Plugin.so': ./Climate_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.347      Cannot load plug-in for device: 5. Be sure the file Climate_Plugin exists <0xb78da6d0>
01   09/10/11 12:15:24.348      Can't open plug-in file './Datagrid_Plugin.so': ./Datagrid_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.348      Cannot load plug-in for device: 6. Be sure the file Datagrid_Plugin exists <0xb78da6d0>
01   09/10/11 12:15:24.348      Can't open plug-in file './Infrared_Plugin.so': ./Infrared_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.348      Cannot load plug-in for device: 7. Be sure the file Infrared_Plugin exists <0xb78da6d0>
05   09/10/11 12:15:24.370      Loaded plug-in device: 8 master device: 32 -- ./Lighting_Plugin.so <0xb78da6d0>
01   09/10/11 12:15:24.370      Can't open plug-in file './Orbiter_Plugin.so': ./Orbiter_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.370      Cannot load plug-in for device: 9. Be sure the file Orbiter_Plugin exists <0xb78da6d0>
01   09/10/11 12:15:24.370      Can't open plug-in file './Media_Plugin.so': ./Media_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.370      Cannot load plug-in for device: 10. Be sure the file Media_Plugin exists <0xb78da6d0>
01   09/10/11 12:15:24.370      Can't open plug-in file './Telecom_Plugin.so': ./Telecom_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.370      Cannot load plug-in for device: 11. Be sure the file Telecom_Plugin exists <0xb78da6d0>
01   09/10/11 12:15:24.374      Can't open plug-in file './Event_Plugin.so': ./Event_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.374      Cannot load plug-in for device: 12. Be sure the file Event_Plugin exists <0xb78da6d0>
05   09/10/11 12:15:24.397      Loaded plug-in device: 13 master device: 33 -- ./Security_Plugin.so <0xb78da6d0>
01   09/10/11 12:15:24.397      Can't open plug-in file './Plug_And_Play_Plugin.so': ./Plug_And_Play_Plugin.so: cannot open shared object file: No such file or directory <0xb78da6d0>
01   09/10/11 12:15:24.397      Cannot load plug-in for device: 14. Be sure the file Plug_And_Play_Plugin exists <0xb78da6d0>
Error doing statfs on '/opt/pluto/bin/plugin-inject/'.
05   09/10/11 12:15:24.497      Plugin 4 activated <0xb78da6d0>
05   09/10/11 12:15:24.583      Plugin 8 activated <0xb78da6d0>
01   09/10/11 12:15:24.670      Connect failed Unknown database 'pluto_security' <0xb78da6d0>
01   09/10/11 12:15:24.670      Security Plugin: Cannot connect to database pluto_security! <0xb78da6d0>
05   09/10/11 12:15:24.673      Socket::ReceiveData 0x9134398 failed, bytes left 0 start: 260000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 16 Incoming_Conn Socket 16 127.0.0.1EVENT 13 T=33 Event #13 <0xb28ceb70>
05   09/10/11 12:15:24.673      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 16 127.0.0.1EVENT 13 T=33 Event #13 <0xb28ceb70>
05   09/10/11 12:15:24.673      TCPIP: Closing connection to 13 (Router Dev #0) 0x9134398 m_Socket: -1 <0xb28ceb70>
05   09/10/11 12:15:24.674      Router::RemoveAndDeleteSocket 0x9134398 13 <0xb28ceb70>
05   09/10/11 12:15:24.675      Socket::ReceiveData 0x9152c28 failed, bytes left 0 start: 260000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 18 Incoming_Conn Socket 18 127.0.0.1EVENT 13 T=33 Event #13 <0xb20cdb70>
05   09/10/11 12:15:24.675      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 18 127.0.0.1EVENT 13 T=33 Event #13 <0xb20cdb70>
05   09/10/11 12:15:24.675      TCPIP: Closing connection to 13 (Router Dev #0) 0x9152c28 m_Socket: -1 <0xb20cdb70>
05   09/10/11 12:15:24.675      Router::RemoveAndDeleteSocket 0x9152c28 13 <0xb20cdb70>
05   09/10/11 12:15:24.676      Plugin 13 activated <0xb78da6d0>
01   09/10/11 12:15:24.676      Cannot initialize plug-in for device: 13 <0xb78da6d0>

(has somebody already created wiki pages about Mini compilation, installation and usage? the process looks too complicated, is there any way to automate all these steps?)

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Pandaboard and Standalone DCE
« Reply #29 on: September 11, 2011, 09:44:39 am »
you need to add the rpc plugin in the web admin first..

br Hari
rock your home - http://www.agocontrol.com home automation