-
Notifications
You must be signed in to change notification settings - Fork 17
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
SYNC-Message not generated #14
Comments
I only ever used my PC as a sync producer and the node happily answered. It is very possible that I optimized the sync-producer capability away to fit the code in the restricted memory. But it's quite a while ago, so I don't really remember. |
It seems sync capability is there after all. Maybe you have to call |
Hi Jens
Thanks for your help. Unfortunately it still does not work. I got this error message when I try to change the callbacks.
Do you have found a solution?
thx
|
What error message? Did you forget to append it? |
You can see this error-message on the button of the attached screenshot.
What kind of Programm do you use on your PC to be the SYNC-Producer?
Thx for the help.
|
I somehow cannot find any attachments. For communication on the PC side (well really its a BananaPi with builtin CAN controller) I use this: https://github.com/jgeisler0303/can2mqtt |
Unfortunately, I'm still struggling with the same problem. My goal is to build a small network with 2 Arduino Uno. Sensor values are transmitted from the slave to the master via CANopen. The master should generate the cyclic SYNC message. But this is not the case. CO<3, 4> co; // template-Klasse erstellen void setup() { co.CO_Init(); // init CAN, setState(Initialisation), setAlarm() analogReference(INTERNAL); void loop() { co.CO_Cycle(); } ObjDict header.txt Does anyone have any idea why this isn't working? thx |
Hi
I have implemented my node as a SYNC-Producer but it doesn't generate the corresponding messages.
thats the part where the Sync is initalised:
`/* index 0x1005 : SYNC COB ID. /
UNS16 ObjDict_obj1005 = 0x80; / 128 /
ODCallback_t ObjDict_Index1005_callbacks[] =
{
NULL,
};
subindex ObjDict_Index1005[] =
{
{ RW, CANopen_TYPE_uint16, (void)&ObjDict_obj1005 }
};
/* index 0x1006 : Communication / Cycle Period. /
UNS32 ObjDict_obj1006 = 0x2710; / 10000 /
ODCallback_t ObjDict_Index1006_callbacks[] =
{
NULL,
};
subindex ObjDict_Index1006[] =
{
{ RW, CANopen_TYPE_uint32, (void)&ObjDict_obj1006 }
};
`
Does anybody has a advice?
thx
The text was updated successfully, but these errors were encountered: