lpc11c24 CANopen example AN11238_1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

lpc11c24 CANopen example AN11238_1

2,067 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andre.marschalek on Tue Aug 19 16:12:26 MST 2014
hello,

i have a question regarding your canopen example implementation

reference your documentation section 4.3.4
how should CANopen_SDOC_Seg_Write work or better asked where does this example really transmit the buffer to the slave?

br
Andre



标签 (1)
0 项奖励
回复
4 回复数

1,523 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andre.marschalek on Tue Aug 19 16:58:42 MST 2014
i know how segmented transfer is working thats specified in ds301
however thx for pointing me to the right direction can_rx/tx

the only question left is the seg|exp access type where i cant find this specification in ds301
0 项奖励
回复

1,523 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Aug 19 16:44:28 MST 2014

Quote: andre.marschalek
thx for your answer but have you checked the source of CANopen_SDOC_Seg_Write ?



No, I'm seeing this code the first time today  :D


Quote: andre.marschalek
it only transferres the length of the buffer but not the buffer itself?



Do you know how segmented transfer is working?

If not, follow the magic word: [color=#f00]CANopen_SDOC_Seg_Write_Busy[/color]  :)
0 项奖励
回复

1,523 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andre.marschalek on Tue Aug 19 16:30:34 MST 2014
thx for your answer but have you checked the source of CANopen_SDOC_Seg_Write ?
it only transferres the length of the buffer but not the buffer itself?

another question is i dont think canopen defines a restriction like OD_SEG_RW for an OD which is the case for SDOS_2200
can defines for OD's rw, wo, ro and const, means no restriction to expedited or segmented access?
0 项奖励
回复

1,523 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Aug 19 16:25:06 MST 2014

Quote: andre.marschalek
...where does this example really transmit the buffer to the slave?



Master sample->main.c line 208:
CANopen_SDOC_Seg_Write(CAN_SLAVE1_NODE, 0x2200, 0x00, buffer, i-1);

0 项奖励
回复