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

Different Transmit Behaviour for Generic Level and Generic OnOff

Hi,

I have combined the light switch and the dimming example.
The thingy 52 contains one generic onoff server and two generic
level server for brightness and colour.

The project is up and running and I am controlling the LED on the thingy
with a controller that contains the counterpart clients.

I have two questions relating to these models.

1. The generic onoff model works without a noticable delay
and the LED on the thingy turns on and off as expected.
Although I get the error NRF_ERROR_NO_MEM after calling

status = generic_onoff_client_set_unack(&m_onoff_clients[0], &set_params,
    &transition_params, APP_UNACK_MSG_REPEAT_COUNT);

Is there a memory option which needs to be increased?

2. Like the generic onoff model, I am trying to set the level on the server, but
this does not performs as fast as setting the onoff state and not reliable.
I have to wait 3-4 seconds between the function calls.
Delay and transition time is set to 1ms.
After calling the unacknoledged set function I get an NRF_ERROR_INVALID_STATE error.

status = generic_level_client_set_unack(&m_level_clients[0], &set_params, &transition_params, APP_UNACK_MSG_REPEAT_COUNT);

Is there a way to improve this behaviour? I want to set the level 5-10 times a second.

Thanks

Parents
  • Hi again. 

    I'm sorry about the long delay. I haven't seen any feedback from our Mesh team. 

    "Although I get the error NRF_ERROR_NO_MEM after calling status = generic_onoff_client_set_unack()"

    Is it possible for you to debug your application to see exactly where inside generic_onoff_client_set_unack() the NRF_ERROR_NO_MEM is returned?

    After calling the unacknoledged set function I get an NRF_ERROR_INVALID_STATE error.

     From what I can see, the NRF_ERROR_INVALID_STATE error is returned due to an invalid value for either delay or transition time. However, I can't see why the delay/trans.time can't be set to 1ms. I'll look closer into the code to see why this error is returned. 

    Best regards, 
    Joakim

Reply
  • Hi again. 

    I'm sorry about the long delay. I haven't seen any feedback from our Mesh team. 

    "Although I get the error NRF_ERROR_NO_MEM after calling status = generic_onoff_client_set_unack()"

    Is it possible for you to debug your application to see exactly where inside generic_onoff_client_set_unack() the NRF_ERROR_NO_MEM is returned?

    After calling the unacknoledged set function I get an NRF_ERROR_INVALID_STATE error.

     From what I can see, the NRF_ERROR_INVALID_STATE error is returned due to an invalid value for either delay or transition time. However, I can't see why the delay/trans.time can't be set to 1ms. I'll look closer into the code to see why this error is returned. 

    Best regards, 
    Joakim

Children
No Data
Related