Serial Command to Get Light Level Value

Discussion in 'C-Bus Toolkit and C-Gate Software' started by sjfp, Mar 29, 2011.

  1. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    118
    Likes Received:
    0
    Location:
    UK
    Hi I have been looking throught he serial user guides to find information on how to retrive the ambinet light level.
    But i cant find any information,
    What i am trying to do is to read the light level from two sensors at address 17 and 98. We are using a crestron AV2 processor in the AV system in the conference room and the client wants to incorparte these sensors in his existing system.
    Please do you have any examples i can look at to
    1. Send a serail command to ask the unit for its level
    2. What the string looks like and where the light level value would be.
    Many thanks
     
    sjfp, Mar 29, 2011
    #1
    1. Advertisements

  2. sjfp

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    If your sensors are Multisensors you can configure them to broadcast their ambient light level at regular intervals, removing the need to send serial strings at all.
     
    Newman, Mar 29, 2011
    #2
    1. Advertisements

  3. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    118
    Likes Received:
    0
    Location:
    UK
    the sensor we are using are E5031PE. but if we have all the information available for the sensor, than we can decide the best way forward. The client may want to change the refresh rate. so the simple way is to enable them to select via one of his touchscreens.
    Thanks anyway.
     
    sjfp, Mar 29, 2011
    #3
  4. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    118
    Likes Received:
    0
    Location:
    UK
    Now very good i have found the coding to request the ambient light level from the sensor. Now could some one tell me the required calculations.
    Example of returned values.

    645Lux = 82 99 A9 3C
    2573Lux = 82 99 F1 F4
    696Lux = 82 99 AD 38
    2165 Lux = 82 99 E8 FD
     
    sjfp, Mar 30, 2011
    #4
  5. sjfp

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    You need to share how you're generating that message before we can explain how to decode it. Otherwise we're just guessing.
     
    Newman, Mar 30, 2011
    #5
  6. sjfp

    sjfp

    Joined:
    Oct 31, 2004
    Messages:
    118
    Likes Received:
    0
    Location:
    UK
    The serial command we are sending is \0611002A9901 where 11 is the unit address (Hex) for if the unit is 17 then the hex unit number is 11.
     
    sjfp, Mar 31, 2011
    #6
  7. sjfp

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Darren, Apr 1, 2011
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.