hello frank,
seems bad news for me...,
i definitely need the control of those pins to make my hardware work. i'll
try if i can find something in inside Macintosh. if that doesnt work i'll
have to look for another solution.
thanks anyway, luc.
op 26-02-2002 18:14 schreef REALbasic Network Users Group op
realbasic-nug at lists dot realsoftware dot com:
>
> Subject: Re: how to control the CTS, RTS, etc pins on a Keyspan PDA adapter?
> From: "Frank Bitterlich" <bitterlich at gsco dot de>
> Date: Tue, 26 Feb 2002 18:00:25 +0100
>
> Luc,
>
> if you want to control the state of a serail port directly (either a
> built-in or via a USB adaptor), you need to call the corresponding OS
> services directly (read: Declares).
>
> You'll find some information about the required calls in "Inside
> Macintosh", available at
> http://developer.apple.com
>
> You cannot do it with RB's Serial control, since controlling the state
> of the port directly would conflict with the high-level functions (flow
> control etc) of the Serial control.
>
> Doing the same under OS X will probably require a whole different set of
> OS routines.
>
> Cheers,
> Frank+++
>
> luc huylebroeck wrote:
>>
>> Hello,
>> i am new to this RB group,
>>
>> I need to write a program which controls a serial port via the
>> Keyspan PDA Adapter (version USA 19Q). This adapter has a PC like
>> serial port on a DB9 connector.
>>
>> To control the connected hardware, i need to be able to read and
>> set/reset the control pins:
>>
>> I need to read the state of the DCD, DSR, CTS an RI pins.
>> I need to read and set/reset the state of the DTR and RTS pins.
>>
>> for example: (imaginary code)
>>
>> if DCD_on then...
>> ...
>> setDTR
>> reset RTS
>>
>> Can this be done and how? (i think it must be possible because keyspan has
>> support for serial modems and thus can control at least the RI pin)
>>
>> I read in the rb online manual that you can activate/ deactivate the
>> RTS/DTS flow control by
>> setting the boolean to 1, but how can you control these pins
>> individually?? Is this possible directly in RB or is there someone who
>> has already written something like this (an api in codewarrior)??
>>
>> i searched newsgroups, the nug archive,... but havent found anything.
>>
>> I am currently using rb3.5 demo and OS9.1, but i am planning to step to OSX
>> and rb4.
>>
>> Can this be done inOS9 and OSX as well? i read something about POSIX API but
>> don't know how this works (yet), can anyone explain this or tell me where to
>> find the info?
>>
>> ?is this also possible for the Keyspan Twin Serial Adapter (model USA 28x)?
>>
>> Any help would be very helpful, anything, from code snippets to api,
>> classes,etc ...
>>
>> Thanks a lot
>> ,
>> Luc Huylebroeck
>> luc_huylebroeck at mac dot com
>
>
> --
> Günter Schmidt & Co. oHG
> Frank Bitterlich eMail: bitterlich at gsco dot de
> Schlosserstr. 2-4 WWW: http://www.gsco.de/gsco
> D-60322 Frankfurt Tel.: 069 / 156809-29
> GERMANY Fax: 069 / 156809-28
|