Communication between the gateway and two modules xbee pro series 1

hello,

I successfully to communicate two XBee Pro Series one of them (data: hello).
with this configuration :

1)module XBee ROUTER:

  • modem: XBP24, function set: XBEE pro 802.15.4 ,version: 10EC
  • Networking & Security: channel: C ,PAN ID: 3332,MY:0,SH and SL : @ the other xbee

2)module XBee COORDINATOR:

  • modem: XBP24, function set: XBEE pro 802.15.4 ,version: 10EC
  • Networking & Security: channel: C ,PAN ID: 3332,MY:0,SH and SL : @ the other xbee

Now, I want to communicate the XBee through the gateway ConnectPort X4(here is my problem)
In the page of the gateway’s web service (XBee Network),when i clik “Discover XBee Devices” ,there is only the gateway with NodeTyppe Coordinator.

Please can you help me to solve this problem…
Thank you in advance

maro,

I don’t know very much about X4s, but bear in mind that it has to be able to communicate with 802.15.4 modules (ZigBee modules are not compatible with 802.15.3).

If your gateway supports 802.15.4 (XBees Series 1) then you have to configure it in the same PANID and channel as your modules. Usually the gateways are the coordinator of the network, so bear in mind that you can’t have more than one coordinator. Regards,

Dear fgilmar ,

The Gateway X4 not compatible with the Xbee S1 pro , so i I bought four Xbee S2 pro to build my Network …
I have managed to build my ZigBee networks containing two XBee Pro S2 as Router and gateway CPX4 as Cardinator (Star).

with this configuration :

—>In the gateway:

        *PAN ID: 0x4a59
        *channel: 0xc
        *scan all channels

---->In router 1: XBee Pro 2:

       *PAN ID: 4a59
       *channel scan: 16
       *DH, DL destination: 0

---->In router 2 : XBee Pro 2:

       *PAN ID: 4a59
       *channel scan: 16
       *DH, DL destination: 0

with this script int the gateway , i discover my network :

import sys
import os
import zigbee
import binascii
import time
from socket import *
import struct

print ‘Starting up…’

nodes = zigbee.getnodelist(refresh=True)
nodes = filter(lambda x: x.type != ‘coordinator’, nodes)

Print the table:

print “%12s %12s %8s %24s” %
(“Label”, “Type”, “Short”, “Extended”)
print “%12s %12s %8s %24s” %
(“-” * 12, “-” * 12, “-” * 8, “-” * 24)

for node in nodes:
print “%12s %12s %8s %12s” %
(node.label, node.type,
node.addr_short, node.addr_extended)

Now i want to receive data from the network :
i tried this script But i receive data from only one Xbee not all my network!!


from socket import *

Create the socket, datagram mode, proprietary transport:

sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT)

sd.bind((“”, 0xe8, 0, 0))

Block until a single frame is received, up to 255 bytes:

print “Waitting For New Packet”
#sd.recvfrom(packetSize)

data, src_addr = sd.recvfrom(255)

print “the data :”
print data
print “src”
print src_addr

After using same settings on both the XBee’s, are you facing this problem?
Make sure that you have set correct destination address on the XBee module.
If you want to send data from XBee modules to Coordinator, then DH and DL of the XBee’s should be SH and SL of the Coordinator.
And also check the OI and CH parameters on the XBee modules, It should be same on all the modules in the network.