Page 1 of 1

Bluebee with PIC18f2520

PostPosted: Mon Nov 12, 2012 6:08 pm
by pokpokeh
Hi guys,

Im doing a project involving bluebee bluetooth module and PIC18f2520. After connecting the hardware wires, the bluetooth communication works well. But i noticed that the bluebee is constantly sending random characters to my PIC when im not sending anything. Is there any way to stop that? or maybe forcing it to send only one type of garbage value instead of random characters because it is interrupting my program pretty much..

Hope you guys can give me some ideas or comments if i missed out any details..! thanks!

Re: Bluebee with PIC18f2520

PostPosted: Mon Nov 12, 2012 8:47 pm
by robosang
Is the Bluebee connect to microcontroller? Will it be the microcontroller sending rubbish?

Re: Bluebee with PIC18f2520

PostPosted: Tue Nov 13, 2012 12:28 am
by zhenning
Hi,

Have you set it correctly?

Serial port settings: 1200 ~ 1382400 / N / 8 / 1
Baud rate default: 9600 bps(Serial Port Profile, transparent mode)
Baud rate default: 38400 bps in AT mode.

Attached is some tutorials on using the xbee: http://tutorial.cytron.com.my/2011/08/1 ... tooth-bee/

Re: Bluebee with PIC18f2520

PostPosted: Tue Nov 13, 2012 9:32 pm
by pokpokeh
Thanks for the reply!

I'm pretty sure with the connection and it is actually working (as i can send in my letters using an android phone), Just that it is constantly sending garbage value which might cause problems to my flow. Apparently i just got it working as i wanted. I did some changes on my USART receive function. I realized i didnt check for the RCIF flag, after adding the check in my "if" condition, it is now working as i wanted. Appreciate your time for replying. Thanks! :D