we are writing an application that would require a list of devices connected to the RDKB router and if they are currently Online / Offline.
we found that we can achieve this by using dmcli command with arguments: Device.Hosts.Host.<1>.Active like below:


however, we find that, after a device goes offline (say disconnects from the RDKB Wifi), then the status returned from Device.Hosts.Host.<1>.Active is still 'True' and doesn't reflect the actual status of the device.
we observed that, the status remains 'True' for almost 1min-3min and then gets updated to 'False'.

we are working on Raspberry pi reference platform on rdkb-next branch.

the observation is same in case of re-connection as well. the status doesn't change immediately, but takes some time.
is this a known issue?

does RDKB monitor the status of connected devices continously? or is there a way to reduce the time of update by configuring some parameter?

  • No labels

11 Comments

  1. Hi Z-Nitin Patet

    Yes, the 'Active' data model is used for reflecting the actual status of device being connected or not and there will be a slight delay. The delay will be only the time for notification to reach from SoC to LMLite and LMLite to sync , but it is not this long a duration like 3 minutes. Let us check on a RPi and get some statistics on the same

  2. Hi Z-Nitin Patet On trying in RPi with latest rdk-next, we don't see this much delay on the status getting updated. Could you please try running the data models in one terminal and tailing the LMLite log in a different terminal at the same time of connecting wifi client and see if you are taking too long to get a notification in the logs?


    Rajkumar Narayanan are there chances that a notification on client device connect is sent minutes later of the connection in RPi?

    1. Hi Narayanaswamy Ramaiyer


      We synced our workspace to rdk-next yesterday and flashed the RPi with the image. Here is a summary of the experiments that we performed and our observations:

      1. Issues detecting the online/offline status (logs attached to the comment in rdkb-onlinedevices/status-update-issues)
        1. Scenario: Connect two devices to the router - 1 Windows laptop and 1 Android Phone. Disconnect/reconnect the android phone after every LM sync interval (30s) and check if the status is reflected correctly on dmli
        2. Observations: dmcli failed to report the connection status every time
      2. Robustness Tests (logs attached to the comment in rdkb-onlinedevices/robustness/1assoc1connected/)
        1. Scenario: Connect a single device to the router - 1 Android phone. Disconnect/reconnect the android phone after every LM sync interval (30s) and check if the status is reflected correctly on dmli
        2. Observations: dmcli reported the correct status every time
      3. Robustness Tests (failure) (logs attached to the comment in rdkb-onlinedevices/robustness/2assoc1connected/)
        1. Scenario: Connection a single device to the router - 1 Android phone and test robustness as before. Connect a new android device to the router after a few minutes and run the tests again
        2. Observations: dmcli reported the correct status until a second device joined the network, after which it failed to report the connection status every time


      Further, we have the following observations:

      1. List of associated devices is not persistent on reboot.
      2. Regression observed in the HostName returned by dmcli. The MAC address is now returned for two android devices.
      3. The connection status is inconsistent when there are 2 or more devices connected to the network.



      rdkb-onlinedevices.tar.gz

  3. hi,

    Any update on this topic?

    regards

    Nitin

  4. HI Nitin Patet,

    We are able to reproduce the issue by connecting multiple clients.

    Below is the observation.
    When 2  Wifi clients are disconnected from the RPI , At every 30 seconds the Wifi_Server_Sync_Function as to happen so that all the disconnected devices data has to be update in Host table and status as to set to false but currently the sync is happening only for one device alone and another device sync is not happening and data is not updated in the host table, due to which the device status is shown as true, We are currently working on the issue.


    Thanks and Regards

    Srinivas

  5. hi,

    thanks Z-srinivas kota ramaiah
    by when, can we expect a fix for this issue?
    will the fix be part of the next release of RDKB?

    regards

    Nitin

  6. HI Nitin Patet,

    Created a ticket and notified the concerned team on the issue and shared the entire analysis on the issue. Waiting for the reply from the team.
    We will share you the ETA which is planned, once we get the reply from the team.


    Thanks and Regards

    Srinivas

  7. hi,

    any update on this issue?.
    is the fix ready?, is it available in some release of RDKB?


    regards
    Nitin

  8. HI Nithin Patet,

    We got the update from the team, they will taking up the activity in this current sprint.
    REFPLTB-622 - Getting issue details... STATUS   Please find the ticket created for the issue. the team will be updating the ticket with the code changes. 

    Thanks and Regards
    srinivas

    1. Hi Srinivas,


      Any update on the Jira ticket?


      Thanks,

      Kushal

      1. Hi Z-Kushal Ramkumar,

        We are expecting the changes to be merged soon