E-blocks 2 Zigbee (BL0152)
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
E-blocks 2 Zigbee (BL0152)
Hi,
I have a problem which I hope you be able to solve.
There is no component Zigbee BL0152 (E-blocks2) in FlowCode 8. The macros of component Zigbee EB051 are not suitable.
Is it possible to release an update with this component?
Thanks in advance for your help.
I have a problem which I hope you be able to solve.
There is no component Zigbee BL0152 (E-blocks2) in FlowCode 8. The macros of component Zigbee EB051 are not suitable.
Is it possible to release an update with this component?
Thanks in advance for your help.
- 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: E-blocks 2 Zigbee (BL0152)
Hello,
We haven't gotten around to making an E-blocks 2 specific version of the Zigbee component yet.
For now it should be possible to use the EB051 Zigbee component to drive the board.
We haven't gotten around to making an E-blocks 2 specific version of the Zigbee component yet.
For now it should be possible to use the EB051 Zigbee component to drive the board.
Not sure what you mean by this could you provide more detail.The macros of component Zigbee EB051 are not suitable.
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
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Thank you for considering this issue, here are some details
I had a problem with connecting the end device to the coordinator.
In my case, there are two circuits, each made from the PIC MultiProgrammer BL0080, Combo Board BL0114 and Zigbee Board BL0152 components.
In the first one, Zigbee is a Coordinator, in the second - End device.
In both circuits, the settings of the components correspond to the selected components.
I initialize both components, then I use ConnectToAll and ConnectToCoordinator macros from Zigbee EB051 component for Coordinator and End devices respectively.
ConnectToCoordinator macro is not executed (I also tried ConnectToName, but got the same), so I tried to run the search for the nearest devices using ScanNetwork on both modules.
As a result of the program, I understand that they do not see each other.
I had a problem with connecting the end device to the coordinator.
In my case, there are two circuits, each made from the PIC MultiProgrammer BL0080, Combo Board BL0114 and Zigbee Board BL0152 components.
In the first one, Zigbee is a Coordinator, in the second - End device.
In both circuits, the settings of the components correspond to the selected components.
I initialize both components, then I use ConnectToAll and ConnectToCoordinator macros from Zigbee EB051 component for Coordinator and End devices respectively.
ConnectToCoordinator macro is not executed (I also tried ConnectToName, but got the same), so I tried to run the search for the nearest devices using ScanNetwork on both modules.
As a result of the program, I understand that they do not see each other.
- 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: E-blocks 2 Zigbee (BL0152)
Hello,
Please can you attach your various programs for us to have a look.
Please can you attach your various programs for us to have a look.
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
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Ok, there are two files - one for Zigbee Coordinator device, another for Zigbee End device.
What I tried to do, I already wrote above.
What I tried to do, I already wrote above.
- Attachments
-
- ZigBee_lab1_EndDevice_FCv8_18877.fcfx
- (14.84 KiB) Downloaded 316 times
-
- ZigBee_lab1_Coordinator_FCv8_18877.fcfx
- (19.98 KiB) Downloaded 311 times
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
And here are the other two files for the same devices.
I tried to use ScanNetwork macro.
I tried to use ScanNetwork macro.
- Attachments
-
- ZigBee_EndDevice_Scan.fcfx
- (12.45 KiB) Downloaded 314 times
-
- ZigBee_Coordinator_Scan.fcfx
- (12.97 KiB) Downloaded 308 times
- 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: E-blocks 2 Zigbee (BL0152)
Hello,
Your pin connections look wrong.
Should be like this instead assuming your plugging the Zigbee boards into Port C of the E-block.
Your pin connections look wrong.
Should be like this instead assuming your plugging the Zigbee boards into Port C of the E-block.
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
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
I tried it in different ways, but I can not connect two zigbee modules between.
Can you tell me what my problem is?
Below are examples of programs that should allow me to connect devices (programs dont go out of the loop where the connection occurs).
I tried macros ConnectToAll, ConnectToCoordinator and ConnectToName in different variations, but I was unable to establish a connection.
Thanks in advance for the answer
I tried it in different ways, but I can not connect two zigbee modules between.
Can you tell me what my problem is?
Below are examples of programs that should allow me to connect devices (programs dont go out of the loop where the connection occurs).
I tried macros ConnectToAll, ConnectToCoordinator and ConnectToName in different variations, but I was unable to establish a connection.
Thanks in advance for the answer
- Attachments
-
- ZigBee_lab1_EndDevice_FCv8_18877.fcfx
- (16.42 KiB) Downloaded 316 times
-
- ZigBee_lab1_Coordinator_FCv8_18877.fcfx
- (19.93 KiB) Downloaded 323 times
- 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: E-blocks 2 Zigbee (BL0152)
Hello,
I've been through your program and cleaned things up a bit and also added a few more scan channels just in case channel 0x1A is currently in use e.g. by a nearby WIFI router.
Let us know how you get on.
I've been through your program and cleaned things up a bit and also added a few more scan channels just in case channel 0x1A is currently in use e.g. by a nearby WIFI router.
Let us know how you get on.
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
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
- 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: E-blocks 2 Zigbee (BL0152)
Ok so have you tried anything further? what about adding more scan channels?
Do you have a wifi spectrum app on your phone so you can see active WIFI channels in your area?
Do you have a wifi spectrum app on your phone so you can see active WIFI channels in your area?
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
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Some things to check/try:
Ensure the PAN ID for both projects are the same
Try enabling just scan channels 0x0b and 0x15
Do the LEDs on the ZigBee boards flash or just stay on?
Ensure the PAN ID for both projects are the same
Try enabling just scan channels 0x0b and 0x15
Do the LEDs on the ZigBee boards flash or just stay on?
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
Here are two files that I used.
In both the same PAN ID - 1234. And Scan channels only 0x0b and 0x15.
Coordinator led blinks, End device led just stays on.
They still dont connect
Here are two files that I used.
In both the same PAN ID - 1234. And Scan channels only 0x0b and 0x15.
Coordinator led blinks, End device led just stays on.
They still dont connect
- Attachments
-
- ZigBee_EndDevice.fcfx
- (14.13 KiB) Downloaded 213 times
-
- ZigBee_Coordinator.fcfx
- (16.1 KiB) Downloaded 208 times
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
Yes the constant LED on the end node indicates it is not connected with the coordinator.
I've added a repeat loop into the connect request of the end node, see if that helps, if not perhaps try other channels.
Yes the constant LED on the end node indicates it is not connected with the coordinator.
I've added a repeat loop into the connect request of the end node, see if that helps, if not perhaps try other channels.
- Attachments
-
- ZigBee_EndDevice.fcfx
- (13.78 KiB) Downloaded 209 times
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hello,
I tried your program, it did not work.The ConnectToCoordinator marco returns zero, regardless of whether a coordinator is turn on or not, so I tried to change the loop to wait for one (instead zero). But this also does not work, so I want to try other channels, as you suggested, but I don’t quite understand how (channel tuning is done in Scan Channels or somewhere else?).
Hope you help me with this. Thanks.
I tried your program, it did not work.The ConnectToCoordinator marco returns zero, regardless of whether a coordinator is turn on or not, so I tried to change the loop to wait for one (instead zero). But this also does not work, so I want to try other channels, as you suggested, but I don’t quite understand how (channel tuning is done in Scan Channels or somewhere else?).
Hope you help me with this. Thanks.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
The channels can be set yes/no in the ZigBee component properties.
Have you just got one board of each, BL0152C Coordinator and BL0152R Router?
The channels can be set yes/no in the ZigBee component properties.
Have you just got one board of each, BL0152C Coordinator and BL0152R Router?
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi.
Yes, I have two BL0080 boards and Zigbee Board BL0152 is connected to each of them.
I think it does not work. Can you confirm that Zigbee (eblocks 2) works in Flowcode 8?
Just send me at least one version of the program that can connect Zigbee (eblocks 2) together?
Yes, I have two BL0080 boards and Zigbee Board BL0152 is connected to each of them.
I think it does not work. Can you confirm that Zigbee (eblocks 2) works in Flowcode 8?
Just send me at least one version of the program that can connect Zigbee (eblocks 2) together?
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
Can you test your hardware with the attached program?
It will just check communication between the BL0080 board and Zigbee Board
and it will also check and display the type of Zigbee Board, either Coordinator or End Device
(You need to have one of each)
Leigh
Can you test your hardware with the attached program?
It will just check communication between the BL0080 board and Zigbee Board
and it will also check and display the type of Zigbee Board, either Coordinator or End Device
(You need to have one of each)
Leigh
- Attachments
-
- ZigBee_Board_Test.fcfx
- (14.83 KiB) Downloaded 199 times
-
- Posts: 26
- Joined: Tue Sep 18, 2018 5:22 pm
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
I checked my devices.
The program display on screen "Coordinator" for one device (with a Coordinator mark on it)
and "End device" for another (with a Router/End mark on it).
Maybe you have a program that can connect Zigbee devices?
I checked my devices.
The program display on screen "Coordinator" for one device (with a Coordinator mark on it)
and "End device" for another (with a Router/End mark on it).
Maybe you have a program that can connect Zigbee devices?
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: E-blocks 2 Zigbee (BL0152)
Hi,
That's good then, hardware OK.
Try these ..
Leigh
That's good then, hardware OK.
Try these ..
Leigh
- Attachments
-
- ZigBee_End_Send.fcfx
- (13.71 KiB) Downloaded 211 times
-
- ZigBee_Coord_Receive.fcfx
- (12.77 KiB) Downloaded 198 times