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

Moppy And Bluetooth #196

Open
jax-b opened this issue Apr 25, 2018 · 2 comments
Open

Moppy And Bluetooth #196

jax-b opened this issue Apr 25, 2018 · 2 comments

Comments

@jax-b
Copy link

jax-b commented Apr 25, 2018

I am trying to hook up an HT-06 bt to serial adapter and moppy isn't seeing the port. arduino can see it and write to it. any thoughts.

@GeorgeTsakiridis
Copy link

Yesterday I received my HT-05 Bluetooth module and I wanted to test it with the Moppy. It worked ok. Moppy can't detect a bluetooth module because it is not designed to. It searches for COM ports. So what you need to do is modify the source code to search for bluetooth modules. This is actually pretty easy. You can download "BlueCove version 2.1.1-SNAPSHOT" library (assuming you have 64bit windows) and import it to the project. You need to write your own code for getting the device. Here is mine:

Bluetooth.java class: https://pastebin.com/QTcTMNL3
BluetoothScan.java class: https://pastebin.com/fPStecFd
Modified MoppyCOMBridge.java class: https://pastebin.com/mZdmeHKK

Note that this code was written in a few minutes and it causes some issues. For the program will no longer work with COM ports only with BT, and you must restart the program every time you with to disconnect. Also when the program launches you should just press Connect. Even if the selected COM port seems empty. Hope that helped!

@Sammy1Am
Copy link
Owner

Alternatively you should also be able to configure your Bluetooth device with a COM port of its own so it will show up with the other COM ports (this page has some instructions).

I've added directly bluetooth support as an enhancement ticket for Moppy2 though, perhaps someday it'll get added natively.

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

No branches or pull requests

3 participants