Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
etherlabmaster
Commits
a28bd84c
Commit
a28bd84c
authored
15 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Fixed SDO upload segment response for 10 bytes mailbox length (thanks to Joerg
Mohre).
parent
bbe8baef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
master/fsm_coe.c
+6
-9
6 additions, 9 deletions
master/fsm_coe.c
with
8 additions
and
9 deletions
NEWS
+
2
−
0
View file @
a28bd84c
...
...
@@ -45,6 +45,8 @@ Changes since 1.4.0:
methods to let an application transfer SDOs before activating the master
(thanks to Stefan Weiser).
* Fixed SDO upload segment response (thanks to Christoph Peter).
* Fixed SDO upload segment response for 10 bytes mailbox length (thanks to
Joerg Mohre).
* SDO entry access rights are shown in 'ethercat sdos'.
* Added 64-bit data access macros to application header.
* Added debug level for all masters as a module parameter. Thanks to Erwin
...
...
This diff is collapsed.
Click to expand it.
master/fsm_coe.c
+
6
−
9
View file @
a28bd84c
...
...
@@ -1821,7 +1821,6 @@ void ec_fsm_coe_up_seg_response(ec_fsm_coe_t *fsm /**< finite state machine */)
uint8_t
*
data
,
mbox_prot
;
size_t
rec_size
,
data_size
;
ec_sdo_request_t
*
request
=
fsm
->
request
;
uint32_t
seg_size
;
unsigned
int
last_segment
;
if
(
datagram
->
state
==
EC_DATAGRAM_TIMED_OUT
&&
fsm
->
retries
--
)
...
...
@@ -1899,14 +1898,11 @@ void ec_fsm_coe_up_seg_response(ec_fsm_coe_t *fsm /**< finite state machine */)
return
;
}
last_segment
=
EC_READ_U8
(
data
+
2
)
&
0x01
;
seg_size
=
(
EC_READ_U8
(
data
+
2
)
&
0xE
)
>>
1
;
if
(
rec_size
>
10
)
{
data_size
=
rec_size
-
3
;
/* Header of segment upload is smaller than
normal upload */
}
else
{
// == 10
/* seg_size contains the number of trailing bytes to ignore. */
data_size
=
rec_size
-
seg_size
;
data_size
=
rec_size
-
3
;
/* Header of segment upload is smaller than
normal upload */
if
(
rec_size
==
10
)
{
uint8_t
seg_size
=
(
EC_READ_U8
(
data
+
2
)
&
0xE
)
>>
1
;
data_size
-=
seg_size
;
}
if
(
request
->
data_size
+
data_size
>
fsm
->
complete_size
)
{
...
...
@@ -1920,6 +1916,7 @@ void ec_fsm_coe_up_seg_response(ec_fsm_coe_t *fsm /**< finite state machine */)
memcpy
(
request
->
data
+
request
->
data_size
,
data
+
3
,
data_size
);
request
->
data_size
+=
data_size
;
last_segment
=
EC_READ_U8
(
data
+
2
)
&
0x01
;
if
(
!
last_segment
)
{
fsm
->
toggle
=
!
fsm
->
toggle
;
ec_fsm_coe_up_prepare_segment_request
(
fsm
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment