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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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 |
| Sponsored Links |
| |||
| 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! |
| |||
| 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 |
| |||
| 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! |
| |||
| 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 |
| |||
| 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! |
| |||
| 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 |
| |||
| 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 05:35 AM. |
| |||
| 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 |
| |||
| 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! |
| |||
| 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 |
| |||
| 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! |
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How u do Bluetooth Communication between PC and mobile in J2ME | itbarota | J2ME | 8 | 05-19-2008 12:12 AM |
| Sending message to mobile using php | saravanan | PHP Programming | 6 | 01-01-2008 11:05 PM |
| How Can we search Bluetooth Devices using C# for windows mobile? | mobilegeek | Windows Mobile | 2 | 08-17-2007 07:07 AM |
| Windows Mobile 5.0 PocketPC v2.0 emulator Bluetooth peripheral serial port mapping pr | theone | Mobile Software Development | 1 | 07-25-2007 02:04 AM |
| How to write Bluetooth Connection program in c# for Windows mobile 5.0 ? | theone | Windows Mobile | 0 | 07-15-2007 11:16 PM |