TR181-XPON  1.4.0
TR-181 PON manager.
_rth_task Struct Reference
Collaboration diagram for _rth_task:

Data Fields

amxc_string_t path
 
uint8_t cntr
 
amxc_llist_it_t it
 

Detailed Description

Task to enable an object in the HAL.

  • path: path of object to be enabled, e.g. "XPON.ONU.1"
  • cntr: when enabling an XPON.ONU instance, tr181-xpon waits for a few seconds until the XPON.ONU instance has at least one EthernetUNI instance and one ANI instance. Enabling the XPON.ONU instance before tr181-xpon has discovered its EthernetUNI or ANI instance(s) might cause errors. E.g. the vendor module might already try to update the Status field of the EthernetUNI instance. This counter keeps track of how many times tr181-xpon checked the number of EthernetUNIs and ANIs of the XPON.ONU instance given by 'path'. If the counter goes above MAX_CHECKS_ON_NR_OF_UNIS_AND_ANIS, tr181-xpon enables the XPON.UNI instance even if its number of EthernetUNIs or ANIs is still 0. The field 'cntr' tracks more or less a number of seconds. By setting the MAX_CHECKS value to 4, tr181-xpon waits max about 4 to 5 seconds for both an EthernetUNI and ANI to appear. If 'path' refers to something else than an XPON.ONU instance, this counter is don't care.
  • it: iterator to put it in s_rth_tasks

Definition at line 113 of file restore_to_hal.c.

Field Documentation

◆ cntr

uint8_t _rth_task::cntr

Definition at line 115 of file restore_to_hal.c.

◆ it

amxc_llist_it_t _rth_task::it

Definition at line 116 of file restore_to_hal.c.

◆ path

amxc_string_t _rth_task::path

Definition at line 114 of file restore_to_hal.c.


The documentation for this struct was generated from the following file: