Shop OBEX P1 Docs P2 Docs Learn Events
BS2 Pulsin to read Domia lite protocol data — Parallax Forums

BS2 Pulsin to read Domia lite protocol data

CybCyb Posts: 3
edited 2011-06-21 12:41 in BASIC Stamp
Hi,
I have a BS2 and a 433mhz radio module. My goal is to read some Domia lite data (Home automation protocol) to activate an output.
According to this link http://home2.btconnect.com/totalg/byebye/domialitespecification1.0.pdf at page 5, would use 2 Pulsin consecutively (1 for rising edge and the other for low signal) work ?
I have tried but cannot get it to work. Is the bp2 pulsin command resolution enough ?

Thank you,

Comments

  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2011-06-21 05:37
    Cyb

    Welcome to the Parallax forum

    Can you post the whole code that you try-ed so we can try to help you
  • CybCyb Posts: 3
    edited 2011-06-21 10:31
    Hi sam_sam_sam,
    Here are some more details of what I'm trying to do.
    In the image is the data I am trying to acquire with the BS2.It looks +- OK according to the Domia Lite specifications (http://home2.btconnect.com/totalg/byebye/domialitespecification1.0.pdf)
    In the PIC, I though I could just mesure the high and low time of the signal like this :
    Main:
      PULSIN Pulse, 1, time                 ' measure positive pulse
      PULSIN Pulse, 0, time2                 ' measure negative pulse
    
      DEBUG CR,"high : ",DEC time*2, " us  "             ' display microseconds
      DEBUG CR,"low  : ",DEC time2*2, " us  "             ' display microseconds
      DEBUG CR,"diff  : ",DEC ((time2*2) + (time*2)), " us  "             ' display microseconds
    
      GOTO Main
      END
    
    But I don't understand the results I get, maybe it's not possible to measure such signal ?
    Main:
      PULSIN Pulse, 1, time                 ' measure positive pulse
      PULSIN Pulse, 0, time2                 ' measure positive pulse
    
      DEBUG CR,"high : ",DEC time*2, " us  "             ' display microseconds
      DEBUG CR,"low  : ",DEC time2*2, " us  "             ' display microseconds
      DEBUG CR,"diff  : ",DEC ((time2*2) + (time*2)), " us  "             ' display microseconds
    
      GOTO Main
      END
    

    Thank you,

    Cyb

    Sans titre.JPG
    640 x 433 - 64K
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2011-06-21 12:26
    You have to what are the command do and what they are for

    and in the data sheet that you have here it dose not tell what they do
    PAUSE 50
    LOW CS                                                                       ' Enable ADC
    SHIFTOUT DataIn, Clock, MSBFIRST,[B] [%10111101][/B]         ' Select CH0, Single-Ended [%1XXX1101]
    SHIFTIN DataOut, Clock, MSBPOST, [KLN\12]                 ' Read ADC
    HIGH CS                                                                         ' Disable ADC
    

    Where you see this [%10111101]

    In the photo that I posted you where all the bits you are going to have to do something like this you self to talk to this board
    914 x 196 - 41K
  • CybCyb Posts: 3
    edited 2011-06-21 12:39
    sam_sam_sam,
    I know what they do, I just need to decode the data.
    I will decode the data, get a device adress, if the adress is the one of my card; get the command (ON or OFF) and then activate the output...

    Thank you,
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2011-06-21 12:41
    Try the example that I posted and see if this will work


    This will the amount of bits that to read [KLN\12]
    939 x 562 - 114K
Sign In or Register to comment.