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

Main Menu

Question for the Community re: sending DCE Commands to SELF in PLCBUS

Started by ddamron, January 26, 2008, 06:04:46 PM

Previous topic - Next topic

ddamron

The PLCBUS is coming along nicely.

I have a question to pose to the community.  A scenario exists where I need to send myself a command.
I would like to serialize the command.  Now, Because I'm sending the command to ME, it really doesn't mattter what devdata I stick the serial number in (as long as it's not used by the command itself)

Question is:  Any preference on a devdata ID I should use for my serial number?

Here's the command, with example shown:

Ruby:
mycmd = Command.new(self, self, 1, 1, 184) #184 is the command in question - SetLevel
mycmd.params_[76] = '50' # Level = 50
mycmd.params_[999] = serialnumber  # 999 is arbitrary number

Then when I receive the command, I can check params_[999] for serialnumber.

Here's the example in MessageSend:

./MessageSend dcerouter 117 117 1 184 76 20 999 12345
where 117 is my device ID

Any thoughts?

Thanks,

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

gdorchie


ddamron

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.