New Posts  All Forums:Forum Nav:

iRule - Page 64

post #1891 of 8396
I've gotten the Lutron Radio RA2 lights integrated into iRule. Or, mostly integrated I should say. Big kudos/thanks to Barry for leading me in the right direction as well as introducing me to a couple of cool tools including his TCPIPExplorer program. I've sent him a copy of my sample Lutron commands and no doubt it will be integrated into his example set.

Here is a sample command set for my setup:
Login= lutron\\x0d\\x0aintegration\\x0d\\x0a
Office-On= #OUTPUT,56,1,100\\x0d\\x0a
Office-Dim= #OUTPUT,56,1,50\\x0d\\x0a
Office-Off= #OUTPUT,56,1,0\\x0d\\x0a
Movie= #DEVICE,55,2,3\\x0d\\x0a
Logout= LOGOUT\\x0d\\x0a

You'll want to look at the Lutron Integration document for all of the commands that you can send to Lutron devices (as well as status you can receive). The easiest way to figure out what your device numbers are is simply to telnet to your repeater and start pressing buttons/switches. The first command echoed back is the button press status. So, for example, if I press button 2 on my living room keypad, I'd see a status message ~DEVICE,55,2,3 (followed by a bazillion other status messages, in my case).

I setup a gateway on port 23 to the IP address of my Lutron repeater. Because of the session issues, and also because the repeater won't allow multiple users logged in via the same login/password combination, what I'd really like to do is login each time, send a command and then logout. So, for me, a high level command (attached to a button) looks like a macro of:
Login, Delay (.05), COMMAND (e.g. Office-Dim), Delay(.05), Logout

There is only one problem with this approach. The logout shuts down the gateway and iRule won't re-setup the gateway until a panel switch or a sleep/unsleep type event. itai - I'm wondering if there is a better way for me to do this?? Or could iRule recognize that the session has shut down and reopen the connection?? As it is, it is workable for me as I only need to do a couple of simple things with my lighting setup. If you wanted to do a great deal of complicated setup the session shutdown problem would need to be addressed differently. An even better approach would be if somehow when a gateway is initialized, there is a setup option that allows the login/password to be sent.

Other comments/suggestions appreciated.

EDIT: Combined login/password on single line. Seems to allow this without a delay in between. Removing the other delays though isn't working for me.
post #1892 of 8396
A while back someone posted a question about press and hold repeating buttons. A number of devices that I have "accelerate" based on holding the button down (AppleTV, Pioneer AV Receiver Volume control). On the volume control, this feature is a "nice to have." On the AppleTV, it is really a requirement since scrolling through long lists of Artists/Albums is painfully slow without acceleration.

Changing the repeat rate to a very small number is not sufficient to simulate this. Turning these buttons into macros with multiple repeating commands doesn't achieve the effect I want.

It sounded like itai had suggested there would be a fix for this in an upcoming release.

Anyone know how to implement this?
Thanks,
arn
post #1893 of 8396
Quote:
Originally Posted by ArieS1204 View Post

I'm talking about the app so I don't think post 7543 is revelant.

Valdhor, so it's not happening anymore?

It still happens but not very often. Mainly when I am testing my interface. I try going to every panel in all different directions so there is not one place I get "Stuck". One out of every 20 or so test sessions, the app will crash - I am back at the home screen. Never in the same spot and never at the same time. If I could get the crashing to be more consistent I would submit a bug report but it is way too intermittent.
post #1894 of 8396
I am having trouble using Irule with a my Pioneer SC-37 under IP control. I've read this entire thread but can't determine what im doing wrong. Im doing the following

1. Using Pioneer 2010 AVR (Network) user device with Data for power on as PO/x0D for example
2. drag the command to a empty button
3. Save the build and then sync on Ipad
4. Set gateway on Ipad to my SC-37 ip and port 8102 (same as shown in IControlAV)
5. Add the Pioneer 2010 AVR (Network) device
6. Save gateway

