sccn / lsl_archived

Multi-modal time-synched data transmission over local network
242 stars 133 forks source link

Not all markers are being received #323

Open SwiftKayAndroid opened 6 years ago

SwiftKayAndroid commented 6 years ago

I'm having an issue where I have two Android apps, one is the ReceiveStringMarkers app provided in the sample and the other is a custom app. The custom app is sending the markers steadily whenever a stimulus is drawn on the screen (I have verified these markers ARE sending correctly) however the receiver app isn't always picking up the markers, or it picks up the markers out of order. Any ideas why this could be happening?

mgrivich commented 6 years ago

Try the example SendStringMarkers app (with ReceiveStringMarkers) instead and see if you can reproduce the problem.

If yes, the problem is probably low network quality. I assume you are on a wireless network, and that your sending and receiving apps are not on the same device.

Try:

Eliminate, block (with electromagnetic shielding), or move away from competing networks. Get a stronger wireless router. Change the channel of your wireless network to conflict less with competing networks. Move your wireless router closer to the devices in question.

Aside:

Event ordering is not guaranteed by LSL. If that is a problem, you have to cache events as they come in, inspect their timestamps, and reorder them yourself.

SwiftKayAndroid commented 6 years ago

Thank you, I will pass this info along and see what happens!