Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

Sample VB app for sending and receiving xAP messages.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sample VB app for sending and receiving xAP messages.

    Guys,
    Pat Lipscomb's (sp?) site is never up. Did any of you download the sample send and receive vb sample apps? I want to try and understand how code wise to send and receive xAP messages but the apps I have do not work and I can't figure out why.
    -Rupp
    sigpic

  • #2
    Hub

    Rupp,
    If you run both those sample apps on one box, you'll need a hub.
    ....JG
    HS2PRO - Ocelot, SecuIR, Secu16, Attendence Management Alarm Interface, X-10, LCD Studio VFD Display, 3 Apexis IP Cams, Custom Software Interfaces, GMQ Geiger Graphing
    HS3PRO - Testing

    Comment


    • #3
      I believe in Rupp's case he is using the Viewer and when started as the first xap app on a PC then it will act as the hub. I gave him some files that I download from Patrick Lidstone's site when it was up some months back which were a simple Rx and Tx application using Patrick's xapax.ocx. I also tried those apps after he had some problems with not seeing any Tx messages with the viewer. The Tx app that I mailed him also did not work for me. It could of been that I modified Patrick's original download, but it was so long ago and it was when I was also just starting. Since I no longer use the xapax.ocx I do not want to spend time debugging an old test app when someone else may have a virgin version of it or equivalent.

      Comment


      • #4
        Jebus,
        I am running a hub.

        A hugh thanks to Michael for all his help as well. I'm trying to get a feel for using the OCX but without a working example it's had to understand the example. I can't tell if the Xapax1.xAPSource = "rocket.ocx.mytest.tx", Xapax1.xAPTarget = "rocket.ocx.mytest.rx", or Xapax1.xAPUID = "FF000100" would cause a problem because I'm not well versed on the naming convention. I also do not know if broadcastaddress is important or not. There is also the xAPClass that I'm not sure about. If I had a working simple example I could then experiment with the different properties and see how they "work".
        -Rupp
        sigpic

        Comment


        • #5
          Gregg,
          I am no programmer, but I have some working apps

          I wouldn't say they are perfect, especially when it comes to wildcarding and sub addressing, but they do work, and are recognised as correct by the viewer and the xap plugin. This app uses BSC 1.3

          Probably it is simplest to start with an exe for a simple one device app which I made today called xAP Barking Dog, and if you email me I will send you the source for it and also the tutorial I downloaded from Patricks site last time it was up. I never did manage to get hold of the samples Michael has referred to.

          Strictly speaking these apps are outside of homeseer, and as has been pointed out the right place for support should be the yahoo xAP groups

          It would be good if you managed to xAP enable your backup program

          Kevin
          Attached Files

          Comment


          • #6
            Transmitter/Rreciever

            Rupp,
            I needed the same when I started with xap.
            I modified the transmit/recieve samples that Pat had supplied.
            They helped tremendously. Connect with the transmit app first.
            The source is included....JG
            Attached Files
            HS2PRO - Ocelot, SecuIR, Secu16, Attendence Management Alarm Interface, X-10, LCD Studio VFD Display, 3 Apexis IP Cams, Custom Software Interfaces, GMQ Geiger Graphing
            HS3PRO - Testing

            Comment


            • #7
              WOW! The users on this BB never ceases to amaze me. Thanks a million guys. I just got home from Owensboro, Ky and worked from 9AM this morning till about 3:30 shoveling 18" of snow from my inlaws 100ft driveway. Man my back hurts. That the most snow I've seen in years. I feel for you guys that have to deal with this stuff day in and day out. Again thanks for all of your help and apps.
              -Rupp
              sigpic

              Comment


              • #8
                I have the example files from Patricks site, and also his latest OCX - When I get back home I will post a link to them here.

                I also have the basis of a xAP BSC skeleton application written in VB6. The idea is that this will act as a framework and will take care of all the state table handling and send and receive all the xAP / BSC messages for you automatically. All the user will have to do is add the specific code to talk to actually talk to the device (eg a serial routine). I should have this available within the next few days , and will post a link here when available. It has the source code too and uses Patricks OCX.

                Kevin

                Comment


                • #9
                  XAP from IIS

                  Hi all,

                  I am building a custom interface for some tabet/web apps. I am looking for some vbscript or asp examples of xap for use in IIS - can you point me anywhere?

                  Thanks

                  J

                  Comment


                  • #10
                    Kevin:

                    Any luck yet with your basic framework ? I'm getting ready to install a remote monitor out in my shop and thought this might be a good time to play with custom xAP code.
                    Bruce

                    "The universal answer is 42."

                    Comment


                    • #11
                      J,
                      The test VB programs that patrick provides with his xapax.ocx component should work just as well with vbscript or asp. The VB files can be read with any text editor if you do not have Visual Studio. The ocx contains all the network interface details that could potentially be difficult in script. It is simply a matter of a COM interface that use the methods provided by the ocx.

                      Comment


                      • #12
                        I tried creating a reference to the OCX object in my code and get:

                        Server object error 'ASP 0177 : 800401f3'

                        Server.CreateObject Failed

                        /test.asp, line 7

                        Invalid ProgID.



                        Xapax1=Server.CreateObject("xapax.ocx")

                        Comment


                        • #13
                          the object is something like "xaplib.xapax". I'm on the road so I cannot give an exact reference. Perhaps someone else who has it installed will be able to. Of course you need to register xapax.ocx with regsvr32 or equivalent so it gets into the registry.

                          Comment


                          • #14
                            Originally posted by bruce l
                            Kevin:

                            Any luck yet with your basic framework ? I'm getting ready to install a remote monitor out in my shop and thought this might be a good time to play with custom xAP code.
                            Half done still (alpha) - but PM me your email address I'll send you what I have so far, just be gentle - I'm only a hobbyist programmer ;-) afaik all the xAP and BSC stuff works fine. I just have to tidy the app up a bit which will be a never ending task no doubt as I add bits...

                            This is a "Basic Status & Control" skeleton app - the sort of thing that will allow you to create a xAP conduit for your own hardware 'thingy' or add xAP devices quickly and easily to HomeSeer for example. Actually this is a great usage as you don't have to know anything about HS plugins to get a device integrated into HS. If you are not intending using the BSC schema then Patricks' OCX and the VB samples are the route to take. I have those too if his site is still down (he's moving house).

                            Kevin

                            Comment

                            Working...
                            X