--- On Fri, 28 Feb 1997 19:36:46 +0500 (IST) Mir_Mahiuddin <mmahiuddin@hss.hns.com> wrote:
> Hi
> When I configure the port of my HP m/c with addr 9 10 ( for COM1 and COM2)
> respectively, and try to execute the Direct I/O object, it gives an
> error "No serial interface at addr 9"...Can you suggest me what could be
> the problem. In the systems file /usr/pil/etc/hwconfig.cf I have defined
> the ports as follows -
>
> 9 COM1 serial700 0x00000001 26 9600 0x00 0x03 0x00 0x00 0x00
> 10 COM2 serial700 0x00000002 25 9600 0x00 0x03 0x00 0x00 0x00
>
> Has anyone used the serial ports for communication, and can you kindly
> tell me, how exactly it is being done.
> Thanking You.
>
> mir
>
>
> ------------------------------
> Mir Mahiuddin,
> Hughes Software Systems,
> Electronic City,
> Plot No- 31, Sector - 18,
> Gurgaon - 122 015
>
> Tel - +91-124-343703 ext 2274
> Email : mmahiuddin@hss.hns.com
> mahiuddin@pemail.net
>
---------------End of Original Message-----------------
Mir,
After editting the hwconfig.cf file did you reconfigure pil and the kernel ?
If not, you need to run /usr/pil/bin/pilconf or /usr/pil/bin/iosetup (which one depends on the version of
SICL you are running). The latter builds the hwconfig.cf file and then does the equivalent if pilconf.
--------------------------------------------------------
Name: Tom Sanders
E-mail: toms@symca.com (Tom Sanders)
Date: 02/28/97
Time: 08:35:10
--------------------------------------------------------
gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to: VRf-Hughes Software Systems
date: Monday, 24 February 1997 0809 MST
> I am using a "Read From File" object to read from the serial port of the
> HP m/c on which i am running HPVEE. But the problem is, when HPVEE is
> waiting for data, it waits there till it gets the data. But incase the link
> fails, or the data does not come, HPVEE keeps hanging there. I want to
> avoid this using something like a timer, which can check if there is any data
> for a specified time, and if no data comes then it should intrupt the
> "read from file" object. Has anyone has done something like this, or know
> how it can be done in HPVEE.
I would suggest that you use Direct I/O (which has a timeout) instead of
>From File (which doesn't) ... you can use generally the same transactions
so this would be a better option.
> Thankyou.
>
>
> ------------------------------
> Mir Mahiuddin,
> Hughes Software Systems,
> Electronic City,
> Plot No- 31, Sector - 18,
> Gurgaon - 122 015
>
> Tel - +91-124-343703 ext 2274
> Email : mmahiuddin@hss.hns.com
> mahiuddin@pemail.net