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

Is there an example of a CANopenNode master? #11

Open
libangy opened this issue Aug 10, 2022 · 5 comments
Open

Is there an example of a CANopenNode master? #11

libangy opened this issue Aug 10, 2022 · 5 comments

Comments

@libangy
Copy link

libangy commented Aug 10, 2022

I want to configure CANopenNode as a master, but I don't know how to start. It would be perfect if there was an CANopenNode master based STM32. Thanks.

@HamedJafarzadeh
Copy link
Collaborator

Hi @libangy, can you explain a bit more what you are trying to do ? In CANOpen at any point in time, one node is master, so it depends on what you want to do. Do you wish to read a value from a remote node ? or do you want to write a value to a remote node ?

@Lztcdszh
Copy link

I want to know,too

@HamedJafarzadeh
Copy link
Collaborator

Have you watched this ? https://www.youtube.com/watch?v=R-r5qIOTjOo

@songxiaopeng1
Copy link

I want to reset or start other slave nodes by frame ID: 0x0000 need to be configured as master?

@dirkmb
Copy link

dirkmb commented Sep 20, 2023

If you just want nodes start in operational mode (so PDOs are working) you can add CO_NMT_ERR_FREE_TO_OPERATIONAL to your NMT_CONTROL flag.

If you want one node to receive the HEARTBEAT message of another node and react on its status it is more complicated. I was not able to archive this without changing the code of CANOpenNode (not CANOpenSTM32). If there is a better way to do it, I would also be interested in an example.

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

5 participants