or Connect
New Posts  All Forums:Forum Nav:

iRule - Page 190

post #5671 of 9744
Quote:
Originally Posted by t3watts3 View Post

I'm really considering the iRule solution but I'm trying to determine how many Gateway devices I need. Is it also possible to control Some devices without the purchase of a Gateway?

Media room devices:
1 Verizon Fios STB (Motorola)
1 Yahmaha Receiver
1 PS3
1 Apple TV
1 HTPC

Living room/patio/master bedroom

3 Verizon Fios STB's (Motorola)
1 PS3
1 Apple TV
1 Denon Receiver

You only need gateways to convert from IP to IR or RS232. Anything that is connected to your network can typically be controlled without a gateway, e.g. your htpc, your ps3, appleTVs and possibly your receivers, if they are network enabled. Don't know your STBs but suspect they would have to be IR controlled. For IR you typically need one iTach gateway for each room/location. Each has three emitter ports and using tripple emitters you can control 9 devices with one iTach. Or any number if you use a blaster and have free line of sight to the devices.
post #5672 of 9744
Quote:
Originally Posted by Axel View Post

So one would need to use for each undesired substring/character (1) asterisk, i.e.for 25 substrings/characters one would need to use 25 "*"?
____
Axel

If you can provide an example of the feedback that you receive and an example of what you would like iRule to display it would help alot.
post #5673 of 9744
Quote:
Originally Posted by Jrussell26 View Post

Does anyone know if you can use wild cards in iRule feedback so that you can ignore the first part of the returned string (which is not static) and extract only certain parts of the string?

For example my amp returns a feedback about the current input signal in a string made up of 25 sub strings and I only want to interrogate some of these sub-strings without having to set up hundreds of code values in the feedback rules.

Quote:
Originally Posted by moreilly View Post

You can use the prefix and suffix for this. Wild card is an asterisk "*". Hopefully this helps.

Quote:
Originally Posted by Axel View Post

So one would need to use for each undesired substring/character (1) asterisk, i.e.for 25 substrings/characters one would need to use 25 "*"?
____
Axel

I just tried it, but it did not work.

moreilly, have you actually tried it or was this a guess?

I would need this feature for a few of my devices, too, However, I had heard rumors that it had not been implemented yet.
____
Axel
post #5674 of 9744
Quote:
Originally Posted by mickelin View Post

You only need gateways to convert from IP to IR or RS232. Anything that is connected to your network can typically be controlled without a gateway, e.g. your htpc, your ps3, appleTVs and possibly your receivers, if they are network enabled. Don't know your STBs but suspect they would have to be IR controlled. For IR you typically need one iTach gateway for each room/location. Each has three emitter ports and using tripple emitters you can control 9 devices with one iTach. Or any number if you use a blaster and have free line of sight to the devices.

mickelin, does that mean, when one has all equipment attached to ip, it only takes the iRule app to be able to control it? Have read a bit at the iRule Site, but haven't seen any "good" how to guide....
Kindly
Jan
post #5675 of 9744
Quote:
Originally Posted by runnernorth View Post

mickelin, does that mean, when one has all equipment attached to ip, it only takes the iRule app to be able to control it? Have read a bit at the iRule Site, but haven't seen any "good" how to guide....
Kindly
Jan

Correct! IP devices can be controlled directly.
____
Axel
post #5676 of 9744
Quote:
Originally Posted by Axel View Post


Correct! IP devices can be controlled directly.
____
Axel

Thx Axel, that's doing things a bit cheaper for me :-)
The only thing in my setup without ip, is my Velodyne DD12...
Kindly
Jan
post #5677 of 9744
Quote:
Originally Posted by Axel View Post

I just tried it, but it did not work.

moreilly, have you actually tried it or was this a guess?

I would need this feature for a few of my devices, too, However, I had heard rumors that it had not been implemented yet.
____
Axel


Are you looking for a textual response or numeric?
Is any part of the response static?
The asterisk "wildcards" I use are for numeric feedback for a lighting controller and it looks like;

RandomRandomRandomRandomRandomRandom,
RandomRandom 12 C6 17 RandomRandomRandom,
RandomRandomRandomRandomRandomRandom,
RandomRandom Value="128" RandomRandom,
RandomRandomRandomRandomRandomRandom,

Where 12 C6 17 is a device address and Value="128" is the on level.
My prefix for this is *12 C6 17*Value="
My suffix is "*

This takes whatever the value is between the prefix and suffix.
After this I use the formula (x/255)*100. By using the "x", it will substitute in the value that you receive from between the prefix and suffix. In my case it is a number range between 0-255 so by applying the formula above I receive a percent output.

