Cyton Simulate EPIPE Error
After successfully working with hardware and simulated Cyton Board, I now have the following problem: If I run the board with simulate: true in a specific setup, where the sample data gets put into a python script from node.js; the simulated board seems to be disconnecting itself. Funny thought that the exact same software runs on my friends Windows 10. On my MacBookAir (mid 2012) macOS 10.12.6 with node 9.10.1 npm 5.6.0 python 3.6 the sim-board disconnects giving the following error:
$$$
Error: write EPIPE 443at _errnoException (util.js:1022:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:880:14)
exit
stop streaming
Serial Port Closed 451
Error: write EPIPE
at _errnoException (util.js:1022:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:880:14)
exit
Error: no board connected
at Promise.resolve.then.then (/Users/mjair/Documents/GitHub/OpenBCI_NodeJS_IP6/node_modules/openbci-cyton/openBCICyton.js:388:31)
at <anonymous>
at Immediate._tickCallback (internal/process/next_tick.js:188:7)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
Error: write EPIPE
at _errnoException (util.js:1022:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:880:14)
exit
####
I tried lower (8.9.4) and higher (10.6.0) node.js versions and npm rebuild, nothing helps.
If I uncomment the pyshell script it works, but this does not seem to be the root cause, as the pyshell script works this way on my friends Win10 machine.
Also, if I run the board simulator with other node.js scripts, it does not fail.
Does anybody have a clue what this could be about? Thanks
Comments