sending 'v' as a command

Hello,
thanks for the amazing dev on the card and the shield.
i made a python class to retrieve data via mqtt, and it seems to be working fine.
However, when i try to change fs, i run into an issue.
I first send '~5' for example to switch the fs, then according to the doc, i understand that i should send a soft reset 'v'
when i do this, i see the card resetting, however, it blocks my resuqest.
did anyone run into this by chance?
Thanks
Remy
r = requests.post('http://' + self.ipOpenbci + '/command', json={"command": 'v'})

Comments

  • PS: 
    when i do not post 'v' and ask for something else than 250, it either blocks, or sends just a few samples.
    Thanks again
  • wjcroftwjcroft Mount Shasta, CA
    Mentioning AJ @pushtheworld.
  • @remy

    Sending the `v` will reset the Cyton or Ganglion, thereby power on resetting the wifi shield, killing the http response back to the board. 

    Did you update your cyton firmware? What version are you running? Might need to use dongle to find out cyton version. 
  • Thanks for your fast reply AJ,
    That makes sense :), i should have thought of that.
    I have a Cyton @ v3.0.0
    and a shield    @ v1.1.3
    Do you know a good way then to switch the sampling frequency? 
    Thanks again.


  • edited October 2017
    You should set sample rate with '~5' to pass through the command. To test you can see your current sample rate by sending '~~'

    @remy Python command pass through example https://github.com/OpenBCI/OpenBCI_Python/blob/master/open_bci_wifi.py#L220
  • Thanks, i was trying to follow the cython sdk which mentions: "Changing the sample rate requires sending a v or soft-reset to ensure all systems are correct." after the ~(COMMAND) option
  • edited October 2017
    Oh yup that needs to be taken out! That was from an earlier beta pre wifi when we were testing sample rates. Thanks I'll update docs
  • oh ok thanks :)
  • @remy

    Please accept my apologies for the out dated documentation. If you encounter any more issues please tag me in a post! PS: The docs have been updated thanks to you!

    Thanks!
  • none needed, thanks a lot for your work on this board, it is really appreciated.
  • @remy ;

    My pleasure, I love programming with the WiFi shield! It makes my life as a developer so much easier.
  • tzvettzvet Hefei, China
    Hello,

    I am looking for a docs summary of available commands for the cyton+daisy, commands for changing basic sampling/channels parameters.

    is it possible to have a link to the documentation about all possible commands for changing the parameters of the cyton+daisy boards (e.g sampling, channel params etc.).

    I may have missed the link, though i looked around and found some tips about how to test noise, check the "square wave" signal on SD card (for cross-checking the sampling?).
    thanks
    tzvetomir

  • tzvettzvet Hefei, China
    Found it ! very sorry for the above post.

    in case others miss it, it is here : http://docs.openbci.com/OpenBCI Software/04-OpenBCI_Cyton_SDK
  • @tzvet glad you found it! Please let me know if there is anything you need help with!

    Actually, I'll talk to you soon over on the OpenBCI_GUI Issues.
  • also im pretty sure we can send stuff like

    http://openbci-1234.local/command?command=v

    I just need to figure out how to get these args on a get request.
Sign In or Register to comment.