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

Permanent scan on a gateway

Hello,

I'm developing a gateway and i would like to use advertising packet on sensor side to transmit data but it suggests that my gateway will be in permanent scan. I know scanning is consuming a lot but can it be used in a permanent way. i will also handling standard connections. 

Can the permanent scan be an issue during the whole life of the device ?

Best regards,

Aurélien

Parents
  • You can reschedule it 

    zb_void_t join_finished(zb_uint8_t param)
    {
        UNUSED_PARAMETER(param);
        LOG("Join finished\n", NULL);
        // restart join, if you do this 10 sec before it ends it will renew the time.
    }
    
    
    // Start.....
        LOG("Network permit_joining started %d\n", cmd->time);
        zb_nlme_permit_joining_request_t b;
        b.permit_duration = cmd->time; // Setting this to 0x00 disables join. 0x01-0xFE is valid values and reprecents s. 0xFF is used for som special join....
        ZB_SET_BUF_PARAM(ZB_BUF_FROM_REF(param), b, zb_nlme_permit_joining_request_t);
        zb_err_code = ZB_SCHEDULE_CALLBACK(zb_nlme_permit_joining_request, param);
        ZB_ERROR_CHECK(zb_err_code);
    
        ZB_SCHEDULE_ALARM_CANCEL(join_finished, ZB_ALARM_ALL_CB);
        zb_err_code = ZB_SCHEDULE_ALARM(join_finished, 0, ZB_TIME_ONE_SECOND * b.permit_duration);
        ZB_ERROR_CHECK(zb_err_code);

  • what do you mean by "reschedule it" ?

    I just want to know if permanent scan is a good approach when i want to use advertising packet to transmit data.

Reply Children
Related