pylsl icon indicating copy to clipboard operation
pylsl copied to clipboard

Byte order conversion on the raspberry pi.

Open vincentNRC opened this issue 2 years ago • 3 comments

Hi,

I've been experimenting with LSL on the Raspberry Pi in the past few days and so far so good, it's installed and I'm able to exchange some data with a Windows PC.

The issue comes when I tried to send a string from the PC to the Pi. I keep getting an error from "data_receiver.cpp" line 342 that says "Stream transmission broke off (The byte order conversion requested by the other party is not supported.)".

I've had a look at the "data_receiver.cpp" script and I've identified that the error is thrown from line 231 when using the can_convert_endian() function. So I'm guessing this is returning false and the error is thrown.

Based on these observations, my questions is: Is there some conversion I'm not doing when sending strings from the PC to the Pi?

A good way to reproduce this is to run the "SendStringMarkers.py script" on the PC and the "ReceiveStringMarkers.py" on the Pi.

For reference, I'm using PyLSL version 1.15.0 on Raspberry Pi 3B.

Thanks in advance for your help.

Cheers, Vincent G.

vincentNRC avatar Mar 29 '22 17:03 vincentNRC

I need to put out a new pylsl release soon so I'll test this when I do that, but on a Pi 4B because that's what I have. I don't expect I'll be able to get to that until Friday at the earliest. Let me know if you make any more discoveries in the meantime.

cboulay avatar Mar 29 '22 23:03 cboulay