Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid 2.1 Bluetooth SPP to LM058 (Serial Cable Replacement) problem
    primarykey
    data
    text
    <p>Hey I'm relatively new to Android programming (but not programming in general).</p> <p>The Setup: HTC Wildfire (running Android 2.1) LM058 (RS232 Serial Cable Replacement) LM058 will later on be attached to a MCU but for now it's connected to my laptop (terminal)</p> <p>The Goal: To connect Wildfire to LM058 to each other with a 'bidirectional-stream' (like: "Hello from Android", response: "Hey from LM058").</p> <p>So far: I've managed to connect the two devices (paired), I can tell by the LEDs on the LM058. </p> <p>Problem: I can't seem to send anything from my Wildfire to LM058, and can't write anything back. They are paired and Connected.</p> <p>Code example:</p> <pre><code> String message = "Hello message from client to server."; byte[] msgBuffer = message.getBytes(); try { outStream.write(msgBuffer); Log.e(TAG, "App was here!"); } catch (IOException e) { Log.e(TAG, "ON RESUME: Exception during write.", e); } </code></pre> <p>I have previously made a similar connection using a Windows Mobile succesfully, but Android seems to give me some trouble at this point.</p> <p>If you can help me get passed this small hurdle I would be very gratefull!</p> <p>Could it have anything to do with BaudRate, because when a link is established (paired and Connected) it should replace the two devices (as a simple RS232 cable), so my Terminal on the PC should be set to a certain BaudRate (since I can't seem to find Baud Rate in Android). But still I can't see anything, if Baudrate was wrong then I would be able to see something (even though it might be rubbish) or?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload