Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  bluetooth multiplayer game  (Read 6015 times)
0 Members and 1 Guest are viewing this topic.
Offline bab

Senior Newbie




Java games rock!


« Posted 2003-08-27 02:10:41 »

hi! where can i download (free  Tongue) a game that uses bluetooth.

i'm trying to develop a game but i need a sample as reference.

thanks in advance guys  Smiley
Offline larry

Junior Duke




.. son of jor-el, kneel before zod ...


« Reply #1 - Posted 2003-08-27 07:50:58 »

Im playing around with something now bab, but havent got very far.

If I get somewhere, I'll let you know but in the meantime Id appreciate anything you find as well.

currently Ive just managed to get some bluetooth SDK's which you can get from rococo or antinav ( java SDK's).  
hope that helps.

Larry
Offline bab

Senior Newbie




Java games rock!


« Reply #2 - Posted 2003-08-27 23:28:41 »

thanks.  too bad i can't use those sdk's.  my boss won't purchase them  Grin

but i can get by without them, right?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline larry

Junior Duke




.. son of jor-el, kneel before zod ...


« Reply #3 - Posted 2003-08-28 06:16:31 »


You can get an evaluation license from both vendors.
I know the antinav evaluation license is only valid for 15 days
and the restriction on the rococo license is that it runs on linux.

Im still have to install linux, and will get back to you on how it went.

Larry
Offline davidaprice

Junior Duke





« Reply #4 - Posted 2003-08-28 08:05:46 »

I've just been told that Nokia's "Series 60 MIDP Concept SDK Beta 0.3 Nokia Edition", an emulator for a generic "Series 60 MIDP 2.0" device that comes included in "Nokia Developer's Suite 2.0 for J2ME", support JSR-82 Bluetooth API and emulates Bluetooth connections between different running instances of the emulator.

I've not checked this myself yet, but if this works then it's a freely-available JSR-82 Bluetooth SDK. It should be just what you need for developing MIDP 2.0 Bluetooth games, and for instance those games should then work fine on the forthcoming Nokia 6600 MIDP 2.0 phone.

If you try it, let us know how you get on!
Offline Falken

Senior Newbie




biggidy bong


« Reply #5 - Posted 2003-08-28 10:12:40 »

David, do you know if Nokia will be producing any bluetooth examples for J2ME?   I think there are quite a few people seeking that initial stepping stone to help them get started.
Offline bab

Senior Newbie




Java games rock!


« Reply #6 - Posted 2003-08-28 23:35:31 »

tnx larry. i've already tried it. but the sample codes are either c or c++.

david, you're right! i explored the documents of the nokia suite and it really supports it.

the professor's correct. we need those generous souls out there to share some of their code for us to start on
Offline davidaprice

Junior Duke





« Reply #7 - Posted 2003-08-29 02:49:56 »

I know that Nokia has plans to produce Bluetooth examples for J2ME. I know, because it's me who'll be doing it Smiley

Right now I'm busy on a TCP/UDP multiplayer game example, so I don't plan to start on the Bluetooth example for another month or so. I'll ask today if one of my team-mates could take over the Bluetooth example to get it out sooner, but no promises.

Inventing a game is always a significant part of the effort. Would it be helpful if we produced a simpler non-game example first, just demonstrating how to use the APIs (publishing a service, discovering a device and its service, exchanging data with that service) and then produced the cool game later?
Offline Falken

Senior Newbie




biggidy bong


« Reply #8 - Posted 2003-08-30 19:23:17 »

Excellent. David you're a diamond geezer. Cheesy
I think a non-game example would be just as effective.  At the moment it's difficult to find any good documentation on the subject in regards to MIDP games.

For example, I am currently struggling to understand the difference between GIAC and LIAC in terms of inquiry access code.  Now if a games related document was to specify GIAC then I would be able to move on, but otherwise I just remain bewildered by it all. :-/

Looking forward to that OTA multiplayer doc too, as that's another interesting area where expertise needs to be learnt quickly to make a MIDP game profitable.  Keep up the great work.  Some of those Nokia docs+tools can be a real asset (except for those 'known issues' ones Grin)
Offline davidaprice

Junior Duke





« Reply #9 - Posted 2003-08-31 09:35:37 »

I'm new to Bluetooth myself, but I've got plenty of reference material and some pretty good experts to help me get up to speed and check what I write. The book "Bluetooth for Java" seems to be a good starting point, though I don't find answers to every question there (and I'd prefer a book that focused just on writing Bluetooth MIDlets for phones).

It seems that General/Unlimited Inquiry Access Code (GIAC) is for devices that stay discoverable long-term, e.g. Bluetooth-enabled printers, and for discovering them. Trouble is, when you do a discovery with GIAC you could get a lot of devices responding.

Limited Inquiry Access Code (LIAC) is for when you're setting up a connection between two devices, e.g. when you and your friend want to play a game together. One makes itself discoverable using LIAC, a state that times-out after only a minute. The other quickly performs discovery using LIAC, and will see only the devices that are currently discoverable using LIAC (i.e., they won't see the printers, but they might see another person starting a game at the next table too).

This info is just gleaned from a Google search, so no guarantees of accuracy sorry.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline larry

Junior Duke




.. son of jor-el, kneel before zod ...


« Reply #10 - Posted 2003-08-31 11:08:16 »

Its great to see sp much interest in this discussion.

The best reference Ive read so far is the book "bluetooth for java" ( as David mentioned). author is Bruce Hopkins.

There's also a nice short article on bluetooth and J2ME on the sun java website.

Other than that, there are some fantastic articles at nokia forum providing in-depth MIDP gaming design and coding. ( much better docs than the Symbian C++ stuff! - Dave if youre somehow responsible for this, thanks!)

sun's java website also has some really informative, succint articles on MIDP2 gaming support and examples, mostly by the legendary - Jonathan Knudsen...

Im looking to go fulltime into development from October,
till then Im playing around, I'll keep in touch, hope u all do too!

Larry

Offline Falken

Senior Newbie




biggidy bong


« Reply #11 - Posted 2003-08-31 14:39:14 »

Ah, you see that’s why we need some good tutorials.  I was about to use GIAC because all of the examples I've seen use it (mostly variations of echo services).  Obviously LIAC is far more appropriate for my needs.  I think I need to spend a lot more time with my good old friend Google.

Larry, Great links.  I think bluetooth will open the doors to a lot of potential for phone games, so hopefully it will be a useful skill to have.  

I will certainly be investing in that book. If anybody finds any better bluetooth resources (especially MIDP games related) then please post them here.  Cheers.
Offline bab

Senior Newbie




Java games rock!


« Reply #12 - Posted 2003-09-01 09:05:18 »

wow! david..that's great. we'll wait for your codes  Grin

yup, your suggestion will do. we really need a working sample code to show how do the different bluetooth classes work.
Offline huiben

Senior Newbie




Mobile Guru


« Reply #13 - Posted 2003-09-04 19:05:34 »

i am working on a getting-start type article, which will be posted to www.benhui.net. in future, i will collect lots of bluetooth/j2me related info on this site.

let me get back to my reference and see if I can find more definite answer to your question.

ben

www.benhui.net - mobile developer resources - j2me - links - bluetooth - device and more!

Get Travel Buddy - Itinerary, Tracker, Global Clock, Currency Convertor - 4-in-1
Free version available at http://www.sklogicsoftware.com
Offline huiben

Senior Newbie




Mobile Guru


« Reply #14 - Posted 2003-09-05 14:24:44 »

came across this from the bluetooth.org website. will this help? in short, GIAC can cover device that are in either GIAC mode or LIAC mode. so using GIAC is more realiable unless you know the other device is in LIAC mode. LIAC are usually for the class of device that are discoverable for a fixed duration but not afterward, and usually under user command (kinda like IrDA on PDA)

---------------------------
The Limited Inquiry Access Code (LIAC) is only intended to be used for limited time periods in scenarios where both sides have been explicitly caused to enter this state, usually by user action. For further explanation of the use of the LIAC, please refer to the Generic Access Profile See Generic Access Profile, Bluetooth SIG..

In contrast it is allowed to be continuously scanning for the General Inquiry Access Code (GIAC) and respond whenever inquired.


www.benhui.net - mobile developer resources - j2me - links - bluetooth - device and more!

Get Travel Buddy - Itinerary, Tracker, Global Clock, Currency Convertor - 4-in-1
Free version available at http://www.sklogicsoftware.com
Offline shareme

Junior Duke




Java games rock!


« Reply #15 - Posted 2003-09-06 17:36:28 »

another place to check is develperworks-IBM's dev site..

or alphaworks-IBM's alpha site for that matter Smiley

soemtimes you can find soem real gem of articles there for J2ME

Offline larry

Junior Duke




.. son of jor-el, kneel before zod ...


« Reply #16 - Posted 2003-09-23 09:40:38 »

hey all,

I checked out the nokia developer suite as David suggested and there exists a bluetooth API.

maybe Im a bit slow, but however, I just found out its not JSR82 compliant. Thought it was useful info to share.. Smiley
Offline davidaprice

Junior Duke





« Reply #17 - Posted 2003-09-23 09:53:54 »

In what way not compliant? Is it a completely different API, or slightly different in some methods, or just different in its behaviour? I still haven't had time to try it properly myself (sorry, busy on other stuff), but I understood it to be JSR-82 compliant.

It's not an actual Bluetooth implementation using your PC's Bluetooth card, if that's what you mean. Like its (and Wireless Toolkit's) WMA 'SMS API' implementation, it's merely an emulation and can exchange data only with other instances of the emulator, not with real devices.
Offline larry

Junior Duke




.. son of jor-el, kneel before zod ...


« Reply #18 - Posted 2003-09-23 11:41:21 »

Hi David,

I heard this from an engineer who I was consulting, who works
for a reputable distributor of a java bluetooth stack implementation.
I was describing my intention of testing bluetooth communication with a nokia emulator and pc. He mentioned that nokia did support a bluetooth, but it was not JSR82.

I just doublechecked the classes with the Series60_ConceptMIDP_betaa3 device and it seemed to confirm with JSR82. After contacting the engineer again, it seems there was a misunderstanding somewhere and that nokia DOES support JSR82.  At least with the 6600. Id assume this also means that the device classes for the emulator are also JSR82 compliant.

Apologies for the confusion.

Larry
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (13 views)
2014-10-25 15:46:29

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (45 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!