lsl_archived
lsl_archived copied to clipboard
Can lsl listen TCP stream sent from other server (not lsl server)?
Can lsl listen TCP stream sent from other server (not lsl server)? I am working with pylsl and integrating one lsl stream with the other TCP stream. I can listen with socket function of python, but can I directly receive it in pylsl (then integration will be far more easy)
Unfortunately not. You have to transfer the TCP stream to an LSL outlet in a python script (or any other language that is LSL enabled).
On 9/5/2017 10:20 AM, iPsych wrote:
Can lsl listen TCP stream sent from other server (not lsl server)? I am working with pylsl and integrating one lsl stream with the other TCP stream. I can listen with socket function of python, but can I directly receive it in pylsl (then integration will be far more easy)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/216, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7iFcYgok0DupUi2qGo0hyGdW7zmLks5sfQROgaJpZM4PMmKe.
Thanks for quick reply. Is there any example of python wrapper like that?
I don't think so. But it's trivial to find an example of how to read a TCP stream in Python, and this repository has examples on how to create outlets and feed them data. It's up to you to bridge the gap. The only tricky part will be translating the TCP packet payload into a timeseries, and this is something that can only be done by someone who knows your specific TCP protocol (or someone who can reverse engineer it).