Re: sending data between computers



shamil wrote:

> Hello,
>
> I would like to use TCL in order to facilitate communication between
> computers in our shop floor. Basically, assume computer X is in the
> shop floor and has a GUI which allows users to select the cause of
> downtime of one of the production machines and click a button that
> records the cause and time of the event. I would like to allow several
> computers in various locations within our plant to communicate with
> computer X and receive the downtime cause and the time it occurred.
> This would need to be done continuously every second in order to have
> real-time data fed, once the production machine is fixed, the user will
> click a button on computer X to indicate that, and the rest of the
> computers will pick that up and let the users know the problem is
> fixed. All computers are connected to the same network
>
> The way I've been doing this is allow X to write the info to a
> predetermined file in a shared folder and have the other computers read
> that file every second in order to get the latest status. This is
> probably the most primitive way of doing this and has flaws because X
> may get turned off and the file with the information will remain there
> in the shared folder. Thus other computers will keep reading it, which
> is not what I want. If X is turned off, I want other computers to
> display a message indicating that status of the production line is
> unknown
>
> I'm looking into using sockets and fileevents and rewrite my script,
> but admit I never used them before and I'm quite inexperienced. In
> other words, I don't know where to get started. Can someone point me
> to the right direction? A small example script would be real nice!
>
> /sd

If I understand correctly.

you could use http://tcludp.sourceforge.net/ to multicast
this way each machine can get real time status from all other computers
without any depandancies on a central server.

Also the code would be the same for each machine.

You could send a packet to the multicast address once a second from each
machine containing its ID and its status.


Just a thought,

Russell
.



Relevant Pages

  • sending data between computers
    ... I would like to use TCL in order to facilitate communication between ... computers in our shop floor. ...
    (comp.lang.tcl)
  • Re: Dust covers for computer ports
    ... Yeah--I used to work for a woodworking factory. ... We had dozens of ... computers on the shop floor itself. ...
    (alt.comp.hardware.pc-homebuilt)