I'm not sure this is the best way to do this or if this will help you but it works for me.
It would definitely help to see an example of the feedback you are receiving and what you would like iRule to display.
-Marc
post #5678 of 9744
Quote:
Originally Posted by moreilly View Post

Are you looking for a textual response or numeric?
Is any part of the response static?
The asterisk "wildcards" I use are for numeric feedback for a lighting controller and it looks like;

RandomRandomRandomRandomRandomRandom,
RandomRandom 12 C6 17 RandomRandomRandom,
RandomRandomRandomRandomRandomRandom,
RandomRandom Value="128" RandomRandom,
RandomRandomRandomRandomRandomRandom,

Where 12 C6 17 is a device address and Value="128" is the on level.
My prefix for this is *12 C6 17*Value="
My suffix is "*

This takes whatever the value is between the prefix and suffix.
After this I use the formula (x/255)*100. By using the "x", it will substitute in the value that you receive from between the prefix and suffix. In my case it is a number range between 0-255 so by applying the formula above I receive a percent output.

I'm not sure this is the best way to do this or if this will help you but it works for me.
It would definitely help to see an example of the feedback you are receiving and what you would like iRule to display.
-Marc

Got it now, Marc;

I believe you are seeing the same behavior as I. I believe you do not need the part before 'Value='. I think iRule only uses 'Value=' as your prefix. (You may have to add a single '*', though). Could you try just for giggles?

The problem is if you do not have a static prefix. For that I would like to go by position in the feedback.
____
Axel
post #5679 of 9744
Quote:
Originally Posted by mickelin View Post

You only need gateways to convert from IP to IR or RS232. Anything that is connected to your network can typically be controlled without a gateway, e.g. your htpc, your ps3, appleTVs and possibly your receivers, if they are network enabled. Don't know your STBs but suspect they would have to be IR controlled. For IR you typically need one iTach gateway for each room/location. Each has three emitter ports and using tripple emitters you can control 9 devices with one iTach. Or any number if you use a blaster and have free line of sight to the devices.


Unfortunately your comment is not entirely correct. PS3 cannot be controlled by anyone via IP and ATV2 cannot be controlled via IP either.
99% of TVs cannot be controlled via IP. Pretty much all cable boxes are not IP controllable. DirecTV and TiVo are. Most newer mainstream AVRs are IP controllable. My 2008 samsung TV has Ethernet port but it is not IP controllable by a long shot. So saying that everything that has an Ethernet port is IP controllable is false.


Alex
post #5680 of 9744
Quote:
Originally Posted by mickelin View Post

You only need gateways to convert from IP to IR or RS232. Anything that is connected to your network can typically be controlled without a gateway, e.g. your htpc, your ps3, appleTVs and possibly your receivers, if they are network enabled. Don't know your STBs but suspect they would have to be IR controlled. For IR you typically need one iTach gateway for each room/location. Each has three emitter ports and using tripple emitters you can control 9 devices with one iTach. Or any number if you use a blaster and have free line of sight to the devices.

Thanks for the reply. The set top boxes are networked TCP/IP (Moca) and Verizon has an app that controls these devices over wifi so maybe there's a chance
post #5681 of 9744
Quote:
Originally Posted by osupike99 View Post


Unfortunately your comment is not entirely correct. PS3 cannot be controlled by anyone via IP and ATV2 cannot be controlled via IP either.

Alex

Hmm, what does it take to control my ps3 then, do you know that osupike99?
Kindly
Jan
post #5682 of 9744
Quote:
Originally Posted by osupike99 View Post

Unfortunately your comment is not entirely correct. PS3 cannot be controlled by anyone via IP and ATV2 cannot be controlled via IP either.
99% of TVs cannot be controlled via IP. Pretty much all cable boxes are not IP controllable. DirecTV and TiVo are. Most newer mainstream AVRs are IP controllable. My 2008 samsung TV has Ethernet port but it is not IP controllable by a long shot. So saying that everything that has an Ethernet port is IP controllable is false.


Alex

Alex, does the PS3 and ATV2 require a gateway with IR? I have a IR to Bluetooth module on the PS3 but not sure if that can be leverages with iRule
post #5683 of 9744
Quote:
Originally Posted by t3watts3 View Post

Alex, does the PS3 and ATV2 require a gateway with IR? I have a IR to Bluetooth module on the PS3 but not sure if that can be leverages with iRule

An IR to bluetooth module is what is required, as well as a itach device. There are several that work and the devices are already in the irule builder. Schmartz, Logitech and WB Electronics versions are all in use by various users here.

irule-->itach-->ir to bluetooth-->ps3
post #5684 of 9744
Quote:
Originally Posted by Axel View Post

Got it now, Marc;

