Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby code to control Russound CAV6.6

Reply
Thread Tools

Ruby code to control Russound CAV6.6

 
 
Phrogz
Guest
Posts: n/a
 
      07-17-2006
I'm (finally) starting to set up my home for automated electronics. The
first bit I'm working on will be for the Russound CAV6.6, though
(looking at their various API documents) it should be largely
applicable to various RS-232-controlled devices from Russound.

Is anyone interested in controlling this product, or other Russound
products, using Ruby code? If so, please let me know. I'm trying to
decide between hacking together what I need versus writing a flexible
library that others may use.

 
Reply With Quote
 
 
 
 
Suraj N. Kurapati
Guest
Posts: n/a
 
      07-17-2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phrogz wrote:
> I'm (finally) starting to set up my home for automated electronics. The
> first bit I'm working on will be for the Russound CAV6.6, though
> (looking at their various API documents) it should be largely
> applicable to various RS-232-controlled devices from Russound.


Last time I checked, there wasn't any (usable) serial-port extension
for Ruby. Thus, how are you planning to have Ruby communicate via
RS-232?

> Is anyone interested in controlling this product, or other Russound
> products, using Ruby code? If so, please let me know. I'm trying to
> decide between hacking together what I need versus writing a flexible
> library that others may use.


The library, it seems to me, would simply be an extension/relative
of the IO class which keeps state information about the particular
Russound device being controlled, correct?

If so, you'd probably hacking in this direction anyway, so get
something working first and then integrate your work into a library.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEu/otmV9O7RYnKMcRAmeOAKCzANYCF6P694YXnIF0PNxvitv7FwCg mwsp
g/R3rVywteJLjao6yoSOgNM=
=mjk4
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
 
Phrogz
Guest
Posts: n/a
 
      07-18-2006
Suraj N. Kurapati wrote:
> Last time I checked, there wasn't any (usable) serial-port extension
> for Ruby. Thus, how are you planning to have Ruby communicate via
> RS-232?


Like this:
http://groups.google.com/group/comp....72a79dd9760dc1


> The library, it seems to me, would simply be an extension/relative
> of the IO class which keeps state information about the particular
> Russound device being controlled, correct?


Well, the Russound API has specific packet formats it uses. In addition
to wrapping up common commands (volume=, zone_source=, allon, alloff),
the library does stuff like forming the packets for you, which includes
calculating the checksum according to russound's algorithm, inverting
high-order bytes and injecting special markers, and so on.

It will use a derivative of IO for the actual communication, but
there's some higher-level niceties planned and in the works.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to get C# code/algorithm translated to Ruby code Kamaljeet Saini Ruby 0 01-20-2009 11:28 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb ASP .Net 1 03-29-2006 01:00 AM
my ruby code won't go as fast as my perl code Dave Burt Ruby 11 07-16-2004 02:35 PM
Fire Code behind code AND Javascript code associated to a Button Click Event =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= ASP .Net 4 02-11-2004 07:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57