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
  #11 (permalink)  
Old 07-21-2008, 11:29 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

thats one of my problems i'm not exactly sure how to catch the data coming in I know it connects to the usb port via the development board. then it uses a program called xctu. But i'm not sure how the data is then distributed by that program.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-21-2008, 11:30 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

So what does this thing do, anyway?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-22-2008, 07:23 AM
MeTh0Dz|Reb0rn's Avatar   
MeTh0Dz|Reb0rn MeTh0Dz|Reb0rn is online now
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

This is how you know what device to write to....

Every NIC card on your system has a unique identifier in the registry.

Go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards.

Then there will be subkeys for each card. For instance if there is subkey 2, go to it and you will find a description and ServiceName.

The ServiceName allows you to access the device.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 07-22-2008, 10:44 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

according to digi the manufacturers they said i can treat the data coming in like it coming in from a com port so as long as the baud rate is correct i can retrieve the data. no my question is how do i get that data using the baud rate and the com port any help would be greatly appreciated

thanks in advanced
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 07-24-2008, 10:33 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

Yech...I have no idea, to be honest. I've never dealt with port I/O and stuff, mainly because I have nothing that does that sort of thing, except maybe the Internet and a few other bland devices. I guess you can try like MeTh0Dz said (i.e. use WinAPI functions CreateFile, ReadFile, etc); if that doesn't work, I don't know what to tell you.

CreateFile()
ReadFile()

Use CloseHandle() to close the handle once you're done. Read the corresponding registry keys (outlined by MeTh0Dz above) to find the device name, then use the device name as the "file name" when calling CreateFile(). Make sure you set read and write privileges.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 07-24-2008, 10:45 PM
MeTh0Dz|Reb0rn's Avatar   
MeTh0Dz|Reb0rn MeTh0Dz|Reb0rn is online now
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

There is some documentation on doing this.. I think I saved it on my box, I'll look around for it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 07-24-2008, 10:46 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

ok that would be greatly appreciated

thanks again for all your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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:34 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