-
Notifications
You must be signed in to change notification settings - Fork 301
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
[Question] Does it support listen only mode? #13
Comments
Hi,
And there is a "listen-only" flag at the kernel level :
So :
|
Actually I think I was partly wrong, firmware definitely should already support silent mode : usbd_gs_can.c:393
So I guess one would have to enable listen-only just before bringing interface up . Has anyone tried ? |
I happen to have a test setup handy to try this. Seems like it's working to me FWIW. I'm using a candleLight on one Linux machine attached to another CAN interface on another Linux machine. The bus just has those 2 devices and a terminator, nothing else. My test sequence:
|
@brian-brt awesome, thanks for testing! Do I understand correctly that with brtcan2 (candleLight) in listen-only mode, it receives the error frames ? (I'm not sure if both ends are seeing the ERRORFRAMEs or just the sender) |
No, I didn't actually try reading frames from the candleLight device originally. Testing again, the candleLight device does not see any ERRORFRAMEs. When it's not in listen-only mode, it sees all the frames (as expected). In listen-only mode, it sees a single frame being sent repeatedly. Receiving the non-ACKed frames is what I mentioned in #55 (comment) about listen-only implying presume-ack. I think on a "correct" listen-only device those would all be no-ACK ERRORFRAMEs. |
Hi,
I wonder if the firmware supports putting the can device into listen only mode?
Thanks
Benjamin
The text was updated successfully, but these errors were encountered: