473,394 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

creating a port sensing program

11
hello everybody i'm quite new and i hoping i can get some assistance. i am using a xbee pro wireless device ( http://ftp1.digi.com/support/documentation/manual_xb_oem-rf-modules_802.15.4_v1.xAx.pdf) it uses xtcu software to interface with the pc via the usb. i'm not understanding their software to well but i am trying to create a c/c++ program to capture the signal when it is sent to the pc. And after it captures the signal it would then execute the rest of the program and when it is done executing the program returns and acknoledgement of some kind. My problem is i not sure if it is possible using the xbee pro (xctu software) If anyone can help it would be greatly appreciated

thanks
Jul 11 '08 #1
10 1943
gpraghuram
1,275 Expert 1GB
Did they provide any example programs in the library?
I think it would be better to start from there

Raghu
Jul 16 '08 #2
rppprez
11
actually to my knowledge the haven't in the manual they say that you can connect it to the pc. but according to the documentation they want you to connect via serial port and i have it connected via usb
Jul 16 '08 #3
gpraghuram
1,275 Expert 1GB
can you use the USB to serial converter and achive this.?
I dont know whether this idea will help you.


raghu
Jul 21 '08 #4
rppprez
11
can you use the USB to serial converter and achive this.?
I dont know whether this idea will help you.


raghu
i contacted the manufactor when the device is connected the pc via usb it is seen as com 4. So now i wanna create a program to read data coming into that port

Thanks in advanced
Jul 28 '08 #5
gpraghuram
1,275 Expert 1GB
i contacted the manufactor when the device is connected the pc via usb it is seen as com 4. So now i wanna create a program to read data coming into that port

Thanks in advanced

You will be treating this as a Serial port or a USB port?

Raghu
Jul 29 '08 #6
rppprez
11
it will be treated as a serial port
Jul 29 '08 #7
gpraghuram
1,275 Expert 1GB
it will be treated as a serial port

Then its easy....
You can get good code snippets in MSDN


Raghu
Jul 29 '08 #8
rppprez
11
Ok thanks but on MSDN do they have code snippets to access the com port

thanks
Jul 29 '08 #9
Banfa
9,065 Expert Mod 8TB
Yes or gpraghuram wouldn't have suggested it.

Look up WIN32 and COM develeopment, system services, communications resources.
Jul 29 '08 #10
Plater
7,872 Expert 4TB
i contacted the manufactor when the device is connected the pc via usb it is seen as com 4. So now i wanna create a program to read data coming into that port

Thanks in advanced
Hehe, if you looked at the front page of the x-ctu software you would have known that right from the start. The USB version of the XBIB just has a FTDI usb->serial port on it, so it registers itself as the next available COM(serial) port
Aug 6 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: J. C. O'Connell | last post by:
hi, I HAVE A TEXT BOX THAT I WANT THE USER TO ENTER A NUMBER IN. HOW DO I PREVENT RUN TIME ERROR IF THEY ENTER A STRING INSTEAD? I GUESS I NEED SOME TYPE OF DATA TYPE SENSING COMMAND BUT I DONT...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
7
by: Jacek Dziedzic | last post by:
Hi! I'm trying to make friends with exceptions. I think I'm doing well, there is one thing that bothers me, however. If an object is declared within a try block, it gets destroyed on exception,...
4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
25
by: John Salerno | last post by:
Just a quickie for today: Is it common (and also preferred, which are two different things!) to create a function that has the sole job of calling another function? Example: for fun and...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
17
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
3
by: Blip | last post by:
Hello - I'm trying to wite these control characters to the serial port w/o success. I've tried sp.Write((Keys.ControlKey & Keys.X).ToString()); sp.Write((Keys.Control & Keys.X).ToString()); ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.