# How do I create a console application using VB.NET to read XBee via USB?

**URL:** <https://forums.digi.com/t/how-do-i-create-a-console-application-using-vb-net-to-read-xbee-via-usb/15638>\
**Category:** XBee & XBee Gateway\
**Tags:** serial-console, net, s2c, xctu, xbee\
**Created:** [October 23, 2015, 7:59am UTC](https://forums.digi.com/t/how-do-i-create-a-console-application-using-vb-net-to-read-xbee-via-usb/15638 "2015-10-23T07:59:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyDale](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AndyDale](https://forums.digi.com/u/AndyDale)\
**Post date:** [October 23, 2015, 7:59am UTC](https://forums.digi.com/t/how-do-i-create-a-console-application-using-vb-net-to-read-xbee-via-usb/15638/1 "2015-10-23T07:59:51Z")

</div>

How do I create a console application using [VB.NET](http://VB.NET) to gather data from XBee?

I have an XBee S2C mounted on a USB adapter connected to my PC and I’d like to develop a console application in [VB.NET](http://VB.NET) to read data similarly to what the XCTU v6.2 Console does.  
Is there any examples or articles on how to do this or could help?

---

<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:** [October 23, 2015, 8:56am UTC](https://forums.digi.com/t/how-do-i-create-a-console-application-using-vb-net-to-read-xbee-via-usb/15638/2 "2015-10-23T08:56:33Z")

</div>

Digi does not offer any Samples that do what you want. You may want to do some searching on Microsoft’s web site on how to create a console session and how to send and receive data over a COM port with VB.

---

<div class="post-metadata">

**Author:** ![AndyDale](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AndyDale](https://forums.digi.com/u/AndyDale)\
**Post date:** [November 3, 2015, 10:20am UTC](https://forums.digi.com/t/how-do-i-create-a-console-application-using-vb-net-to-read-xbee-via-usb/15638/3 "2015-11-03T10:20:46Z")

</div>

Thanks, I’m very familiar with the workings of Google but was asking if any of you XBee Developer guys or gals had already done this and could give me some expert advice and examples.