I believe you are seeing the same behavior as I. I believe you do not need the part before 'Value='. I think iRule only uses 'Value=' as your prefix. (You may have to add a single '*', though). Could you try just for giggles?

The problem is if you do not have a static prefix. For that I would like to go by position in the feedback.
____
Axel

The device address is for one of my 6 light switches that each output a virtually identical response other than the address, so in order to differentiate the feedback it needs the address in the prefix. The "*" in essence tells iRule to ignore whatever it sees until it sees my address, then it ignores the info in the middle until it sees Value=", at which point it will take the numeric value and then with the prefix being "* it will see the quotation mark immediately after the value and ignore everything afterwards.
post #5685 of 9744
Are there some sharp tvs that are controllable with ip and with full list of discrete commands including powers on and off?
post #5686 of 9744
Quote:
Originally Posted by lloydus View Post

Are there some sharp tvs that are controllable with ip and with full list of discrete commands including powers on and off?

Yes indeed. Sharp quattron 800 series and sharp elite. The still only allow one connection at a time.


Alex
post #5687 of 9744
Quote:
Originally Posted by t3watts3 View Post


Alex, does the PS3 and ATV2 require a gateway with IR? I have a IR to Bluetooth module on the PS3 but not sure if that can be leverages with iRule

Yes. You will need ir global cache gateway. If you have an ir to Bluetooth module then you should be able to control it using one of the global cache gateways like I do. I have IR4PS3 adapter.


Alex
post #5688 of 9744
Quote:
Originally Posted by runnernorth View Post


Hmm, what does it take to control my ps3 then, do you know that osupike99?
Kindly
Jan

You will need an IR to Bluetooth adapter like Logitech PS3 adapter, schmartz, ps3toothfairy, or ir4ps3.

Alex
post #5689 of 9744
I have a lighting system called Nexa thats controlled with RF signals and triggers true a php webserver with irule.

This is how the query information off all my devices states § is a seperater

11;0;0§15;0;0§19;0;0§14;0;0§10;0;0§13;0;0§16;0;0§3;0; 0§6;0;0§8;0;0§2;0;0§9;0;0§12;0;0§7;0;0§5;0;0§1;0;0§ 4;0;0§17;0;0

Device Id=11;0;0 (First Value)
State On /Off= 0 (Second Value) 0-1
Dimm Value = 0 (Third Value) 0-100

The problem is that i have tested two feedback from device 1 and 12 and device 1 shows same (dimm value as device 12 when i update its states!

How should Prefix and suffix be correctly set up for dim level?

(Device 1)
Prefix:1;*;
Suffix: (Blank)

(Device 12)
Prefix:12;*;
Suffix: (Blank)

Best Regards
Rickard
post #5690 of 9744
Quote:
Originally Posted by osupike99 View Post


You will need an IR to Bluetooth adapter like Logitech PS3 adapter, schmartz, ps3toothfairy, or ir4ps3.

Alex

Thx Alex ;-)
post #5691 of 9744
Quote:
Originally Posted by osupike99 View Post

Unfortunately your comment is not entirely correct. PS3 cannot be controlled by anyone via IP and ATV2 cannot be controlled via IP either.
99% of TVs cannot be controlled via IP. Pretty much all cable boxes are not IP controllable. DirecTV and TiVo are. Most newer mainstream AVRs are IP controllable. My 2008 samsung TV has Ethernet port but it is not IP controllable by a long shot. So saying that everything that has an Ethernet port is IP controllable is false.


Alex

You are absolutely right, sorry for my incorrect statement. I should have said "Anything that is connected to your network and is IP controllable can typically be controlled without a gateway".

Strange that no one has figured out how to IP-control a PS3. It must be possible at least to some extent for PSP Remote Play to work, right? Guess it's proprietary Sony protocols/encryption used.
post #5692 of 9744
Quote:
Originally Posted by mickelin View Post


You are absolutely right, sorry for my incorrect statement. I should have said "Anything that is connected to your network and is IP controllable can typically be controlled without a gateway".

Strange that no one has figured out how to IP-control a PS3. It must be possible at least to some extent for PSP Remote Play to work, right? Guess it's proprietary Sony protocols/encryption used.

Hmm, may I ask, my Sammy tv ps63c7705 is connected to my network and controllable with the Samsung remote app, isn't it what you call "ip controllable"
The only thing I can't control with the app, is power on.....
sorry for my newbie questions:-/
Kindly
Jan
post #5693 of 9744
Quote:
Originally Posted by runnernorth View Post

Hmm, may I ask, my Sammy tv ps63c7705 is connected to my network and controllable with the Samsung remote app, isn't it what you call "ip controllable"
The only thing I can't control with the app, is power on.....
sorry for my newbie questions:-/
Kindly
Jan

