Re: Emulate seriel communication

From: Hannes Danzl[NDD] (hannes_at_nexusdb.dbnexus.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 17:07:54 +1300


> Hi,
> I am looking for something that can emulate series rs232 communication. I am
> building a application that are going to communicate with a production
> computer using rs 232, the problem is that I dont have access to it. I
> wonder if there is such device that I can setup to emulate the production
> computer?

I've been developing some realtime applications using processing data coming in
from serial ports. for this purpose we attached a passive serial splitter
(available at good electronics/hardware stores) to the production machine and a
serial reading app to app to the passive end of the split (on the active one
was still the old processing app) and logged the binary data with accurate time
stamps into a flat file of the form dd.mm.yyyy hh:mm:ss.nnn byte(s) received

we then had an app that was reading that file and after connect pushing the
data with the same time gaps onto a serial port. this app was running on com1
of the develop machine while the actual developed app was running on com2. the
two port were simply linked to each other via a cable.

that way we could completely independent of the prodcution machine. both
programs were really only a few lines code using async pro.

-- 
Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm


Relevant Pages

  • Re: XPe headless user application
    ... >> Then have you considered RDP option? ... > The communication is not really simple data transfers. ... > objects to transform the communication to simple data transfers. ... > you can just RDP to the target box and see the app UI and ...
    (microsoft.public.windowsxp.embedded)
  • Re: Scaling noise
    ... > And if the app is a pointer chasing app, as many apps are, that doesn't ... If bandwidth was the answer ... Attacking the communication bottlenecks by increasing ... been able to produce a working design for these cache coherent clusters ...
    (Linux-Kernel)
  • Re: serial ports, threads and windows
    ... This all works very nicely in Linux. ... Then I put the app on on a virtual Windows machine running inside of vmware ... the app against four serial ports using four threads. ... python app with many threads posting messages to the main application. ...
    (comp.lang.python)
  • Re: serial ports, threads and windows
    ... I've written a python app that r/w eight serial ports to control eight devices using eight threads. ... Then I put the app on on a virtual Windows machine running inside of vmware on the same Linux box. ... Vmware only lets me have four serial ports so I run the app against four serial ports using four threads. ... def abort: ...
    (comp.lang.python)
  • Re: bug in GenerateConsoleCtrlEvent?
    ... >> app, I would have to program an extra stub program just to start the app ... >> easy with console apps. ... Extra work with other ways of communication. ... you get a hidden window. ...
    (microsoft.public.win32.programmer.kernel)