I get the green light when i go to the Irule panel but the button doesn't work. I haven't tried any of the suggestions of sniffing the network (a little beyond me)

I think it might be the device file, i note that imastercontrol has this in their Sc-37 (and other pioneer AVR) files

power on
UE8N



but not sure if the data is in the same format. it appears different than PO/x0D in Pioneer 2010 AVR (Network) power on data.


Any suggestions would be appreciated.

Thanks
post #1895 of 8396
See prior posts about TCPIP Explorer program on my web site. Several have used it very successfully to generate correct Network device files for the Pioneer receivers
post #1896 of 8396
Quote:
Originally Posted by Someone00 View Post

Does anyone find it weird that the owner of the app picks only questions that he has a good answer for but will not answer other questions? This has been going on for the last 2 to 3 months.

Like?

1. Bug from last update that if you have a 1st gen links do not work correctly?
2. When will 2 way feedback be available.
3. When will android be supported?

All of these questions have been asked multiple times but no answer. Kind of makes you start to wonder if you made the right choice, myself started to kick myself for not choosing command Fusion instead of iRule.

BTW Not going to pick through thread to pick out questions since this has been asked multiple times that a separate forum be made but still nothing has happened.

Not sure where your questions are coming from. This is a public forum where I and others answer questions. If you have a specific question you are always welcome to contact us directly. This thread moves quickly and questions can get missed.

1. Not sure what links bug you are talking about - please clarify.
2. I don't like to discuss release dates until things are ready to go - I hate to give a date and miss it or release software before it is tested and ready. As I said before, two way is in development and is in beta right now.
3. Android development is more complicated to predict timing yet - again I can't give you a reasonable date for the release.
post #1897 of 8396
Quote:
Originally Posted by BudCrow View Post

Hi,

Is there anyway to send commands to a Macintosh computer in the same way you can send MCE commands to a windows box.

I really need a way to restart a Mac from iRule.

Many Thanks

PS-Can iRule handle ssh like it can telnet?

There are a number of ways. It depends on just what you want to do. Basically, you need SOME program running on the Mac that will listen for commands and carry them out.

For the case you've given, you could just enable telnet on you Mac, which will give you remote access to the OSX command shell. However, you should be careful, since Telnet is an insecure protocol. I wouldn't have it enabled on a notebook that you're going to take out of the house but you are probably ok on your home LAN provided you are behind a firewall and/or NAT router provided you don't have snoopy visitors.

SSH would be better, but it seems you've already figured that out?

The command you would use to restart is "shutdown -r now"

You will need to edit /etc/inetd and remove the # in front of the telnet line to enable telnet.
post #1898 of 8396
arnobarno,
Thanks for your replay.

Ya, Barry is a god.
He help me with some devices, too. Seems, that his knowledge and very long years experience in home controlling is boundless.

I don´t have a Pioneer 1020, but I used it in one project.
When I´ll have a possibility test it, I´ll try it and inform about my experience here, in this thread.
post #1899 of 8396
Quote:
Originally Posted by robsano1 View Post

I am having trouble using Irule with a my Pioneer SC-37 under IP control. I've read this entire thread but can't determine what im doing wrong. Im doing the following

1. Using Pioneer 2010 AVR (Network) user device with Data for power on as PO/x0D for example
2. drag the command to a empty button
3. Save the build and then sync on Ipad
4. Set gateway on Ipad to my SC-37 ip and port 8102 (same as shown in IControlAV)
5. Add the Pioneer 2010 AVR (Network) device
6. Save gateway

I get the green light when i go to the Irule panel but the button doesn't work. I haven't tried any of the suggestions of sniffing the network (a little beyond me)

I think it might be the device file, i note that imastercontrol has this in their Sc-37 (and other pioneer AVR) files

power on
UE8N



but not sure if the data is in the same format. it appears different than PO/x0D in Pioneer 2010 AVR (Network) power on data.




