This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending LC command

Hi,

I am a beginner in BLE Mesh. I am trying to create a Mesh network for residential purpose using Tuneable lights, switch and sensors.

Mesh SDK version : 4.2

On the switch side, I am using CTL client model and LC client. So, using button 1 of the nRF52-DK I want to send 3 values:

1. LC Mode = ON

2. OCC Mode = ON

3. Light OnOff = ON

But on setting these values from the Client, on the server side I am receiving just 2 commands, i.e, LC mode = ON and OCC Mode = ON.

I am unable to figure out what I am missing. Please suggest.

Regards,

Zolu

Parents Reply Children
  • Hi Mttrinh,

    Light LC Light OnOff = ON

    I am using LC Client model.

    I am trying to achieve the following:

    On pressing button 1 of the Dev-kit(client side), I should be able to:

    1. turn on the controller i.e, Light LC Mode = 1

    2. turn on occupancy i.e, Light LC Occupancy Mode = 1

    3. turn on the lights i.e Light LC Light OnOff  = 1, on the server side.

    So, on sending these 3 values, I am receiving just 2 values on the server.

    I don't know but is that due to the message size? Please suggest.

    Regards,

    Zolu

  • Hi,

    I am using CTL client model and LC client

    We don't have a LC client example in our SDK. Have you implemented this yourself? Which example are you using on the client side and which modifications have you done to it?

    The same for the server side, which example are you using from the SDK? have you done any modifcations to it?

    Can you give me details on how you have configured the nodes? Have you used the nRF Mesh app for iOS/Android or used our static provisioner?

    How are you sending the values?

  • Hi,

    I have implemented the LC client myself by using lc_client.c file as given in the SDK.

    I have used the CTL Client and have added LC Client to that.

    On the server side, I am using CTL+LC example as given in the SDK. Just made a small modification:

    LIGHT_LC_DEFAULT_MODE (0x0) instead of LIGHT_LC_DEFAULT_MODE (0x1).

    I am using nRF Mesh App (Android) for provisioning and configuring the nodes.

    On pressing button 1 on nRF52-DK, I am trying to send:

    1. LC Mode = ON

    2. OCC Mode = ON

    3. Light LC Light OnOff = ON

    This logic I have implemented in the button handler function.

    Regards,

    Zolu

  • Hi,

    Could you upload the code where you are sending these values?

    If possible, upload the whole project so I can check your code.

Related