Content originally posted in LPCWare by nelmak on Thu Sep 06 10:22:38 MST 2012
Thanks for the suggestions.
I am quite sure that the Bluetooth module and Android application is working correctly. I connected the TX and RX pins on the bluetooth module and sent characters from my application. I received the correct characters that I sent. So I know the application and bluetooth module is working fine.
I am using the printf function with a redirected _sys_write function to the UART. The printf should format my output as ascii before sending.
So they are effectively in the same format.
Edit:
I keep getting the Failed to connect: Ee(07) ACK error. I disconnect from the USB, reset to ISP mode and reconnect. The LPC-Link will fail to initialize. I unplug the USB and plug it into another port and it beings working again. This only started happening yesterday.
Ok, I programmed the app to notify me when it receives information and it provides a notification but the buffer is empty. However, I can send chars from my phone to the Bluetooth and back. So it has something to do with the way the UART is sending the data. Also, whenever I change the baud rates to any other rate other than 9600 it stops working.