Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Think about logic for filtering HFP data in MQTT broker #264

Open
mjaakko opened this issue Jan 27, 2023 · 1 comment
Open

Think about logic for filtering HFP data in MQTT broker #264

mjaakko opened this issue Jan 27, 2023 · 1 comment
Assignees
Labels
ADO Will be moved to ADO

Comments

@mjaakko
Copy link
Contributor

mjaakko commented Jan 27, 2023

Currently there is some HFP data that we want to filter from the public MQTT feed. Think about what logic we should use for detecting this data and what to do with the filtered data (publish to another topic?)

@mjaakko
Copy link
Contributor Author

mjaakko commented Feb 1, 2023

Use cases:

  1. Filtering tram practice runs
  • This can be detected if the vehicle is significantly delayed (i.e. value of dl field is over certain limit)
  • If dl is unreliable or unavailable in some cases, other option would be comparing values of oday + start to tst (e.g. check if the trip would have started more than 2 hours in the past compared to the current time)
    • This method might be unreliable, because the time limit has to be long enough so that long trips don't get filtered
    • This method also allows filtering other invalid data (not just practice runs)
  1. Filtering data with oday in the past
  • At least in metro HFP, there are some bugs where vehicles get "stuck" on their trip and keep sending data when in depot etc.
  • oday should be the current or the previous day, otherwise there is some problem in the data

@teemu8655 teemu8655 added the ADO Will be moved to ADO label May 19, 2023
@teemu8655 teemu8655 self-assigned this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADO Will be moved to ADO
Projects
None yet
Development

No branches or pull requests

2 participants