Discussion:
Can anyone help me re OPX's?
(too old to reply)
John
2005-11-15 21:45:17 UTC
Permalink
Hello

I'm getting my head around OPL for an application I want to write, but
I need to capture data from the serial port on a series 5 clone. I've
worked out that I should be able to do this by using Keith Walker's
CComms OPX, but I don't really understand how to use / call OPX's (in
fact, if I'm honest, I'm a bit hazy when it comes to the concept of
OPX's). Does anyone know a good online article that might help to
clear the fog?

TIA

John
unknown
2005-11-15 22:58:50 UTC
Permalink
Post by John
Hello
I'm getting my head around OPL for an application I want to write, but
I need to capture data from the serial port on a series 5 clone. I've
worked out that I should be able to do this by using Keith Walker's
CComms OPX, but I don't really understand how to use / call OPX's (in
fact, if I'm honest, I'm a bit hazy when it comes to the concept of
OPX's). Does anyone know a good online article that might help to
clear the fog?
I don't know about on-line, but it is covered in the HTML help pages in the
OPL SDK. I'll extract some keys words and see if Google knows where they
reside.

Doesn't Keith offer any sample calling code?

Mike.
--
If reply address = connectfee, add an r because it is free not fee.
Mike
2005-11-16 10:21:20 UTC
Permalink
Post by John
Hello
I'm getting my head around OPL for an application I want to write, but
I need to capture data from the serial port on a series 5 clone. I've
worked out that I should be able to do this by using Keith Walker's
CComms OPX, but I don't really understand how to use / call OPX's (in
fact, if I'm honest, I'm a bit hazy when it comes to the concept of
OPX's). Does anyone know a good online article that might help to
clear the fog?
TIA
John
Actually, I should back off a bit and ask why you think you need an
OPX. I have written OPL32 code to read from the serial port (either
using a modem or other device) and I don't think I've ever used Keith's
OPX. (Though since he used to work in the same building I have
consulted him on writing OPXs!) So what's wrong with using plain OPL?

Mike.
John
2005-11-16 17:49:11 UTC
Permalink
Post by Mike
Actually, I should back off a bit and ask why you think you need an
OPX. I have written OPL32 code to read from the serial port (either
using a modem or other device) and I don't think I've ever used Keith's
OPX. (Though since he used to work in the same building I have
consulted him on writing OPXs!) So what's wrong with using plain OPL?
Mike.
First of all, many thanks for you reply. My (perhaps incorrect !)
assumption that you couldn't query the serial port was from reading a
post in this newsgroup (which has sadly now disappeared from my Usenet
server), to the effect that this was removed from OPL in the series 5,
and that it was only possible to query the IrDa port. I probably need
to read a bit more before asking questions, lol.

In my defence, this is the first programming I've done since about
1983, and that was in Sinclair Basic, so as you can imagine, I'm a
little rusty. And I've probably bitten off more than I can chew with
this project, but then I am a great believer in throwing yourself in
at the deep end. I'll have another trawl through the SDK help files.

Many thanks
John
unknown
2005-11-16 19:21:45 UTC
Permalink
I'm a little rusty. And I've probably bitten off more than I can chew with
this project, but then I am a great believer in throwing yourself in
at the deep end.
Not to mention coughing up mixed metaphors all over the place! If we can
throw you any chewy rubber rings to be going on with, let us know...



Mike.
--
If reply address = connectfee, add an r because it is free not fee.
Roger Muggleton
2005-11-17 00:11:07 UTC
Permalink
Post by John
First of all, many thanks for you reply. My (perhaps incorrect !)
assumption that you couldn't query the serial port was from reading a
post in this newsgroup (which has sadly now disappeared from my Usenet
server), to the effect that this was removed from OPL in the series 5,
and that it was only possible to query the IrDa port. I probably need
to read a bit more before asking questions, lol.
It's not to difficult to write OPL to handle the serial port. The
asynchronous functions you have to use are a little different to most OPL
commands, but once you get the hang they're easy enough. There is
documentation in the OPL SDK, but if you are interested I wrote a simple
terminal program to demonstrate how to use them. I've published it here
before, but I can dig it out and post it again - it's not very big.

Roger.
Roger Muggleton
2005-11-18 00:40:00 UTC
Permalink
This post might be inappropriate. Click to display it.
John
2005-11-18 17:40:28 UTC
Permalink
Tanks for this Roger, I'll have a play with this over the weekend.

Cheers
John

Continue reading on narkive:
Loading...