I hope I'm asking in the correct part of the Forum. If not, feel free to move it and I imagine I'll be alerted or will otherwise find out where to pick up on it.
Summary:
Can I use the GUI to cause the AFE to run at >200 sa/s, even if the bluetooth interface can't support that data rate being sent back to a PC/etc.?
Details:
I think I have a simple need. From Ganglion,
-- I want only one channel.
-- But I want sampling at more than 200sa/s ... probably at least twice that rate, but maybe ideally about 1Ksa/s .... well within the capability of the MCP3912 Analog Front End IC that's in Ganglion.
-- I want guaranteed-minimum (tbd, couple ms??) latency from the time of a patient-delivered-signal, and the time that the 'smarts-system' detects the signal.
I'm coming to understand this. I can only receive (into a PC/etc) <=200sa/s when using the standard Bluetooth interface. The limitation is substantially or solely due to the data rate thru the Bluetooth interface. I don't know whether latency is or can be known as tightly as I want.
Meanwhile I'm starting to understand this. I may be able to accomplish well over 200sa/s using a WiFi shield. But to date it's not a released product, not yet a stable solution and in any case with (to me) unknown latency. I haven't touched it, at least not yet.
Instead, my plan is to do whichever of these is possible/feasible:
#1) Preferred.
Snoop on the "Serial1" SPI lines (SCK, MOSI, MISO, maybe more), which I'll optically couple to ensure proper patient isolation. Upon reset/powerup, a PC could, thru bluetooth, configure Ganglion (specifically the AFE for sample rate etc) to something like 1Ksa/s.
#2) Alternative.
Not just snoop on the "Serial1" SPI lines, but in some way drive some of the AFE MOSI/etc lines to make the AFE run at 1Ksa/s or whatever; (I would cut or switch as needed, the SCK and MOSI lines in order to accomplish this). Plus, monitor the SCK/MISO & any other necessary lines in order to read the EEG data.
#3) Least desired alternative:
Abandon the beloved Ganglion. Modify an in-house-designed ECG device to work as desired for simple 1-channel EEG needs.
Just a note about patient isolation:
I definitely appreciate what may not be obvious to those unfamiliar with human patient-connected equipment. There's a need to provide robust patient isolation -- high-voltage, low-current-leakage, long-term, cabling/etc arrangement-independent, creepage, clearance -- between patient-connected and earth/etc-connected circuitry. In another forum section, for the BCI GUI, on 5/19/17, pushtheworld wrote that 'no one recommends this':
"Next concept: using Serial1 with an optoisolator hardwired to your laptop will support a higher sample rate. This can lead to shock if you hooked up wires incorrectly so no one recommends this. That's why the wifi shield is a big deal.... it uses SPI instead of UART which is much faster and allows for a much greater then 1kHz ..."
When I say that I'll optoisolate Serial1, I'm saying I'll do that with the benefit of decades of design experience and, in approx the 1990s anyway, having been involved in generation of U.S. and European regulatory standards. So in raising the idea of optoisolating the Serial1 (SPI) lines, I sure don't mean to do so irresponsibly or to recommend it to anyone else.
Thanks so much for a response to the question that's in the "Summary" above! An answer will change what I do next week.
-- Bruce P.