I NEED TO SEND CHARACTER VALUES TO ANOTHER HANDHELD DEVICE OVER BLUETOOTH WHICH SHOULD BE AN AMP'ED DEVICE.
SO I AM USING BT24LT WITH ARDUINO TO SEND THE VALUES.
HERE THE PROBLEM IS THE VALUES ARE POPULATING AS SOME HEX VALUES MAY BE MEMORY VALUES LIKE EXAMPLE:- INPUT 10 OUTPUT GETTING AS "FF" INSTED OF 10
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println("Goodnight moon!");
// hart the data rate for the SoftwareSerial port
bluetooth.begin(115200);
bluetooth.println("Hello, world?");
}
void loop() { // run over and over
if(bluetooth.available())
{
Serial.print((char)bluetooth.read());
}
//Read from usb serial to bluetooth
if(Serial.available())
{
bluetooth.write((char)Serial.read());
SoftwareSerial reception is unreliable at a BAUD rate over 57600
bluetooth.begin(115200);
[/codeand although you are only transmitting you should switch to something lower (38400 is good) also i doubt if your BT-module is actually running at that BAUD-rate atm
Ensure your BT24 is configured at the right baud speed (115200 in that case) and that the Blueterminal application is set up to print ASCII and not Hex values
I am sure it is getting paired and Rx and Tx are configured correctly.
care to elaborate? the module supports both SPP and Apple IAP. You want to use SPP. is that configured? Most BT modules operate at 3.3V - your arduino (which one do you use?) is likely 5V for Rx and Tx. How do you handle that? are GND joined ?
you are giving to few information... can't keep asking....
Through AT commands when you configure your module (If I remember correctly it's something like AT+AB SPPConnect) - search for the AT commands in the abSerial Reference Guide
Srinu4a1:
Do we need to use Zigbee protocol to send data through BT24??