Any suggestions would be appreciated.

Thanks

According to the Pioneer document, IP control for the SC-37 is on port 23.

Also, please note that the data for power on should be:
PO\\x0D
not
PO/x0D
post #1900 of 8396
I am not sure what Pioneer is doing, but I would try port 23 and port 8102. I am hoping that Pioneer is recognizing that port 23 is the reserved port for Telnet and open TCP is not Telnet; and they are moving off port 23 onto another Open (not reserved) port e.g. 8102.
post #1901 of 8396
Quote:
Originally Posted by arnobarno View Post

I've gotten the Lutron Radio RA2 lights integrated into iRule. Or, mostly integrated I should say. Big kudos/thanks to Barry for leading me in the right direction as well as introducing me to a couple of cool tools including his TCPIPExplorer program. I've sent him a copy of my sample Lutron commands and no doubt it will be integrated into his example set.

Here is a sample command set for my setup:
Login= lutron\\x0d\\x0aintegration\\x0d\\x0a
Office-On= #OUTPUT,56,1,100\\x0d\\x0a
Office-Dim= #OUTPUT,56,1,50\\x0d\\x0a
Office-Off= #OUTPUT,56,1,0\\x0d\\x0a
Movie= #DEVICE,55,2,3\\x0d\\x0a
Logout= LOGOUT\\x0d\\x0a

You'll want to look at the Lutron Integration document for all of the commands that you can send to Lutron devices (as well as status you can receive). The easiest way to figure out what your device numbers are is simply to telnet to your repeater and start pressing buttons/switches. The first command echoed back is the button press status. So, for example, if I press button 2 on my living room keypad, I'd see a status message ~DEVICE,55,2,3 (followed by a bazillion other status messages, in my case).

I setup a gateway on port 23 to the IP address of my Lutron repeater. Because of the session issues, and also because the repeater won't allow multiple users logged in via the same login/password combination, what I'd really like to do is login each time, send a command and then logout. So, for me, a high level command (attached to a button) looks like a macro of:
Login, Delay (.05), COMMAND (e.g. Office-Dim), Delay(.05), Logout

There is only one problem with this approach. The logout shuts down the gateway and iRule won't re-setup the gateway until a panel switch or a sleep/unsleep type event. itai - I'm wondering if there is a better way for me to do this?? Or could iRule recognize that the session has shut down and reopen the connection?? As it is, it is workable for me as I only need to do a couple of simple things with my lighting setup. If you wanted to do a great deal of complicated setup the session shutdown problem would need to be addressed differently. An even better approach would be if somehow when a gateway is initialized, there is a setup option that allows the login/password to be sent.

Other comments/suggestions appreciated.

EDIT: Combined login/password on single line. Seems to allow this without a delay in between. Removing the other delays though isn't working for me.

I have a question regarding your macro, what is the purpose of the logout command? does it just close the connection so other remotes can access this controller? Does the RadioRA2 controller support concurrent connections?

I asked the developers to sneak in the ability to send a username and password into version 2.0 which will be tested with the RadioRA2 controller.
post #1902 of 8396
Itai,
The only purpose of LOGOUT is to allow other devices to talk to the controller. You can have many concurrent sessions to the controller but each session needs a different username/password. The other purpose, of course, right now is that I don't know the state of the gateway. If I knew that every entry to the lighting room would involve a fresh gateway connection, then I could simply login in the entrance and assume that whenever I was in the lighting room I could just issue commands. This would be ideal for someone unless they wanted lighting controls within other "activities."

Even better, I can easily make the system work for me in two modes:
1) Every command is wrapped with a login/logout. iRule senses that the gateway was shutdown by the receiver and restarts using its normal mechanism.
2) Gateway initialization allows some type of initialization string. I'd leave the session open indefinitely. On each remote (in my case, my wife's iPad and my iPad) would need a separate gateway configuration using a different username/password.

