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

Unable to subscribe for ZMQ messages after the move to msqg #62

Open
blue-genie opened this issue Jun 25, 2024 · 0 comments
Open

Unable to subscribe for ZMQ messages after the move to msqg #62

blue-genie opened this issue Jun 25, 2024 · 0 comments

Comments

@blue-genie
Copy link

blue-genie commented Jun 25, 2024

Thanks for contributing to PlotJuggler. You are great!

Problem description

The move from cereal to msgq, and changes performed in msgq at that time, seems to have broken the streaming functionality in PJ.

Steps to reproduce (important)

  • start ./cereal/messaging/bridge on c3x
  • start PJ with the command ZMQ=1 ./juggle.py --stream
  • in PJ click on Start under Cereal Subscriber, provide the IP of the c3x, and pick the right DBC file.
  • Note that no messages are received.

#Root Cause:

Method static int get_port(std::string endpoint) { in messaging/impl_zmq.cc changed and calculates the endpoint port in a different way.

commaai/msgq@6d2cc6e#diff-f1d0983453654eb5af781df8745548f20a33103f40c30cd502d2593997954085R11

#Hackish solution

  • After the submodules are pulled update the logic in the get_port method to the new logic and rebuild PJ - I used build.sh to rebuild.
  • After build copy libDataStreamCereal.so from PlotJuggler/build/bin/ to openpilot/tools/plotjuggler/bin/
  • Follow the steps from Steps to reproduce and note that now the messages are streamed to PJ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant