How to send SMS from PC to mobile using Java bluetooth OBEX (bluecove api)?
<p>I read the <code>MAP SPEC</code> in order to send a x-bt/message from my <code>PC</code> to my mobile, I am using <code>JAVA blucove API</code>.</p>

<p>I was able to connect over <code>OBEX protocol</code> successful but I had no return from mobile phone and the message was not send.</p>

<p>My OBEX Header:</p>

<pre><code>            HeaderSet hsOperation = clientSession.createHeaderSet();
            hsOperation.setHeader(HeaderSet.TYPE, "x-bt/message");
            hsOperation.setHeader(HeaderSet.LENGTH,new Long(sMessage.length()));
            hsOperation.setHeader(HeaderSet.NAME, "TELECOM/MSG/OUTBOX");
</code></pre>

<p>My bMessage and OutputStream:</p>

<pre><code>private final static String CRLF = "\r\n";

static String sMessage = "BEGIN:BMSG"+CRLF
        + "VERSION:1.0"+CRLF
        + "STATUS:UNREAD"+CRLF
        + "TYPE:SMS_GSM"+CRLF
        + " FOLDER:TELECOM/MSG/OUTBOX"+CRLF
        + "BEGIN:VCARD"+CRLF
        + "    VERSION:2.1"+CRLF
        + "    N:Souza,Ricardo"+CRLF
        + "    TEL:+5511666666666"+CRLF
        + "END:VCARD"+CRLF
        + "BEGIN:BENV"+CRLF
        + "    BEGIN:VCARD"+CRLF
        + "        VERSION:2.1"+CRLF
        + "        N:Souza,Ricardo"+CRLF
        + "        TEL:+5511666666666"+CRLF
        + "    END:VCARD"+CRLF
        + "    BEGIN:BBODY"+CRLF
        + "        ENCODING:G-7BIT"+CRLF
        + "        LENGTH:47"+CRLF
        + "        BEGIN:MSG"+CRLF
        + "            This is a short message"+CRLF
        + "        END:MSG"+CRLF
        + "    END:BBODY"+CRLF
        + "END:BENV"+CRLF
        + "END:BMSG"+CRLF; 

    OutputStream os = putOperation.openOutputStream();
    os.write(sMessage.getBytes());
    os.close();
</code></pre>

<p>Could someone help me to visualize what is wrong? Please, if someone already worked with <code>Java OBEX</code> in order to send <code>SMS</code> (MAP stack) from PC to mobile. ( like <code>carkits handsfree</code>).</p>

<p>Thank you guys in advance.</p>