Bluetooth Connection Error in J2ME

View: New views
7 Messages — Rating Filter:   Alert me  

Bluetooth Connection Error in J2ME

by andio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to connect to a bluetooth device using the (StreamConnection)Connector.open("btspp://1000e86b9f5c:1") method call. This doesn't work because I always get a javax.microedition.io.ConnectionNotFoundException.

Does anybody know if this should work with the Benq T80?

Thanks a lot for replies
Regards
Andio

Re: Bluetooth Connection Error in J2ME

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andio,

Unfortunatelly the BenQ T80 does not have JSR-82.
http://www.cell-idea.com:8080/Virtual_Shop/benqT80.jsp

I can give you a small clue about how I solved this. I hope it will help: you can create a Bluetooth router in C/C++ and make it listening for localhost connections. So in the Java application, you can open a socket connection with your Bluetooth server.

Cheers!

Jose

Re: Bluetooth Connection Error in J2ME

by andio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi josergc,

thanks a lot for your answer. It sounds very difficult. I wanted to test the bluetooth connection with this phone according times for opening and closing ports (serial port profile). Did you make such tests?

BR,
Andio

Re: Bluetooth Connection Error in J2ME

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi andio,

I have not tested yet, and that sounds be the easier way, but you should manually have the COM port created, attached and ready with the target before to open the serial port. We cannot simulate the btspp protocol in this way, because you give the target address and the service number, that is because I said to create a kind of router.

If you are going to check this right now, could please you post your results? :)

Best regards,

Jose

Re: Bluetooth Connection Error in J2ME

by andio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi josergc,

I understand. It would have been nice, if the T80 supports JSR-82. In this case, I think it's to much effort to implement it this way. But if I do it, I'll post my experience.

Thanks,
BR,
Andio

Re: Bluetooth Connection Error in J2ME

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andio,

How about your application? maybe are you focused in the Bluetooth connection because you adapting any MIDlet developed for the Nokia 6131 NFC? At least, that was my case. If you can choose the connection, I will recommend you to use the T80 's WiFi to connect with terminals and servers . socket, http or https protocols will help in this.

Greetings,

Jose

Re: Bluetooth Connection Error in J2ME

by andio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi jose,

right, I developed a MIDlet for the 6131 NFC but the bluetooth connection is very slow (when opening a connection). So I wanted to evaluate the T80 if it works better. The problem is, that the terminals we want to connect to only support bluetooth at the moment. WiFi will be interesting in the next steps.
Thanks for your suggestion.

BR,
Andi