Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | Re: [OT] Serial Port Programming

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

[OT] Serial Port Programming - duhlynn - Oct 7 2:28:00 2003



I am building a linux/windows test program to transfer data between a
ADSP2191 and PC running a Java interface.

My Questions are.....
Is there a generic c++ serial class availiable that works on Linux
and Windows... or must I have two separate sets of code one using
TERMIO and another using a MFC?

Is socket programming the best way to get data from one process to
another (say between a C++ program and Java program?)?

Thanks,
Tim Dahlin





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: [OT] Serial Port Programming - Kenneth Porter - Oct 7 17:27:00 2003

--On Tuesday, October 07, 2003 2:28 AM +0000 duhlynn <> wrote:

> I am building a linux/windows test program to transfer data between a
> ADSP2191 and PC running a Java interface.
>
> My Questions are.....
> Is there a generic c++ serial class availiable that works on Linux
> and Windows... or must I have two separate sets of code one using
> TERMIO and another using a MFC?

Take a look at http://www.wxWindows.org/ for a good cross-platform C++
framework. There's no serial class in the regular framework, but I found one
designed to fit in the wx style after asking on the associated newsgroup
(which mirrors the user mailing list). A number of "contributed" classes are
available that extend the base framework to add functionality like this.

> Is socket programming the best way to get data from one process to
> another (say between a C++ program and Java program?)?

Java would be the unknown for me, but I know that it supports sockets, and the
wx framework includes network classes to make it easy to move your networking
code between Windows, Linux, Mac, OS/2, and other platforms.

BTW, the new Borland IDE, BuilderX, has adopted wx as its framework system.






(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: [OT] Serial Port Programming - duhlynn - Oct 8 18:13:00 2003

Ken,

Do you have a website link with the serial class for the wxwindows
framework? or can you post the source you obtained somewhere? I'll
check the newsgroup archives as you suggested.

Thanks,
Tim Dahlin

--- In , Kenneth Porter <kenneth_porter@k...>
wrote:
> --On Tuesday, October 07, 2003 2:28 AM +0000 duhlynn <duhlynn@y...>
wrote:
>
> > I am building a linux/windows test program to transfer data
between a
> > ADSP2191 and PC running a Java interface.
> >
> > My Questions are.....
> > Is there a generic c++ serial class availiable that works on
Linux
> > and Windows... or must I have two separate sets of code one using
> > TERMIO and another using a MFC?
>
> Take a look at http://www.wxWindows.org/ for a good cross-platform
C++
> framework. There's no serial class in the regular framework, but I
found one
> designed to fit in the wx style after asking on the associated
newsgroup
> (which mirrors the user mailing list). A number of "contributed"
classes are
> available that extend the base framework to add functionality like
this.
>
> > Is socket programming the best way to get data from one process
to
> > another (say between a C++ program and Java program?)?
>
> Java would be the unknown for me, but I know that it supports
sockets, and the
> wx framework includes network classes to make it easy to move your
networking
> code between Windows, Linux, Mac, OS/2, and other platforms.
>
> BTW, the new Borland IDE, BuilderX, has adopted wx as its framework
system.





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Re: [OT] Serial Port Programming - Kenneth Porter - Oct 9 2:20:00 2003

--On Wednesday, October 08, 2003 6:13 PM +0000 duhlynn <>
wrote:

> Do you have a website link with the serial class for the wxwindows
> framework? or can you post the source you obtained somewhere? I'll
> check the newsgroup archives as you suggested.

I think this is what you want (not at the office right now):

<http://www.iftools.com/>

The class is wxCTB.





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )