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

Sleep mode example #32

Open
joeholdsworth opened this issue Feb 22, 2022 · 0 comments
Open

Sleep mode example #32

joeholdsworth opened this issue Feb 22, 2022 · 0 comments

Comments

@joeholdsworth
Copy link

Firstly thank you for this library it is very very useful.

I'm trying to understand the sleep function, would it be possible to add to your examples, that would be great.

At the moment I put the transiever in standby then change the mode to sleep. I have also enabled the interrupt pins wake on CAN function.

When there is traffic on the CAN the interrupt works, I then take the transiever out of standby and change the mode to normal.
The return value from the changeModeOnTheFly function is 0, so appears good.

I then use CAN tryandsend (which returns true) but nothing appears on the CAN bus where as it did before I put the unit into sleep.

If I don't put the can transiever into stanby and only use sleep the same happens.

When I come out of sleep mode the can recieve message appears to be constanlty fired as if the read register bit is not being cleared anymore....

I could well be doing something wrong and thanks for any help.

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