Need help using MEL command "Xout" with an X-10 PCS-05 bidir pwr-line interface


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    8


    Did you find this post helpful? Yes | No

    Default pdf of scope of one sample of pulse-groups from Xout from Pic to psc05

    Hi Anand,

    This one pdf includes 5 views of my Picoscope model 2306 screenshots (so you don't have to load the picoscope viewer software): 1st is the wide view of what looks like 4 pulse-groups, all on the screen at once [presumably 2 sets of pairs of pulse-groups, with a wider gap in between the pairs]; 2nd is a screenshot of a zoom in on the 1st of 4 sets of pulse-groups; 3rd is a zoom of the 2nd of 4 sets; 4th is the 3rd set of zoomed pulse-groups; and 5th is the 4th set of zoomed pulses in the last group.

    Notice that these are all positive pulses with respect to ground. When there is no data traffic, then the PIC output to the psc05's opto-isolator is low (not pulling led current inside the opto-isolator). It seems to me that this is the way it should be, rather than inverted and pulling current without data traffic. If so, then the inverter, shown by x10pro, between the OEM equipment and the input of the psc05 really should not be there. But still, this does not activate any X-10 devices. I bought 3 psc05's, so I am about to build another identical circuit to eavesdrop on the other and compare what a real x10 remote sends to activate/deactivate house-1, module-1. Then, I can see the differences between my signal and the actual x10 remote signals, from the view of another x10 psc05's receive line.

    Thanks very much,
    G
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Okay, set your receiver module to House 'A', Unit '1'.

    Substitute the XOUT statements from your code to

    XOUT PORTB.1,PORTC.5,[0\0,0\unitOn) 'Send an 'ON' to A1
    and
    XOUT PORTB.1,PORTC.5,[0\0,0\unitOff) 'Send an 'OFF' to A1

    Lets see where this gets you; if it doesnt work I'll take a closer look at the waveforms, but I think that might be unnecessary.

    BTW, connect your pic XOUT pin directly to the interface; as Dave pointed out the extra components are really not required.

    Regards,

    Anand

  3. #3
    Join Date
    Jan 2011
    Posts
    8


    Did you find this post helpful? Yes | No

    Smile Your suggested code worked like a charm, on the first try--THANK YOU !!!

    Hi Anand, and everyone else who responded to my plight,

    Anand, Your suggested code worked like a charm, on the first try--THANK YOU !!!

    I am thrilled to have it finally working. I'll need to go troubleshoot why my code did not work, so I can better understand my mistake and how not to repeat it in the future. And, whew--I'm sure glad to not need that other circuitry that X10pro showed in between the PIC-chip and the psco5.

    Fantastic, and thanks again,
    Guglulenun

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi guglulenun,

    I am glad you have got it working.

    The problem was with the syntactic construction of your XOUT line.

    Once you have defined the House and Unit codes, the line should be in the format:

    XOUT SIG_OUT,ZEROX,[HOUSE\UNIT,HOUSE\unitOn]

    Since you have included modedefs.com, you can also use all the pre-defined X10 commands directly .

    Also, you can use byte variables for House and Unit, as they only go up to 16.

    Regards,

    Anand.

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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