|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Serial Library??
|
|
#2
|
||||
|
||||
|
Re: Serial Library??
Quote:
|
|
#3
|
||||
|
||||
|
Re: Serial Library??
What language/framework are you using? What kind of project is this?
If you want help with the .net serial components,"System.IO.Ports", PM me. |
|
#4
|
|||
|
|||
|
Re: Serial Library??
Quote:
![]() |
|
#5
|
|||||
|
|||||
|
Re: Serial Library??
Quote:
![]() |
|
#6
|
||||
|
||||
|
Re: Serial Library??
I'm trying to do it all in c++ so im just looking for a dll or something that just has simple serial functions like open port, send byte, read byte
|
|
#7
|
||||
|
||||
|
Re: Serial Library??
You want a .dll, so I am assuming you are doing this on Windows. All you need to do is use the standard C/C++ file I/O functions - fopen, fread, etc. For the "file", specify "COM1" or "COM2", dependent on which serial port you want to open. This is part of stdlib, so you don't need to include any extra DLL or do anything special -- it's all included by default.
(On a Mac or Linux or any Unix-like system, the instructions are the same, but use "/dev/ttyS0" instead of "COM1") |
|
#8
|
|||||
|
|||||
|
Re: Serial Library??
Indeed. Or you can use the Win32 functions--see http://msdn2.microsoft.com/en-us/library/aa364229.aspx.
You also need to configure the serial port (primarily baud rate). In Linux, that's an ioctrl() call. On Win32, it's the COMMCONFIG structure and its associated functions. |
|
#9
|
||||
|
||||
|
Re: Serial Library??
Quote:
) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| content library.. | naroarr | Inventor | 0 | 20-01-2007 12:13 |
| Library timers | Ryan M. | Programming | 3 | 13-02-2004 09:02 |
| Inventor Library | Ogro | Inventor | 4 | 28-01-2004 17:03 |
| Autonomous Library! | Sachiel7 | Programming | 17 | 21-01-2004 11:13 |
| Technical Library | Jnadke | Technical Discussion | 15 | 12-05-2003 09:13 |