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++
XBee C Library
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: XBee C Library
C on what platform? The XBee connects to a serial port, so talking to the XBee is just like talking to a serial port.
- ajienikicio
- Posts: 26
- Joined: Tue Aug 27, 2013 11:20 pm
Re: XBee C Library
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
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
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: XBee C Library
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.
I'll move this to General Project Help so more people with Atmel Studio expertise will see it.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: XBee C Library
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.
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.
Please be positive and constructive with your questions and comments.