Lc client for nrf52840 dongle is available in which sdk
Hi,
Are you talking about Bluetooth Mesh? If so, there is no LC client example in our Mesh SDK. There are a LC client model in our SDK that you can implement into your project yourself. You can find the model under models\model_spec\light_lc\ in the SDK.
Hi,
The light_lc_client_property_set() function sends a Property Set message to the server. The server will send back the status as a response, if the message is sent as acknowledged message.
thukeri said:using this command to set the property but not getting the response from the server
Are you using the LC server example from our SDK as the server? Which SDK are you using?
Can you upload the logs?
I want to check other command also light_lc_client_light_onoff_set
with this command from client i am able operated light off and light on with full brightness on the server
but how to get the gradual fade on and fade off on the client please suggest which command i need to use
i am setting all the params on the mobile side(like prolong lightness,fade on time -10sec etc...)
it will be appreciate if you suggest this answer
thukeri said:but how to get the gradual fade on and fade off on the client please suggest which command i need to use
Do you mean like a dimmable light? I suggest you take a look at the Light lightness example.
Hi,
please find the logs below of ctl+lc server
after sending command from lc client on command
transition_params.delay_ms = 0;
transition_params.transition_time_ms = 0;
(void)access_model_reliable_cancel(m_clients[0].model_handle);
status = light_lc_client_light_onoff_set(&m_clients[0], &set_params,&transition_params);
break;
how to get the stand by along with fadeon...which command need to use..if you suggest an answer to this would be thankful..
0>, main.c, 539, ----- BLE Mesh Light CTL+LC Setup Server Demo -----
<t: 0>, pwm_utils.c, 88, PWM max ticks: 1600
<t: 16989>, main.c, 284, App Light Lightness Model handle: 8, Element index: 0
<t: 16997>, main.c, 289, App CTL Model Handle: 12, Element index: 0
<t: 17003>, main.c, 294, App LC (15, 0) = (Model Handle, element index)
<t: 17099>, main.c, 478, Node Address: 0x0109
<t: 17101>, mesh_app_utils.c, 66, Device UUID (raw): B09581265FD146DDB7D581A9072CD63A
<t: 17105>, mesh_app_utils.c, 67, Device UUID : B0958126-5FD1-46DD-B7D5-81A9072CD63A
<t: 17132>, main.c, 594,
-----------------------------------------------------------------------------------------------
RTT 1) Toggle setting the property values to requested values or to the default values.
RTT 2) Increase Color temperature value, will wrap around to min when max is reached.
RTT 4) Clear all the states to reset the node.
-----------------------------------------------------------------------------------------------
<t: 17452>, main.c, 258, actual lightness = 0
<t: 17455>, main.c, 275, Transition time: 0, Target lightness: 0
<t: 17466>, light_lc_setup_server.c, 822, LC FSM ON
<t: 17527>, app_light_ctl.c, 384, Temp SET: target temperature: 8000 duv: 0, delay: 0 tt: 0 req-delta: 8000
<t: 17532>, app_light_ctl.c, 976, Element 0: transition completed
<t: 17535>, main.c, 249, Transition time: 0, Target temperature: 8000, Target delta_uv: 0
<t: 112562>, main.c, 258, actual lightness = 43961
<t: 112566>, main.c, 275, Transition time: 0, Target lightness: 43961
<t: 115866>, main.c, 258, actual lightness = 65535
<t: 115870>, main.c, 275, Transition time: 0, Target lightness: 65535
<t: 325748>, main.c, 258, actual lightness = 48602
<t: 325752>, main.c, 275, Transition time: 0, Target lightness: 48602
<t: 329052>, main.c, 258, actual lightness = 0
<t: 329056>, main.c, 275, Transition time: 0, Target lightness: 0
<t: 437276>, main.c, 258, actual lightness = 43961
<t: 437280>, main.c, 275, Transition time: 0, Target lightness: 43961
<t: 440580>, main.c, 258, actual lightness = 65535
<t: 440584>, main.c, 275, Transition time: 0, Target lightness: 65535
2822882>, main.c, 275, Transition time: 0, Target lightness: 65535
Hi,
ok so, i could not observe the fade on through this command even i set the tansition period to zero
but in the example they gave
Issuing the Occupancy On event or the Light On event triggers the following chain of events
this case why i am not getting fade on light instead of that i am getting immediate on and off
2.To send the occupancy command from the lc client can you suggest what should use..
I am using as below but the property command is not receiving by lc server and throwing the following exception can you please post or suggest if you have tried this and working for you
static light_lc_property_set_params_t pro_set_params=
{
.property_id=SENSOR_MOTION_SENSED_PROPERTY_ID,
.property_buffer[0]={100}
};
case 4:
{
(void)access_model_reliable_cancel(m_clients[0].model_handle);
light_lc_client_property_set(&m_clients[0],&pro_set_params);
break;
}
Error:
ACCESS_RELIABLE_TRANSFER_TIMEOUT:
hal_led_blink_ms(HAL_LED_MASK, LED_BLINK_SHORT_INTERVAL_MS, LED_BLINK_CNT_NO_REPLY);
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Acknowledged transfer timeout.\n");
Hi,
ok so, i could not observe the fade on through this command even i set the tansition period to zero
but in the example they gave
Issuing the Occupancy On event or the Light On event triggers the following chain of events
this case why i am not getting fade on light instead of that i am getting immediate on and off
2.To send the occupancy command from the lc client can you suggest what should use..
I am using as below but the property command is not receiving by lc server and throwing the following exception can you please post or suggest if you have tried this and working for you
static light_lc_property_set_params_t pro_set_params=
{
.property_id=SENSOR_MOTION_SENSED_PROPERTY_ID,
.property_buffer[0]={100}
};
case 4:
{
(void)access_model_reliable_cancel(m_clients[0].model_handle);
light_lc_client_property_set(&m_clients[0],&pro_set_params);
break;
}
Error:
ACCESS_RELIABLE_TRANSFER_TIMEOUT:
hal_led_blink_ms(HAL_LED_MASK, LED_BLINK_SHORT_INTERVAL_MS, LED_BLINK_CNT_NO_REPLY);
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Acknowledged transfer timeout.\n");
Hi,
Sorry for the late response.
Have you had any progress with this?
thukeri said:i could not observe the fade on through this command even i set the tansition period to zero
Did you set to a value bigger than 0?
thukeri said:To send the occupancy command from the lc client can you suggest what should use..
To set the Occupancy mode you should use: light_lc_client_occupanc_mode_set()
thukeri said:I am using as below but the property command is not receiving by lc server and throwing the following exception can you please post or suggest if you have tried this and working for you
I have not tried this myself so not sure what you are missing. Seems like you are using the correct function. Do you get any error messages? Does the function return NRF_SUCCESS?