Page 1 of 1

Zigbee coordinator problem

Posted: Sat Feb 19, 2011 9:16 am
by aqua
Hello everybody,

I'm working on a project where I use a Zigbee module, it is a robot. But I'm having problems with programming de coordinator programm.
What must I write to the routine while I'm sending from the end device the character for example "forward"? Must it be forward in the coordinator or with bytes?

Thanks.

Re: Zigbee coordinator problem

Posted: Sat Feb 19, 2011 7:16 pm
by Jan Lichtenbelt
Dear Aqua,

Did you check other Forum answers for your problem ? In the Flowcode 4 examples *), are 9 Zigbee examples (examples/components/zigbee). Did you check if these helps to solve your problem?

If no, please be more concrete in your question.

With kind regards,

Jan Lichtenbelt

Note *) See:
http://www.matrixmultimedia.com/Flowcode3a-X.php and click om Flowcode (4) examples

Re: Zigbee coordinator problem

Posted: Sun Feb 20, 2011 9:08 am
by aqua
Hello Jan,
thank you for your message. I think that I just understand with the examples how to use Zigbee.

So, my problem was when I send a charcter with the end_device, the coordinator receives only one value and I didn't know how Zigbee manages to make the differences between several values.
In the coordinator programm I must assign a value as example I send forward with my end_device, I'm receiving "incoming" so to make forward I must assign incoming as forward with a calcul (incoming=forward). Did I get it right or must I do soemthing else?

Regards aqua.

Re: Zigbee coordinator problem

Posted: Tue Feb 22, 2011 6:26 pm
by aqua
Hello again,

Can someone tell me if what I said above is right? thanks

regards aqua

Re: Zigbee coordinator problem

Posted: Thu Feb 24, 2011 9:06 am
by Benj
Hello Aqua,

Yes that sounds about right. Basically you are going to make a number of commands equal to numeric values from 0 - 255.

So you could do something like this.

0 - Stop
1 - Forwards
2 - Backwards
3 - Turn Right
4 - Turn Left

I would also have a two byte protocol so you send the command byte followed by a data byte.

for example sending 1 then 200 would tell the robot to drive forwards at speed 200.

The receiver would simply poll for incoming data. Once data is received then the receiver would poll for a second byte. Once both bytes are received the command is implemented.

Re: Zigbee coordinator problem

Posted: Thu Feb 24, 2011 5:51 pm
by aqua
Thank you for your message Benj.

Well I tested my programm with Zigbee and it works. I got some problem with the speed but now it works like a charm.

Regards Aqua