Computer to Xbee

Hi all,

This is not a strictly-speaking Arduino question ; I'm trying to get rid of the Arduino by exploiting the XBee's internal DIO capabilities.

In the most basic form, what I want to do is to have an xbee attached to my computer, and another one elsewhere with an LED attached to a PWM output. I'd like to be able to send the LED value from the computer, by terminal. Now, I managed to configure both XBees, set the PWM, etc, but what I cannot figure out is what to type in the terminal to set the PWM value.

Basically, it would be the equivalent of analogWrite(somePort, someValue);

Does anyone have an idea how to do that? Any help is appreciated!

Use the M0 or M1 AT commands to set the PWM duty cycle.