Bluetooth: Unable to detect devices on Nokia Phones

Hi
The following piece of code for bluetooth detection and connection works(able to detect and connect to other bluetooth devices) on my Sony Ericsson K750i Phone but not on a Nokia N81(unable to detect any bluetooth devices).
Can someone please help, i need this thing urgently.
Many thanks
Mark
package ECG;
import javax.bluetooth.*;
import javax.microedition.io.Connector;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import javax.microedition.io.*;
import java.util.Vector;
* Class for handle and establish Bluetooth connection
public class BluetoothConnection extends Thread implements DiscoveryListener
private StreamConnection sc;
private DataInputStream input;
private DataOutputStream output;
private BluetoothScreen screen;
private UUID SERIAL = new UUID(0x1101);
private UUID RFCOMM = new UUID(0x0003);
private Vector devices, targetDevices;
private boolean connected;
private StreamConnection con;
private ECGDisplay display;
private int[] transIds;
private boolean inited, inquiry, search;
private int count = 0;
public BluetoothConnection(BluetoothScreen screen, ECGDisplay display)
this.screen = screen;
this.display = display;
devices = new Vector();
targetDevices = new Vector();
inited = false;
* Method for searching and connect to blutooth device with serial port profile
public boolean searchSerialBT()
try
DiscoveryAgent agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
String url = agent.selectService(SERIAL, ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
if(url!=null)
con = (StreamConnection)Connector.open(url);
input = con.openDataInputStream();
output = con.openDataOutputStream();
output.writeChars("connected");
connected = true;
else
connected = false;
catch(Exception e)
System.out.println(e);
return connected;
* Method for establish connection with the connection url which identifies the
* address of the bluetooth device
public boolean connect(String conURL)
try
con = (StreamConnection)Connector.open(conURL);
input = con.openDataInputStream();
output = con.openDataOutputStream();
output.writeChars("connected");
connected = true;
catch(Exception e)
System.out.println(e);
return connected;
* Thread method for handle receiving and displaying of ECG data
public void run()
while(true)
try
if(input!=null)
byte[] b = new byte[input.available()];
input.read(b);
display.addValues(b);
Thread.sleep(1);
catch(IOException e)
System.out.println(e);
catch(InterruptedException e)
System.out.println(e);
* Method for disconnecting the Bluetooth connection
public void disconnect()
try{
connected = false;
if(input!=null)
input.close();
if(output!=null)
output.close();
if(con!=null)
con.close();
input = null;
output = null;
con = null;
}catch(IOException e)
System.out.println(e);
* Method getting the input stream from the Bluetooth device
public DataInputStream getInput()
return input;
* Method getting the output stream for writing to the Bluetooth device
public DataOutputStream getOutput()
return output;
* Event Handler method for logging the neighbouring bluetooth device
public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod)
devices.addElement(btDevice);
* method for cancelling the searching of bluetooth devices
public void cancelSearch()
try{
DiscoveryAgent agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
if(inquiry)
agent.cancelInquiry(this);
if(search)
for(int i=0;i<transIds.length;i++)
agent.cancelServiceSearch(transIds);
targetDevices.removeAllElements();
devices.removeAllElements();
}catch(BluetoothStateException e)
System.out.println(e);
* Method for searching the neighbouring bluetooth devices
public void searchDevices()
try
cancelSearch();
inquiry = true;
DiscoveryAgent agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
agent.startInquiry(DiscoveryAgent.GIAC,this);
catch(BluetoothStateException e)
System.out.println(e);
* Method that indicates the searching of bluetooth devices is completed
* thus it will proceed to find the device with support of serial port profile from the list
public void inquiryCompleted(int discType)
if(discType==INQUIRY_COMPLETED)
try
DiscoveryAgent agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
transIds = new int[devices.size()];
for (int i=0;i<devices.size();i++)
RemoteDevice device = (RemoteDevice)devices.elementAt(i);
transIds[i] = agent.searchServices(new int[]{0x0003}, new UUID[]{SERIAL}, device, this);
catch(BluetoothStateException e)
System.out.println(e);
inquiry = false;
* Method that indicates the bluetooth devices have the required bluetooth services
public void servicesDiscovered(int transID, ServiceRecord[] servRecord)
for(int i=0;i<servRecord.length;i++)
try
String[] s = new String[2];
s[0] = servRecord[i].getHostDevice().getFriendlyName(true);
s[1] = servRecord[i].getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
targetDevices.addElement(s);
catch(IOException e)
System.out.println(e);
* Method to call the screen to display the list of bluetooth devices discovered
public void serviceSearchCompleted(int transID, int respCode)
screen.showDevices(targetDevices);

I have K610i with satellite pro a300-1nt, after it came from service, i can connect to my desktop via bluetooth, but if i try to connect to k610i it says unable to detect remote device. ideas? it says that just on those devices which were registered before (ie, my, sisters phone)
(EDIT: i cant use cellphone as remote controll, i can only send files to computer.)
i've tried diagnostics, first passed 2nd failed. i use toshiba's bt stack v7.10.12(T).
thanx in andvance
KnE
Message was edited by: knezan94

Similar Messages

  • TS1398 MY BLUETOOTH UNABLE TO DETEC OTHERS IPAD OR PHONE WITHIN THE RANGE

    mu bluetooth unable to detect ipad, others model phone, it keep running searching until ages it does appear anything within seconds.

    It will not pair with them.  This is not a feature of ipad/iphone/ipod

  • Bluetooth connection not working on US Nokia phones from J2ME Midlet (MIDP

    Hi All,
    We are developing a J2ME midlet (MIDP 2.0 ,CLDC 1.1)which makes bluetooth connection to other devices.The bluetooth
    connection is working perfectly on indian nokia phones with Airtel as carrier.But when we deploy the same midlet on Nokia E71
    US phone with carrier as AT&T ,the bluetooth connection is not working.The sample code is as follows:
    public void run(){
    try{
    StreamConnection connection = (StreamConnection)Connector.open(btConnectionURL);
    // open an input stream to get some data
    InputStream in = connection.openInputStream();
    byte[] serialData;
    readData = true;
    while(readData == true){
    int lengthavai=0;
    lengthavai = in.available();
    if(lengthavai > 0){
    serialData = new byte[lengthavai];
    int length = in.read(serialData);
    System.out.println("data read: " + new String(serialData));
    dataViewForm.append(new String(serialData));
    in.close();
    connection.close();
    }catch(IOException ioe){
    ioe.printStackTrace();
    when we try to connect on US Phones],the execution hangs at the following line of code:
    StreamConnection connection = (StreamConnection)Connector.open(btConnectionURL);
    No exception is caught.
    Our midlet is not signed.
    In the Forums it is said that the problem is with the unsigned midlet.AS some of the US carriers block the secure API usage
    on Unsigned midlet.
    But our question is, if we buy a code signing certificate from Verisign or Thawte and sign the midlet, will this problem be solved.
    Any other alternative solutions for this ???
    Immediate help will be appreciated.
    Thanks,
    Yash

    You might want to read this before buying a certificate:
    http://javablog.co.uk/2007/08/09/how-midlet-signing-is-killing-j2me/
    It's not my blog, but I pretty much agree with what it says. Unfortunately the network operators can control the access 3rd party trusted certificates have, so even if you sign with Verisign for example, the signed midlet may not have any more privileges than an unsigned midlet, depending on network. They do this so that only midlets signed with one of their own certificates have unrestricted privileges forcing anyone who wants a useful application to buy it from the network instead of downloading an equivalent freeware version from Getjar for example. Some networks are worse than others, so signing your midlet will allow it to work on more phones than an unsigned midlet. I think Verisign have some info on AT&T on their website.
    The whole MIDP specification for security is a joke, IMHO. I don't mind unsigned midlets flashing up a warning once during an application. Writing 20 files, for example, will give 40 security warnings for reading writing data which is ridiculous, as the user obviously either trusts the app or he doesn't. No one runs an app that they only sometimes trust.
    As far as I know the only mobile manufacturer so far to see sense is Sony Ericsson. All of their new phones from Java platform 7 onwards allow unsigned applications access to the file system, bluetooth etc with just one warning when the applications starts.
    Andy

  • Unable to detect device on windows 7 32bit

    hi , I am using itunes version 11.1.5.5 on windows 7 32bit. I am unable to view device when i connect my iphone. Can someone suggest to overcome this problem.
    Thanks.

    Try Andrei Cerbu's post here or see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5, forcing a driver update.
    tt2

  • Unable to detect device with Bluetooth

    I've paired my laptop and Bold 9650 on Bluetooth and can communicate fine.  However, when I go to detect Bluetooth device in Desktop Manager, it never shows up.  
    In Bluetooth Options on teh phone,  I see Serial Port Profile checked with Data Transfer checked underneath and Desktop Connectivity and Wireless Bypass unchecked.  They are both greyed out and I cannot check them here. I've read some things that talk about setting these to True in IT policy when running Enterprise Server, but I cannot find how to get to this in version 6.0 bundle 2647.  How do I find these settings to sert them to true?

    What kind of bluetooth system do you have in your car? is it factory installed or part of an aftermarket system?
    I am trying to figure this out for myself as well. Please join the thread here:
    http://supportforums.blackberry.com/t5/BlackBerry-Tour-9630/Transferring-Phonebook-to-Car-Radio-Fail...

  • Snow Leopard and BlackBerry - recently unable to detect device

    I installed Snow Leopard last week.  Immediately after it installed, I was able to use PocketMac to sync my BlackBerry 7130e and my Mac.
    I later installed update 10.6.1 and shortly after, I realized that it wasn't syncing anymore, and the plug symbol that indicates the BlackBerry is plugged in was no longer present.  However, the BlackBerry would charge using the USB/AC adapter, so I know it's not a faulty cord.
    I did a restore back to when I was running 10.6 and it didn't make a difference, so I restored it again to 10.6.1 and I can't yet get it to sync.
    I checked the System Profiler and this is what I got:
      Product ID: 0x0001
      Vendor ID: 0x0fca
      Version: 1.04
      Speed: Up to 12 Mb/sec
      Manufacturer: Research In Motion
      Location ID: 0x1a200000
      Current Available (mA): 500
      Current Required (mA): Unknown (Device has not been configured)
    Any ideas on what might help?
    David. 

    I found a partial solution in another thread - downloading the drivers for pocketmac and deleting the .kext files for BlackBerry.
    I can now get the "plugged in" symbol so I know it's connected, but still no syncing.
    System Profiler shows:
    USB Bus:
      Host Controller Location: Built-in USB
      Host Controller Driver: AppleUSBUHCI
      PCI Device ID: 0x2830 
      PCI Revision ID: 0x0003 
      PCI Vendor ID: 0x8086 
      Bus Number: 0x1d 
    Vendor-Specific Device:
      Product ID: 0x0001
      Vendor ID: 0x0fca
      Version: 1.04
      Speed: Up to 12 Mb/sec
      Manufacturer: Research In Motion
      Location ID: 0x1d100000
      Current Available (mA): 500
                   Current Required (mA): 500 

  • "Upgraded" to 10.7.4. from 10.7.3. Now I get "Firewire unable to detect devices". I'm using a microtek 9800 xl scanner using vuescan with firewire only connection. Please help!

    i've been writing back and forth with Ed Hamrick, the guy who created vuescan for my scanner, since microtek stopped making drivers. he can't figure out the problem either. i can't find answers anywhere online, and i need this scanner working yesterday. i got it to work on my laptop since that's still running 10.7.3, but that's no practical. *** did .4 do that screwed this all up??

    ok, unexpected. i used a firewrire to usb cable instead just to see. that worked! guess that's how i'll go moving forward. hopefully this helps the one other person on this planet that bought this scanner! ;P

  • TS1702 I bought a apple ipad mini recently, I am unable to connect/Pair my Nokia C5 Phone with Ipad Mini Via Bluetooth. Plz suggest.

    I bought a apple ipad mini recently, I am unable to connect/Pair my Nokia C5 Phone with Ipad Mini Via Bluetooth. Plz suggest.

    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/HT4517
     Cheers, Tom

  • I have turned on Bluetooth on my iPhone 4, however it is unable to detect any devices

    have turned on Bluetooth on my iPhone 4, however it is unable to detect any devices.
    It is constantly searching

    See Supported Bluetooth Profiles Here  >  http://support.apple.com/kb/HT3647
    More Info Here  >  iPhone User Guide
    If you Still have issues...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Nokia N8 bluetooth unable to sent file photo or mu...

    Dear nokia
    I was and still am a nokia #1 fan i have been using nokia N series for a very long time since nokia N70 came out .I have just buy a nokia N8 for 2 week now and i have found a problem with the bluetooth ,its seem i cant sent file via bluetooth to other mobile like (sony,motorola,china phone,notebook)  i was able to recieve file from SOME of the other mobile but i can't sent from my n8 to other hp ,but i was able to sent and recieve file via blutooth with other nokia phone with no problem . i have try reset to factory setting ,try to reboot and also reinstall the operating system but with no luck .i even try using my old nokia N97 to sent a file to other phone eg:sony ,motorola,china phone,notebook and it work with no problem soo my question is is a nokia n97 is able to sent and receive with no problem why can't the N8 do the same , Please nokia help me with this im from singapore and i try to explaning the problem to my local nokia care center but they are not pro in software they are just giving me the same reason again and again they are working with blind pay ,following  normal troubleshooting  that  can be found in the web site . PLEASE THIS IS A SOFTWARE BUG do fix it .and my local care center and website do not support the latest software update for my phone like in your country pls help me with this .I think my local care center too lazy with the software update version .seem every one in my contry is too **bleep** up with iphone 4 and 3gs
    extra info of the problem i face
    i select a photo or song
    press the option sent
    sent to my friend device
    its show connecting
    then a msg pop out
    unable to connect
    then it close
    and another msg ask me to pair with device
    i try to pair but after the pair no file was sent
    try resent the file
    NO LUCK
    FROM ZHARIF
    SINGAPORE
    Thank you

    thanks for the reply
    1st thing  the auto focus work on image mode not video mode (sorry for not telling full info ) try rec a video and place it near a small details eg :word on a book , pc screen like facebook or on the keybord of your pc the back ground is fine just the details the word in not clear blur no auto focus when recording a video
    btw just for more info
    im using
    a n8
    v011.012
    pr1.0
    currently no update in my country
    nokia staff in my country are soo slow
    employed foreigners from(philipines,indonesia)  that can't even talk proper english and dont understand software issue
    and when i email them of why its taking soo long and when the new update v13.16 pr1.1 that have been release in other country , will be release in singapore (my country) they reply with this
    Thank you for emailing Nokia Careline.
    In response to your inquiry, we have validated from our resources that the latest software for your Nokia N8-00 is currently in progress or in creation. This means that the software update is still being processed. Rest assured that it will be posted on our official website once the firmware is released.
    With regard to your second concern, you may need to set the other device as authorized once you have paired it.
    To do so, kindly refer to the following instructions:
    1. Go to Menu
    2. Select Settings
    3. Select Connectivity
    4. Select Bluetooth
    5. Press and hold the name of the other phone
    6. Select Set as authorized
    -------------------------------------------------------------------------------------------------------------------------------this are some simple trobleshooting that i can find out myself hiyoooooooo soo dam lazy to check the release date and dont even have know it the software have even been created yet in the emaill to them i have mention every things in details inculding the software version but .......still lazy to find out . 

  • How do bluetooth a pic from nokia phone to macbook?

    hi, i have a new macbook.
    and i would like to send a jpg picture from my phone to the macbook.
    bluetooth is turned on on my nokia n95 phone.
    when i turn on bluetooth on my macbook.... the on and off buttons are greyed out.
    and when i try to turn it on in system preferences, it says bluetooth hardware turned off, turn on...
    so i turn on.... and nothing happens.
    so its not letting me set up a new device (my phone)
    can someone help me please?
    ive tried reading the help files.....cant seem to do it....
    can i use infrared? does my macbook have this?
    thanks.

    i had something like similar problem ..and still i can't find solution ..i think u can use your usb to send file ..

  • Bluetooth did not detect any Bluetooth device even iPhone  please help me

    I have iPhone 4 my Bluetooth did not detect any Bluetooth
    Device even iPhone so I can not transfer any data to other iPhone
    Please help me

    That is correct.
    This has  never been a feature of iphone.
    Sorry.
    Bluetooth is supported for stereo headsets/speakers, telephone headsets/handsfree devices, some keyboards, some peer-to-peer apps from the apps store, tethering where provided by the carrier.
    Other than these, it will not connect to another phone/device/computer/etc.

  • HT204368 iPhone 5 Bluetooth not working. Nor can it find my iPad, and the iPad can't find it, but can find my old Nokia phone.

    New iPhone 5 can't find any Bluetooth devices. I have reset the network settings without any luck. I have an iPad which can't find the iPhone but can find my old Nokia phone on Bluetooth. I want to use Bluetooth with my hearing aids, which work fine with the Nokia.
    In terms of what is happening, when I turn on Bluetooth, I get "searching" under the devices section but no devices are found. Grey Bluetooth icon beside battery life icon.
    Anyone solved this problem?

    iOS: Supported Bluetooth profiles
    Iphone/ipod/ipad will not connect to each other.

  • Reading bluetooth GPS data from a Nokia phone

    I have a problem reading data from a MTK bluetooth GPS device from a Nokia phone (7610, Symbian S60).
    I wrote a midlet (my phone supports CLDC 1.0/MIDP 2.0) that create a thread to read data
    from the device (using RFCOMM protocol), the code is:
    package gpsreader.bluetooth;
    import javax.microedition.io.*;
    import java.io.*;
    public class BTrxtx implements Runnable {
    private String url = ""; // Connection string to the bluetooth device.
    private boolean canRead; // True if possible to read from device.
    private boolean canWrite; // True if possible to write to device.
    private String btstr = ""; // Last received string.
    private int strCounter;
    private int byteCounter;
    private StreamConnection conn = null;
    private InputStream inputstream = null;
    private OutputStream outputstream = null;
    private boolean newStr;
    private static final char[] EOL_BYTES = {'\015','\012'};
    public BTrxtx(String u) {
    url = u;
    canRead = false;
    canWrite = false;
    strCounter = 0;
    byteCounter = 0;
    newStr = false;
    Thread t = new Thread(this);
    t.start();
    private void openInput() {
    canRead = false;
    try {
    inputstream = conn.openInputStream();
    canRead = true;
    }catch(Exception e) {
    setBtstr("oin");
    System.out.println(e);
    private void openOutput() {
    canWrite = false;
    try {
    outputstream = conn.openOutputStream();
    canWrite = true;
    }catch(Exception e) {
    setBtstr("oout");
    System.out.println(e);
    private void openConn() {
    try {
    conn = (StreamConnection) Connector.open(url);
    openInput();
    openOutput();
    }catch(Exception e) {
    setBtstr("oconn");
    System.out.println("Failed to open connection: " + e);
    private void closeInput() {
    try {
    if(inputstream!=null) {
    inputstream.close();
    }catch(Exception e) {
    setBtstr("cin");
    System.out.println(e);
    private void closeOutput() {
    try {
    if(outputstream!=null) {
    outputstream.close();
    }catch(Exception e) {
    setBtstr("cout");
    System.out.println(e);
    private void closeConn() {
    try {
    closeInput();
    closeOutput();
    if(conn!=null) {
    conn.close();
    }catch(Exception e) {
    setBtstr("cconn");
    System.out.println(e);
    public void run() {
    openConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    try {
    int i = 0;
    char c;
    String s = "";
    // Start reading the data from the GPS
    while(canRead==true) {
    i = inputstream.read(); // read one byte at the time.
    if(i==-1) {
    closeConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    openConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    continue;
    byteCounter++;
    // Every sentence starts with a '$'
    if(i==36){
    if(s.length()>0) {
    strCounter++;
    setBtstr(s);
    s = "";
    c = (char) i;
    s += c;
    System.out.println("GPS return no data");
    setBtstr("BTend");
    }catch(Exception e){
    setBtstr("BTrun");
    System.out.println(e);
    private String byte2hex(byte b) {
    char[] alphaHex = {'0', '1', '2', '3',
    '4', '5', '6', '7',
    '8', '9', 'A', 'B',
    'C', 'D', 'E', 'F',
    int low = (int) b & 0x0f;
    int hi = (int) (b & 0xf0) >> 4;
    String res = String.valueOf(alphaHex[hi]) + String.valueOf(alphaHex[low]);
    return res;
    public boolean sendData(String data) {
    boolean res = false;
    try {
    if((canWrite==true) && (conn!=null) && (outputstream!=null) && (data!=null)){
    StringBuffer rec = new StringBuffer(256);
    // Calculate checksum
    int index = data.length();
    byte checksum = 0;
    while(--index>=0) {
    checksum ^= (byte) data.charAt(index);
    rec.setLength(0);
    rec.append('$');
    rec.append(data);
    rec.append('*');
    rec.append(byte2hex(checksum));
    System.out.println(">"+rec.toString());
    rec.append(EOL_BYTES);
    outputstream.write(rec.toString().getBytes());
    }catch(Exception e) {
    System.out.println(e);
    return res;
    public int getStrCounter() {
    return strCounter;
    public int getByteCounter() {
    return byteCounter;
    public String getBtstr() {
    newStr = false;
    return btstr;
    private void setBtstr(String s) {
    newStr = true;
    btstr = s;
    public boolean receivedData() {
    return newStr;
    The problem is on method "run" at line:
         i = inputstream.read(); // read one byte at the time.
    after reading some data (usually one NMEA string) read method returns -1,
    and even if I try to close the connection and re-open it, after some other data is read,
    the midlet is terminated by the phone with an error (something like "jes-13c-java-comms@1441adE32USER-CBase 40").
    The GPS receiver is working, since from my PC I am able to connect with a bluetooth USB dongle and read outputs using RFCOMM.
    Thx for any suggestions,
    LB.

    Work around.
    I can not say I solved it, but I managed to get a work around:
    I read in another post that there are some problems in thread handling on Nokia phones, so I rewrote the class so that it runs on the main thread and now it seems to work (I can not update the screen while reading from the device, but this isn't a big issue for me).
    Just in case anyone is interested here is the final code:
    import javax.microedition.io.*;
    import java.io.*;
    public class BTBrxtx {
    private String url = ""; // Connection string to the bluetooth device.
    private boolean canRead; // True if possible to read from device.
    private String btstr = ""; // Last received string.
    private int strCounter;
    private int byteCounter;
    private StreamConnection conn = null;
    private InputStream inputstream = null;
    private boolean newStr;
    private String s = "";
    private static final char[] EOL_BYTES = {'\015','\012'};
    public BTBrxtx(String u) {
    url = u;
    canRead = false;
    canWrite = false;
    strCounter = 0;
    byteCounter = 0;
    newStr = false;
    openConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    private void openInput() {
    canRead = false;
    try {
    inputstream = conn.openInputStream();
    canRead = true;
    }catch(Exception e) {
    setBtstr("oin");
    System.out.println(e);
    private void openConn() {
    try {
    conn = (StreamConnection) Connector.open(url);
    openInput();
    }catch(Exception e) {
    setBtstr("oconn");
    System.out.println("Failed to open connection: " + e);
    private void closeInput() {
    try {
    if(inputstream!=null) {
    inputstream.close();
    }catch(Exception e) {
    setBtstr("cin");
    System.out.println(e);
    private void closeConn() {
    try {
    closeInput();
    if(conn!=null) {
    conn.close();
    }catch(Exception e) {
    setBtstr("cconn");
    System.out.println(e);
    public void readInput() {
    try {
    int i = 0;
    char c;
    // Start reading the data from the GPS
    while(canRead==true) {
    i = inputstream.read(); // read one byte at the time.
    if(i==-1) {
    closeConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    openConn();
    try {
    Thread.sleep(200);
    }catch(Exception e) {
    continue;
    byteCounter++;
    // Every sentence starts with a '$'
    if(i==36){
    if(s.length()>0) {
    strCounter++;
    setBtstr(s);
    s = "";
    c = (char) i;
    s += c;
    return;
    c = (char) i;
    s += c;
    System.out.println("GPS return no data");
    setBtstr("BTend");
    }catch(Exception e){
    setBtstr("BTrun");
    System.out.println(e);
    private String byte2hex(byte b) {
    char[] alphaHex = {'0', '1', '2', '3',
    '4', '5', '6', '7',
    '8', '9', 'A', 'B',
    'C', 'D', 'E', 'F',
    int low = (int) b & 0x0f;
    int hi = (int) (b & 0xf0) >> 4;
    String res = String.valueOf(alphaHex[hi]) + String.valueOf(alphaHex[low]);
    return res;
    public int getStrCounter() {
    return strCounter;
    public int getByteCounter() {
    return byteCounter;
    public String getBtstr() {
    newStr = false;
    return btstr;
    private void setBtstr(String s) {
    newStr = true;
    btstr = s;
    public boolean receivedData() {
    return newStr;
    Now I call method readInput in the main thread and than use getBtstr to retrieve data.
    I'm still interested to know if someone had similar problems and how they have been solved.
    Thx

  • Bluetooth and motorola e770 "unable to validate device" ???

    hey everyone --
    did some hunting online this morning and see that quite a few people have been having trouble connecting their motorola phones to their ibooks. i have a g4 with os x 10.4 and a motorola e770 (vodafone spain). after pairing correctly the phone and the ibook, i tried to send a file (.mp3 and later a .jpeg) and got the error "unable to validate device". I have no idea why it won't work, considering the computer recognizes the motorola and vice versa.
    tried restaring both phone and ibook and uninstalling/reinstalling the bluetooth recognition/connection. no luck. anyone have any advice??

    oh i must tell you all that this is the worste phone i ever owned, and ive read many people saying that motorola is nothing but garbage these days.
    the phone does various noticable things at glance, like freezes up when switching between menues after a few times for a few minutes , not one but few, and if you hit any buttons the one that seems to work the best in waking it up is the one for the web, and that costs 30 cents at starts, this happened 11 times, cant help it since the same button has several functions, beware that the screen changes menu options for that button.
    i recomend you take that phone back and smqack the guy who sold it to you, this way retail clerks have more sense then to lie thourgh there teeth about such a phone, its a sham.

Maybe you are looking for