blocked low-can data

Fixed

Description

I am trying to show can data in dashboard by using low-can-service.

SW:AGL version Dab4.0.0
HW:Renesas m3ulcb

By adding require-api<low-can-service> in dashboard, it will get data in dashboard. But I got a problem that may be block a lot of data in some time. Problem detail:
1)when dashboard started,subscribe to low-can-service by websocket.,and print log when receive can data.
2)use canplayer to continuously send data to vcan0
3)use "journalctl -f" to check can data.
4)change from dashboard screen to homescreen screen. you can see that, dashboard can't received event from low-can-service.
5)wait 5~10 minute in homescreen, then return to dashboard screen, at this moment dashboard received a lot of events in once time, so dashboard can't receive any new event about 10~30 seconds(canplayer continuously sending data to vcan0).

Based on the above, I thought when dashboard is hided, if low-cam-service still continuously sending data to app, it will cause a lot of data blocked. May be caused other problems. So I thought its maybe an issue about app framework, can app framework fix this issue?
My solution is add a dbus signal in windowmanager when app layer display status has changed,while app receive this signal, it can unsubscribe to low-can-service.
More details was in SPEC-712.

Environment

dab 4.0.0 on m3ulcb board

Attachments

3

Activity

Show:

zhiqiang wang 
September 21, 2017 at 1:14 AM
(edited)


Yes,I had abandoned it

Walt Miner 
September 20, 2017 at 7:39 PM

 should https://gerrit.automotivelinux.org/gerrit/#/c/10639/ be abandoned?

Xin Zhou 
September 19, 2017 at 12:22 AM

We know these is new windowmanager is creating, so We justed add "m_keepApps.append(QString("dashboard@"));" in our local source. We did not merge into master or dab.

 

We know added [vehicle speed] and [engine speed] support in dashboard, so may be this code should be added into windowmanager. Should we do it first into master? 

Walt Miner 
September 18, 2017 at 2:33 PM

  This was merged to master but not Dab, Does it need to be cherry picked for Dab?

Romain Forlot 
August 29, 2017 at 9:56 AM

zhiqiang wang:

I readed SPEC 395,try to add "m_keepApps.append(QString("dashboard@"));" in windowmanager.cpp, and used timer in Dashboard.qml,then dashboard can receive data in background.I repeatedly changed screen to other apps or homescreen,dashboard always can receive data. I thought this issue was solved.
Thanks to all of you.

Details

Assignee

Reporter

Fix versions

Labels

Components

Affects versions

Priority

Created August 24, 2017 at 3:15 AM
Updated October 13, 2017 at 3:30 PM
Resolved August 29, 2017 at 9:56 AM

Flag notifications