Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Code don't run in windows #39

Open
Danielherresan opened this Issue Apr 19, 2017 · 7 comments

Comments

Projects
None yet
2 participants

Danielherresan commented Apr 19, 2017 edited

Please sorry my redaction, the english it's my second language.
I am trying to run this code in windows 10, after that i used Zadig tool for using my ganglion board, streaming the signal with OpenBCI GUI and this works fine.
My goal its run in python a algoritm of machine learning using a Rasphery like processing plataform. I am familiarizate with python then its very helpfull this code. I need Know how i can run it on Windows.

A friend have linux and in this enviroment install all requirements it's very easy, but dont found the ganglion board in the port 0,1,2,3...30. If you can help me i will be very glad.

Member

jfrey-xx commented Apr 19, 2017

Hello,

Unfortunately at the moment bluepy, the python library used to to communicate through bluetooth (BLE) does not support windows. There are alternatives to bluepy, but none seem to support all three OS (linux, mac, windows). It seems that windows 10 is particularity difficult to handle, so you may be better off directly trying to use a Raspberry.

As for your friend on linux, you must not pass a port as an option (as with the cyton), but the MAC address of the bluetooth dongle. Note also that it should be possible to auto-detect the MAC address if you don't specify any.

Good luck!

How do you auto-detect a MAC address?

We're actually thankful for your previous answer, sorry for the impoliteness,but the question just popped out of nowhere

Member

jfrey-xx commented Apr 20, 2017

No worry about "impoliteness", I do the same ;)

The "auto-detect" feature is enabled by default, e.g. to print the values: sudo python user.py --board ganglion -a print (sudo is needed for this "auto" mode).

I agree that the help could be reworked, I forgot to mention the MAC address, I will at least add that.

Thank you for your previous answer
We tried using the command you copied but we recieve an import error saying: "No module named btle". We've already installed bluepy.
Thank you for helping us so far

Member

jfrey-xx commented Apr 21, 2017

Did you install bluepy externally? You have to fetch the version that is comprised within this repository (clone with recursive option, compile, etc), see the "Ganglion Board" section in the Readme. Do no hesitate to comment if the help does not make sense or is not well phrased, we may try to improve that part thanks to your feedback ;)

Danielherresan commented Apr 21, 2017 edited

Thank you for your answer,
We are very glad with your help. Indeed we clone the repository, but this don't run because the system don't recognize import btle. We solve it changes import btle with import bluepy and where appears btle we change it with bluepy.btle. Its enough with this steps we solved the problem, then thanks for your help now you can close this issue.
If in the future run in windows will be awesome :D. Congratulations for your excelent job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment