×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    Java sending data to Nokia Phone

    Hi I'm trying to send AT Commands (or any other commands if there are any...) to my Nokia 2600. I want to receive unread messages so I've tried :


    AT+CMGL="ALL"
    AT+CMGL="REC UNREAD"
    AT+CMGR="ALL"
    AT+CMGR="REC UNREAD"
    ...

    These commands where send in a hyperterminal, where other commands like sending messages and getting manufacturer data was succesfull so the connection isn't the problem. Can someone give me the proper codes? Thank you in advance!

    Also I have this Java program, to try and send data to a phone, I trying to do so via Bluetooth and I have the phone's bluetoothaddress. But the program always echos what I'm sending. Here is the code :

    import javax.bluetooth.*;
    import javax.microedition.io.*;
    import java.io.*;


    public class BluetoothConnection {

    public static void main(String[] args) throws URISyntaxException
    {
    try{
    StreamConnection conn = (StreamConnection)Connector.open("btspp://001FDFC57E65:1");;
    byte buffer[] = new byte[100];
    OutputStream out = conn.openOutputStream();
    InputStream in = conn.openInputStream();
    out.write("AT\r\n".getBytes());
    int count = in.read(buffer);
    System.out.write(buffer,0,count);
    out.close();
    conn.close();
    }
    catch(IOException e){
    System.out.println("sorry you are screwed!");
    }
    }
    }

    Again thanks a million times!

    Greetings Jelle

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    You first question is answered several times in the General Messaging section, additionally in your other thread …

    For your second one, please let us continue in your original thread …

Similar Threads

  1. Java Compability
    By emax73 in forum General Development Questions
    Replies: 0
    Last Post: 2004-07-12, 14:56
  2. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×