Re: Reading and Writing on same serial port



On Mon, 16 Jan 2006 22:14:58 +0200, Paul Keinanen wrote:

> The simplest thing would be to create a separate thread that owns the
> port and implement any multiple access rule in that thread.
>

Any examples of this? I am about to write a "driver" or whatever you want
to call it that would do exactly that for a block of SRAM... And I really
don't want to reinvent the wheel.

As to the OP, I've got my serial code here:
<http://www.seiner.com/ts7000/index.php/Modbus_and_Serial_Comm> and I am
always interested in comments, suggestions, and improvements.

--Yan
.



Relevant Pages

  • Re: enumerate existing comm ports
    ... As stated, the simplest way ... is to simply open each possible port in sequence, trapping any errors. ...
    (microsoft.public.vb.general.discussion)
  • Re: Simple "rm -rf"?
    ... I want to nuke a temp directory. ... The very simplest way to do it is ?? ... And what if you need to port your code to Windows? ...
    (comp.lang.perl.misc)
  • WaitCommEvent timout
    ... I have a loop in a separate thread that reads data from a COM port. ... what is the best way to make the WaitCommEvent time out? ...
    (microsoft.public.pocketpc.developer)
  • Re: TComPort problem.
    ... with a device using COM port. ... I can't to do even simplest things with it. ... Andrew, ... the attachments forum for you. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Listeners
    ... >block on the first call you make (or, run each port on a separate thread). ... >either listen for incoming connections, or connected to a listening port. ...
    (microsoft.public.dotnet.framework)