|
||||||
| 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. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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.
|
|
|||
|
So what does this thing do, anyway?
|
|
|||
|
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 |
|
|||
|
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. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| 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 |