aribes
About
- Username
- aribes
- Joined
- Visits
- 165
- Last Active
- Roles
- Member
Comments
-
Ok, I will try without virtualenv. I am not using bluez but pygatt. With bluez backend (pymetawear 0.8.0) I remember I was getting some error.
-
Are there more than one model of rpi3? I am runing latest raspbian. No more messages beside bus error. Yes, I have tried using a dongle and same error.
-
Another thing that I have noticed is that for some reason, when I suscribe to sensorfusion quaternion it works well, but if I suscribe to the corrected acc&gyro signals, then the program crashes with a "Bus error" message. UPDATE: I also insta…
-
I am also having the same problem (exposed in a recent post of mine), but on raspberry pi 3. No matter if I use a dongle or the internal bluetooth adapter, I also get this error.
-
Starting a new virtualenv to run some more tests in the Raspberry Pi 3, with python 2.7, I get the following errors: First one because of permissions: Traceback (most recent call last): File "multi_device.py", line 26, in d.connect() …
-
Looks like the relation with the firmware was just a coincidence. Sometimes I get a rate of 100hz, sometimes 75hz, and other times 15-20Hz. I also noticed that the python process uses 100% of cpu (the allocated core) when the rate is 15-20hz, and …
-
I am using your pygattlib fork, as recommended in the docs. I also realized that if I use pygatt==3.2.0, with the pymetawear==0.8.0, I get the following error: Traceback (most recent call last): File "_ctypes/callbacks.c", line 315, in 'cal…
-
No, but that never has caused a problem, thanks to this post on SO https://unix.stackexchange.com/questions/96106/bluetooth-le-scan-as-non-root I run this command, so python gets capabilities to scan. That was enough for previous versions. sud…
-
Ubuntu 16.04 and python 2.7
-
Ok, understood. Thanks for your help. Now it seems to work better, but I will open another thread for a different problem.
-
What about the debug_disconnect function? Some examples directly call the MetaWear.disconnect() method (led.py), but others call mbl_mw_debug_disconnect. What about mbl_mw_metawearboard_tear_down? Looks there are different combinations of library …
-
Shouldn't the MetaWear object have sort of an is_connected property that checks if the btle connection is still open? The problem is that when the sensor gets out of range, it is automatically disconnected, and a call to disconnect from my side resu…
-
I don't quite understand what you mean by serializing the API state. I see that the mbl_mw_metawearboard_initialize is called in the connect() function (python API). When does the deserialization occur? Before or after connecting to the board? Sho…
-
I tried to call init_libmetawear if I get 5 timeouts in a row, but it doesn't work. Sometimes, after 2-3 timeouts, it connects to the board, but other times the program gets stuck in endless timeouts, and the only solution is ctrl-c the app and run …
-
I think resetting the board should not be needed, because if I terminate the app and start again right after that, then I can connect again. So it seems something related to python having some library internal state which is interfering, as is the o…
-
Does this apply to sensorfusion? Because when I refer to "data", I mean sensor fusion data. I am already making the call to: board.settings.set_connection_parameters(7.5, 7.5, 0, 6000) However, the question was not about "how to stream data hi…
-
I am using pygatt, because with pybluez I get the "cannot create data processor" error message, no matter that I reconnect or reset the board (from metawear app).
-
BTW, in order to get the 100Hz, the first time that I connect to the two boards, data arrives at 66Hz and some lag (less than 500ms). Then, if I reconnect (just calling disconnect() and connect() for each board) while the program is running, then it…
-
I am already calling the disconnect method (python api) which calls the mbl_mw_metawearboard_tear_down, so I guess that is ok. How do you execute issue a soft reset in code? I guess that the process should be: detect wrong behaviour -> issue so…
-
The code is here https://pastebin.com/XWMF1bcj
-
Python 2.7.12 on Ubuntu 16.04 The code I am using is the sensorfusion.py example. I have only modified the connection part by wrapping in a while True and a try/catch block, so I keep trying to connect if a timeout exception is raised. If using…
-
It is an issue with Android, because I have currently no iOS device I can test with. I tried the "update firmware". I don't know if you mean this by "reflashing the firmware". What do you mean by resetting? The devices have been powered off becaus…
-
Same here, I get lots of "Non-zero connection changed status (133)" or "Timed out establishing Bluetooth Connection". It is very frustrating, because I took the code from the example applications, but these work well.
-
Thanks for the link. I ended up modifying the BleScannerFragment and now it is working quite well.