hbldh

About

Username
hbldh
Joined
Visits
88
Last Active
Roles
Member

Comments

  • Added the code above as an example in the new 0.7.0 release of PyMetaWear today: https://github.com/hbldh/pymetawear/blob/master/examples/two_clients.py
  • It isn't more complicated than this: import time from pymetawear.client import MetaWearClient address_1 = 'DD:3A:7D:4D:56:F0' address_2 = 'FF:...' client_1 = MetaWearClient(str(address_1), debug=True) client_2 = MetaWearClient(str(address_2), debug…
  • Published a new release to PyPI (PyMetaWear 0.6.0) that has the 64-bit stuff removed. It worked fine without it now; apparently I did some mistake last time I tried to remove it. I also updated to use the C++ API version 0.6.0 at the same time. @j…
  • I seem to recall that I tried to remove them during the 0.5 update and that it seemed that they were still needed, so I left it at that. Some quick tests this morning seems to indicate otherwise though... @jdjones I will evaluate it this morning…
  • Sorry for not responding sooner; have had a lot to take care of elsewhere. I did get the logging to work somewhat with that script, but I seem to recall that the downloading of data in the logger_ready callback got stuck somehow. I stopped the att…
  • The log_acc.py script should never have made it into the release branch, my bad. I never got it to work properly and I think the example there is from an old C++ API version. For the purposes I needed the lib for, I was content with streaming the …
  • The PyMetaWear Python package, using the MetaWear-CppAPI version 0.5.22 is now available on PyPI: https://pypi.python.org/pypi/pymetawear/ This means that it can finally be installed by pip install pymetawear
  • Yes the pymetawear is only a wrapper around the MetaWear C++ api, providing a more pythonic interface to it. Check out the test code for neopixels (https://github.com/mbientlab/Metawear-CppAPI/blob/master/test/testneopixel.py) to get something to wo…
  • Read the docstring here: https://github.com/hbldh/pymetawear/blob/master/pymetawear/client.py#L29-L50 It will remove the need for sudo when doing hcitool lescan, making it possible to call from PyMetaWear.
  • @fraguada, I have recently been solving that very issue! The Github issue #7 (https://github.com/hbldh/pymetawear/issues/7) of the PyMetWear repo deals with Raspberry Pi 2/3 instalaltions and it is working now, albeit only in the development branch.…
  • @eric: What is the proper way to disconnect from a MetaWear board using the C++ API? Is it sufficient to use mbl_mw_metawearboard_tear_down(board) mbl_mw_metawearboard_free(board) Is there any need for the Debug module's mbl_mw_debug_disconnect…
  • Added a printout before both rows and it segfaults on the first one. Added this: std::cout -1409266112 Subscribing to battery state... Before emplace: 0xffffffffac004e40 The integer printed out is the value returned by mbl_mw_settings_get_battery…
  • They are not NULL or None, but I get different values every time I run the script: battery_signal = libmetawear.mbl_mw_settings_get_battery_state_data_signal(c.board) battery_signal: -603953344, 1744856896, -1342150848, ... acc_signal = libm…
  • @Eric: After some programming I have now come to trying to subscribe to data signals, but I experience segfaults at some  points. Last time I asked, it seemed to be because the board had not initialized properly. Now though, I wait for the initi…
  • Oh, I've got some questions, but I need to get the basic ble communication working nicely first before it is reasonable to ask anything!