Open iPsych opened 4 years ago
@oori The same issue happens as below.
Looking for a PPG stream... Can't find PPG stream.
PPG stream only works with --disable-eeg option...
@oori Also tested all possible pair (i.e. gyro +PPG, gyro +ACC, ACC+EEG etc...), and found only one stream works. (pylsl 1.13.1, pygatt 4.0.5 with BLED112 in Mac OS High-Sierra).
I observe the same: only the last opened lsl outlet gets sent.
I tried to reproduce a multi-outlet sending with this script, and indeed only the last one will appear in lsl outlet resolution:
#!/usr/bin/python3
import time
import pylsl
def main():
info1 = pylsl.StreamInfo(
"POS", "Test", 1, pylsl.IRREGULAR_RATE, 'float32', 'myuid34234')
info2 = pylsl.StreamInfo(
"NEG", "Test", 1, pylsl.IRREGULAR_RATE, "int16", 'myuid43432')
# next make an outlet
outlet1 = pylsl.StreamOutlet(info1)
outlet2 = pylsl.StreamOutlet(info2)
seq: int = 0
while True:
outlet1.push_sample([time.time()])
if seq % 3 == 0:
outlet2.push_sample([seq % 65536])
seq += 1
time.sleep(0.01)
if __name__ == '__main__':
main()
It looks like a firewall issue: if I stop the firewall, all streams show up in discovery
This lsl_api.cfg
makes it work for me on localhost:
[multicast]
ResolveScope = machine
[lab]
KnownPeers = {localhost}
Still same issue. []https://github.com/alexandrebarachant/muse-lsl/issues/94
The PPG signal cannot be recorded simultaneously with EEG. Current environment is MacOS High-Sierra, Python3.7, and below errors are happens. As jdpigeon told, disable EEG works, but than no use for real application...
[Update] Install pygatt==4.0.0 allow streaming EEG + PPG, but the connection is unstable. In pygatt==4.0.5, the simultaneous recording never happens.
[Update2] Even in pygatt==4.0.0, it starts randomly EEG only or EEG + PPG streams.