OpenBCI_GUI icon indicating copy to clipboard operation
OpenBCI_GUI copied to clipboard

MacOS X FTDI Latency Fix

Open retiutut opened this issue 3 years ago • 2 comments

Problem

The default latency for the FTDI driver for Max OS X is 16 ms. This makes data appear choppy both in BrainFlow and the GUI.

Expected

It needs to be 1 ms to make Cyton and CytonDaisy data appear smooth for data streamed through BrainFlow and the GUI.

Operating System and Version

Mac OS X 10+

GUI Version

GUI 5.1.0

Running standalone app

Standalone and from Processing

Type of OpenBCI Board

Cyton and Cyton+Daisy

Are you using a WiFi Shield?

No

Console Log

N/A

https://openbci.com/forum/index.php?p=/discussion/comment/18232#Comment_18232

retiutut avatar Aug 31 '22 17:08 retiutut

@Andrey1994 Maybe this fix can be embedded in BrainFlow specifically for Cyton, CytonDaisy and Mac.

retiutut avatar Aug 31 '22 17:08 retiutut

need help with testing https://github.com/brainflow-dev/brainflow/pull/551/files

Andrey1994 avatar Sep 15 '22 08:09 Andrey1994

Suggest adding a comment on the ioctl in your source, to state that the argument is 1 millisecond, not 1 microsecond. This may be an idiosyncrasy of the FTDI chip implementation. And Apple's ioctl man page or documentation is probably correct in stating that the original intention is microseconds.

See Scott Hannahs' comment here, shout out to Scott,

https://openbci.com/forum/index.php?p=/discussion/comment/18231/#Comment_18231

https://nationalmaglab.org/about/organization/scott-hannahs-lab-leadership

wjcroft avatar Oct 19 '22 21:10 wjcroft

https://github.com/OpenBCI/Documentation/pull/134

retiutut avatar Dec 13 '22 23:12 retiutut