IT Community - Software Programming, Web Development and Technical Support

sending files from mobile to pc using bluetooth

This is a discussion on sending files from mobile to pc using bluetooth within the Mobile Software Development forums, part of the Software Development category; hi pals i want to have a bluetooth connection between my 6680 mobile and PC with Java! I have download ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-06-2007, 07:29 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default sending files from mobile to pc using bluetooth

hi pals

i want to have a bluetooth connection between my 6680 mobile and PC with Java!
I have download my mobile SDK for java! but i couldnt not find out any suitable bluetooth package implementation for PC(J2SE)!
First, where can i find suitable bluetooth Package for J2SE?
Second, I can discover bluetooth enabled device around with my mobile and java code, is there anyone help me send a string from mobile to pc and also resieve another string from pc to mobile?
I need a sample to do that!

i would be really thanksfull helping me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-06-2007, 07:36 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

Hi Aman,

nice to meet u once again in new thread
You need the Netbeans and J2SE from Sun Website
Download J2SE Development Kit 5.0 Update 12 with NetBeans IDE 5.5.1 Bundle

and then install Netbeans Mobility Pack for wireless

NetBeans Mobility Pack 5.0
and
then install Nokia Developer's Suite 3.0 for J2ME™

During install select Netbeans integration
Resource information: Nokia Developer's Suite 3.0 for J2MEâ„¢

This thread gives source code to work with obex file transfer client server
OBEX Messaging - Developer Discussion Boards

and another thread were someone had success with my netbeans code.
RFCOMM connection - Developer Discussion Boards



and a good website to look at
Lunarpages Contact Support Page
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-06-2007, 07:40 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

but some Miss understanding!
in sun J2SE there is no implementation for Bluetooth(JSR82)!
so how could i have a bluetooth enable program in J2SE?
as i said i want a connection for mobile and PC but i could not have a bluetooth package in J2SE!
one more Q! i may have a miss understanding! can i develop a program for PC using J2ME?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-06-2007, 07:41 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

hi aman,

in sun J2SE there is no implementation for Bluetooth(JSR82)!

Yes Sun does not provide an implemenation of JSR82 for J2SE only J2ME.

so how could i have a bluetooth enable program in J2SE?
as i said i want a connection for mobile and PC but i could not have a bluetooth package in J2SE!

J2SE comes with NB when you dowload the link I have given on previous posting.


My fault I forget to tell you that you need to look at Bluecove XP on the Benhui website and J2SE see
Lunarpages Contact Support Page

download
Lunarpages Contact Support Page

or download the source from
SourceForge.net: BlueCove
This is loaded into J2SE and compiled as J2SE library which is then linked into the application by pointing to the resulting .jar file.


You will need a Windows XP SP2 compatable BT USB
List of Bluetooth radio drivers that are included in Windows XP SP2

or see my hack of bt.inf for non XP BT usb
Nokia 6230i and IBM Thinkpad T43P - Developer Discussion Boards

Bluecove has a driver intelbth.dll which you copy into the XP system32 directory.

one more Q! i may have a miss understanding! can i develop a program for PC using J2ME?

No, The programs will not run as the J2ME and J2SE runtime calls are no the same.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-06-2007, 07:44 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

hi vinoth,

well so thanks for ur help but i could not find suitable code 4 the client of this server
[server code u have sent in the thread above
RFCOMM connection - Developer Discussion Boards ]
i have the SDK of my mobile installed with netbeans IDE!
i just make a discovery and find the Device only but could not make the application connect to the pc or get string from PC!
is there anythind special I should do?
is there any code for dummeis?(client part of the server RFCOMM connection - Developer Discussion Boards )
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-06-2007, 07:47 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

The thead called "OBEX Messaging" at OBEX Messaging - Developer Discussion Boards
Gives the FTClient source for J2SE. you will need the de.avetna source from the binary kit.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-06-2007, 07:53 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

Dear vinoth,
I think I could not explain my problem very well
I have the server run on the PC as u mentioned in thread here => RFCOMM connection - Developer Discussion Boards
I have a SDK of my 6680 nokia phone ( SDK 2nd Ed, FP 2 )!
in the site it mentioned that this phone(6680) does not support OBEX
so now I need a Client for the Server Up there(Blue Cove implemetation)

