# Failing to establish network communication with my XBee 3(s).

**URL:** <https://forums.digi.com/t/failing-to-establish-network-communication-with-my-xbee-3-s/21536>\
**Category:** XBee - Zigbee\
**Tags:** network, xbee-api-mode, xbee-network, gpio, python\
**Created:** [July 8, 2020, 6:52am UTC](https://forums.digi.com/t/failing-to-establish-network-communication-with-my-xbee-3-s/21536 "2020-07-08T06:52:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edunn106](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@edunn106](https://forums.digi.com/u/edunn106)\
**Post date:** [July 8, 2020, 6:52am UTC](https://forums.digi.com/t/failing-to-establish-network-communication-with-my-xbee-3-s/21536/1 "2020-07-08T06:52:42Z")

</div>

EDIT\*\* UGH. nvm lol… I just plugged in the antennas that came in the box.. poof works. But I thought they had a built in on-chip antenna as well as the connector antenna?.. this was literally like a multiple day issue and all I had to do was plug in the dang antennas

Here’s my simple code… it works immediately when I plug in my XBee S2C(s) but when I plug in my XBee 3(s) I get an error.

Here is the code:

from digi.xbee.devices import XBeeDevice  
from [digi.xbee.io](http://digi.xbee.io) import IOLine, IOValue  
import time

local\_device = XBeeDevice(“COM5”, 9600)  
local\_device.open()

# Get the network.

xnet = local\_device.get\_network()  
remote\_00 = xnet.discover\_device(“ROUTER\_00”)  
print('remote\_00 = ', remote\_00)

while True:  
remote\_00.set\_dio\_value(IOLine.DIO0\_AD0, IOValue.HIGH)  
time.sleep(2)  
remote\_00.set\_dio\_value(IOLine.DIO0\_AD0, IOValue.LOW)  
time.sleep(1)  
print(‘yay’)

The error that I get is an attribute error saying that None type doesn’t know .set\_dio\_value. So essentially the remote\_00 is returning as None… aka when I discover the specific device it does not find it!  
This code works immediately for my XBee S2C(s).

In XCTU all devices have the same ID and SC. The NI is spelled correctly. API mode is selected for all. Firmware is latest version for each module. The coordinator COM port is selected correctly.. the baud rate is 9600 and should be fine.. I think.

so I dont know what I am missing. Probably some crucial basic configuration misstep.

I would provide screen shots but this forum doesn’t allow that.. at least I am not sure how to do so lol

Any ideas?

thanks!

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 8, 2020, 12:30pm UTC](https://forums.digi.com/t/failing-to-establish-network-communication-with-my-xbee-3-s/21536/2 "2020-07-08T12:30:33Z")

</div>

Glad to here you got it going. Not having the antennas connected will do that every time.
