Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth nonble #61

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

raduiliescu
Copy link
Contributor

Support for HC05 Bluetooth module (nonBLE)
Fix for random cessation of upload to Mongo DB - issue #46

Radu Iliescu and others added 6 commits February 7, 2015 22:57
needed for normal bluetooth devices (non BLE) support
- this was tested with hc-05 bluetooth module
- add a bluetooth reader thread that is started when a non BLE device is selected;
- if device is changed the connection is reset;
- if is loosing the connection (wixel is powerdown/out of range) it will retry to connect;

In order to work with this the wixel has to send message in "len raw dex_batter wixel_battery"
where len is strlen of "raw dex_battery wixel_battery"

Left todo's:
- do bluetooth discovery and pairing - now is taking only paired devices;
- battery consumption test
start bluetooth reader from dex collection service
instead of creating an instance on every connection
have one global persistent instace

in case the URI is changed or exception on sending data to mongo
is generated create a new instace

this seems to fix ocational cessation of upload to mongo
…triggered

enabling wifi with 3G connected resulted in data not being uploaded to mongo
@StephenBlackWasAlreadyTaken
Copy link
Owner

Thank you for this! I have a non BLE module on its way so I can give this a go!!
Hopefully I can have it merged in the next few days!

@raduiliescu
Copy link
Contributor Author

Please note it needs some changes on the wixel too. I've just posted them.
If you have two wixels would be good if you can test how this behaves when connecting once to BLE then normal bluetooth then BLE.
My BLE module didn't arived yet.

@raduiliescu
Copy link
Contributor Author

Have you managed to look into this? On latest sources this will need 2 changes to compile.

Let me know if I can help.

@StephenBlackWasAlreadyTaken
Copy link
Owner

Hey sorry, I am trying to put all my focus on share for the next week or so (and have been for the last few weeks), I hate to leave this hanging for so long but I will get to it!

tzachi-dar pushed a commit to tzachi-dar/DexDrip that referenced this pull request Jul 28, 2015
…te-ago-delta-reba

Minute ago delta rebased
matthiasamusement

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants