| Reply | « Previous Thread | Next Thread » |
|
Hi
I'm working on a simple game project, with multiplayer mode over bluetooth. I've checked out several examples and tutorials and they all work fine on WTK emulators, I can easily turn on 2 or more emulators and they communicate perfectly. The problem occurs when I try to run those midlets on my two phones, that is, Nokia E50 and Nokia 6103. I've tried all possible configurations (client/server), and several programs and the devices are never able to discover each other. Before you ask those things: - BT is turned ON surely on both devices, actually I'm installing the midlets on them via BT - both devices can see each other in the authorized devices list (in the BT configuration manager in phone settings) and they are both authorized, non-blocked etc. so the connection between them must work fine - the software that I try is also permitted to use the connection - the source code that I have is rather correct, one sample is from my book about J2ME, another from Nokia SDK, another from official Nokia Games Over Bluetooth Tutorial and several others, which, as I said, work great on emulators The problem occurs when I turn on the software. The server tries to discover clients, the client sets itself as discoverable i searches for servers, and they are never able to find each other. Maybe the problem is in BT version, or some api differences between those devices? What should I do? Please help! |
| maraswrona |
| View Public Profile |
| Find all posts by maraswrona |
|
maraswrona, I do not know either. Make sure both phones are visible before you start your MIDlets as Nokia S60 Bluetooth visibility cannot be changed from within code, yet.
By the way if you are new to J2ME, MIDlets and Bluetooth, I recommend to start with a book or tutorials rather than code examples as you will have to debug a lot on your own. There are a lot of bugs, tweaks and lessons to be learnt. Bluetooth is complicated. I do not have a good J2ME book at hand right now, however, start with the references of this one for JSR-82 (perhaps your library has its previous edition) or read at least the PDF coming with the specification. If you like to start with tutorials, continue here… |
|
traud: Thanks for reply. The problem partly solved itself. When I wait long enough my devices are able to connect. However, only my E50 is able to act as a server. 6103 seems to be incapable of that. In fact, that phone can connect to only 1 device anyway, so it does not make any difference. Thanks for the links
![]() |
| maraswrona |
| View Public Profile |
| Find all posts by maraswrona |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia 7650 support Bluetooth audo? | ovjo12 | Bluetooth Technology | 5 | 2003-07-17 19:50 |
| Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug? | kauppi | Mobile Java Tools & SDKs | 3 | 2003-04-07 10:05 |
| nokia 7210 modem via IR doesn't work ! | oussamaaiadi | PC Suite API and PC Connectivity SDK | 1 | 2003-03-06 11:46 |