The second case could be problematic for some people but probably not overly so. There is a default account setup for this type of thing on the controller with username=lutron; password=integration. But Lutron also has a nice iPad application and each user of that application needs a username/password. When our system was installed, I had the installer add a set of username/passwords to the system so I had spare logins.

Thanks for your help.
arn
post #1903 of 8396
Quote:
Originally Posted by cubesys View Post

Not sure where your questions are coming from. This is a public forum where I and others answer questions. If you have a specific question you are always welcome to contact us directly. This thread moves quickly and questions can get missed.

1. Not sure what links bug you are talking about - please clarify.
2. I don't like to discuss release dates until things are ready to go - I hate to give a date and miss it or release software before it is tested and ready. As I said before, two way is in development and is in beta right now.
3. Android development is more complicated to predict timing yet - again I can't give you a reasonable date for the release.

1. http://www.avsforum.com/avs-vb/showt...6#post20015986

After upgrading to 1.7.2 and re-syncing(made small changes) the back button is no longer visible from a link to another panel. One other thing is that the panel button also disappears but if you push where button should be it will take you back to panels.

This appears to be a bug introduced in latest version. To get around bug I un-hide the other panels so I can at least get back with out exiting iRule and restart app.

Update - This issue only happens on 1st gen iTouch and iPhone, verified that my setup works correctly on a iPhone 4.

2 & 3 Was not trying to pin you down on exact dates but was looking more for a road map of iRule.
post #1904 of 8396
Quote:
Originally Posted by arnobarno View Post

Itai,
The only purpose of LOGOUT is to allow other devices to talk to the controller. You can have many concurrent sessions to the controller but each session needs a different username/password. The other purpose, of course, right now is that I don't know the state of the gateway. If I knew that every entry to the lighting room would involve a fresh gateway connection, then I could simply login in the entrance and assume that whenever I was in the lighting room I could just issue commands. This would be ideal for someone unless they wanted lighting controls within other "activities."

Even better, I can easily make the system work for me in two modes:
1) Every command is wrapped with a login/logout. iRule senses that the gateway was shutdown by the receiver and restarts using its normal mechanism.
2) Gateway initialization allows some type of initialization string. I'd leave the session open indefinitely. On each remote (in my case, my wife's iPad and my iPad) would need a separate gateway configuration using a different username/password.

The second case could be problematic for some people but probably not overly so. There is a default account setup for this type of thing on the controller with username=lutron; password=integration. But Lutron also has a nice iPad application and each user of that application needs a username/password. When our system was installed, I had the installer add a set of username/passwords to the system so I had spare logins.

Thanks for your help.
arn

The only concern I have is that for feedback you will not know when changes occur in the system since you logout of the controller.
post #1905 of 8396
Agreed. Once feedback is implemented, it is best to have login as something that happens when the gateway is initialized (a string to send after the connection is made would serve my purposes).
post #1906 of 8396
Quote:
Originally Posted by Someone00 View Post


1. http://www.avsforum.com/avs-vb/showt...6#post20015986

After upgrading to 1.7.2 and re-syncing(made small changes) the back button is no longer visible from a link to another panel. One other thing is that the panel button also disappears but if you push where button should be it will take you back to panels.

This appears to be a bug introduced in latest version. To get around bug I un-hide the other panels so I can at least get back with out exiting iRule and restart app.

Update - This issue only happens on 1st gen iTouch and iPhone, verified that my setup works correctly on a iPhone 4.

2 & 3 Was not trying to pin you down on exact dates but was looking more for a road map of iRule.

Can you please send a backup of your setup so we can reproduce and resolve the issue.
post #1907 of 8396
Some genius invented a function for people like you, Someone00, it is amazing and called SEARCH! Use it. This is a DIY type of an app so spell out the acronym and magic will happen.

Alex


Quote:
Originally Posted by Someone00 View Post

Does anyone find it weird that the owner of the app picks only questions that he has a good answer for but will not answer other questions? This has been going on for the last 2 to 3 months.

Like?

1. Bug from last update that if you have a 1st gen links do not work correctly?
2. When will 2 way feedback be available.
3. When will android be supported?

All of these questions have been asked multiple times but no answer. Kind of makes you start to wonder if you made the right choice, myself started to kick myself for not choosing command Fusion instead of iRule.

BTW Not going to pick through thread to pick out questions since this has been asked multiple times that a separate forum be made but still nothing has happened.
post #1908 of 8396
Thanks Itai, I found my problem, it was using the HTTP gateway instead of Network gateway. Its taking commands now.
post #1909 of 8396
Quote:
Originally Posted by Someone00 View Post

2 & 3 Was not trying to pin you down on exact dates but was looking more for a road map of iRule.

As for the roadmap:
Here are the features that we are targetting for version 2.0, this is not a complete list.
  1. two way feedback - You can display text from AV devices as.
  2. Feedback substitution - substitute a list of possible commands. For example: instead of displaying SLI03 which is video input #3 on the onkyo you can have the user define what is displayed.
  3. Feedback math - this is mainly for displaying the volume or scale of a number from a lighting system. We can take the incoming numbers in many different formats (ASCII, hexadecimal, binary) and convert them to the proper format including an optional graphical slider.
  4. Feedback - drag and drop an existing feedback into the interface - simple.
  5. alternating commands - this is for devices that require a toggle between two commands such as a discrete mute off/on. Every time you press the command the next command in the sequence will be sent.
  6. Entrances - Entrances have been modified to include the ability to repeat them in the background. This is useful for two main reasons. First, if you have a device that likes to disconnect after 40 seconds of inactivity (you know who you are Yamaha) you can apply a repeating command in the background that will keep your connection alive and overcome this limitation. Second, devices that don't automatically send back feedback can be queried using the same function.
  7. Device import improvement - You will be able to see append an updated device to yours. The idea is that if new commands have been added to a database command, you do not need to replace your existing device and remap all commands.
  8. Telnet login support - I asked the devices that require the telnet login such as the RadioRA2 controller be supported in network Gateways.

The current list of items is almost completely done (I am still waiting on the telnet and device import changes) and in testing. At this point I am looking to close the features for this release. As always there are a ton of other capabilities that are in development and we want to release but we must draw the line somewhere. I will be happy to discuss what comes after 2.0 in a little while, right now I am just focused on getting 2.0 complete and out the door so I don't want to confuse anyone with features that are targetted at later releases.

