Society of Robots - Robot Forum

Software => Software => Topic started by: Ji Jing Meng on September 08, 2010, 11:22:46 AM

Title: Bluetooth unable to connect to computer
Post by: Ji Jing Meng on September 08, 2010, 11:22:46 AM
Hi,

I am encountering some problems connecting my ATmega8 via bluetooth module (KC Wirefree SKKCA-21) to my computer. Whenever I try to connect to a COM port, the message "The device you selected does not have a serial port service running" appears. I can't seem to figure what the problem exactly is as I have initialized UART and solved all errors and warnings.

My Source Code:

Code: [Select]
#include "SoR_Utils.h"

int main(void)
{

char keypress;

uartInit();  // initialize the UART (serial port)
uartSetBaudRate(115200);// set the baud rate of the UART for our debug/reporting output
configure_ports();
rprintfInit(uartSendByte);

LED_on();

while (1)
{
keypress=uartGetByte();
if (keypress!=-1)
{
if (keypress == 'r')
{
rprintf("Connection Loaded 100%");
}
}
}

return 0;
}

Any solutions or ideas?? Your help will be greatly appreciated.