what should I do to have the Client side of this Server on the Phone(J2ME)?
Again thanks for your kindly help
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-06-2007, 08:20 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Smile Re: sending files from mobile to pc using bluetooth

Hi aman,
I have send a file from pc to mobile using bluetooth in asp.net using C# by implement InTheHand Tool,which is third party tool....
Can u try this tool in your project...
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily

Last edited by krishnakumar : 11-13-2007 at 06:35 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-06-2007, 10:56 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

well krishna,
most probabily IntheHand third party tool is applicable for asp.net its no longer applicable in java...well am too searching for third party tool similar
......
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 09-06-2007, 11:00 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

hi krishna,
can you tell me about what actually this third party tool folding
ur application.....
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 09-06-2007, 11:28 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

hi aman,
You are right Java jsr82 does not support obex, but I just add de.avetna source to my java programs as include from source.
My original was converted from OBEX to RFCOMM by replacing the btgoep:: to btspp::

Thats BT Generic Object ExchangeProtocol (Ob Ex) to Serial Port Protocol.

Uncomment the "import de.avetana" lines and use the de.avetana built earlier in netbeans to use OBEX.

In netbeans use the wizard use the MIDP wizard which creates a new mobile app and
add an item button in the item builder.

Build it and test on the phone by using the deployment, which will call pc suite to install the .jar and test on phone

add the FTClient.java to project.
add the code to the item button to call the FTClient after renaming main() to FTCmain() and making the item button call FTCmain() .

Recompile run under emulator to see that the call of FTClient is working ok.
Build it and test on the phone by using the deployment, which will call pc suite to install the .jar and test on phone.



FTClient from here http://discussion.forum.nokia.com/fo...light=ftclient


Hope this make things clearer,
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 09-06-2007, 11:31 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

hi vinoth,
I have the code down here
when do the red line code, an exception(NullPointerException) is thrown!
i checked all the values i have passed to the searchServices and all of them were correct!
do you know what should i do?

Code:
 
        UUID[] uuids = new UUID[1];
        uuids[0] = new UUID("9106",true); // OBEX Filetransfer UUID value is hexadecimal 0x1106 
        stringItem2.setText(uuids[0].toString());
        int[] attributes = {0x100,0x101,0x102};
        for(int i=0;i<10;i++){
            if(remote_devList[i] != null){
                try{
                    agent.searchServices(attributes, uuids, remote_devList[i] , this);
                    break;
                }catch(Exception e){
                    stringItem2.setText(stringItem2.getText()+"\n"+"Error on device :"+i+"-->"+e.toString());
                }
            }
        }
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 09-06-2007, 11:33 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: sending files from mobile to pc using bluetooth

Hi I think your attributes should be
public static int[] attribSet = {0x0100, 0x0001, 0x0002, 0x0003, 0x0004};
These are standard 0x0001 being the most important. you can add yours if you feel the will be seen. If they are not THIS WILL BLOCK causing the error.

This has taken nearly three weeks to prove. ITS "AND" function.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-13-2007, 06:37 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Wink Re: sending files from mobile to pc using bluetooth

Hi dudes,

I can send a file from pc to mobile in dotnet using C#...

But i need to send a file from mobile to pc using c#...

Can anyone help me...
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How u do Bluetooth Communication between PC and mobile in J2ME itbarota J2ME 9 09-11-2008 02:08 AM
Sending message to mobile using php saravanan PHP Programming 6 01-02-2008 12:05 AM
How Can we search Bluetooth Devices using C# for windows mobile? mobilegeek Windows Mobile 2 08-17-2007 08:07 AM
Windows Mobile 5.0 PocketPC v2.0 emulator Bluetooth peripheral serial port mapping pr theone Mobile Software Development 1 07-25-2007 03:04 AM
How to write Bluetooth Connection program in c# for Windows mobile 5.0 ? theone Windows Mobile 0 07-16-2007 12:16 AM


All times are GMT -7. The time now is 10:22 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0