Yes, and iRule can (most probably) do the same, everything but power on. There is a set of Samsung TV IP codes defined in the iRule code library that you can download and try to make sure.

A workaround, if the TV "remembers" previous power state, could be to connect it to a remote controlled power socket and use that to control power on/off. That's what I do with my old Panasonic Plasma. Or use one of those "master/slave" extension cords, that turns on the TV when you power on your receiver.
post #5694 of 9744
Thx mickelin for your kindness, but too bad that the tv isn't able to be powered on using "ip control" directly:-/
post #5695 of 9744
Quote:
Originally Posted by grog54321 View Post

I doubt you could do anything like that in iRule at this time. You could manually build a page that looks like that but it would be predominantly static content so you'd need to build a page for every movie, TV episode, etc. which obviously wouldn't be worth the trouble.

Once feedback gets more advanced and we have things like variables, etc. it should be possible. However, also note that you'll need some sort of media player that you can pull that kind of information from such as XBMC.

Here is something I'm working on as a proof-of-concept. Not as pretty and dynamic as iViewer obviously, but at least something. I just use an url object to display the Mediaportal Web interface, allowing me to browse my media content on the iPad while watching something else on the screen.

Using the MPExtended API and EventGhost I think it would be possible to do something resembling the iViewer screenshot above, but it will require a lot of work!
LL
LL
LL
post #5696 of 9744
Quote:
Originally Posted by runnernorth View Post

Thx mickelin for your kindness, but too bad that the tv isn't able to be powered on using "ip control" directly:-/

Yep. We can thank geniuses at Samsung because they probably thought that being Green is their decision for us vs you as a consumer.

Alex
post #5697 of 9744
Im starting to get quite frustrated since I cant figure this out.

I have built a Main panel and linked it to another that contains 3 pages for my Dish Vip receiver. Im using the the iTach WF2IR and everything is setup.

The iTach has a gateway created and when Im on the iRule app its connected and I get green on all the commands I send, I even checked the LED lights on the iTach and they light up everytime I send a command. BUT I cant get the darn thing to do anything, its like the command never leaves the iTach even though its lit up.

I have used iText and it comunicates just fine, but I must be doing something wrong in the iBuilder but I cant figure it out. I have selected then datbase codes, I even tried everymoption to no avail.

Can somebody please tell me what to do or perhaps enter my builder and check it out ??
post #5698 of 9744
I've given up on direct IP control. I have a half dozen devices with net connections and haven't figured out how to control any of them via IP directly. Assuming this isn't possible is it possible to have iRule jump out to another app? I'm thinking of apps like those for the Roku, WDTV, Squeezebox etc.

Is there a reference manual anywhere for iRule yet? I find it very frustrating trying to figure things out from a handful of tutorials.
post #5699 of 9744
Quote:
Originally Posted by ibr80 View Post

Im starting to get quite frustrated since I cant figure this out.

I have built a Main panel and linked it to another that contains 3 pages for my Dish Vip receiver. Im using the the iTach WF2IR and everything is setup.

The iTach has a gateway created and when Im on the iRule app its connected and I get green on all the commands I send, I even checked the LED lights on the iTach and they light up everytime I send a command. BUT I cant get the darn thing to do anything, its like the command never leaves the iTach even though its lit up.

I have used iText and it comunicates just fine, but I must be doing something wrong in the iBuilder but I cant figure it out. I have selected then datbase codes, I even tried everymoption to no avail.

Can somebody please tell me what to do or perhaps enter my builder and check it out ??

Sorry you're having a hard time. Here are a couple of things to check:

Have you tied the receiver device to the iTach gateway in the iRule app on your iPad/iPhone? It's one of those things that is easily forgotten. And have you made sure you have connected to the right channel on the iTach? Are you using a blaster or have you stuck an emitter on the receiver? Is it positioned correctly on top of the IR receiver? Are you able to send commands to any other device?

If none of this helps; have you tried learning an IR code from the original remote, using the iLearn program, and then used that code as a Hex code in iRule?
post #5700 of 9744
Quote:
Originally Posted by mickelin View Post

Sorry you're having a hard time. Here are a couple of things to check:

Have you tied the receiver device to the iTach gateway in the iRule app on your iPad/iPhone? It's one of those things that is easily forgotten. And have you made sure you have connected to the right channel on the iTach? Are you using a blaster or have you stuck an emitter on the receiver? Is it positioned correctly on top of the IR receiver? Are you able to send commands to any other device?

If none of this helps; have you tried learning an IR code from the original remote, using the iLearn program, and then used that code as a Hex code in iRule?


I have connected them all and used a blaster on the 3rd one and then individual ir pins on itnas well. I find the ilearn quite complex maybe i should give it a try.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Remote Control Area