Repository navigation
docs: debugging connections - #333
Merged
Merged
Conversation
Check versions, configuration and the log; watch discovery, time-sync and data traffic with tcpdump (instead of socat, which binds to the discovery port and can take unicast queries, #177); fetch an outlet's full info and request its data with nc and a small pylsl script that builds the streamfeed handshake (from the #144 thread, corrected: string value size is 0, CRLF line ends, input kept open). Tested against a local outlet.
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.
Adds Debugging connections to the liblsl docs (Using liblsl section):
lslver/lsl_library_info(), matching configuration, logging.socatbound to 16571 are misleading (they can receive unicast queries meant for outlets).LSL:fullinfovianc, and a small pylsl script that prints a streamfeed handshake fornc, useful to inspect the response or load-test an outlet with a near zero-cost consumer. Corrected from the original: the value size for strings is 0 (not 32), lines end in CRLF, and the input must stay open (sleep) because manyncversions close the connection at end of input. Plus the pitfalls (Value-Size mismatch → protocol 1.00, Outlet ignores the inlet's Data-Protocol-Version header (header name mismatch) #328, 404 after a restart).Tested locally against a pylsl outlet:
200 OKwith data protocol 1.10, the test patterns, then ~83 samples/s of 17 bytes each;LSL:fullinfoand TCPLSL:shortinforeturn the XML. No Sphinx warnings.Closes #177