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.
Zigbee coordinator problem
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: Zigbee coordinator problem
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
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
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.
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
Hello again,
Can someone tell me if what I said above is right? thanks
regards aqua
Can someone tell me if what I said above is right? thanks
regards aqua
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Zigbee coordinator problem
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Zigbee coordinator problem
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
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