Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: Development files for BTPro
PostPosted: Mon Feb 06, 2012 4:29 pm 

Joined: Mon Feb 06, 2012 4:26 pm
Posts: 3
Hi,

I'm using the new BT Pro module for discovering devices and I can't locate the WaspBT_Pro.h and WaspBT_Pro.cpp files. Can you please tell me where to find these files and how to install them in the IDE?

Thanks


Top
 Profile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Mon Feb 06, 2012 6:00 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7812
Dear Gert,

Due to BT_Pro module has been released recently, it is still not included in API version 0.22.

We will send you BT_Pro files as soon as possible.

In the meantime, maybe you did not check the BT_Pro guide. We recommend you to read it to know how BT pro module works.

Sorry for the inconvenience.

Kind regards.


Top
 OnlineProfile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Mon Feb 06, 2012 6:58 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7812
Dear gert

Please go to this post to download necessary files.

Kind regards


Top
 OnlineProfile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Tue Feb 07, 2012 11:32 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7812
gert,

We forgot to say that if you are planning to scan a lot of devices you also have to enlarge RX buffer of UART1.

Change this line of wiring_serial.c --> #define RX_BUFFER_SIZE_1 128
for this -->#define RX_BUFFER_SIZE_1 1024

Or just download again Bluetooth API (It is updated) and replace wiring_serial.c file.

Regards


Top
 OnlineProfile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Tue Jul 31, 2012 11:25 pm 

Joined: Tue Jul 31, 2012 11:03 pm
Posts: 2
Hi,

I have been playing with the Waspmote development kit for a while. I have managed to get the waspmotes working with Xbee zigbee modules.

I have also purchased the Bluetooth Pro modules. I managed to successfully load the example discovery code and it seems to work. However, I get no device detected even though there are a few bluetooth enabled devices (in discoverable mode) nearby. When I go to the serial console it shows zero detected device every a few seconds.

Here is my setup:
-I only have the bluetooth module connected to the main UART port
-the mote is connected to my pc with usb port

here is the code I am using:


char* nodeID="12345678"; // It must have 8 characters "
int a=0;

void setup(){

// setup for Serial port over USB
USB.begin();
USB.println("USB port started...");

// setup for RTC
RTC.ON();

// Insert your local time here.
// RTC.setTime("11:02:06:02:17:00:00");
USB.println(RTC.getTime());

// Setup for SD
USB.println("Starting SD...");
SD.ON();
if (SD.isSD()==0) USB.println("Card not present. Please insert Card");

// setup for Bluetooth module
BT_Pro.ON();
BT_Pro.init(nodeID); // saves nodeID into EEPROM


}

void loop(){

// --------------Normal scan-----------------
USB.println("Scan Network 5sc.");
a=BT_Pro.scanNetwork(5,TX_POWER_6);
USB.print("discovered: ");
USB.println(a);
}

Is there any thing else that I am missing?


Top
 Profile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Wed Aug 01, 2012 8:34 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7812
aasaeedi,

This fact could be the problem:
aasaeedi wrote:
-I only have the bluetooth module connected to the main UART port

Bluetooth module API is default developed to use Bluetooth module connected to UART1, using a expansion board.

If you have connected it to UART0 it wont communicate.

Let us know.

Regards


Top
 OnlineProfile  
 
 Post subject: Re: Development files for BTPro
PostPosted: Wed Aug 01, 2012 6:29 pm 

Joined: Tue Jul 31, 2012 11:03 pm
Posts: 2
Oh! I see!

Thank you very much. I will test it today and let you know.

Sincerely,

libelium-dev wrote:
aasaeedi,

This fact could be the problem:
aasaeedi wrote:
-I only have the bluetooth module connected to the main UART port

Bluetooth module API is default developed to use Bluetooth module connected to UART1, using a expansion board.

If you have connected it to UART0 it wont communicate.

Let us know.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use