Repository navigation
3.1r1: 8.12.2, collision avoidance - #56
Merged
Merged
Conversation
Over serial: a class 1 read with link control block 0xC4, timed to measure the DUT's turnaround; then the read followed at once by noise that ends midway between the turnaround and fixed delay and the turnaround plus both delays, after which the answer must start no sooner than the fixed delay and no later than both delays after the noise ends, ten times, with delays that vary by more than the tolerance where the random delay is long enough to tell; then noise, a gap of half the fixed delay and noise again, which makes the DUT back off twice; then all of it with the other delays, set through the plugin (setCollisionDelays), and the usual ones restored at the end. The noise is REQUEST LINK STATUS frames to a reserved address. Times are measured on this host: a write's start plus its bytes' time on the line at the port's speed, and the arrival of the answer's first byte, which the frame parser now records for each frame (readFrameTimed). For a DUT that watches carrier, the harness asserts RTS while it sends noise. serial.timingToleranceMs allows for the adapter's latency. Options: serial.collisionAvoidance, serial.collisionDetection (data or carrier), serial.fixedDelayMs and serial.maxRandomDelayMs, the other pair for step 10, serial.timingToleranceMs. The configuration check requires delays to test and different ones to change them to. The driver gives a message's frame bytes (frameBytes) for one timed write with the noise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3.1r1's 8.12.2 over the serial transport from #54. 3.1r1 is now implemented in full.
Steps (each set of delays runs them all):
setCollisionDelays) and repeat. The usual delays are restored at the end, even after a failure.The answer and the noise
Timing. All times are measured on the host:
readFrameTimed).serial.timingToleranceMsallows for what the adapter adds, both ways, e.g. a USB adapter's latency timer.Options
serial.collisionAvoidanceserial.collisionDetection(dataorcarrier)serial.fixedDelayMsandserial.maxRandomDelayMsserial.otherFixedDelayMsandserial.otherMaxRandomDelayMsserial.timingToleranceMsThe configuration check requires a fixed delay above 0, and other delays that change both values.
Tests:
The timing hasn't been run against a real serial device.
2.7's 8.12.2 stays not implemented, and its
-describeoutput is unchanged.