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

Modify Proxy client switch example for sending character messeges over mesh network.

Hi

I am working on modify proxy client switch example from mesh sdk version 2.i done some significant changes into code for sending string message rather than 1 or 0.but when i am try to send string message from proxy client to proxy server   "Acknowledged transfer timeout." occured.is there any ways which can help me for send string message from proxy client and server.

help me for the same.

Thanks.

Parents
  • Are you using mesh sdk v2.2.0? What significant changes have you made? Could you please upload some code snippets? Are you sending a unicast message from the client to the server?

    This could be occuring when you receive the ACCESS_RELIABLE_TRANSFER_TIMEOUT event in app_gen_onoff_client_transaction_status_cb in the main.c of the proxy client code.

    In the access_reliable_t struct in access_reliable.h, the relative reliable message timeout is defined:

        /**
         * Relative reliable message timeout.
         * I.e., the time from access_model_reliable_publish() is called to the message is timed out.
         */
        uint32_t timeout;

    In the reliable_timer_cb() function, you can see this line, which will call the app_gen_onoff_client_transaction_status_cb.

    m_reliable.pool[i].params.status_cb(m_reliable.pool[i].params.model_handle, p_args, ACCESS_RELIABLE_TRANSFER_TIMEOUT);

    The timeout is called because the else if case evaluates to true:

    TIMER_OLDER_THAN(m_reliable.pool[i].params.timeout, timestamp)

Reply
  • Are you using mesh sdk v2.2.0? What significant changes have you made? Could you please upload some code snippets? Are you sending a unicast message from the client to the server?

    This could be occuring when you receive the ACCESS_RELIABLE_TRANSFER_TIMEOUT event in app_gen_onoff_client_transaction_status_cb in the main.c of the proxy client code.

    In the access_reliable_t struct in access_reliable.h, the relative reliable message timeout is defined:

        /**
         * Relative reliable message timeout.
         * I.e., the time from access_model_reliable_publish() is called to the message is timed out.
         */
        uint32_t timeout;

    In the reliable_timer_cb() function, you can see this line, which will call the app_gen_onoff_client_transaction_status_cb.

    m_reliable.pool[i].params.status_cb(m_reliable.pool[i].params.model_handle, p_args, ACCESS_RELIABLE_TRANSFER_TIMEOUT);

    The timeout is called because the else if case evaluates to true:

    TIMER_OLDER_THAN(m_reliable.pool[i].params.timeout, timestamp)

Children
Related