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

can_printer.py only prints few messages #1992

Open
dzid26 opened this issue Aug 4, 2024 · 5 comments
Open

can_printer.py only prints few messages #1992

dzid26 opened this issue Aug 4, 2024 · 5 comments

Comments

@dzid26
Copy link
Contributor

dzid26 commented Aug 4, 2024

If there is only one node other than panda (C3X), the can_printer.py usually prints only few messages (or none).

Example: 6 messages printed but the timer is rolling:

CAN=2 /data/openpilot/panda/tests/can_printer.py



 33.92
022F( 559)(     6) b'5614000054d3ff3e'

When there is another, third, node on the CAN (acking messages), the printing seems to work. The moment that node is disconnected, the can_printer.py stops printing.

This seems like a CAN silent mode, but even though panda is set to SAFETY_ALLOUTPUT

Additionally, on CAN3 (obd), I usually can't get the printer to roll even with two nodes connected.
#1991

@adeebshihadeh
Copy link
Contributor

Is the other node an ECU or another panda/jungle?

@dzid26
Copy link
Contributor Author

dzid26 commented Aug 4, 2024

Only one panda (C3X) on the bus.
One node is an MCU configured to continuously send. I have also attached PCAN tool configured to sending. Those two nodes work fine together.

I was triple checking my setup and I tried can_printer one more time.
Now it stops reading after few messages even when listening to the conversation between the two other nodes.

123.84
01F1( 497)(     2) b'0200000000000000'   node 1
022F( 559)(     3) b'c217000056d4ff1f'   node 2

@dzid26
Copy link
Contributor Author

dzid26 commented Aug 4, 2024

Ok, I think the issue again related to pandad running in the background.. When I kill pandad, the messages get printed even with a single node.

@adeebshihadeh
Copy link
Contributor

Yeah, always make sure to kill openpilot when running other things on device :)

@adeebshihadeh
Copy link
Contributor

I would like to setup a full HITL test suite for all expected CAN behavior though

@dzid26 dzid26 changed the title can_printer.py only prints few messages with single CAN node can_printer.py only prints few messages Aug 4, 2024
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

2 participants