|
Re: Need Help 1-Wire on XPE
Thanks Mike,
This is a real COM, The boud is PCM-9375 from Advantch.
David
"Mike Warren" <miwa-not-this-bit@or-this-csas.net.au> wrote in message
news:xn0frmn7qaasay001@news.microsoft.com...
> DavidW wrote:
>
>> I thing that the problem is that my UtilApp run before the system
>> make the COM2: ready.
>>
>> I would like to know how I can control that the COM2 is ready before
>> the UtilApp is started to run.
>
> This surprises me as I find that real COM ports are ready very early.
>
> Or is this a USB COM port? that would definitely make a difference.
>
> Anyway, I suggest that from your shell app you attempt to open COM2 in
> a loop until it succeeds and then run the main app.
>
> Delphi code, but you should get the idea. :-)
>
> for Loop := 1 to 20
> begin
> if SuccessOpenPort(Com2) then Break;
> Sleep(500);
> if Loop = 20 then ShowMessage('Unable to open COM2');
> end;
>
>
>
> --
> - Mike
|