I have already tested the SKKCA module using USB and its fine..... The problem is when I connect to Microcontroller and powered up the SKKCA and tried to establish the serial communication with it using Bluetooth dongle (by double click the KCWirefreeDevice icon in IVTBluesoleil), the status "Service Discovery Failed" was shown - I was unable to communicate serially with the SKKCA from my computer.
As you have answered in the forum SKKCA Rx pin need to be high if SPP connection required to be establish. the way to make this, one is to connect to microcontroller and enable the UART(not sure your UART on microcontroller is correct or not).
The question over here is what is the command used to enable UART... I cant understand... After finding all the books and net i have wrote a simple programme .... The program is just to receive back the sent data in 5 decimal num... Pls check it weather any mistake done or left out in the programme...
DEFINE OSC 20
TRISC.7 = 0 ' Set PORTC.7 (TX) to output
PCData var word
'
Main:
SERIN2 PORTC.7, 16468,Main,40000, Main,[DEC5 PCData]
pause 1000
SERout2 PORTC.6, 16468,[dec PCData,13,10]
goto Main
Bookmarks