Christian Sandberg

Results 86 comments of Christian Sandberg

Could be related to issue #125. I've been experimenting a little with asynchronous SDO, i.e. instead of having the main thread (or whatever thread that requests an SDO transfer) handle...

I guess that the maps are not possible to be changed during runtime, but you still want to be able to change other properties. It could make sense to continue...

Hmm, we could continue with the configuration so that it completes but raise the exception in the end so that the application can choose to ignore it if it is...

You make a valid point. I realised that it was more difficult than I originally thought. You can still write the communication parameters manually so it is not a deal...

No you are right, PDO slave support is not fully implemented. Currently it is just made to work like the master.

Yes, use the callback mechanism instead. There is an example in the README. https://canopen.readthedocs.io/en/latest/pdo.html#canopen.pdo.Map.add_callback

You should access subindices using . notation: ``` val = node.tpdo['Some group.Some subindex'].raw ```

If all you want is the data read into memory you can just do: ```python data = instream.read() ```

Do you have some other CAN device physically connected to the bus? A CAN message can only be flushed from the buffers when another node has acknowledged it.

This is probably a wx question but you should probably run SDO requests in a separate thread and not on the main thread as that will lock up the application...