A few important notes about 2.0
With the release of iRule version 2.0 there will be another product. iRule pro and the existing product. For users that do not want/need the higher end functionality such as feedback we will continue to provide the entry level solution at the same price. The iRule Pro is targeted at the installers and AVS crowd. As you can imagine, the pro will have a higher price (I am not yet ready to announce so please don't ask yet).

As I have stated in the past, I personally feel a connection to this forum (after more than 8 years). I want to extend a thank you to forum members and our early customers with a free upgrade to the iRule Pro.
post #1910 of 8396
Quote:
Originally Posted by cubesys View Post


As I have stated in the past, I personally feel a connection to this forum (after more than 8 years). I want to extend a thank you to forum members and our early customers with a free upgrade to the iRule Pro.

Your welcome, and when 2.0 is released I'll gladly take you up on that offer. Keep up the great work.
post #1911 of 8396
Will there be an upgrade fee associated with "Pro" for existing users?
post #1912 of 8396
Quote:
Originally Posted by xtoyz View Post

Will there be an upgrade fee associated with "Pro" for existing users?

And it only took 2 posts to start the questioning The answer was stated pretty clear and also had the disclaimer that he was not ready to release pricing yet.

This will be the next thing that clogs up the forum for the foreseeable future. ;(
post #1913 of 8396
Did I ask pricing? No. As a matter of fact what I asked is no more specific than stating there will be two tiers of pricing. What I'd like to know is if the my money I just spent will get me the cutting edge technology from here forward or if I again need to spend more money.

Why does it seem like simple questions are met with such hostility?
post #1914 of 8396
Quote:
Originally Posted by xtoyz View Post

Did I ask pricing? No. As a matter of fact what I asked is no more specific than stating there will be two tiers of pricing. What I'd like to know is if the my money I just spent will get me the cutting edge technology from here forward or if I again need to spend more money.

Why does it seem like simple questions are met with such hostility?

The issue is, you original question was answered in Itai's post. Re-read it, and you will see.

I think lots of people get tired of the same questions getting asked without searching, looking or reading.
post #1915 of 8396
Come on folks, a little patients there will always be someone who will ask the obvious and that's what we are here for, right?

I am sure we were all thinking about the same thing.

Rew
post #1916 of 8396
I guess I overlooked it. My bad....I'm only human.
post #1917 of 8396
Quote:
Originally Posted by osupike99 View Post

Some genius invented a function for people like you, Someone00, it is amazing and called SEARCH! Use it. This is a DIY type of an app so spell out the acronym and magic will happen.

Alex

Are you trying to make a point because it is not clear.
post #1918 of 8396
Quote:
Originally Posted by cubesys View Post

Can you please send a backup of your setup so we can reproduce and resolve the issue.

Sent config file to customer support.
post #1919 of 8396
Quote:
Originally Posted by cubesys View Post

As for the roadmap:
Here are the features that we are targetting for version 2.0, this is not a complete list.
  1. two way feedback - You can display text from AV devices as.
  2. Feedback substitution - substitute a list of possible commands. For example: instead of displaying SLI03 which is video input #3 on the onkyo you can have the user define what is displayed.
  3. Feedback math - this is mainly for displaying the volume or scale of a number from a lighting system. We can take the incoming numbers in many different formats (ASCII, hexadecimal, binary) and convert them to the proper format including an optional graphical slider.
  4. Feedback - drag and drop an existing feedback into the interface - simple.
  5. alternating commands - this is for devices that require a toggle between two commands such as a discrete mute off/on. Every time you press the command the next command in the sequence will be sent.
  6. Entrances - Entrances have been modified to include the ability to repeat them in the background. This is useful for two main reasons. First, if you have a device that likes to disconnect after 40 seconds of inactivity (you know who you are Yamaha) you can apply a repeating command in the background that will keep your connection alive and overcome this limitation. Second, devices that don't automatically send back feedback can be queried using the same function.
  7. Device import improvement - You will be able to see append an updated device to yours. The idea is that if new commands have been added to a database command, you do not need to replace your existing device and remap all commands.
  8. Telnet login support - I asked the devices that require the telnet login such as the RadioRA2 controller be supported in network Gateways.

The current list of items is almost completely done (I am still waiting on the telnet and device import changes) and in testing. At this point I am looking to close the features for this release. As always there are a ton of other capabilities that are in development and we want to release but we must draw the line somewhere. I will be happy to discuss what comes after 2.0 in a little while, right now I am just focused on getting 2.0 complete and out the door so I don't want to confuse anyone with features that are targetted at later releases.

A few important notes about 2.0
With the release of iRule version 2.0 there will be another product. iRule pro and the existing product. For users that do not want/need the higher end functionality such as feedback we will continue to provide the entry level solution at the same price. The iRule Pro is targeted at the installers and AVS crowd. As you can imagine, the pro will have a higher price (I am not yet ready to announce so please don't ask yet).

As I have stated in the past, I personally feel a connection to this forum (after more than 8 years). I want to extend a thank you to forum members and our early customers with a free upgrade to the iRule Pro.

Thank you Itai for taking the time to update everyone. As a early adopter of iRule will also be one for the Pro version.
post #1920 of 8396
For anyone interested in using Denon I found this look and it could be useful.

http://www.d-mpro.com/users/getdownl...DownloadID=503
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Remote Control Area