Home/Support/Support Forum/Communicating digitally between Xbees through C#

Communicating digitally between Xbees through C#

0 votes
Hi.

I have the "digi xbee dev interface board usb" and I'd like to communicate between two Xbees. At the end I want to have one coordinator and several end points, but I'm taking this step by step.

I've made a program in C# where I use the COM ports to communicate text between two XBees who are each connected to their own computer.

My next step is taking one of the XBees out of the computer, and only use a power source and the digital IO pins to communicate with my coordinator - still through C#. By that I mean I want to be able to monitor if IO is high/low (IO status basically) and manually control them (force a low io high etc).

Is this possible with the dev kit I have, or what do I need extra to achieve my goal? I've seen people use Arduino and whatnot - is that a must?

I'm also struggling with my C# program as I currently communicate through reading com ports to send text strings. Any input on how I can monitor digital io and manually set io high/low through C# would also be greatly appreciated.
asked Feb 1, 2016 in XBee Programmable Development by Lars New to the Community (5 points)

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
Yes it is very possible. You just need to have the radio in API mode on the PC side and have your application understand and issue API frames.

Sorry I don't have any sample C# code I can give you. But you can get some ideas from the sample C code used with the Programmable XBee modules. You will find it in the XBee SDK on the support site.
answered Feb 1, 2016 by mvut Veteran of the Digi Community (12,786 points)
selected Feb 1, 2016 by Lars
Thank you for your reply - I will definitely check that out.
...