LinuxMCE Forums
May 26, 2013, 04:10:44 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: I am going to do my first steps and need help for that  (Read 1426 times)
grind
Veteran
***
Posts: 54


View Profile
« on: April 18, 2010, 06: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
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: April 19, 2010, 04: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
Logged
grind
Veteran
***
Posts: 54


View Profile
« Reply #2 on: April 19, 2010, 07:14:22 pm »

Thank you very much Thom.
Once more a very useful and accurate answer.

grind
Logged
grind
Veteran
***
Posts: 54


View Profile
« Reply #3 on: April 19, 2010, 11:25:03 pm »

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.
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #4 on: April 20, 2010, 12: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. Smiley

-Thom
Logged
Kezza
Veteran
***
Posts: 146


View Profile
« Reply #5 on: April 21, 2010, 02:24:26 am »

Whats wrong with windows dev tools?  Grin

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!



Logged
grind
Veteran
***
Posts: 54


View Profile
« Reply #6 on: April 21, 2010, 08: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
Logged
Kezza
Veteran
***
Posts: 146


View Profile
« Reply #7 on: April 21, 2010, 10: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.
Logged
grind
Veteran
***
Posts: 54


View Profile
« Reply #8 on: April 22, 2010, 08: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?! Wink
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #9 on: April 22, 2010, 08:46:15 pm »

come on fellas, let's get back on point.

Anything else you need to get started?

-Thom
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!