Connecting to OpenBCI using Adafruit nRF52
Hi there,
I am transferring from the Ganglion board to an Adafruit nRF52832 board. I believe I have successfully changed over the Simblee commands in the firmware for the Ganglion to the equivalents for the nRF52. However, when I try connecting to the OpenBCI, Hub crashes with a fatal error saying it "Cannot read property 'once' of null."
Additionally, when I run the software from Processing, error 402 comes up indicating a failure to connect to the board.
OpenBCI_GUI::Control Panel: Playback history file not found or other error.
The file "SavedData/Settings/UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
Hub: processConnect: made it -- 36589 code: 402
Error in processConnect: RESP_ERROR_UNABLE_TO_CONNECT
error, disabling clientEvent() for 127.0.0.1
java.lang.NullPointerException
at OpenBCI_GUI$Hub.processConnect(OpenBCI_GUI.java:13364)
at OpenBCI_GUI$Hub.parseMessage(OpenBCI_GUI.java:13269)
at OpenBCI_GUI.clientEvent(OpenBCI_GUI.java:12941)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at processing.net.Client.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Client SocketException: Connection reset
Hub: processConnect: made it -- 36589 code: 402
Error in processConnect: RESP_ERROR_UNABLE_TO_CONNECT
error, disabling clientEvent() for 127.0.0.1
java.lang.NullPointerException
at OpenBCI_GUI$Hub.processConnect(OpenBCI_GUI.java:13364)
at OpenBCI_GUI$Hub.parseMessage(OpenBCI_GUI.java:13269)
at OpenBCI_GUI.clientEvent(OpenBCI_GUI.java:12941)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at processing.net.Client.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Client SocketException: Connection reset
I am using a SRC BLE dongle for my Windows 10 machine, and I understand the BLED112 may be better. Would changing dongles help in this case?
Is there somewhere deeper in the code (perhaps in the GATT protocols) that can be accessed or changed. Is it something that could be adjusted at the Firmware level instead?
Thank you for your help.
Comments