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.


Messages - kinman

Pages: 1 [2]
16
Developers / Re: Questions on ZWave source code
« on: December 24, 2007, 08:50:11 am »
Hi Dan/Pete, I am interesting in ZWave using GSD: LinuxMCE-1.1-SRC/src/Generic_Serial_Device/Embedded Devices/*/Ruby/ do you mean we can just work on *.rb no need *.cpp/*.h? Because I am familiar on Perl and afraid of thousand lines of C codes.

cheers/kin



I'm just putting the finishing touches on my Insteon PLM interface, completely done in GSD/Ruby.

Ruby has it's limitations, as I found out, but a good programmer will find a way around them..

I'd have to say, the most limiting factor of Ruby is it's single thread..  That's a pain... but still workable..

This is my first experience in Ruby... so it's been a long haul, trying to learn the syntax, command structure, etc..

I must say, now that I know more about it, I'll be using it more often...  It's got HUGE potential..

I would say it is possible to implement ZWave in Ruby... heck, I did Insteon!

That said, I guess I should look into exactly what's required.. to tell you the truth, I haven't looked at ZWave's command structure very much..

I'm assuming it's probably similar to Insteon..

Good Luck, and Have Fun!

Dan


Do you think the GSD can be implemented in Perl? Both are Gem  :D
If I try to implement the ZWave using GSD, do I need the devkit document? Is there any other way to learn the interface commands?
Can I take a look on your Insteon PLM interface? I can find three devices under LinuxMCE-1.1-SRC: 1767 DSC Power5020 Serial, 1781 Apex Destiny 6100, Denon-AVCA1SRA.

17
Developers / Re: Questions on ZWave source code
« on: December 24, 2007, 08:33:55 am »
The Zwave interface device should be able to receive commands from other transmitters.  All it should take is some coding to process the commands.  Does this answer your question?
Oh I see. All are about coding.
Because I find it contradictory. There are polling codes to get states from switch. But the switch itself send commands to the computer interface actively. It sounds different software implementation.

18
Developers / Re: Questions on ZWave source code
« on: December 24, 2007, 04:42:55 am »
ZWave computer interface fires only PIR sensor commands.
Computer <--- Interface <--- PIR

The light states can be polled passively.
Computer ---> Interface ---> Switch/Dimmer (ZRW/ZDW)

Transmitter controls other devices, so the computer interface should be able to receive those signals.
Transmitter (ZTW) ---> Plug-in module (ZRP)

Do you think it is a computer interface firmware issue it cannot fires transmitter or remote control commands? or it is a design issue?

19
Developers / Re: Questions on ZWave source code
« on: December 24, 2007, 04:14:38 am »
Hi Dan/Pete, I am interesting in ZWave using GSD: LinuxMCE-1.1-SRC/src/Generic_Serial_Device/Embedded Devices/*/Ruby/ do you mean we can just work on *.rb no need *.cpp/*.h? Because I am familiar on Perl and afraid of thousand lines of C codes.

cheers/kin


20
Developers / Re: Questions on ZWave source code
« on: December 22, 2007, 10:38:23 am »
I find Pete is the new author :D

// Author: PeteK <pete.k@plutohome.com>, (C) 2007

21
Developers / Re: Questions on ZWave source code
« on: December 21, 2007, 06:55:33 pm »
I got it Pete! I find those commercial software for ZWave are lack of flexibility. MrHouse has limited support for ZWave. It seems the ultimate solution is Pluto/LinuxMCE. Instead of looking for document and source code, I better learn how to program on the DCE platform.

22
Developers / Re: Questions on ZWave source code
« on: December 21, 2007, 10:09:43 am »
Thank you Pete. It seems the programming document for ZWave interface is only for hardware and software vendors internal use. Otherwise I have to reverse engineering the LinuxMCE-1.1-SRC/src/ZWave.

Can I say that asynchronous mode is multi-thread? synchronous mode is single-thread and the commands/responses are sent/received sequencially?

Can I treat the ZWave computer interface as a Hayes modem? Send "AT" command and wait for "OK". Except that PIR events will be received without sending command.

23
Developers / Questions on ZWave source code
« on: December 21, 2007, 06:18:08 am »
Dear all, I have looked at the ZWave source code (LinuxMCE-1.1-SRC/src/ZWave) and I have some questions:
- Is there any document such as command reference or programming guide for the ZWave computer interface?
- What is the difference between asynchronize and synchronize mode?
- In my understanding, the ZWave computer interface seems to be a passive device, the software send a command to and then wait for response from it. How the software receive PIR events/triggers from the computer interface?

cheers /kin

Pages: 1 [2]