Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-2008, 10:06 AM
rppprez rppprez is offline
Newbie
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
rppprez is on a distinguished road
Default help with port sensing program

hello everybody i'm quite new and i hoping i can get some assistance. i am using a xbee pro wireless device 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-16-2008, 11:03 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: help with port sensing program

Do you have the right drivers? An SDK? What version of C++ are you using? More importantly, what OS?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 12:39 AM
rppprez rppprez is offline
Newbie
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
rppprez is on a distinguished road
Default Re: help with port sensing program

ok i am using windows and i am using visual studio but i do have sdk but i'm not sure if i can create a program to do this
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-17-2008, 09:54 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: help with port sensing program

The SDK should come with documentation. Could you give us a link to where you got the SDK, so we can look through it a bit?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-17-2008, 11:24 PM
rppprez rppprez is offline
Newbie
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
rppprez is on a distinguished road
Default Re: help with port sensing program

the link to the documention for the device is http://http://ftp1.digi.com/support/documentation/manual_xb_oem-rf-modules_802.15.4_v1.xAx.pdf thanks for all your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 07-18-2008, 11:20 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: help with port sensing program

It looks like you need to send commands to the device to set a timer, check the device state every time the timer fires, and handle accordingly. The stuff you need is in the section titled API Operation. API stands for Application Programming Interface, so I'm guessing that's what you need.

EDIT: First you need to figure out what port to send the commands on, and what port to listen on. This means you need to use WinSock.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-21-2008, 05:07 PM
rppprez rppprez is offline
Newbie
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
rppprez is on a distinguished road
Default Re: help with port sensing program

I have been reading the documentation and i am still miffed. if you have any idea how i should go about starting this program it would be greatly appreciated +

thanks for your help in advanced
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-21-2008, 10:57 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: help with port sensing program

I have no familiarity with whatever this thingy is, so I don't know any more than you do. Steps you do need to take (from what I gather, at least)

1) Establish contact with the device using a specific port that should be mentioned somewhere in the documentation
2) Send a trap command
3) Wait for the device to send data
4) Process data
5) Go to step 2 or 3, depending on how the device works.

WinSock Tutorials & Resources
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-21-2008, 11:21 PM
MeTh0Dz|Reb0rn's Avatar   
MeTh0Dz|Reb0rn MeTh0Dz|Reb0rn is offline
My Posts Are Moderated
 
Join Date: Jul 2008
Posts: 85
Rep Power: 0
MeTh0Dz|Reb0rn is an unknown quantity at this point
Default Re: help with port sensing program

You can use CreateFile(), WriteFile(), ReadFile() and Input/Output Controls to directly manipulate the device.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-21-2008, 11:26 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: help with port sensing program

But how would you specify the device to write to, unless it assigns itself a drive letter or you know its DOS name?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Starting C# with C# 2008 Express Edition Jordan CSharp Tutorials 19 08-08-2008 01:48 PM
program to display student number trevordunstan General Programming 0 05-25-2008 11:14 PM
LED attached to printer port program using VB.net mario christian oquias Visual Basic Programming 5 04-22-2008 02:01 PM


All times are GMT -5. The time now is 11:13 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 101%


Complete - Celebrate!

Ads