Xin/Xout Status Request


Closed Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    Feb 2006
    Posts
    21

    Default Xin/Xout Status Request

    I have a 2-way module and a TW523 2-way interface.

    I am able to send on, off, etc code to the modules, and read commands sent by controllers.

    I am looking for some help sending a STATUS request to my 2 way module.

    This pages (http://www.kelleecrisafulli.com/imag...on/X10FAQ3.htm) says that I need to send 11111 for a status request. I tried this, but it does not work. The strange thing is that none of these codes match up with the PICbasic codes for on, off etc.

    XOUT X10Out,zCross,[house\unit,House\%11111]
    XIN X10in,zCross,[housekey]
    SerOut2 PORTA.3,16468,#housekey,13,10]


    Any help would be appreciated

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    XOUT translates the codes to be compatible with the BS2. (ugg)

    If you use ...
    Code:
    DEFINE  XOUTXLAT_OFF 1
    It turns off the translation, then you can use the codes from the table you were refering to.

    Note: All the ON/OFF etc. codes will be different too.
    <br>
    DT

  3. #3
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks for the info. Do you know what the conversion factor is? I would rather just have to convert the %11111 instead of converting all of the other codes in my program.

    Thanks

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well if I've done the backwards translation correct ....

    %11001

    Should be the "Status Request".

    The way it translates is... (suedo code)

    temp = (Keycode + 4) & $0F
    if Keycode.4 = 1 then temp = temp + $10
    if temp.2 = 1 then temp = temp ^ 2

    So by entering %11001 for the KeyCode, it should end up with %11111, which is "Status Request"
    <br>
    HTW,
    DT

  5. #5
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks so much for your help. I will try it tonight and post back.

  6. #6
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Think I am on the right track.

    Sending XOUT X10Out,zCross,[house\unit,House\%11001] returns 517 (1000000101) if the module is on or off. Any ideas why I am getting the same answer for both states?

    Thanks

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Are you sure that module is "Status Request" capable ?

    Not all of them are.
    <br>
    DT

  8. #8
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Yes, it is a SmartHome ApplianceLinc 2-way #2002STW. Clearly says 2-way on it. Have also tried to (re)enable 2-way mode through programming.

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    How many words are you receiving?

    From what I gather, the first word is the dimmer status. For On/Off Appliance modules, it's probably meaningless.

    The second word is the ON/OFF status.
    <br>
    DT

  10. #10
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    I thought about that in the middle of the night myself. If I Xin a second time I do get an On/off reading. Everything is working well.

    Thanks again for all your help and feedback

  11. #11
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Great!

    That's good news.

    Just thought I'd fill in a few more blanks missing from the manual.



    Update: Missing 1 command

    Extended Code 3 = %10011

    Found in Dave's document ...
    http://davehouston.org/xtc798.txt

    Also,
    &nbsp; Extended Code, is the same as Extended Code 1
    &nbsp; Extended Data, is the same as Extended Code 2

    HTH,
    Last edited by Darrel Taylor; - 29th November 2007 at 21:02. Reason: EC3
    DT

  12. #12
    Join Date
    Feb 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks :-)

Similar Threads

  1. Problem with 16f88 steep motor control
    By ken_23 in forum Off Topic
    Replies: 0
    Last Post: - 4th July 2008, 12:25
  2. PIC16F877A - Timer0 won't interrupt
    By WishMaster^ in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 25th April 2007, 08:25
  3. Xin/Xout ideas?
    By KarenSmit in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th March 2006, 11:31
  4. conversion
    By pramodsinha in forum Forum Requests
    Replies: 2
    Last Post: - 19th January 2006, 15:58
  5. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts