Re: String Manipulation and a Need for RS-232

2011-08-30 Thread David Christensen
On 08/30/2011 06:08 AM, Martin McCormick wrote: In the standard set of tools that are free and found on most Unix systems, which language such as perl, python, etc can handle rS-232 gracefully and do strings without having to reen vent the wheel? I've used Perl and Win32::SerialPort to

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Ivan Shmakov
> Martin McCormick writes: […] > I also got that working such that it could read the response and > break out all the CSV variables in to separate strings. In other > words, it does work and with gdb, one can trouble-shoot it fairly > easily. […] > In the standard set of tools that ar

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Hartwig Atrops
Hi. > I have this nagging feeling, though, that there may be a > better way to write this program since C is not as good at > string manipulation as some other languages. In my program, you > have to do a lot of grunt work just to be sure that the 15TH > field really is the 15TH field in the

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Martin McCormick
Hugo Vanwoerkom writes: > If I were in your situation, I would convert your C programs to C++ > (changing .c to .cpp) and use Qt. I use it many places just > for > its string manipulation and Qt has great documentation. > > > Just install libqt4-dev, qt4-dev-tools, qt4-qmake and qt4-doc. > > >

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Hugo Vanwoerkom
Martin McCormick wrote: I have used GCC C for years to write a number of programs for work and play and it is great but I think I am needing to branch out a bit as my latest project is causing me fits. I have a scanner radio receiver that uses RS-232 to communicate with the compu

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Martin McCormick
Axel Freyn writes: > I would give python a try, maybe together with the pySerial-module from > http://pyserial.sourceforge.net/ > While pyserial simplifies the access to rs232 and cares about all platform > dependence, it's not really standard I think. > > If your program shall work on all Unix sy

Re: String Manipulation and a Need for RS-232

2011-08-30 Thread Axel Freyn
Hi Martin, On Tue, Aug 30, 2011 at 08:08:51AM -0500, Martin McCormick wrote: > [...] > In the standard set of tools that are free and found on > most Unix systems, which language such as perl, python, etc can > handle rS-232 gracefully and do strings without having to > reen vent the wheel?

String Manipulation and a Need for RS-232

2011-08-30 Thread Martin McCormick
I have used GCC C for years to write a number of programs for work and play and it is great but I think I am needing to branch out a bit as my latest project is causing me fits. I have a scanner radio receiver that uses RS-232 to communicate with the computer and I got that part of