X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: Blade9123 on May 10, 2006, 01:03:29 PM

Title: Using SDK with CM19A in vb.net but sendrf not working
Post by: Blade9123 on May 10, 2006, 01:03:29 PM
I have a vb.net app that is using the SDK with the CM19A.

I cannot for the life of me get the sendrf command to work. The x10nets service is running but no go.

The receive works great but the sendrf not working.

Here is the code I am using for the sendrf:


    Dim WithEvents activeHomeObj As ActiveHome


    Private Sub butMoveLeft_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butMoveLeft.Click

        Try
            activeHomeObj.SendAction("sendrf", "a6 PanLeft", Nothing, Nothing)
        Catch ex As Exception
            MsgBox("Caught this exception: " & ex.Message)
        Finally
        End Try

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        'create ActiveHome object
        Try
            activeHomeObj = CreateObject("X10.ActiveHome")
        Catch ex As Exception
            MsgBox("Caught this exception: " & ex.Message)
        Finally
        End Try

    End Sub


I do not see the led light come on on the CM19A to indicate that rf was sent.

Can anyone help PLEASE?

Thanks
Bob
Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: Blade9123 on May 10, 2006, 03:14:29 PM
Ok, I have a newer drvier installed for the CM19A and now the sendrf seems to be working.

I am using the ahcmd to test it but it does that I have to send the command twice for it to actually move the ninja

Strange
Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: Blade9123 on May 10, 2006, 07:09:11 PM
Ok this is weird.

I moved the CM19A to another machine and it has the same driver on it and the x10nets service is running and it will not send rf to the cm19a.

Move it back to the other machine and it works fine.

Anyone know what I am doing wrong?
Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: Blade9123 on May 11, 2006, 03:20:50 PM
I guess X10 does not monitor these forums anymore.

Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: Dan Lawrence on May 11, 2006, 03:27:39 PM
The forums continue to be monitored by X10 Pro.

If you need his input, you can alwways send him a private message.
Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: billy on May 11, 2006, 10:45:27 PM
Blade9123,

Your right about having to send the RF command twice to the Ninja,
        ActiveHome1.SendAction "sendrf", "c CamGoPosition1"
        ActiveHome1.SendAction "sendrf", "c CamGoPosition1"

If you send RF commands to the VCR Commander the command needs to be followed by a "63Release'.

        ActiveHome1.SendAction "sendrf", "e1 04ChannelUp"
        ActiveHome1.SendAction "sendrf", "e1 63Release"

What Windows versions are on the 2 PCs?

Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: Blade9123 on May 12, 2006, 10:54:33 AM
I am using XP Home SP2 on one machine and XP Pro SP2 on the other.

It is too bad you have to send the command twice.

Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: David Mark on December 17, 2006, 10:37:58 PM
No dice with the CM15a, the latest SDK and the camera plugin.

Send "CamGoPosition1" twice, nothing.  Send four times, nothing.  The miserable AH viewer shows the exact same "received RF" as when I push the preset 1 button on the camera remote.  Yet the camera does nothing.  Macros can send these preset commands fine.

I tried:

d CamGoPosition1 as well as d1 CamGoPosition1, d16 (the actual address of the Ninja camera), etc.  Tried lots of things.  The camera never budges.  Yet if I go into the garage, a macro is fired by AHP and the camera pans right around (so I know that AHP's transmission can and does reach the camera.)

Can anyone confirm or deny that this "double tap" solution for camera commands works with the CM15a?  It sure doesn't do anything positive here.

And does anybody have a working CHM file?  Mine always displays an IE error on every page.  How in hell did they screw that up?!  Yes, I had them send me another copy.  Same BS.
Title: Re: Using SDK with CM19A in vb.net but sendrf not working
Post by: hkactive on January 15, 2007, 02:07:02 PM
I just received a CM19A and am using it on Windows 98SE. The most I've gotten it to do is to show an led light. This happens when I open the X10nets.exe file.

I was hoping to use the sendrf commands (to the RR501) in VB6 for turning modules on and off and perhaps for responding to radio signals (key chain remote?). , but have not had any success. Usually I get a message from VB6 saying that I have a control that's not responding, I need to retry or switch to ....  Maybe I need to make an instance of the X10 control? Is there a way to identify the CM19a as the control being used?

The CM19a USB device is  showing up as a Firecracker in the System Device Manager and it's reported as working and enabled.  I've seen a few comments on some getting it to work. But no definitive instructions. Any help would be appreciate.

Thanks,

Hank