# \[ConnectPort X2 Gateway\] Cannot upload the example.

**URL:** <https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504>\
**Category:** XBee - Zigbee\
**Created:** [July 9, 2009, 7:31pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504 "2009-07-09T19:31:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonS](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SimonS](https://forums.digi.com/u/SimonS)\
**Post date:** [July 9, 2009, 7:31pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/1 "2009-07-09T19:31:53Z")

</div>

Hi there,

i got the Drop-in Networking Professional Development Kit ZNet 2.5 (International) found here: [http://www.digi.com/products/model.jsp?lid=EN&amp;pgid=127&amp;pfid=144&amp;mtid=2826&amp;amtid=2829](http://www.digi.com/products/model.jsp?lid=EN&amp;pgid=127&amp;pfid=144&amp;mtid=2826&amp;amtid=2829)

After playing with examples, described in the documentation, i tried to upload the Python example on my ConnectorPort X2 Gateway.

I received an error message, which tells me, that there is no more room for those files.

Does anybody has the same error?

---

<div class="post-metadata">

**Author:** ![musshel](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@musshel](https://forums.digi.com/u/musshel)\
**Post date:** [July 9, 2009, 7:46pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/2 "2009-07-09T19:46:31Z")

</div>

SimonS,

The X2 Gateway has little memory. As such, most of the examples you will find will not fit on it. To verify this, I would recommend checking the available memory option on CPM.

---

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://forums.digi.com/u/Admin1)\
**Post date:** [July 9, 2009, 7:55pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/3 "2009-07-09T19:55:26Z")

</div>

If you’re trying to get the Embedded Kit Gateway Viewer working and getting “error 5 - out of space”, its likely because python.zip is loaded on the unit. python.zip is not required for this application, and can safely be deleted.

Additionally, here is an article which might help:  
[http://www.digi.com/support/kbase/kbaseresultdetl.jsp?id=3063](http://www.digi.com/support/kbase/kbaseresultdetl.jsp?id=3063)

And a location to get the current python.zip, should you want to load it back on the CP-X2 in future:  
[http://www.digi.com/support/productdetl.jsp?pid=3632&amp;osvid=0&amp;s=393&amp;tp=7](http://www.digi.com/support/productdetl.jsp?pid=3632&amp;osvid=0&amp;s=393&amp;tp=7)

---

<div class="post-metadata">

**Author:** ![SimonS](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SimonS](https://forums.digi.com/u/SimonS)\
**Post date:** [July 10, 2009, 11:58am UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/4 "2009-07-10T11:58:17Z")

</div>

Uploading works fine now.

Got this files on the X2:

EmbeddedKitManager.py  
EmbeddedKitService.py  
embedded\_kit\_gateway.zip  
WPAN.py

But after login with telnet, and running the command: python EmbeddedKitService.py

I receive following exception.

Starting up…  
Ready for incoming requests!  
Discovering nodes…  
Exception in thread WPANSerialEndpoint:  
Traceback (most recent call last):  
File “WEB/python/embedded\_kit\_gateway.zip/threading.py”, line 442, in \_\_bootstrap  
File “WEB/python/EmbeddedKitManager.py”, line 199, in run  
nodes = self.get\_bindings\_hash\_list()  
File “WEB/python/EmbeddedKitManager.py”, line 496, in get\_bindings\_hash\_list  
hash\_list = [self.\_bindings.bindings[k].to\_hash()   
File “WEB/python/EmbeddedKitManager.py”, line 38, in to\_hash  
return {  
IndexError: list index out of range

What’s wrong there?

---

<div class="post-metadata">

**Author:** ![SimonS](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SimonS](https://forums.digi.com/u/SimonS)\
**Post date:** [July 10, 2009, 3:06pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/5 "2009-07-10T15:06:43Z")

</div>

I searched the forum, and found this topic:  
“Xbee kit - Demo applet problem”

> **[Digi Technical Support Forums](https://forums.digi.com/)**
>
> Support forums for Digi International products and services

After reading the “How do I install and use the Embedded Kit Gateway Viewer application?” article, i would like to know, whether i need the devices listed there, like the “1-Wire Sensor Adapter”, or not ?

In my kit contains:

# (1) ConnectPort X2 gateway

# (3) XBee ZNet 2.5 (formerly Series 2) modules (1 XBee, 1 XBee-PRO) and (3) interface boards (1 USB, 1 RS-232)

# (1) XBee wall router

I was just following the example, because i believed that it fits for my development kit. Maybe not ?

---

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://forums.digi.com/u/Admin1)\
**Post date:** [July 10, 2009, 4:27pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/6 "2009-07-10T16:27:36Z")

</div>

“list index out of range” normally means that one of the XBee’s associated with the gateway can’t be contacted.

This might be because the XBee is asleep (I don’t think the app was designed with a sleeping end node in mind), on a different channel, etc.

Check in the WebUI to make sure you can click on the extended address of all XBee’s associate there so you can view the basic and advanced settings. When you can click on all of them, the error should go away.

---

<div class="post-metadata">

**Author:** ![SimonS](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SimonS](https://forums.digi.com/u/SimonS)\
**Post date:** [July 12, 2009, 11:37pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/7 "2009-07-12T23:37:37Z")

</div>

I can click on the extended address of all Xbee’s associated with the gateway. I did not change the default configuration.

---

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://forums.digi.com/u/Admin1)\
**Post date:** [July 14, 2009, 10:28pm UTC](https://forums.digi.com/t/connectport-x2-gateway-cannot-upload-the-example/2504/8 "2009-07-14T22:28:31Z")

</div>

You’ll likely want to call support then so we can walk you through some troubleshooting over the phone.
