| Reply | « Previous Thread | Next Thread » |
|
I have an app using Bluetooth which I am trying to get working on a Nokia 6680. It seems to be working okay on a 6600, but for some reason I am getting IOExceptions on the 6680 when I try to use either an InputStream or OutputStream. I don't know why it would work on one phone and not another. Anyone got any ideas?
Client code seems to fall over on. Here out is an OutputStream: conn = (StreamConnection)Connector.open(connString); out = conn.openOutputStream(); Server code seems to fall over on. Here out is a ByteArrayOutputStream used to collect the input and use it. in is an InputStream: while ((data = in.read()) != -1) { out.write(data); } Thanks Owen |
| eoghanconnolly |
| View Public Profile |
| Find all posts by eoghanconnolly |
|
In case anyone else has the same problem and reads this post looking for a solution - the workaround suggested by Nokia (from documentation on this website) is to use L2CAP instead of RFCOMM for the application. I have implemented this and it works better. There is still another problem with the 6680, but the 6680 can receive incoming data without any problems using L2CAP.
|
| eoghanconnolly |
| View Public Profile |
| Find all posts by eoghanconnolly |
|
Owen,
I'm studying for a Masters Degree in Human Computer Interaction in the UK at the moment. For my final project I desperately need to get bluetooth working between two 6680s but none of the examples I've thus far come across seem to work on them. Sadly without the app, my whole evaluation will not work. I have to get this completed within the next week so can cheekily request a working example from you? I will be very grateful if you are able to assist me and I will personally ensure that your code will go no further than this project. Thanks, D |
|
Quote:
Known Issues In The Nokia 6600 MIDP 2.0 Implementation v1.7 see page 15 says:- Quote:
The PC suite has a version specifically for "PC suite for Nokia 6600" the latest version 6.8 will not work properly with the 6600. Jim
Last edited by jimgilmour1 : 2006-07-13 at 06:00.
|
| jimgilmour1 |
| View Public Profile |
| Find all posts by jimgilmour1 |
|
Quote:
http://developers.sun.com/techtopics/mobility/getstart/ http://java.sun.com/products/sjwtool...nload-2_2.html and if you and to use the bluetooth example in C:\WTK22\apps\BluetoothDemo\src\example\bluetooth\demo which contains the java source. See the thread Bluetooth s60 Programming and you will need to load Carbide.c++ Express Quote:
Java wtk2.2 ------------------------------------------------------------------- PHP Code:
Jim
Last edited by jimgilmour1 : 2006-07-13 at 06:19.
Reason: formatting
|
| jimgilmour1 |
| View Public Profile |
| Find all posts by jimgilmour1 |
|
Hi,
Here is second part the fileserver.jar --------------------------------------------------------------- file server --------------------------------------------------------------- PHP Code:
If you want to visually debug you will need netbeans and netbeans mobility and lots of patience to learn it. Jim |
| jimgilmour1 |
| View Public Profile |
| Find all posts by jimgilmour1 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| 6680 HttpConnection Content-Length problem | jhodgski | Mobile Java General | 10 | 2007-04-18 10:29 |
| Adding picture to the contact using jsr75 (NOKIA 6630,6680) | manik_jandial | Mobile Java General | 8 | 2007-04-02 10:05 |
| InputStream problems on the 6680 | iandebeer | Mobile Java Networking & Messaging & Security | 20 | 2007-03-29 05:17 |
| SocketConnection Work on 6600&Emulators BUT NOT IN 6680 | eerant | Mobile Java Networking & Messaging & Security | 4 | 2006-03-11 01:35 |
| Nokia 6680 Player from an InputStream Problem | bogdan_m | Mobile Java Media (Graphics & Sounds) | 1 | 2005-07-05 09:56 |