Author Topic: I am going to do my first steps and need help for that  (Read 1692 times)

grind

  • Veteran
  • ***
  • Posts: 54
    • View Profile
I am going to do my first steps and need help for that
« on: April 18, 2010, 07:14:32 pm »
Hello,
now i am getting it on.

For my first project i want to control a RCM250 Enocean Receiver using my PTM200 (already supported) rocker switch.
I already read parts of the "Programmer's Guide" and i think i should start reading the code of other implementations like Z-Wave.
But how to know which source-files belong to template 1754 ?

Or does anybody have other suggestions on how to start?

Regards,
Grind

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5499
  • DOES work for LinuxMCE.
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #1 on: April 19, 2010, 05:32:29 am »
you can tell, by looking at the package definition. If you look in the device template, you'll see that there is a package called Pluto ZWave.

If you go to advanced > software > packages, you can search on page for Pluto ZWave, and see two packages, one for ZWave and one for ZWave source.

by looking at the package definition for ZWave source, you can see that it's copying things from src/ZWave in the source tree.

Right now, we are building from the LinuxMCE-0810 branch:
http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/

so, looking in src/ZWave, will get you all the files related to the driver. There are a few in Gen_Devices relating to ZWave, but these are abstract class definitions required by DCE.

-Thom

grind

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #2 on: April 19, 2010, 08:14:22 pm »
Thank you very much Thom.
Once more a very useful and accurate answer.

grind

grind

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #3 on: April 20, 2010, 12:25:03 am »
omg... Why is all this Z-Wave stuff written in Visual C?
That doesn't really fit as this is an Opensource Linux distro and the modules are written using a closed source Windows tool.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5499
  • DOES work for LinuxMCE.
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #4 on: April 20, 2010, 01:32:18 am »
hmm.

*thwap-you-on-the-head-hard*

Some of the original Pluto developers preferred to work in Windows development tools, therefore, the DCE Generator tools also automatically produce Visual C++ project files.

You'll notice the Makefiles are there too, genius.

So stop complaining, and go forward. :)

-Thom

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #5 on: April 21, 2010, 03:24:26 am »
Whats wrong with windows dev tools?  ;D

I use Visual Studio and learning C#, .net at the moment and I'm hoping I will be able to carry over that knowledge to start working on things here!




grind

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #6 on: April 21, 2010, 09:32:01 pm »
I recognized that there are makefiles too. I was just wondering...

Microsoft tools maybe usefull to someone but i simply don't like them.
Why should i pay for software if i can get another one for free. And all the opensource toold are most of the time even better!
I don't like C# that much because it's based on closed source libs and is not portable to other OSes.
Thats why i've started to lean C++.

Regards,
Grind

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #7 on: April 21, 2010, 11:32:33 pm »
Don't get me wrong I'm all for open source but when I first started on a basic project VS2008 Express is free and did what I wanted easily with good tutorials. This has been a benefit as some of the web work I'm doing now requires C# .net which is probably the main reason I have stuck with it.

C# is closed source but I plan to also get Mono up and running which is an open source implementation of .net and C# with tools to use in Visual Studio. This allows applications to be converted/built to run on anything from Windows, Mac, Linux, ARM, PS3, iphone etc etc

I'm not entirely sure where that leaves me in being able to pickup code in this project and actually provide something useful but hopefully I can help out in some way once I get a better grip on things.

grind

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #8 on: April 22, 2010, 09:00:24 pm »
I don't wanted to affront you... For you this might be the right choice for me it's not.
What a horrible world would it be if everybody is doing the same things?! ;)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5499
  • DOES work for LinuxMCE.
    • View Profile
Re: I am going to do my first steps and need help for that
« Reply #9 on: April 22, 2010, 09:46:15 pm »
come on fellas, let's get back on point.

Anything else you need to get started?

-Thom