Page 1 of 1
Zigbee Communication Problem
Posted: Fri Sep 16, 2011 8:15 pm
by JohnCrow
Hi
Im having trouble getting my new zigbee e-blocks to communicate.
Hardware 16F877A
Zigbee on port c
Jumpers C &1
1) I have tried the test program on both board and they both pass, so i hope the boards are ok
2) Using the files from the zigbee e-blocks bundle example 1
Node 1 inits with a string of at commands on the LCD (Co-ordinator Board)
Then shows waiting for node 2
LED flashes 1 / sec
LED on node 2 flashes 2 /sec (Router.EndNode Board)
Pressing switchs on switch board has no effect
These are the files I've been using
What am I doing wrong?
Thanks
John
Re: Zigbee Communication Problem
Posted: Sun Sep 18, 2011 4:16 pm
by misoct
Hi JohnCrow
I think that you made the first two programs as coordinator
you must change the configuration from properties as on cordinator and the other as router
BR
tharowat
Re: Zigbee Communication Problem
Posted: Sun Sep 18, 2011 5:01 pm
by JohnCrow
Hi Tharowat
Thanks for the replay,
The first program (TestRoutine-zigbee) is the Matrix E-block test program, its used on its own to test the board (not as part of the network)
Node 1 & Node 2 are the programs im using as the network, again they are from Matrix's website (Part of the zigbee bundle download)
Did just double check but they are set as co-ordinator and router.
Re: Zigbee Communication Problem
Posted: Mon Sep 19, 2011 7:19 pm
by misoct
Hi JohnCrow
I tried to solve the problem through yasterday on my ZigBee e-blocks but I cannot to reach the error
I ll try agian
thanks
Re: Zigbee Communication Problem
Posted: Mon Sep 19, 2011 8:15 pm
by JohnCrow
Hi Tharowat
Do you mean the files I posted are working on your zigbee e-blocks?
My boards are brand new, only got them last week. Didnt get to try anything with them till the weekend.
Thanks
Re: Zigbee Communication Problem
Posted: Mon Sep 19, 2011 8:51 pm
by misoct
JohnCrow wrote:Hi Tharowat
Do you mean the files I posted are working on your zigbee e-blocks?
sorry JohnCrow
No I tried with your files and I can not to connect the modules
Re: Zigbee Communication Problem
Posted: Mon Sep 19, 2011 9:12 pm
by JohnCrow
Ok thanks for trying them
Sounds like it could be a problem with the flowcharts rather than my hardware.
Re: Zigbee Communication Problem
Posted: Tue Sep 20, 2011 9:56 am
by Benj
Hello,
The two Zigbee E-blocks are marked differently using the check boxes on the board, please can you confirm that your coordinator E-block is the one being sent the node 1 coordinator program.
Re: Zigbee Communication Problem
Posted: Tue Sep 20, 2011 10:10 am
by JohnCrow
Hi Benj
Yes
N1 = Co-ordinator board
N2 = Router/End Node board
Re: Zigbee Communication Problem
Posted: Tue Sep 20, 2011 1:02 pm
by Benj
Hi John,
Right ok I will try and find some time today to rig up the circuits and test everything is working correctly.
Are the LEDs on the Zigbee boards flashing at different rates? The LED on the Coordinator board should be flashing 2x slower then the one on the router board.
Re: Zigbee Communication Problem
Posted: Tue Sep 20, 2011 1:17 pm
by JohnCrow
Hi Benj
The leds are flashing as you say
Co-ord board 1 per sec
Router board 2 per sec
If you look at Tharowats post from yesterday, he also could not get the files to work
Thanks for looking
Re: Zigbee Communication Problem
Posted: Sun Sep 25, 2011 5:07 pm
by JohnCrow
Hi Benj
Ive have managed to get my Zigbee E-blocks to commucate transmitting a simple byte from endnode to co-ordinator.
However, the programs from example 1 in the zigbee bundles still wont work as downloaded.
It seems they have a problem where they are polling for each other at the start of the program. I deleted this part and they also work,the co-ordinator display the binary for the keypress on the switch board.
Also when the end node is starting up, if I have verbose enabled 1 of the AT commands shows
ATJN ERROR
I have noticed when the connect to coordinator macro is executed it returns a 0 even if no co-ordinator is present.
But It does seem now that the hardware is working ok.
Thanks.
Re: Zigbee Communication Problem
Posted: Mon Sep 26, 2011 3:48 pm
by DavidA
Hi John,
I will try and have a look at what may be happening on the zigbee example 1 for you!
Re: Zigbee Communication Problem
Posted: Mon Sep 26, 2011 7:13 pm
by JohnCrow
Hi
As I posted earlier, end node to co-ordinator works fine
Ive just tried it the other way round (co-ordindator to end node) the end node does not receive anything
Re: Zigbee Communication Problem
Posted: Tue Sep 27, 2011 9:42 am
by Benj
Hello John,
In your coordinator program try adding a "connect to all" or "connect to name - end" component macro after the Zigbee Init macro and you should then be able to communicate both ways.
Let me know how you get on.
Re: Zigbee Communication Problem
Posted: Tue Sep 27, 2011 6:40 pm
by JohnCrow
Hi Benj
Thanks
That did it. They are communicating in both directions now.
Also that was the problem with the bundle example file. I added a connect to all macro at the start of the co-ordinator flowchart, and it also works.
Re: Zigbee Communication Problem
Posted: Wed Sep 28, 2011 2:45 pm
by Benj
Aha
Thanks for letting me know John, I will get the example updated so that it works correctly.
Re: Zigbee Communication Problem
Posted: Fri Feb 03, 2012 7:05 pm
by lewisrendal
Hi Guys,
Maybe you can help me with my problem.
Two eb006 boards with EB51 attached one co-or and the other end node.
Program downloaded attached.
Help please
james
