Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Feedback and Expression bugs I can't fix. Need iRule to help!

I've pushed iRule pretty hard to make a rather good remote for iPhone5 (latest f/w and iRule updated). I have discovered many deficiencies and what I believe to be two rather big bugs. Note that I have done a reasonable investigation of the bugs to warrant reporting but not the in-depth investigation to confirm my speculation as to cause. Please address the bugs and consider the deficiencies.

Bug 1: Expressions act erratically.

I have noticed and reported that expressions give unreliable results. I believe I have narrowed it down to the expressions having difficulty knowing whether they are text or numeric. I found that using ""+ before a text expression and 0+ before a numeric expression results in much more reliable (though not perfect) results. Sometimes, the result is actually just the text of the expression (e.g. floor($var1$+0.5) may appear in the result then on the next iteration of the entrance the result is 4. This behaviour completely rules out the use "expression" not "value" problem since it changes its behaviour on different iterations of the entrance.

Bug 2: Feedback comes from wrong device

I have two devices that use the same gateway and both are HTTP get. When the response to one of the two is received, it appears to be processed by both feedbacks. It seems that feedbacks process data received by the associated gateway, not by the associated device. Very subtle difference, but critical.

Deficiency 1: Allow nested IFs

Deficiency 2: Feedback substitution at runtime same as device substitution at runtime

Deficiency 3: Multiple entrances per page or at the very least, subroutines

Deficiency 4: Comments in entrances

Deficiency 5: Some form of text input for entrances

Deficiency 6: Sharing of entrances

Many more deficiencies, but let's keep this civil! Also, I don't want this to look like I am dissatisfied. I have made a very good remote with very good tools, but they could be great.

Please respond to the bug reports. More info can be supplied by me, but I would suggest it be through better media (phone) as I can explain my approach, tests and results in detail that way.

Respond to deficiencies if you have valuable comments (e.g. promises of implementation or great workarounds).

Thank you
Keith
2 people have
this problem
+1
Reply
  • Shouldn't multiple HTTP Devices each have their own IP Address and thus their own Gateway?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Not necessarily, as you can have different ports assigned for each HTTP device.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • For example, brand A TV has an IP interface that supports only one command: get-status, which returns Station Number and Power Status. I have three identical TVs sharing a single monitor (only one TV can be selected for monitor). I want to poll all 3 to see if they are powered up but only want the current station number for the selected one.

    So I define three gateways. One for each TV. Then I define six devices, two for each gateway (TV). All six devices are configured with one command: get-status. I define 6 feedbacks, one for each device (i.e. two per TV). One feedback per TV has a feedback code of Power Status and no feedback code for Station Number (thus ignoring it) and the other feedback per TV has a feedback code of Station Number and no feedback code for Power Status (thus ignoring it).

    Now, assume my entrance knows which TV is online. I send the three status commands to the three devices associated with feedback of Power Status and one status command to the one device associated with the feedback of Station Number of the online TV.

    Since feedbacks are configured to be associated with devices, it should keep devices separate. Since the HTML GET commands are sent from different ports, the replies should be kept separate.

    You may ask why I do this. I assure you my reasons are sound. They are a way to multiplex the feedback of station number. Even if you think my methods are odd, they do not violate any rules I know of and therefore should work. The fact that they don't is not because I have chosen an odd (or even poor) way to do this, it is because of a bug in iRule.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited