gwolfsystems
Posts: 3
Joined: Sun Aug 24, 2014 12:03 am

Using bluecove on Raspberry

Tue Sep 30, 2014 8:31 pm

Hi, I'm starting with my raspeberry. I decide to start using bluetooth on my Pi connecting a bluetooth Dongle. I try using bluecove library. This library works good when I try to connect 2 pcs with windows, but, when I try to start my demo on de Pi, appears a error on the prompt "The connection implementation for btspp cannot be found". I build the bluecove-gpl in my PI but It stills non working. Can you Help me? Thank you!

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Using bluecove on Raspberry

Wed Oct 01, 2014 3:55 am

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

gwolfsystems
Posts: 3
Joined: Sun Aug 24, 2014 12:03 am

Re: Using bluecove on Raspberry

Sun Oct 05, 2014 6:59 pm

I looked for the answer but when I try to run my program I get the error message
"javax.microedition.io.ConnectionNotFoundException: The connection implementation for btspp cannot be found." I don´t know what I have to do.

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Using bluecove on Raspberry

Sun Oct 05, 2014 9:42 pm

I know nothing of BlueCove, but the SPP profile is not loaded by default. It may be as simple as

Code: Select all

sdptool add SP
. Before running your code. Otherwise, I'd look into getting Bluetooth serial communications working with command line tools, before programming it with BlueCove.

gwolfsystems
Posts: 3
Joined: Sun Aug 24, 2014 12:03 am

Re: Using bluecove on Raspberry

Tue Oct 07, 2014 2:20 am

Many thanks Douglas6!!! I did what you said and now my code is working! Thank you!

ahourai
Posts: 1
Joined: Wed Nov 26, 2014 3:25 am

Re: Using bluecove on Raspberry

Wed Nov 26, 2014 3:44 am

gwolfsystems wrote:Many thanks Douglas6!!! I did what you said and now my code is working! Thank you!
Hi I have the same issue, could you please help me. I got the following exception when i what to run this line:
" m_StrmNotf = (StreamConnectionNotifier)Connector.open(m_strUrl);"

javax.microedition.io.ConnectionNotFoundException: The connection implementation for btspp cannot be found.
at javax.microedition.io.Connector.open(Connector.java:238)
at javax.microedition.io.Connector.open(Connector.java:181)
at javax.microedition.io.Connector.open(Connector.java:162)
at toturial.ClientServer.InitServer(ClientServer.java:74)
at toturial.ClientServer.<init>(ClientServer.java:50)
at toturial.Server.main(Server.java:8)
Exception in thread "main" java.lang.NullPointerException
at toturial.ClientServer.RecieveMessages(ClientServer.java:152)
at toturial.Server.main(Server.java:9)
BlueCove stack shutdown completed

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Using bluecove on Raspberry

Wed Nov 26, 2014 2:21 pm

I can only suggest the same. From a command line, before running your code, enter

Code: Select all

sudo sdptool add SP


Return to “Java”