Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Networking Widget - June 2023 #1140

Merged
merged 15 commits into from
Jun 26, 2023

Conversation

retiutut
Copy link
Member

@retiutut retiutut commented Jun 8, 2023


Checklist from #971

  • Remove unnecessary code

  • Reconfirm all data outputs for all data modes or improve as needed

  • LSL - Look at all instances of push_sample and push_chunk to see what is correct and proper, and make changes so that this networking mode is refined and can operate as the "most-used" protocol.

  • Double check networking output guide.... mention that data may be sent in "chunks"for LSL and maybe other data modes. (e.g. [[sample1 s1 s1 s1],[sample2 s2 s2 s2],[sample3 etc.]] ) Update GUI Networking Widget Guide and Data Outputs Documentation#170

  • Confirm and review Serial

  • Confirm and review UDP

  • Confirm and review OSC

  • Confirm and review LSL

@retiutut retiutut force-pushed the june2023-networking-refactor branch 3 times, most recently from 43818a5 to 8a4227c Compare June 10, 2023 17:54
- allows for multiple streams
- Tested using networking test kit
@retiutut retiutut force-pushed the june2023-networking-refactor branch from 743d70f to 6218ed2 Compare June 13, 2023 15:04
@retiutut
Copy link
Member Author

@mhrahmani you are welcome to review and test also!

@mhrahmani
Copy link

ICYMI I did a test:
#1042 (comment)

Mainly the Time Series crashes, and FFT has addressing conflicts.
The rest works well.

Copy link

@isaacplotkin isaacplotkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just finished testing UDP with all boards and data types. The refactored networking widget is working well on my side! Here are my notes from testing:

  • When receiving Cyton filtered/unfiltered UDP time series I am seeing that I am receiving 10 samples per channel (Only seeing 5 samples per channel for CytonDaisy, 8 for Ganglion). Would be good to add a note to the time series section of the output guide.
  • CytonDaisy FFT UDP stream is too large to receive using networking test script. If I expand the receiving buffer size it works fine.
  • I am only receiving 2 values when receiving the pulse UDP stream instead of 3.
  • Receiving UDP stream average sampling rate for bandpower, FFT, focus is slower than actual board sampling rate for all 3 boards (not sure if this is expected since these require more compute). Seeing the same thing with EMG (~125Hz for all 3 boards). NOTE: Nevermind I just saw your note that all other outputs besides timeseries sampling rate should be equivalent to current framerate 👍

@retiutut retiutut merged commit 7b971f2 into development Jun 26, 2023
@retiutut retiutut deleted the june2023-networking-refactor branch August 21, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants