You Are Here:

Community: Developer Discussion Boards

#1 Old How to connect to Bluetooth GPS receiver Serial port from Nokia 3650 - 2003-05-06, 04:28

Join Date: May 2003
Posts: 2
xmlking
Offline
Registered User
I want to connect to a bluetooth GPS receiver [bluetooth Serial port] from Nokia 3650 and retrieve data from it so that I can display the current coordinates on the screen. If possible I want to use J2ME to render the tracking points on the screen.


If any of you have done this please let me know.
Please let me know any sample code available :

Other question : is it possible to call C++ API from J2ME code(JNI)?

CRUX II/ BTGPS™ Receiver: http://www.emtac.com.tw/products/bluetooth/
Reply With Quote

#2 Old 2003-05-06, 07:24

Join Date: Mar 2003
Posts: 1
raymondchang
Offline
Registered User
As I know. There is no way to access BT in J2ME. To solve this problem, I have to write a Bridge tool in C++, which communicate with the J2ME applciation by shared file.

rechardliao@yahoo.com
Reply With Quote

#3 Old 2003-05-06, 19:31

Join Date: May 2003
Posts: 2
xmlking
Offline
Registered User
I think your idea of sharing file to exchange data between c++ and J2ME is one possible solution.

Are you able to access data BT GPS data into Nokia 3650 or any similar phones ?
If you are planing to use a file to share data between c++ and java , are you planing to rotate the file so that the file will not exceed the specified size?
How do you take care of concurrency issues while accessing the same file from C++ and Java?
[If you are rotating the file with other process it will be more complex]

Sorry to ask you to many questions but I am very queries to know how everything together work.

Thanks
Sumanth
Reply With Quote

#4 Old interest - 2003-05-07, 18:18

Join Date: May 2003
Posts: 3
jonwerner
Offline
Registered User
I am also looking for a solution to this problem. If anyone gets this to work I would be interested finding out what worked as I am trying to avoid writing to the Symbian layer.

I understand that their is no way to access Bluetooth through J2ME but isn't there a way to see the virtual serial port created by Bluetooth?

Also, can more than one bluetooth connection be made simultaneoulsy? (ie, one to the GPS receiver and one to a PDA or PC)

jon
Reply With Quote

#5 Old 2003-07-30, 14:38

Join Date: Jul 2003
Posts: 12
jameelh
Offline
Registered User
Xmlking,

So have ya managed to communicate with the bluetooth GPS? I am trying to communicate with a similar bluetooth based device? Any ideas?
Reply With Quote

#6 Old 2003-07-30, 14:56

Join Date: May 2003
Posts: 3
jonwerner
Offline
Registered User
MIDP2.0 has support for Bluetooth so this will make it much easier on the next generation of handsets.

We bagged the shared file idea and dove into Symbian develoment and are now reading the GPS data via a C++ app.
Reply With Quote

#7 Old 2003-07-30, 14:59

Join Date: Jul 2003
Posts: 12
jameelh
Offline
Registered User
So there is a C++ (Symbian) program doing the bluetooth connectivity which spits out a file, this file is then manipulated by a J2ME Midlet?
Reply With Quote

#8 Old 2003-07-30, 15:08

Join Date: May 2003
Posts: 3
jonwerner
Offline
Registered User
It is not our intention to ready the file by a Midlet at this stage. We will just send the data to a web site for processing.

The issue you will have is opening the file and keeping it refreshed from within the midlet.
Reply With Quote

#9 Old FOUND IT - 2003-08-14, 19:52

Join Date: Aug 2003
Posts: 4
spider_net
Offline
Registered User
Please see this tread, I think this will solve our problem.

http://discussion.forum.nokia.com/fo...threadid=27051


This should give us a quick start to develope Bluetooth GPS.
Reply With Quote

#10 Old 2003-08-15, 18:59

Join Date: Mar 2003
Posts: 8
aker5555
Offline
Registered User
Hi,
i'm actually creating just now the programs for this.

First, I have a laptop that has both bt and gps connected to it using usb (using a hub, since laptops usually have a single usb port).

For that part I simply gateway the messages from one serial port to a second. It's just a simple serial port program.

The Nokia 3650 listens to bt connection (a serial connection) and acts like a server. It should work as a client to work with real bt/gps though... but this works for now.

The only problem is how to connect to midp. Some sort of IPC method is needed for this. HTTP connection won't work since Nokia has crippled it a bit: opening a connection to 127.0.0.1 or to localhost won't work, because the VM wants to use GPRS for it.
It doesn't even check if the connection already exists (and I think it should be corrected by Nokia)

Luckily there is a undocumented socket interface that does the work (it is "a hidden native interface" and works...)

I'm not finished yet, since the bits and peaces had to be tested first (to first find out the problems). At least there can't be other problems from this on...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia