v3.0.0 Release Candidate 6
Pre-release
Pre-release
v3.0.0
New Features
- Add wifi shield support.
- Simply add OpenBCI_Wifi_Master to your
DefaultBoard.ino
and addwifi.loop()
to your loop function. If you want to read from it checkout theDefaultBoard.ino
for it's simple interface. - Send channel gains to wifi shield at start of stream
- takes ~4 seconds for the wifi shield to be reachable
- Simply add OpenBCI_Wifi_Master to your
- Add ability to turn external serial port
Serial1
on through commands. - Change board types on the fly! No longer do you have to upload new code to the Cyton's Pic32 just to do an analog read. You can now read from analog or digital pins with the press send of a code!
/
now sets the board mode, where:- BOARD_MODE_DEFAULT is
0
- BOARD_MODE_DEBUG is
1
- BOARD_MODE_ANALOG is
2
- BOARD_MODE_DIGITAL is
3
- BOARD_MODE_DEFAULT is
- Add loop function for internal timing operations related to power on reset for wifi shield, remove
loop
to free up pins and such and remove wifi capability. - Add function to turn time stamps on
useTimeStamp(true)
, time stamps are disabled by default. Note the Wifi shield will use NTP time stamps. - Add wifi commands:
- OpenBCI Wifi Attach -
{
- OpenBCI Wifi Remove -
}
- OpenBCI Wifi Status -
:
- OpenBCI Wifi Reset -
;
- OpenBCI Wifi Attach -
- Variable sample rate in the format of ~(COMMAND). This works similar to the Channel Settings commands, however, there is no latching character. Changing the sample rate requires sending a
v
or soft-reset to ensure all systems are correct. Power cycling the OpenBCI board will cause the sample rate to reset back to default of 250Hz. IMPORTANT! The Cyton cannot and will not stream data over 250SPS. Plug in the wifi shield to get speeds over 250SPS streaming. You may still write to an SD card though, the firmware will not send EEG data over the Bluetooth radios. Check out the new commands:- 0 = 16000 Hz
- 1 = 8000 Hz
- 2 = 4000 Hz
- 3 = 2000 Hz
- 4 = 1000 Hz
- 5 = 500 Hz
- 6 = 250 Hz
- ~ = Get current sample rate
- EXAMPLE
- First, user sends ~~
- returns
Sample rate is 250Hz$$$
- Then, user sends ~5
- returns Sample rate set to 500Hz$$$
Enhancements
hasDataSerial0
andhasDataSerial1
use new propertiesSerialInfo
to determine if data should be received. Now safe to call every loop.
Breaking Changes
- Removed boolean
useAccel
in support of new mode paradigm. To use the accel, do nothing, it's enabled by default, to not use the accel simply calluseAccel(false)
and this library will automatically send the contents ofauxData
array each packet. - Removed
OPENBCI_EOP_STND_ACCEL
,OPENBCI_EOP_STND_RAW_AUX
,OPENBCI_EOP_USER_DEFINED
,OPENBCI_EOP_ACCEL_TIME_SET
,OPENBCI_EOP_ACCEL_TIME_SYNCED
,OPENBCI_EOP_RAW_AUX_TIME_SET
, andOPENBCI_EOP_RAW_AUX_TIME_SYNCED
in place ofenum
support replacement:PACKET_TYPE_ACCEL
,PACKET_TYPE_RAW_AUX
,PACKET_TYPE_USER_DEFINED
,PACKET_TYPE_ACCEL_TIME_SET
,PACKET_TYPE_ACCEL_TIME_SYNC
,PACKET_TYPE_RAW_AUX_TIME_SET
, andPACKET_TYPE_RAW_AUX_TIME_SYNC
. - Removed
sniffMode
in place forcurBoardMode == OPENBCI_BOARD_MODE_DEBUG
- Removed public
waitForNewChannelData()
- Removed public
timeSynced
and privatesendTimeSyncUpPacket
- Setting internal test signal now, when not streaming, returns a success message, with EOT
$$$
- Sending multi char messages now times out after a second of not completing the multichar message.
Release Candidate 6
Bug Fixes
- Even when command came from wifi, library printed to
Serial0
, which resulted in overflow of radio buffer which led to a reset.