XBee C Library

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ajienikicio
 
Posts: 26
Joined: Tue Aug 27, 2013 11:20 pm

XBee C Library

Post by ajienikicio »

Has anyone here ever interfaced a microcontroller with an XBee using C?

Does anyone have a library for that?

My experience with XBee is only using the API library in Arduino, which is written in C++

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: XBee C Library

Post by adafruit_support_bill »

C on what platform? The XBee connects to a serial port, so talking to the XBee is just like talking to a serial port.

User avatar
ajienikicio
 
Posts: 26
Joined: Tue Aug 27, 2013 11:20 pm

Re: XBee C Library

Post by ajienikicio »

I have a custom board based on an Atmel ARM Cortex M-3 chip, and I've been programming it with the Atmel Studio.
I have the XBee with an XBee explorer board (https://www.sparkfun.com/products/11373) connected to the UART pins of the chip. I want to use the XBee as a 2-way data exchange platform between my custom board and one arduino

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: XBee C Library

Post by adafruit_support_bill »

There should be plenty of examples of serial communication with the Armel Studio C libraries out there.
I'll move this to General Project Help so more people with Atmel Studio expertise will see it.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: XBee C Library

Post by adafruit_support_rick »

In Atmel Studio, go into the File menu and select New... Example Project
In the new project dialog, select Family SAM3 and Category Drivers. Search for "USART". You'll see several "USART Serial Example" projects for doing serial I/O.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”