'Looking for RS232 library.'
Eric van Es
I was looking for the same thing. You didn't say whether it was for a PC
based C or a PIC based C. I was looking for something for a DOS
environment. Greenleaf makes one. I have seen others advertised in a C
magazine, but minimum cost is 75 bucks.
I wanted to use it in a program to talk to my PIC that is far away right now.
P.S. I might just try writing a library myself if I can't find a cheapo one.
At 12:14 AM 10/10/97 +0200, you wrote:
At 07:06 PM 10/9/97 -0400, you wrote:
I have a simple C RS232 library for the PC which I wrote. It is free to
anyone who wants it, but I must warn you that it is not fully documented
and might still contain errors or incompatibilities that I don't know
about. I have been using it in my own programs for about 4 years now (as
well as several of my friends who have used for about 3 years) and it has
worked every time. Email me if you want a copy and I will email one back to
you or I could upload it to my website if you wish. I also have one for
PICs with built in USART but I have not used that one as much so it is much
more likely to have errors.
BTW I find it hard to believe that there are no decent public domain serial
libraries out there. I just wrote mine for the challenge.
Electrical Engineering Student
Have a look at the RS232 library written by a PhD student named
Edward Cheung at Imperial College. The URL is:
http://www.doc.ic.ac.uk/~ih/doc/pic/piclib-0.21. There is also various other routines
in this library including IR tranceive etc.
I hope that this help you: Lee Hewitt (Manchester ENGLAND)
Home E-Mail: aol.comLHewitt104
University E-Mail: eee.salford.ac.ukL.Hewitt
|Rob Zitka wrote:
> I was looking for the same thing. You didn't say whether it was for a PC
> based C or a PIC based C. I was looking for something for a DOS
> environment. Greenleaf makes one. I have seen others advertised in a C
> magazine, but minimum cost is 75 bucks.
> >I'm looking for the c lirary for RS232 transmit and receive. Any idea
> >where I shoiuld look or what the exact name if the library is?
> >Eric van Es | Cape Town, South Africa
Rob and Eric,
If it's for the PC, try at
Years ago, I wrote a DOS program to communicate with my data acquisition
system (now based upon a PIC). When the world went to Win95, my program
wouldn't communicate reliably from a DOS window because my serial
routines weren't interrupt-driven. The library I found at the URL above
worked fine - I had a few problems rebuilding it for MSC 5.1 (the MSC
version was written for 6.0) but it now works great. The shareware
version is small model only, but registration is only about US$40. I
believe it supports Borland as well as MS and it also has modem routines
and support for 4 port rs232 boards.
Matt, I just started writing some Win95/DOS 32-Bit 4GW routines to
communicate with my PIC-based weather station via the serial port at
9600 baud. The weather station sends 493 Bytes per day and I have'nt had
any problems with the serial port. I'm using the Watcom C/C++ compiler and
I'm accessing the serial port directly, not through BIOS. The program uses
the _pg_chart functions to display a variety of graphs. So far it's working
fine and I don't use interrupts. I intend to move the code to Win 95.
At 08:43 AM 10/10/97 -0600, you wrote:
Eric van Es
Hi again guys.
Thanks for the replies so far. I now find myself facing another dilemma: I now
have to learn C as in VERY quick due to balls-up in my study pre-requisites.
The new lecturer (old one's in Germany now) wants to interface the PIC with the
lab PC's and display something on the monitors. Written in C of course :-(|
Very nice idea, BUT we will be using RS232.
Now - do I need a library for the PIC or the PC? I think the PIC since the
compiler will use the library for the PIC.
Thanks a million
Eric van Es | Cape Town, South Africa
ilink.nis.za | vaneshttp://www.nis.za/~vanes
LOOKING FOR TEMPORARY / HOLIDAY ACCOMODATION?
From: Tom Handley <TELEPORT.COM> thandley
To: MITVMA.MIT.EDU < PICLISTMITVMA.MIT.EDU> PICLIST
Date: Monday, 13 October 1997 1:27
Subject: Re: Looking for RS232 library.
There's a rather easy to use OCX control that comes with MSVC 5 that makes
comms on Windows an absolute breeze. (Assuming, that is, you don't have to
go the TAPI route) A word of warning - the slightly 'older' version was
constipated - it wouldn't pass zeros as legitimate data - which stuffs
binary comms. If you're interested, I'll check the distribution license.
Learn C (enough to do the job) in 3 or 4 days by getting Power C (for $20!) from
Mix Software in Texas (214 783 6001) and, if you can afford it, the Trace C
debugger (also $20), which will make it unbelievably easy to step through and
understand how all that C syntax works.
I still occasionally load this DOS debugger with a snippit of code, just to step
through and verify some odd construct (I suffer from terminal laziness) (or
efficiency, if you prefer). The Power C manual is one of the better C references
available, well worth the $20 itself.
--Tom Rogers VP-R&D Time Tech Inc.
>Learn C (enough to do the job) in 3 or 4 days by getting Power C (for
>Mix Software in Texas (214 783 6001) and, if you can afford it, the Trace C
Wow, are they still around?!?! They go _way_ back! I remember all the
neat little tools they had for learning language cheap and GOOD!
Andy Kunz - Montana Design - 409 S 6th St - Phillipsburg, NJ 08865
Hardware & Software for Industry & R/C Hobbies
"Go fast, turn right, and keep the wet side down!"
Tom Handley wrote:
> Matt, I just started writing some Win95/DOS 32-Bit 4GW routines to
> communicate with my PIC-based weather station via the serial port at
> 9600 baud. The weather station sends 493 Bytes per day and I have'nt had
> any problems with the serial port. I'm using the Watcom C/C++ compiler and
> I'm accessing the serial port directly, not through BIOS. The program uses
> the _pg_chart functions to display a variety of graphs. So far it's working
> fine and I don't use interrupts. I intend to move the code to Win 95.
I wouldn't expect many problems when you're only transmitting a small
block of data. The only time I encountered any Win95/DOS window
problems (with non-interrupt driven IO) was when I was doing a large
data dump from my device to the PC. It would get through a couple of k
of data before excessive data errors occurred. Just be aware that the
*potential* for a problem is still there. (Note that before I went with
interrupts, comm problems only occurred under a DOS *window*.)
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- New search...