Announcement

Collapse
No announcement yet.

Help - What gets sent to my CM12U?

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

    Help - What gets sent to my CM12U?

    Hi,

    I run homeseer 1.7 and have been running v1.x for 7 years and love it.

    I now program Crestron control systems and want to integrate my CM12 into it, plus I want a challenge, and it has been!!!!!!

    I have read the Protocol Doc and set the serial port up but I cannot control ANYTHING!!! I do get a character appear every second, if viewing from hyperterm it is a % I think.

    I work in Hex allot due to the devices I have to control, but cannot get control of the CM12

    Am I supposed to sending data in HEX or Binary format?

    Can someone please give me some examples to set me on the right track, like L1 on and L1 off. If I can crack that, I will write a module and associated Crestron code to help others.

    I look forward to hearing from someone!!!! ;-)

    Regards,

    Paul

    #2
    Cm11a/cm12a

    THAT CHAR EVERY SECOND IS ASCll CHR "165" HEX "A5"
    REQUEST FOR CORRECT DATE/TIME FROM CM11A
    YOU MUST RESPOND WITH THAT DATA [IN X10 DOC]
    YOU WOULD BE ABLE TO CLEAR IT USING HOMESEER ACTIVEX [DOWNLOAD]
    UNTILL THAT IS DONE THE CM11A WILL NOT RESPOND
    GARY

    Comment


      #3
      . . . and you can consider Gary an authority.

      The CM11A/CM12A will not do anything if it thinks it has invalid time. Unless you intend to use internal timed-events, the time is not useful. I believe a time of all zeros works fine.

      Since many people run the CM11A/CM12A without batteries, this problem would occur at every power-up. Many software packages just load some dummy time upon initialization.

      Comment


        #4
        Cm11/cm12

        THANK'S ROCCO
        PROGRAM THE CM11/12 WITH HEX OR ASCll
        DEPENDING ON YOUR COMPILER
        WITH OR WITHOUT BATTERY YOU MUST ANSWER THE REQUEST FOR TIME
        I THINK YOU CAN JUST FILL WITH THE CORRECT # OF SPACE'S
        I DO SET THE CORRECT TIME BECOUSE OF DOWNLOADING
        NOTE THE CM11A REQUIRES DAY OF YEAR ie: FEB 13 = 44 DEC 31 = 365
        ALSO DAY OF WEEK M,TU,W ECT.

        Comment


          #5
          Gary / Rocco
          Thanks for everything so far!!
          It was coming back with 5Ah, which means it was waiting to transfer data from the serial port. So i sent it a C3h and it downloaded info 03h 02h BEh B3h.
          From allot of testing BEh = L2 and B3h = Off
          03h and 02h must be a header

          This gives me status of button presses from a HR12U remote for housecode L

          The bit I am stuck on now is building a command sequence to turn on L2
          I have got as far as L= 1011 and 2= 1110
          Put those 2 together is 10111110, converted is 0BEh
          Is this right?

          I then substituted formating from the DOC but am missing a critical bit somewhere.
          As previously mentioned, if I can get this first part done with simple codes and commands, I am sure I can put the rest together.

          Short of that, plug my laptop which runs homeseer into the other serial port or make a split cable up and see what is going on, but I feel that is cheating!!!

          This certainly has made my brain-ache, but am enjoying the challenge!!!

          Appreciate everything so far.

          BTW I am writing this program in Simpl Windows. A special Programming Interface for Crestron Processors which has its own compilers.
          I will be using the time function called 'When' in the program instead.
          I am yet to learn C, but hey, one thing at a time!!

          Regards,

          Paul

          Comment


            #6
            Cm11/12

            YOUR ON THE RIGHT TRACK !
            COULD YOU DROP BELOW HOUSE I (A-H)
            FOR SPACE MY SOFTWARE ONLY SUPPORT'S (A-I)
            I WROTE IT TO USE "COMMAND.COM" ONLY
            IF YOU WANT TO TALK e:mail ME FOR MY NUMBER
            "GARYAUTOHO@AOL.COM"

            Comment

            Working...
            X