On Fri, 1 Jan 1999, Vitaly Fedrushkov wrote:
...
> Are you sure you want to stay away from POSIX termios?  What if your
> serial port will be Digiboard some day?
> 
> In other words, what is your reason in low level port access?
> 
>   Regards,
>   Willy.
> 
Thanks for replying,
        The reason why I'm using low level port access is, because of two
reasons.

* I don't know how to do it any other way! Since I've programmed in
assembly and C on DOS, and don't know much about termios. 
* I'm developing a system for connecting together several 8051 based
clients on an RS 485 physical layer. I've finished the rough draft of the
specifications of the protocol that the system would use. However I am
also considering an implemetation of the modbus protocol, since it is a
widely accepted standard for SCADA systems.

It would be great if I could get some pointers from you as to how I could
go about doing this using termios.

Also currently , my first goal is to write two simple programs,
One program sending data to a serial port and that serial port being
connected via a null modem cable to another serial port which is being
monitored by another program which takes in incoming data and either shows
it on the screen or appends it / writes it to a file.
It's taking me a long time just to do this . Could you please tell me how
to go about doing it? 

I've recently acquired Richard Stevens book on advanced programming in
Unix. 

I'd like to know whether and how termios facilities could be used for
implementing  the modbus protocol on a Linux machine.

TIA
-Aalhad
---------------------------------------------------------------------------
Aalhad Saraf    Electronics Engineering Senior at the University of Pune
---------------------------------------------------------------------------

Reply via email to