You Are Here:

Community: Developer Discussion Boards

#1 Old No back after successful BT-Conn - 2007-10-24, 12:57

Join Date: Oct 2007
Posts: 2
MM-P
Offline
Registered User
Hi,

I wrote a Card Game in J2ME and for my thesis I wrote now a test programm in which I want to test the bluetooth delay. Also I´ll improve the application with calculating the serialization and the propagation delay. But first I´ve to get it working.
And I´ve now the same problem like in my card game, so I didn´t finished yet ...

In the thread of the bt-conn I send some data (a String) to the other mobile. the form appears after calculating with the delay on the emulator.
When I execute the program on 2 mobiles. they connect first to each other and than nothing else happens. The form doesn´t appear on the screen.
Code:
 public void run(){
    	
    	int messagebroadcast = 10;
    	long[] timeMessure = new long[messagebroadcast];
    	int count = 0;
        if(m_BlueObj==null){
        	m_BlueObj=new ClientServer(m_bIsServer);
        }
        
        while(m_bRunThread){
        	
            try{
                String str = m_BlueObj.RecieveMessages();
                timeMessure[count++] = System.currentTimeMillis();

                
                if(count >= messagebroadcast){
                	for(int h = 0; h < timeMessure.length; h++){
	                	String msg = "" + timeMessure[h];
                	}
                	m_bRunThread = false;
                	long avg = getAvg(timeMessure, count);
                	getDisplay().setCurrent(getForm(avg));
                }

                if(m_bIsServer){
             		System.out.println("Server");
                	for(int i = 0; i < messagebroadcast; i++){
                        m_BlueObj.SendMessages("Player,Fritz,Harald");
                	}
                }
            }catch(Exception ex){
                System.out.println(ex.getMessage());
            }
        }//end while
    }//end run
Do u understand what I mean? It would be so gracefully if u could help me. If someone need the whole code to help me plz write me to mm-p@gmx.de and ask me for it.

Thank u very much.
Reply With Quote

#2 Old Re: No back after successful BT-Conn - 2007-10-26, 14:29

Join Date: Oct 2007
Posts: 2
MM-P
Offline
Registered User
If nobody can help me here please give me an advice where somebody can help me. I think many people have developed bluetooth applications yet, so the had the same problem, too. Is it the problem that I don´t use two similiar mobiles maybe? I used a N95 an a few other, SX1, 700i, 750i, V3. I read sth. that people hat problem when they r not using the same mobile for the bt conn. I don´t have any Idea why that bluetooth applications of me r not working :(
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Go back to caller view... VinodRaut Symbian User Interface 4 2007-05-11 15:22
Errors building project in VS.2003 jensesaat General Symbian C++ 11 2006-11-13 17:54
Problem MMC+USB Connection Fede81 General Discussion 3 2006-07-19 16:21
Back Up using the 6600 PC Suite khaledkha General Discussion 0 2004-01-11 13:31
Problem with the 'back' button behaviour mchallice General Browsing 1 2003-09-16 13:17

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