# OpenBCI Ganglion commands and Python. Help needed

**URL:** <https://neurobb.com/t/openbci-ganglion-commands-and-python-help-needed/1185>\
**Category:** Software\
**Created:** [December 23, 2019, 12:51pm UTC](https://neurobb.com/t/openbci-ganglion-commands-and-python-help-needed/1185 "2019-12-23T12:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindlab\_space](https://neurobb.com/user_avatar/neurobb.com/mindlab_space/32/261_2.png) [@mindlab\_space](https://neurobb.com/u/mindlab_space)\
**Post date:** [December 23, 2019, 12:51pm UTC](https://neurobb.com/t/openbci-ganglion-commands-and-python-help-needed/1185/1 "2019-12-23T12:51:44Z")

</div>

Dear all, dear developers,  
I have no idea how to get responses back when I send commands to OpenBCI Ganglion.

I am using [pyOpenBCI](https://github.com/OpenBCI/pyOpenBCI).  
When I call for example:

```
`OpenBCIGanglion::write_command(self, command)`

```

how do I read the answer coming from the board?

```
board = OpenBCIGanglion()
response = board.write_command('?') # response is always {'rsp': ['wr']} for any command sent

```

When I send “`?`”, I would like to get back the the board’s registry.  
When I send “`~~`”, I would like to get back “`Sample rate is someHz`”  
([GanglionSDK](https://docs.openbci.com/docs/03Ganglion/GanglionSDK))

I looked for examples, but I couldn’t find any implementation.

Could anyone paste here a code snippet? or pseudo-code…  
Or a reference to a piece of code in the library with some explainations.  
I would appreciate.

I think it would be nice to have a native python library for Ganglion boards (I am trying to build yet one).  
Thanks for the support!

Kind Regards  
Matteo M.
