Closed dmitry-tarnyagin closed 3 weeks ago
Published as 6.1.1, thanks for your help!
Hi,
A new one: https://github.com/dmitry-tarnyagin/node-canopen/pull/2 :)
It consists of two commits, The first one is trivial, but please take look to the second one. Is it how you supposed to remap TPDOs to RPDOs? The COB-ID-s from a file are template ones w/o node id.
Regards, Dmitry
A typo in extended frame detection code of _parseSdoParameter()
The extended frame flag is encoded in bit 29, not 31. COB-IDs like 0x80000000 are actually allowed as "Invalid COB-ID" in cases like:
... [1280sub1] ParameterName=COB-ID client to server (tx) ObjectType=0x7 DataType=0x0007 AccessType=rw DefaultValue=0x80000000 PDOMapping=1
[1280sub2] ParameterName=COB-ID server to client (rx) ObjectType=0x7 DataType=0x0007 AccessType=rw DefaultValue=0x80000000 PDOMapping=1 ...
, however eds._parseSdoParameter() throws an exception here.
The issues are fixed in https://github.com/dmitry-tarnyagin/node-canopen/pull/1, please review and take in if it's fine.