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

SDO config init how does it work ? #257

Open
LudoJ49 opened this issue Feb 5, 2024 · 1 comment
Open

SDO config init how does it work ? #257

LudoJ49 opened this issue Feb 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@LudoJ49
Copy link

LudoJ49 commented Feb 5, 2024

In yml, it says "sdo: # SDO executed during config" (based from the sample)

defaults:
  dcf: "swd_core.eds"
  driver: "ros2_canopen::Cia402Driver"
  package: "canopen_402_driver"
  polling: false
  heartbeat_producer: 1000 # Heartbeat every 1000 ms
  sdo: # SDO executed during config
    - {index: 0x6060, sub_index: 0, value: 2} # Velocity mode

I guess this is where we need to set TX and RX PDOs and stuff the device needs togoin operational state.

yet with the above example, I'm expecting it to write to reg 6060 at boot up.

I can not see those framew with candump.
I can see it tries to read device type (reg 1000h)

  can0  604   [8]  80 00 10 00 00 00 04 05
  can0  604   [8]  40 00 10 00 00 00 00 00
  can0  584   [8]  43 00 10 00 92 F1 FF 00

But I can't see anything to so with register 6060 (in my example)

is there a specific action to do to trigger it ?

@LudoJ49 LudoJ49 added the question Further information is requested label Feb 5, 2024
@LudoJ49 LudoJ49 changed the title SDO config init SDO config init how does it work ? Feb 5, 2024
@hellantos
Copy link
Member

@LudoJ49 it seems you are experienceing a timeout issue during startup, as can be seen in the error code.
When configuring the underlying CANopen stack will first check if the correct device is present at the correct id. This is what you are seeing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants