Menu

#395 PD subscriber statistics when publisher start earlier

3.0.0.0
closed
2353 (1)
2024-02-05
2022-04-28
No

If publisher starts before subscriber, publisher can send multiple messages before subscriber is alive.
This cause subscriber's missed messages counter to jump in the beginning.

Proposal:

  • subscriber could adapt to sequence counter of the first received message (instead of expecting sequence counter 0)

Discussion

  • Kari Keinanen

    Kari Keinanen - 2022-04-29

    Could we change the code like below, trdp_pdcom.c

    896 if ((newSeqCnt > 0u) && (newSeqCnt > (pExistingElement->curSeqCnt + 1u)))
    -> if ((newSeqCnt > 0u) && (newSeqCnt > (pExistingElement->curSeqCnt + 1u)) && (pExistingElement->numRxTx > 0))

    And increase missed frames counter only if subscriber has received some frame.

     
  • Armin-Hagen Weiss

    • status: open --> accepted
    • assigned_to: Bernd Löhr --> Chris Wetzler
     
  • Chris Wetzler

    Chris Wetzler - 2023-01-09
    • labels: --> 2353
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB