# Arduino+XBEE+ConnectPort data via Arduino's Serial class

**URL:** <https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378>\
**Category:** XBee Gateway\
**Tags:** device, connectport, xbee\
**Created:** [September 11, 2016, 2:36pm UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378 "2016-09-11T14:36:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MateusPimentel](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@MateusPimentel](https://forums.digi.com/u/MateusPimentel)\
**Post date:** [September 11, 2016, 2:36pm UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378/1 "2016-09-11T14:36:31Z")

</div>

Hello friends, I am trying to send data from my xbee end device module on an xbee shield using Arduino’s serial.write() to my ConnectPortx4 without success… i am using this script to send the data to Device Cloud [http://www.digi.com/wiki/developer/index.php/XBee\_to\_Device\_Cloud\_-\_DataPoint\_Creation](http://www.digi.com/wiki/developer/index.php/XBee_to_Device_Cloud_-_DataPoint_Creation) without error. but no data is beeing received on endpoint 0xE8? why is that so? how can i send serial data from the arduino+xbee to the connectport and then to DeviceCloud, 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:** [September 12, 2016, 3:48pm UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378/2 "2016-09-12T15:48:37Z")

</div>

which XBee modules and connect port are you working with?

---

<div class="post-metadata">

**Author:** ![MateusPimentel](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@MateusPimentel](https://forums.digi.com/u/MateusPimentel)\
**Post date:** [September 12, 2016, 8:50pm UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378/3 "2016-09-12T20:50:33Z")

</div>

xbee S2 Pro ZB and a ConnectPort X4 ZB thank you

---

<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:** [September 13, 2016, 10:46am UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378/4 "2016-09-13T10:46:27Z")

</div>

For that to work, you need to write and port an application to the gateway that accepts the data from the XBee and sends it to the cloud.

---

<div class="post-metadata">

**Author:** ![jlovinger](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jlovinger](https://forums.digi.com/u/jlovinger)\
**Post date:** [September 15, 2016, 12:30am UTC](https://forums.digi.com/t/arduino-xbee-connectport-data-via-arduinos-serial-class/17378/5 "2016-09-15T00:30:31Z")

</div>

You can enabled low-level tracing on the X4 for debug purposes. Telnet to its IP address and enter the following command.

\> set trace state=on mask=mesh:\*

This will start dumping all serial traffic to/from the XBee (i.e. mesh) including the RX API frames you are expecting from the remote XBee. Those frames should be API ID 0x91 which you can look up in the XBee manual for help decoding the frames.

If you can see the expected data in the trace then the issue may be in the provided sample. If data isn’t in the trace then looking at some sort of configuration failure. XBee may not be joined to the gateway’s network, not in transparent serial mode, etc.

Either way this will hopefully help you get a little closer to the problem.
