Bluebee with PIC18f2520

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Bluebee with PIC18f2520

Postby pokpokeh » Mon Nov 12, 2012 6:08 pm

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!
pokpokeh
Newbie
 
Posts: 9
Joined: Mon Aug 06, 2012 1:56 pm

Re: Bluebee with PIC18f2520

Postby robosang » Mon Nov 12, 2012 8:47 pm

Is the Bluebee connect to microcontroller? Will it be the microcontroller sending rubbish?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: Bluebee with PIC18f2520

Postby zhenning » Tue Nov 13, 2012 12:28 am

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/
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: Bluebee with PIC18f2520

Postby pokpokeh » Tue Nov 13, 2012 9:32 pm

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
pokpokeh
Newbie
 
Posts: 9
Joined: Mon Aug 06, 2012 1:56 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest