Page 1 of 1

2 SKKCA-21 send and received data

PostPosted: Mon Mar 05, 2012 10:51 pm
by thumkh
i'm try to establish wireless communication between two mobile robots using a pair of SKKCA-21. Anyone know how to configure it using pic 16f877a? can give me a code sample for sending the data and received the data from one pic to another pic using a pair of SKKCA-21? and how to do if i want to monitor the data sent and received between two pic?

Re: 2 SKKCA-21 send and received data

PostPosted: Wed Mar 07, 2012 8:46 pm
by robosang
How do you know is paired?

Normally we sniff the signal and send to computer to look.

Why don you use computer to simulate microcontroller? Create the link and send data. Once the Bluetooth establish connection, it become transparent, microcontroller send data like they are using wire UART.

Re: 2 SKKCA-21 send and received data

PostPosted: Fri Mar 09, 2012 3:41 pm
by thumkh
use computer to simulate? how to? using Hyperterminal? bcoz one SKKCA-21 is connected to PIC 16F877A another SKKCA-21 is the same connected to another PIC 16F877A

Re: 2 SKKCA-21 send and received data

PostPosted: Fri Mar 09, 2012 5:48 pm
by robosang
Why cannot?

You can connect the SKKCA to computer through USB cable and it will become a COM port, let's say COM 10. Now connect another SKKCA to another USB port, it will become another COM Port, let's say COM 20. Open 2 HyperTerminal, or another terminal program such as Arduino IDE serial monitor, X-CTU also can. Select the correct baudrate and walah.... you are ready to communicate with the SKKCA.

Your microcontroller communicate with SKKCA using UART too, is the same as COM port on computer. So your Hyperterminal connect to COM10 is actually a microcontroller, another Hypterminal that connect to COM 20 is another microcontroller. Try to do the process to pair up this bluetooth first, only your proceed to microcontroller.

If you have never do this, I am sure you are just connecting 2 SKKCA and hope they connect by themselves, right? You can wait until next ten year, it will never happen :mrgreen:

Re: 2 SKKCA-21 send and received data

PostPosted: Fri Mar 09, 2012 6:34 pm
by thumkh
oh? which means after connect 2 SKKCA-21 through USB to COM then serial com port is created for both SKKCA-21 let say as u suggest port 10 and port 20...after that i connect 1 SKKCA-21 to microcontroller and another SKKCA-21 to another microcontroller...then i use Hyperterminal on COM to connect port 10 and port 20 correct? is that rite? am i missing something?

By the way...i have tried one SKKCA-21 through USB to COM then one SKKCA-21 to microcontroller after that i connecting them through Hyperterminal on COM and it was a success...what i send from COM to microcontroller is received and microcontroller able to carry out the task...but because i want both microcontroller to be able to communicate with each other through a pair of SKKCA-21 then i got stuck at here...

I have been thinking the way as u suggest just i haven't carried out yet...many thx for your time and advice...i will try the way u propose to me and if anything problem can i get back to u?

Re: 2 SKKCA-21 send and received data

PostPosted: Fri Mar 09, 2012 8:17 pm
by robosang
No, you cannot get back to me :mrgreen: You can get back to this forum. I am answering questions in this forum voluntarily, I don want to be responsible for any of the project, just pointing some direction.

Re: 2 SKKCA-21 send and received data

PostPosted: Sat Mar 10, 2012 4:22 pm
by thumkh
i have do as what u suggest connect the SKKCA to computer through USB cable and a COM port is created, COM 6. Connect another SKKCA to another USB port, it become COM 8. Using Hyperterminal i have pair up the SKKCA using AT commands and both SKKCA can send and receive data from each other. So what i type in Hyperterminal for COM 6 will appear in Hyperterminal for COM 8. So is this the pairing process u mentioned b4?

Then i proceed to microcontroller...one SKKCA connect to microcontroller another SKKCA connect to another...but i cant find the COM 6 and COM 8 on Hyperterminal...so i have to connect them through bluetooth dongle?

Re: 2 SKKCA-21 send and received data

PostPosted: Sun Mar 11, 2012 6:26 pm
by sich
thumkh WROTE:Then i proceed to microcontroller...one SKKCA connect to microcontroller another SKKCA connect to another...but i cant find the COM 6 and COM 8 on Hyperterminal...so i have to connect them through bluetooth dongle?

You won't be able to find COM6 or COM8 in your Hyperteminal because you didn't connect the SKKCA to your computer through USB cable. The COM port appears because of a USB-to-Serial chip on the SKKCA board, not because of the wireless module itself. The chip is like a bridge for the wireless module to 'talk' to your pc and vice versa, by creating a linkage (the COM port).

Now you have connected the SKKCA to your microcontroller, these two items communicate directly without via the usb-serial chip, hence computer, COM port and hyperterminal are not involved anymore. Just pair them up using the AT commands like what you do in Hyperterminal, but now you insert the commands in microcontroller's code.

Re: 2 SKKCA-21 send and received data

PostPosted: Sun Mar 11, 2012 9:09 pm
by thumkh
Dear Sich,

Can you show me the sample code for pairing the SKKCA by sending the AT commands using PIC16F877A to SKKCA? I'm using HI-TECH ANSI C Compiler... i have been searching for info about sending AT commands in C language but to avail...

If pairing using one SKKCA through USB to COM with one SKKCA through UART to microcontroller using Hyperterminal by sending AT commands to the SKKCA that connect to microcontroller...i had tried and it's working but that is not i wanted...

Thx for ur explanation and helping