You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-30Lines changed: 46 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Want to know if the module really works? Check out some projects and organizatio
73
73
74
74
Still not satisfied it works?? Check out this [detailed report](http://s132342840.onlinehome.us/pushtheworld/files/voltageVerificationTestPlanAndResults.pdf) that scientifically validates the output voltages of this module.
75
75
76
-
How are you still doubting and not using this already? Fine, go look at some of the [700**_automatic_** tests](https://codecov.io/gh/OpenBCI/OpenBCI_NodeJS) written for it!
76
+
How are you still doubting and not using this already? Fine, go look at some of the [800**_automatic_** tests](https://codecov.io/gh/OpenBCI/OpenBCI_NodeJS) written for it!
77
77
78
78
Python researcher or developer? Check out how easy it is to [get access to the entire API in the Python example](examples/python)!
79
79
@@ -88,6 +88,7 @@ Initializing the board:
88
88
var OpenBCIBoard =require('openbci');
89
89
var ourBoard =newOpenBCIBoard.OpenBCIBoard();
90
90
```
91
+
Go [checkout out the get streaming example](examples/getStreaming/getStreaming.js)!
91
92
92
93
For initializing with options, such as verbose print outs:
93
94
@@ -107,6 +108,16 @@ var ourBoard = new OpenBCIBoard({
107
108
});
108
109
```
109
110
111
+
Have a daisy?:
112
+
```js
113
+
var OpenBCIBoard =require('openbci').OpenBCIBoard;
114
+
var ourBoard =newOpenBCIBoard({
115
+
boardType:`daisy`,
116
+
hardSet:true
117
+
});
118
+
```
119
+
Go [checkout out the get streaming with daisy example](examples/getStreamingDaisy/getStreamingDaisy.js)!
120
+
110
121
Another useful way to start the simulator:
111
122
```js
112
123
var openBCIBoard =require('openbci');
@@ -130,7 +141,7 @@ var ourBoard = new OpenBCIBoard({
130
141
simulate:true
131
142
});
132
143
```
133
-
ps: go [checkout out the example](examples/debug/debug.js) to do it right now!
144
+
Go [checkout out the debug example](examples/debug/debug.js)!
(NOTE: THIS IS IN-OP TIL RELEASE OF GANGLION BOARD 08/2016)
409
+
* `hardSet` {Boolean} - Recommended if using `daisy` board! For some reason, the `daisy` is sometimes not picked up by the module so you can set `hardSet` to true which will ensure the daisy is picked up. (Default `false`)
398
410
* `simulate` {Boolean} - Full functionality, just mock data. Must attach Daisy module by setting `simulatorDaisyModuleAttached` to `true` in order to get 16 channels. (Default `false`)
399
411
* `simulatorBoardFailure` {Boolean} - Simulates board communications failure. This occurs when the RFduino on the board is not polling the RFduino on the dongle. (Default `false`)
400
412
* `simulatorDaisyModuleAttached` {Boolean} - Simulates a daisy module being attached to the OpenBCI board. This is useful if you want to test how your application reacts to a user requesting 16 channels but there is no daisy module actually attached, or vice versa, where there is a daisy module attached and the user only wants to use 8 channels. (Default `false`)
@@ -532,6 +544,21 @@ A number specifying which channel you want to get data on. Only 1-8 at this time
532
544
533
545
**_Returns_** a promise, fulfilled if the command was sent to the board and the `.processBytes()` function is ready to reach for the specified channel.
Sends a command to the board to set the max channels. If you have a daisy attached, calling this function will re-sniff for the daisy ADS and attempt to use it.
868
-
869
-
**_numberOfChannels_**
870
-
871
-
A Number indicating the number of channels.
872
-
873
-
* `8` - Default number of channels.
874
-
* `16` - Daisy number of channels.
875
-
876
-
**_Returns_** a promise, fulfilled if the command was sent to the write queue. Rejects if input is not `8` or `16`.
Emitted when the module detects the board is not configured as the options for the module intended and tries to save itself. i.e. when the `daisy` option is `true` and a soft reset message is parsed and the module determines that a daisy was not detected, the module will emit `hardSet` then send an attach daisy command to recover. Either `error` will be emitted if unable to attach or `ready` will be emitted if success.
Copy file name to clipboardExpand all lines: changelog.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,27 @@
1
+
# 1.5.0
2
+
3
+
### New Features
4
+
* New simulator option `simulatorDaisyModuleCanBeAttached` - Boolean, deafults to true, allows the simulation of the a hot swapped daisy board or simulates a misinformed module.
5
+
* New `EventEmitter` - `hardSet` - for when the module detects the board is not configured as the options for the module intended and tries to save itself. i.e. when the `daisy` option is `true` and a soft reset message is parsed and the module determines that a daisy was not detected, the module will emit `hardSet` then send an attach daisy command to recover. Either `error` will be emitted if unable to attach or `ready` will be emitted if success.
6
+
* Add example for streaming with `daisy` and `hardSet`.
7
+
8
+
### Breaking changes
9
+
*`.setInfoForBoardType()` changed to `.overrideInfoForBoardType()` to elevate it's dangerous nature.
10
+
*`.setMaxChannels()` changed to `.hardSetBoardType()` and input changed from numerical to string: 8 and 16 to `default` and `daisy` respectively.
11
+
12
+
### Bug Fixes
13
+
* Fixes #131 - 16 chan not working by sending a channel command and parsing the return.
14
+
* Fixed bug where end of transmission characters would not be ejected from buffer.
15
+
16
+
### Enhancements
17
+
* Separated radio tests from main board test file.
18
+
1
19
# 1.4.4
2
20
3
21
### New Features
4
22
* Set max number of channels for the board to use with `.setMaxChannels()` see readme.md
5
-
* Set the core info object that drives the module with `.setInfoForBoardType()` see readme.md
6
-
* Get info for the core obhect that drives the module with `.getInfo()` see readme.md
23
+
* Set the core info object that drives the module with `.overrideInfoForBoardType()` see readme.md
24
+
* Get info for the core object that drives the module with `.getInfo()` see readme.md
7
25
8
26
### Work In Progress
9
27
* Bug where daisy would sometimes not be recognized which destroyed all data.
0 commit comments