Author Topic: integrate another daemon to read the bus?  (Read 4881 times)

guigolum

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
integrate another daemon to read the bus?
« on: June 12, 2008, 05:19:29 pm »
hi, i have been reported a problem i am supposed to solve:(i am studier,not professional, but trying to get some xp)

i think i am supposed to solve this one:
http://wiki.linuxmce.org/index.php/EIB#Can.27t_read_from_the_bus

according to him, i can have to ways to do so:
1- either modifying what exists already(linked me to http://svn.linuxmce.org/pluto/branches/charon-merge/src/EIB/ ) and make it work
2- or use the http://www.auto.tuwien.ac.at/%7Emkoegler/index.php/bcusdk project to get a fully functional daemon

as anyone else ever got this problem, which is not in the 710 known issues ( http://wiki.linuxmce.org/index.php/KnownIssues_0710 )
may one help me to:
- understand where in the sources is supposed to be the function implemented?(bus reading)
- give me some tips to how to make a wrapper for the daemon?(i mean, what is the interface of the one now?)
- give me some tips they think would be useful for me. i remember i just got my degree from university, so i really am not used with professional programming. but i have much time to learn(it's my goal actually)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: integrate another daemon to read the bus?
« Reply #1 on: June 12, 2008, 08:20:03 pm »
Basically, if you're interested, check out the source code from our SVN tree, and look at src/EIB

http://svn.linuxmce.org/pluto/branches/charon-merge/

the EIB driver contains our current EIB driver implementation. This is a DCE device, just about everything in LinuxMCE is a DCE device. It accepts commands, returns responses..and when a new device template is defined in the web admin, if C++ is specified as the language, DCEGen can be used to generate a skeleton with all the commands and events you defined in the device template... you won't have to do that here because the code already exists.

Have a look at that, as well as other bits of code around it, to get an idea of how the system works, and as always we are in the IRC channel in case you want to talk.

-Thom

guigolum

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
Re: integrate another daemon to read the bus?
« Reply #2 on: June 12, 2008, 11:16:00 pm »
thanx alot.

i already downloaded the (full...)svn tree.

gonna see that tomorrow.(and i think i gonna have some questions)

basically, i have go to the web interface, add a device, implement the fonctions in the skeletton, and compile the driver i just made?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: integrate another daemon to read the bus?
« Reply #3 on: June 13, 2008, 12:20:24 am »
correct :-) isn't that awesome? :-D

-Thom

avajon

  • Veteran
  • ***
  • Posts: 120
    • View Profile
Re: integrate another daemon to read the bus?
« Reply #4 on: June 13, 2008, 10:20:05 am »
hi, i have been reported a problem i am supposed to solve:(i am studier,not professional, but trying to get some xp)

i think i am supposed to solve this one:
http://wiki.linuxmce.org/index.php/EIB#Can.27t_read_from_the_bus

according to him, i can have to ways to do so:
1- either modifying what exists already(linked me to http://svn.linuxmce.org/pluto/branches/charon-merge/src/EIB/ ) and make it work
2- or use the http://www.auto.tuwien.ac.at/%7Emkoegler/index.php/bcusdk project to get a fully functional daemon


hi,

i hope you get it. :) that's the only thing i'll need for a perfect system. :)
if you need help, just ask.

thanks
avajon

guigolum

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
Re: integrate another daemon to read the bus?
« Reply #5 on: June 13, 2008, 03:13:19 pm »
hum, my boss showed me what was the not implemented part of the code:

in
http://svn.linuxmce.org/pluto/branches/charon-merge/src/EIB/
the file
EIB.cpp
ligne 704:
Quote
void EIB::CMD_EIB_Read(string sAddress,string &sCMD_Result,Message *pMessage)
//<-dceag-c275-e->
{
}
//<-dceag-c350-b->

so,i am gonna get some doc to implement the bus reading. plus several other feature to add. and gonna make another thread if i have questions.