You Are Here:

Community: Developer Discussion Boards

#1 Old Basic question, how do i send a string from a java app to a mobile trough bluetooth - 2007-08-25, 22:32

Join Date: Jun 2007
Posts: 7
sweuser890
Offline
Registered User
Just a basic question since im new to this.

How do I make a java application for my PC that "finds" my mobile and sends a simple text string to a mobile java me app via bluetooth?

I have netbeans mobile installed.

Thanks
Reply With Quote

#2 Old 2007-08-26, 11:39

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
Is that still the same project? The easiest answer is to buy a book about JSR-82, read it and then have a look at this…

This is book is very good especially if you are new to Java Bluetooth and Bluetooth.

However, I really wonder why you want to create a Java application for something like that on your PC. Or is this just another feature of a larger Java application? As Java looses all it platform independence as each operating system has its own Bluetooth software stack, reconsider Java for this.

For starting a call, there is (normally) no need to install a Java MIDlet on your phone. Do an inquiry (device search) and then a search for the Dial-Up networking service (0x1103) and then issue the AT-command ATD<number>;CR for eaxmple ATD911;CR. 911 is an international emergency number (please do not use it for testing). The semicolon starts a voice call. CR is a carriage return which has '\r' a short-hand in Java.
Last edited by traud : 2007-08-28 at 10:30.
Reply With Quote

#3 Old Re: Basic question, how do i send a string from a java app to a mobile trough bluetoo - 2007-08-27, 19:39

Join Date: Jun 2007
Posts: 7
sweuser890
Offline
Registered User
Yep, still the same project. Actually callto doesnt work for symbian s40, nokia 6300 - but thanks anyway.

Yes, this is a part of a bigger app - I just need a string with the number to be sent to the device. ARent there any ready open source solutions for this?

I noticed that there was a mobile to mobile demo installed with netbeans - but i do not know how to send info or just a string from a computer to a mobile device...

Maybe I should make this String be sent to the mobile trough a http-request instead with a me app that checks the url on a regular intervall.
Reply With Quote

#4 Old 2007-08-28, 10:28

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
Could you explain ‘callto’ in more detail? I do not have a Nokia 6300 or any other Nokia Series 40 3rd Edition Feature Pak 2 device here, however, in my Nokia Series 40 3rd Edition ATD<number>;CR seems to work. Otherwise, try the handsfree service.
Reply With Quote

#5 Old Re: Basic question, how do i send a string from a java app to a mobile trough bluetoo - 2007-08-28, 15:37

Join Date: Jun 2007
Posts: 7
sweuser890
Offline
Registered User
Sorry, I ment 'AT-command' when I wrote 'callto'... Mixed them up.

How do I make an app to test this AT-command ATD<number>;? Are there any already made examples somewhere perhaps?

My issue is bascily just to send a string from a desktop computer to a mobile java me app.

thanks,
Reply With Quote

#6 Old 2007-08-28, 20:31

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
What does a Nokia 6300 after ATD<number>;CR?

I understand your question, however, as I do not know your desktop computer platform, I cannot answer it. Furthermore, I cannot help, as I guess you are using Microsoft Windows. Then I do not know which software stack your Bluetooth adapter uses. Even then, I am not a Windows guy. I really recommend to read that book, understand JSR-82 and then use one of these JSR-82 bridges or even better learn how to use JNI and all the Bluetooth software stack APIs as you can avoid to use these bridges (compatibility, costs). You will learn a lot from that. I have no easy/short answer to your question.
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
symbian signed testing problem. anglina General Symbian C++ 0 2007-02-01 11:15
to receive and send sms from and to mobile and PC in java manoj_2580 PC Suite API and PC Connectivity SDK 0 2003-04-07 12:12
App to send txt to PC - bluetooth Yashx Bluetooth Technology 10 2003-03-28 10:10
App to send txt to PC - bluetooth PT2 Yashx PC Suite API and PC Connectivity SDK 3 2003-03-27 10:26
Java Mobile Phone Specification - Question for Nokia schadha Mobile Java General 0 2002-09-04 12:53

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