Thanks for the clarifications/suggestions Bill, Alex.

Alex you say:
"The data from there is fed to J but the polling application is in VB6."

Was that in real time or for subsequent processing?  If in real time,
what mechanism did you use for the feed? I did consider writing a
serial-to-socket bridge, but I'm trying to avoid too much low-level
stuff distracting me from the main task.

I think I'll try for opening the port as a file for now and see how that
goes.  I actually managed to find some likely looking code on this site,
( http://www.jsoftware.com/svn/base/trunk/packages/misc/telecom.ijs )
but it claims to work for W95 only and I do not not enough of CE's
quirks (or J's for that matter) to know what problem to anticipate.

Perhaps just opening a DLL might be a better idea.

Thanks anyway gents!
I'm trying to avoid using Java or C++, especially since processing GPS
position data would be a brilliant job for J, but sometimes it just
ain't easy (to avoid, that is ;) )

On Fri, 2010-11-05 at 13:25 +0800, Alex Rufon wrote:

> J can actually call an OCX/ActiveX control directly but I don't know how it 
> would work out for you on WinCE.
> 
> I guess googling for "file open COM1" would help out. :)
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of bill lam
> Sent: Friday, November 05, 2010 10:36 AM
> To: [email protected]
> Subject: Re: [Jprogramming] Accessing the serial port
> 
> There is no inbuilt support for serial port in J. However I guess you can 
> open a file handle for the serial port, and perform some read or write.
> This need admin rights, not sure those api will also work in vista or win7.
> 
> untested.
> 
> Чтв, 04 Ноя 2010, Alex Gian писал(а):
> > Hi,
> > Could anyone point me at any documentation on the foreign functions I 
> > need to read directly from the serial port?
> > 
> > I have a GPS application in mind, to which J may be very well suited.
> > At the moment I am working with j602 on Windows Mobile 5, (which also 
> > has a simplified GPS dll, so any info on foreign functions for dll 
> > access would also be good) but I do intend this to be as generic as 
> > possible, so I'll probably go for direct interpretation of the NMEA 
> > data, without dll "stablizers".
> > 
> > TIA
> > 
> > 
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to