xAP Flash nee Joggler beta 5

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Kevin
    Moderator
    • Jan 2004
    • 558

    #91
    Originally posted by SiliconPixel View Post
    BTW - is that HV variable documented somewhere - I'll go have a read...
    If you issue commands on C-Bus that always include a level (rather than just on/off commands) then they always work as expected and you can allow the gateway to maintain an on@0 condition. That might be your best route. A combinational <mode> ability would solve this for you too .

    If using the older <mode>dimmer</mode> then in some future beta I intend to support C-Bus ramp commands instead of successive 'goto' levels which will be considerably more efficient and smoother. I am not sure this could be used within sliders though as you would lose the immediate feedback aspect. You can already of course issue timed ramp commands to C-Bus from xAPFlash buttons using the <xAP> tags and sending a raw xAP message that includes the target level and ramp time.

    You have a later firmware build in your gateway than the official release and so there are aspects that aren't in the current documentation. We did go through it on Skype so possibly it's in the history there ? I can't remember offhand but if you do decide you wish to change it let me know and I'll look at the code to see if we have a HV var that controls this. The one problem might be that I am running a slightly later version again than yours and IIRC you have a custom build for some reason - maybe even this reason - and so I might lose you something that we added just for you - does that ring any bells as to what it might have been ? I don't want to maintain forked versions of the firmware.

    K

    <edit> Within the C-Bus domain 0 is always OFF and >0 is always ON hence the behavioural decision we have to choose when extending to xAP where the two are totally independant - IDRANet/ Cortex is even harder as lights can have an 'off' brightness so that when you turn them off they just dim... Vagueries of X10 like always coming back on at full brightness - but only some models, and only some with status, plus the what state after dimming through zero make this a real 'chestnut'. Make it behave as expected for one and it doesn't for someone else.
    Last edited by Kevin; 10 October 2010, 01:29 PM.

    Comment

    • SiliconPixel
      Automated Home Sr Member
      • May 2007
      • 52

      #92
      Mmm, yes I can't remember either.

      I agree forked firmware vers would be a nightmare too - maybe I should just try the standard latest f/w you have and try what you do and monitor what does/doesn't work - that would show up anything that doesn't work.

      Is it just a case of setting one of the HV vars?

      I don't have too many HV macros responding to CB - so wouldn't be too difficult to test I hope. i do use the X10 macro responses in HV with custom lighting - that doesn't change does it?

      Thanks,

      Paul.

      Comment

      • Kevin
        Moderator
        • Jan 2004
        • 558

        #93
        I'm in xAPFlash rather than C-Bus gateway mode at the moment so can you just bear with with fact that dimming to level 0 may turn your lights off FTTB and require a button press to bring them back on.

        When I get a bit of spare time I'll revisit the issue and see what we can sort out and what my changes are in the firmware. May be best to solve this via multiple <mode> tags in xAPFlash allowing a lcontrol/slider to be setup.

        Hoping to release beta 5 generally any day now - just hit a slight hiccup we need to address that's delaying it a bit.
        Please everyone - now's an ideal time for feedback on any bugs or issues you may have...

        K

        Comment

        • SiliconPixel
          Automated Home Sr Member
          • May 2007
          • 52

          #94
          Originally posted by Kevin View Post
          I'm in xAPFlash rather than C-Bus gateway mode at the moment so can you just bear with with fact that dimming to level 0 may turn your lights off FTTB and require a button press to bring them back on.

          When I get a bit of spare time I'll revisit the issue and see what we can sort out and what my changes are in the firmware. May be best to solve this via multiple <mode> tags in xAPFlash allowing a lcontrol/slider to be setup.

          Hoping to release beta 5 generally any day now - just hit a slight hiccup we need to address that's delaying it a bit.
          Please everyone - now's an ideal time for feedback on any bugs or issues you may have...

          K
          Yes - no problem at all - as you say, the multiple mode tags would be the most flexible way.

          Comment

          • BodgeIT
            Automated Home Sr Member
            • Jul 2010
            • 57

            #95
            Hi Kevin,
            Was trying to get logged in yesterday to provide XAP messages re my issue of loosing status but couldn't login here for some reason! Go figure.
            Anyway I just also wanted to mention that I'm experiencing random reboots of Joggler with this release. Haven't happened before and I can't pin it down to anything. Seems to happen if I restart xAPFlash a few times when changing xapconfig.xml and checking the results...but it has also happened at other times too.

            Cheers
            Gary

            Comment

            • SiliconPixel
              Automated Home Sr Member
              • May 2007
              • 52

              #96
              Slider popup and delay

              One area I've thought that would be great to look at during the few days I've been testing the latest beta is the way that the slider pops up.

              Currenty you have to hold the button for what you think is long enough and then release it to get the slider popping up.

              What I think would be more intuitive is if the slider would popup on expiry of the delay timer (not on release of the button - which to me, is a little counter-intuitive).

              Does that make sense and would that be a good feature request?

              Paul.

              Comment

              • SiliconPixel
                Automated Home Sr Member
                • May 2007
                • 52

                #97
                Sample textbox and generic schema

                Are there any samples of a textbox being populated from a generic (non BSC) xAP message?

                I'm trying to get my head around using a text box and wanted to try it from a CTI2.info message sent out by Greg Liming's Asterisk xAP plugin.

                This is an example of one of the many messages:

                xap-header
                {
                v=12
                hop=1
                uid=FFE80003
                class=CTI2.info
                source=liming.axc.house:vm.default.500
                pid=4204
                }
                Messages
                {
                readmessages=7
                totalmessages=24
                type=Voice
                }

                So I wanted to display both the readmessages and totalmessages.

                Can someone please point me in the right direction?

                Thanks,

                Paul.

                Comment

                • SiliconPixel
                  Automated Home Sr Member
                  • May 2007
                  • 52

                  #98
                  popup slider odd behaviour

                  I've noticed some odd behaviour with the popup slider on the Joggler. Sometimes the popup will appear even with the briefest of touches and will continue to popup in this way for several touches, then work OK, then start playing up again.

                  I'm not 100% sure but it seems to happen more after the screen saver has kicked in and been dismissed by touching the screen.

                  config file based on a simple mod of the basic example - attached as .txt

                  Anyone seen this?
                  Attached Files

                  Comment

                  • Kevin
                    Moderator
                    • Jan 2004
                    • 558

                    #99
                    Originally posted by BodgeIT View Post
                    Anyway I just also wanted to mention that I'm experiencing random reboots of Joggler with this release. Haven't happened before and I can't pin it down to anything. Seems to happen if I restart xAPFlash a few times when changing xapconfig.xml and checking the results...but it has also happened at other times too.
                    That's always an awkward one to diagnose.. I haven't seen that here in any reproducable way but I have seen occasional reboots.

                    One thing I have noticed is that if I have the Joggler set to DHCP then the assigned IP address changes very frequently, (daily ?) which is both annoying and potentially problematic if there is a TCP socket connection in place. I believe the Joggler might reboot itself to re-acquire an IP address. I have set all my Jogglers to static IP now as at one stage two Jogglers were showing with the same IP.

                    I have this beta running 24/7 on one Joggler and I've never really noticed the Joggler displaying the main menu which it would do after a reboot but maybe it is exaccerbated by config file reloads...

                    K

                    Comment

                    • Kevin
                      Moderator
                      • Jan 2004
                      • 558

                      Originally posted by SiliconPixel View Post
                      What I think would be more intuitive is if the slider would popup on expiry of the delay timer (not on release of the button - which to me, is a little counter-intuitive).
                      I'll leave this and the related spurious slider popup Q. mostly to Martyn but essentially there are two ways we determine a 'long press' - the dimmer mode uses one and the slider popup another.

                      In the slider mode there is no timer running when the button is pressed only a timestamp, and then the release causes a time difference calculation . This way of course you can't initiate any action until the button is released ie you can't popup mid press.

                      The dimmer works the other way and does initiate a dim cycle after the button is held for a while, but there were some issues with this if the button was pressed many times quickly causing unpredictable results - hence Martyn preferred coding it another way...

                      K
                      Last edited by Kevin; 11 October 2010, 01:16 PM.

                      Comment

                      • Kevin
                        Moderator
                        • Jan 2004
                        • 558

                        Originally posted by SiliconPixel View Post
                        Are there any samples of a textbox being populated from a generic (non BSC) xAP message?
                        You need to create a textbox and then set the xAP element to recover a 'generic' schema as CID2 is not supported directly (in fact I am not aware of it as a schema).

                        Here is an example of a textbox using your schema and recovering the read messages number :


                        Code:
                        <textbox NAME="Asterisk_read">>
                                      <gridX>1</gridX>
                                      <gridY>4</gridY>
                                      <width>200</width>
                                      <height>60</height>
                                      <border>true</border>
                                      <alpha>0.8</alpha>
                                      <html>false</html>
                                      <visible>true</visible>
                                      <background>
                                          <visible>false</visible>
                                      </background>
                                      <fontcolour>0xffAA66</fontcolour>
                                      <textprefix><![CDATA[There are ]]></textprefix>
                                      <textsuffix><![CDATA[ read messages]]></textsuffix>
                                      <mode>text</mode>
                                      <xAP>
                                          <schema>generic</schema>
                                          <uid>FFE80003</uid>
                                          <source>liming.axc.house:vm.default.500</source>
                                          <generic>
                                              <Class>CTI2.info</Class>
                                              <body>Messages</body>
                                              <parameter>readmessages</parameter>
                                              <type>text</type>
                                          </generic>
                                      </xAP>
                        </textbox>
                        I have included a text prefix and suffx - I have used CDATA tags because there is a trailing and leading space required and this will be removed otherwise.

                        There are 7 read messages (cf There are7read messages)

                        Also - you are recognising a CTI2.info message - I don't know how Gregs schema works but if there is a CTI2.event message then that is probably what you want - and I am not sure if you can query his schema at startup to solicit the current state - if not you will see the following displayed until a messages is sent.

                        There are read messages

                        HTH - I know we do need to get out some fuller XML examples....

                        K
                        Last edited by Kevin; 11 October 2010, 02:14 PM.

                        Comment

                        • SiliconPixel
                          Automated Home Sr Member
                          • May 2007
                          • 52

                          thanks - that works

                          Comment

                          • BodgeIT
                            Automated Home Sr Member
                            • Jul 2010
                            • 57

                            Originally posted by Kevin View Post
                            One thing I have noticed is that if I have the Joggler set to DHCP then the assigned IP address changes very frequently, (daily ?)
                            I have my Joggler set to DHCP but my server gives it the same IP every time.
                            I'll check this out and see if fixed IP is the way to go.

                            To be honest Kevin I'm not sure now what issues I'm seeing are Joggler, xAPFlash or HAH. I'm seem to be having issues with all three. i.e. just upgraded from classic CurrentCost to CC128 and after working fine at the beginning, it's now gone TU, SMS has stopped working and I'm getting random RF device switch offs.

                            At this point I don't want to be throwing spurious issues in that aren't xAPFlash related.

                            Also re the device status issue, Brett is re-writing the xAP library that the HAH uses, so I'll wait for that update and retest, I think it more likely to be a HAH specific issue.

                            The HAH is about to get a whole smarter as they're bringing in 2-way RF comms, a xap-serial interface to talk with external microcontrollers and an extension to xap-CurrentCost that allows for connection to CC dev boards.
                            I'll then be testing xAPFlash with xap-plugboard controlled screen changes, audible alerts, OSD(hopefully) etc. So will really be able to put beta5 through it's paces then. Expecting the HAH update soon.

                            ** EDIT **
                            Fixed my SMS and Current Cost issues...user error!
                            So now just random reboots, random RF shutoffs. I'll try recording some xAP messages ans see what I can see.
                            Last edited by BodgeIT; 12 October 2010, 10:25 AM.

                            Comment

                            • martynwendon
                              Automated Home Sr Member
                              • Feb 2009
                              • 57

                              Originally posted by SiliconPixel View Post
                              I've noticed some odd behaviour with the popup slider on the Joggler. Sometimes the popup will appear even with the briefest of touches and will continue to popup in this way for several touches, then work OK, then start playing up again.

                              I'm not 100% sure but it seems to happen more after the screen saver has kicked in and been dismissed by touching the screen.

                              config file based on a simple mod of the basic example - attached as .txt

                              Anyone seen this?
                              Hi Paul,

                              I can't say I've seen this behaviour myself, and have tested pretty thoroughly where sliders are concerned!

                              A timestamp is taken when the button is first clicked (mouse_down) then a second is taken when the button is released (mouse_up), the difference is calculated and compared against whatever is set for the delay in your xml.

                              The popup event shouldn't fire if the elapsed time isn't the same or greater than the delay, I'm not sure what could be affecting that, but will do some more testing here.


                              Martyn
                              My Blog

                              Comment

                              • BodgeIT
                                Automated Home Sr Member
                                • Jul 2010
                                • 57

                                Sorry..one other thing I did notice Kevin is that the Layout function has changed.
                                When I press the layout button, I see all the IDs as expected but then when I press a button that "pagetoggles" to another page, the layout function is turned off.
                                This never used to happen, I used to be able to switch through all my pages with the layout function still active.

                                Comment

                                Working...
                                X