473,791 Members | 2,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

creating a port sensing program

11 New Member
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 1972
gpraghuram
1,275 Recognized Expert Top Contributor
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 New Member
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 Recognized Expert Top Contributor
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 New Member
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 Recognized Expert Top Contributor
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 New Member
it will be treated as a serial port
Jul 29 '08 #7
gpraghuram
1,275 Recognized Expert Top Contributor
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 New Member
Ok thanks but on MSDN do they have code snippets to access the com port

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

Look up WIN32 and COM develeopment, system services, communications resources.
Jul 29 '08 #10

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

Similar topics

3
4541
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 KNOW WHAT IT IS. jco
2
13198
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. However, I'm unsure of how exactly I should be designing the program, I thought I could use threading to start class: class scanner(Thread): def __init__(self,port):
7
1893
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, because then we're into the catch block and out of the try block, right? How can I sense in the destructor that we're in the middle of processing an exception (and hence take appropriate action, like not destroying the object if some...
4
2361
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 running on a server, waiting for clients to send it commands. The service would then do something based on the command and send the information back to the client. This is exactly what any database does. What is the best method for doing this? The...
25
1870
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 exercise, I'm creating a program that takes a quote and converts it into a cryptogram. Right now I have four functions: convert_quote -- the main function that starts it all make_code -- makes and returns the cryptogram make_set -- called from...
2
3982
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: D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database Buildfile: build.xml env-user: prop-user: set-user:
6
6671
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 '%' to serial port and make sure it reached the serial port. 2. Once confirmed, send another character.
17
5566
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 in that chapter and create a socket connection between my desktop and laptop. However, these two computers are already connected on my home network (using the Windows Network Setup Wizard), so I was wondering if this will have any effect on what...
3
9435
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()); char temp = { Convert.ToChar(Keys.Control), Convert.ToChar(Keys.X) };
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.