1
0
Fork 0
Commit graph

262 commits

Author SHA1 Message Date
Janez
74a756230d Node guarding disable, if heartbeat is used. 2023-10-19 12:13:49 +02:00
Janez
1866d33807
fixed toggle bit in CO_Node_Guarding.c 2023-10-06 14:26:17 +02:00
Janez
b8bbd0169c driver update for PIC24_dsPIC33, by trojanobelix 2023-09-08 14:23:48 +02:00
Janez
d68906c870 Add Node Guarding 2023-09-07 16:20:47 +02:00
Janez
c49f119b26 move timeOfDay_t union to CO_TIME.h - part 2 2020-12-07 22:02:09 +01:00
Janez
c0c01e1be5 move timeOfDay_t union to CO_TIME.h 2020-12-07 21:03:41 +01:00
jdascenzio
09f1083ae6
MNT: Add a function to set internal state (#232)
When master, it's up to the application to put master state into operational.
We had a function to do this so that we don't have to write directly in NMT structure
2020-10-01 10:21:45 +02:00
Janez
b7251ee1dd Bugfixes in CO_HBconsumer.c
- #168
 - "timeDifference_us = 0;" inside the for loop.
2020-09-21 10:18:07 +02:00
Oleg
dd189cf664
SDO: fix broken block download (#210)
Fix wrong double calling CO_SDO_receive_done for last segment in subblock/block.

This is critical fix for PR #174

issue #39
2020-07-13 15:05:58 +02:00
Oleg
1086288540
SDO: fix to always check if buffer is empty before freeing it (#204)
This is critical fix for PR #174

Before this patch SDO queue process pointer could overrun receive pointer on receiving NMT stop command during active SDO communication.

issue #39
2020-07-01 09:32:39 +02:00
jdascenzio
2b248f0776
LSS master: fix a buffer overflow (#200)
Fix a buffer overflow in the switch mode selective
2020-06-30 19:08:03 +02:00
jdascenzio
9d19a57778
LSS slave: fix a buffer overflow (#197)
Fix the buffer overflow in the service inquire
2020-06-22 10:01:14 +02:00
Oleg
1e50ed21cc
CO_trace: fix warning "cast increases required alignment of target type" (#193)
This extends #144, commit f2283e3ca9
2020-06-10 09:06:46 +02:00
Julien PEYREGNE
f60f03c739 Revert "guard CO_trace to be optionnal"
This reverts commit 0cdec897c2.
2020-05-27 13:25:26 +02:00
Janez
77947f7a42 Merge branch 'lukegluke-master' into old-master 2020-04-29 14:31:50 +02:00
Oleg Evseev
1052fe740e SDO: skip all received message in queue in SDO_abort 2020-04-20 17:33:27 +03:00
Oleg Evseev
5967fc607c SDO: free receive buffer after process only if it is not empty
it also fix fifo process index overrun on timeout in sub-block transfer
2020-04-20 17:32:22 +03:00
Oleg Evseev
2f4778cd86 add fifo queue for SDO received messages to fix possible drops in consecutive block transfers
previously when doing a SDO block upload and immediately after that starting another SDO request, this request was dropped. Especially if processing function has slow response.

fifo queue size is 2 by default
you can redifine CO_SDO_RX_DATA_SIZE to 1 in CO_driver_target.h, if you do not use block transfers to increase performance a little

issue #39
2020-04-15 14:41:52 +03:00
Oleg
b92b4bb5b1
fix SDO block download process continuity after sequence breaks (#171)
Now additional state CO_SDO_ST_DOWNLOAD_BL_SUB_RESP_2 is used to send response without resetting SDO sequence.
Refactoring timeout halding logic in sub-block transfer.
Also add missed unsigned indicators for several constants.

issue #170
2020-03-13 09:29:25 +01:00
Martin Wagner
03613cc8a1 neuberger-socketcan: fix invalid memory access
store name string by copy, not by reference as source can be moved
2020-02-27 16:06:11 +01:00
Martin Wagner
85a31861c5 neuberger-socketcan: add comment to init function
the init function needs the interface index, not a pointer.
Alternative: use proper init struct.
2020-02-27 16:06:06 +01:00
Martin Wagner
dc02ad8310 neuberger-socketcan: fix error from c36d73b5
that's why I don't like to change this stuff.
2020-02-27 16:06:00 +01:00
Martin Wagner
bf91f41f38 neuberger-socketcan: add logging stuff 2020-02-27 12:50:51 +01:00
Martin Wagner
8d5ecac9d4 neuberger-socketcan: Fix sync compilation 2020-02-27 12:50:47 +01:00
Martin Wagner
1052aac684 neuberger-socketcan: fix driver
fix errors introduced within the last few commits:
    - data type mismatch
    - wrong return value
    - change handle to void pointer - added "const"
2020-02-27 12:50:42 +01:00
Martin Wagner
2785b2491d remove merging hell
this one-liner has bitten us more than once
2020-02-26 08:59:38 +01:00
Miles Simpson
a1f36cbe15 Removed maximum time restriction on timerNext_ms 2020-01-31 17:23:31 +01:00
Janez
06a0493c78 fix NMTstartup handling - update README and default values 2020-01-16 08:06:16 +01:00
Oleg
2fb8dfd223 fix NMTstartup handling if device is NOT the NMT Master (#150)
* fix NMTstartup handling if device is NOT the NMT Master and now OD_NMTStartup (0x1F80 OD) can be optional

issue #149

* Correctly use of NMTstartup to self start slave

According to DSP302, part2, V4.1.0, 2009 for object 1F80h (NMT startup):
bit0=0 - "CANopen device is not NMT master. The entries of the object 1F81h shall be ignored. All other bits of object 1F80h shall be ignored with the exception: value = 00000000 00000000 00000000 00001000b - "NMT slave that shall enter the NMT state Operational after the NMT state Initialisation autonomously (self starting)"
2020-01-16 07:58:01 +01:00
Martin Wagner
ec70c2b182
Merge pull request #153 from gotocoffee1/patch-1
Fix RX Buffer size
2020-01-15 16:21:07 +01:00
gotocoffee
cf015f2259
Update CANopen.c
#151
2020-01-15 15:48:24 +01:00
Oleg
f2283e3ca9 Warnings omitted (#144)
* All Warnings omitted
Now all warnings that came up in previous versions are fixed in a clean way directly in the code.
Inlcudes:
Shadowing
Missing default cases
Missing cases in switch statements
unused variables
Pointer problems
Function declarations' visibility

* Default case for NMTsendCommand
Default case was not catched before and could led to errors.

* fix typo when omitting warnings

* Omitting more warnings, and fix TIME->CANrxNew nulling

Inlcudes:
large integer implicitly truncated to unsigned type
this statement may fall through

* rename CO_this to co

* fix CO_process_SYNC name (CANopenNode master merging issue)

Co-authored-by: Michele B. <MicheleBlank@gmx-topmail.de>

----
Verified before merge. It is cleanup, no deep changes.
2020-01-15 13:40:30 +01:00
Martin Wagner
3d41f20adb Merge branch 'master' of https://github.com/CANopenNode/CANopenNode 2020-01-14 15:50:01 +01:00
Martin Wagner
5ff3493859 License changed to Apache 2.0 - Neuberger part 2020-01-14 15:45:41 +01:00
Janez
57f264c2c4 Coding style defined more precisely. Issue #117. 2020-01-14 15:35:53 +01:00
Janez
ce2ac80a97 Fixed CO_OD_NoOfElements in example CO_OD.h 2020-01-13 20:05:58 +01:00
Martin Wagner
98fdcd988c
Merge pull request #143 from wilkinsw/time-optional
change TIME module to be optional
2020-01-13 09:15:19 +01:00
Martin Wagner
d7f28f8743
Merge branch 'master' into time-optional 2020-01-13 09:15:08 +01:00
Martin Wagner
aa08ebf51d
Merge pull request #142 from wilkinsw/add-missing-sync-guards
fix missing SYNC guards
2020-01-13 09:13:19 +01:00
Janez
8bd43334e9 Unsupported RTR mentiond in README #99 2020-01-10 13:44:55 +01:00
Janez
cb780aa4d0
Update device support and OD editor in README 2020-01-09 13:09:58 +01:00
Janez
dadf5023df License changed to Apache 2.0 - part3 2020-01-09 08:16:31 +01:00
Janez
eab1f2d54f License changed to Apache 2.0 - part2 2020-01-08 18:31:31 +01:00
Wilkins White
511a773151
Merge branch 'master' into time-optional 2020-01-08 08:46:54 -08:00
Janez
9c2f0a1c64 License changed to Apache 2.0 - main part 2020-01-08 14:52:56 +01:00
Wilkins White
36d49ee713
change TIME module to be optional 2019-12-20 10:21:58 -08:00
Wilkins White
8d6f25de40
fix missing SYNC guards 2019-12-20 10:14:49 -08:00
Martin Wagner
e1244868db
Merge pull request #137 from JuPrgn/trace-optional
guard CO_trace to be optionnal
2019-12-20 07:47:43 +01:00
Martin Wagner
f6fb0894f6
Merge pull request #128 from wilkinsw/sync-optional
change SYNC module to be optional
2019-12-20 07:34:46 +01:00
Martin Wagner
41e982962e Merge branch 'odesenfans-common-header-for-drivers' 2019-12-18 08:26:34 +01:00