04-16-2008 04:27 AM - edited 04-16-2008 04:28 AM
04-16-2008 04:40 AM
Hi I am Amit,
I am working on CANOpen Protocol.
I want to know the whether the PDO's are opened for transmission after receving the SDO?
04-16-2008 08:57 AM
04-16-2008 09:09 AM
Ya I agree to ur statement.
But my problem is, after entering into the operational state or after starting the node, how to start the PDO communication.
One more thing i want u to know is, i am working on PIC18F4680 & i have CANopen Slave Stack Software partially. I have to make it complete. In that actually there is a C function called "mTPDOopen(1)" which tells to the stack to open the PDO transmission. But in the stack, no where they have called this function, but they have declared in the Object Dictionary another function which inturn calls this function.
04-17-2008 08:31 AM
If your Master sends the start communication command, your slave should go into operational state if it works correctly. From there a slave has typically more then one option to communicate with PDOs. These options are configurable with SDOs. It could start sending PDOs immediately, or wait for a RTR Frame to arrive or wait for a Sync frame to arrive. Does your Slave has a Object dictionary? There you should find the possible options.
DirkW
04-17-2008 08:38 AM
Ya My slave has object dictionary.
According to u, when slave enters into the operational state after receing a msg frm master, for a slave to start the PDO transmission the master has to send the SDO right.
04-17-2008 11:23 PM
04-18-2008 08:26 AM
The Master handles the Network management and sends the message to one particular or all slaves to enter operational state. The slave then acts as configured in his object dictionary and starts sending PDO data or waits for a sync or RTR frame in order to answer with PDO data. The master can use SDOs to reconfigure these communication settings.
DirkW
04-18-2008 08:32 AM
04-21-2008 08:18 AM
A Remote Transmission Request (RTR doesn't have content since it doesn't contain any data bytes. it is just the ID together with the RTR Flag and the Slave answers with the same ID and Data.
DirkW