Home
[RDK Central Wiki]
CMF
[Code Releases]
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?
11 Comments
Narayanaswamy Ramaiyer
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
Narayanaswamy Ramaiyer
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?
Z-Nitin Patet
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:
Further, we have the following observations:
rdkb-onlinedevices.tar.gz
Z-Nitin Patet
hi,
Any update on this topic?
regards
Nitin
Z-srinivas kota ramaiah
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
Z-Nitin Patet
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
Z-srinivas kota ramaiah
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
Z-Nitin Patet
hi,
any update on this issue?.
is the fix ready?, is it available in some release of RDKB?
regards
Nitin
Z-srinivas kota ramaiah
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
Z-Kushal Ramkumar
Hi Srinivas,
Any update on the Jira ticket?
Thanks,
Kushal
Narayanaswamy Ramaiyer
Hi Z-Kushal Ramkumar,
We are expecting the changes to be merged soon