Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scopeprotocols/Ethernet10BaseTDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ void Ethernet10BaseTDecoder::Refresh(

const int64_t eye_start = ui_halfwidth - jitter_tol;
const int64_t eye_end = ui_halfwidth + jitter_tol;
const int64_t eye_wide_start = ui_width - jitter_tol;
const int64_t eye_wide_end = ui_width + jitter_tol;

size_t i = 0;
bool done = false;
Expand Down Expand Up @@ -150,7 +152,11 @@ void Ethernet10BaseTDecoder::Refresh(
i++;
break;
}
if( (delta < eye_start) || (delta > eye_end) )
// Normal eye for first bit in RX frame (from the network)
bool in_normal_eye = (delta >= eye_start) && (delta <= eye_end);
// Wide eye for first bit in TX frame (from the NIC)
bool in_wide_eye = (delta >= eye_wide_start) && (delta <= eye_wide_end);
if(!in_normal_eye && !in_wide_eye)
{
LogTrace("Edge was in the wrong place, skipping it and attempting resync\n");
i++;
Expand Down