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
Running on Ubuntu? #1
Comments
Hi Bryan, Glad that you found my code. :) It's not much, but it's a start. I forgot to write Bluez 5.10 in the instructions, that is probably why you When I wrote my code, I found that the Raspbian repository contained an You can check the version with "rfcomm -h | head -1" for example. The deps directory is a left-over from when the code was in another Regards, On Fri, Dec 26, 2014 at 10:09 PM, Bryan Weber notifications@github.com
|
I have a similar problem - can't get it to work on debian running under VM (I want to develop as much as possible on vm before moving to pi). I installed bluez-5.10 - rfcomm test returns 5.10 correctly I had one problem with build - I removed conditional include so that the bluetooth files are always included. That passed compilation (rebar co). when I run rebar shell and bluetooth_interface:get_local_name The on_load function for module bluetooth_interface returned {{badmatch, any ideas? Regarding VM access to hub - I found that virtualbox does not work, but vm player works fine. You need a dongle with CSR chipset. Here are some other instructions helpful for diagnostics : elinux.org/RPi_Bluetooth_LE |
1 similar comment
I have a similar problem - can't get it to work on debian running under VM (I want to develop as much as possible on vm before moving to pi). I installed bluez-5.10 - rfcomm test returns 5.10 correctly I had one problem with build - I removed conditional include so that the bluetooth files are always included. That passed compilation (rebar co). when I run rebar shell and bluetooth_interface:get_local_name The on_load function for module bluetooth_interface returned {{badmatch, any ideas? Regarding VM access to hub - I found that virtualbox does not work, but vm player works fine. You need a dongle with CSR chipset. Here are some other instructions helpful for diagnostics : elinux.org/RPi_Bluetooth_LE |
Hi, I'm excited to see that people are downloading my code and I will do my I designed the code to be compiled on ARM target architecture (as you saw) The reason why I checked for ARM is that it allowed me to run unit tests on Anyway, I am currently trying to make the test client/server code work By the way, it doesn't matter if you have Ubuntu or Debian as long as you You can always run the command line tools to test your setup. Regards, |
Thanks a lot! I managed to get much further - -lbluetooth was crucial. Any ideas? |
Hi again, I have not had a look at the low energy settings. You could try a "normal" Also, if you want to see what's going on, you should install hcidump and Finally, you can call discover([{num_discovery_cycles, N}]), which allows Regards, On Sun, Jan 4, 2015 at 2:37 PM, voltcode notifications@github.com wrote:
|
OK, that explains a lot. Somehow I thought your project was about Bluetooth Low Energy :) I understand BLE is different bit of API in bluez so naturally that won't work out of the box with standard bluetooth. I suppose we can close this issue and perhaps some future visitors will use this knowledge for troubleshooting (or it gets moved to the main page: tips about -lbluetooth in rebar.config and using VMPlayer instead of VirtualBox in case of problems). Thanks for help! |
I'm trying to get this project working on an Ubuntu vm (Linux vagrant-ubuntu-trusty-64 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux). Rebar was choking on compiling the c files initially. I've since pushed past that by explicitly adding the bluetooth includes in bluetooth_interface.c.
However, now I'm getting the following error:
vagrant@vagrant-ubuntu-trusty-64:/vagrant/bluetooth$ rebar shell
==> bluetooth (shell)
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4 (abort with ^G)
1> bluetooth_interface:get_local_name().
** exception error: no match of right hand side value {error,{other,97}}
in function bluetooth_interface:get_local_name/0 (src/bluetooth_interface.erl, line 141)
I suspect that this is an issue with my VM not being able to properly access bluetooth from the host OS but I'm not sure yet. So, have you tried this on Ubuntu? Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered: