Given: 80 PCs in different cities connected via VPN. A temperature sensor is connected to each PC, which uploads readings to this PC into a * .dat file of the form:

[25.05.2018 17:32:42]> B90416A18B28FF28=22,6250 [25.05.2018 17:32:44]> B90416A18B28FF28=22,6250 [25.05.2018 17:32:46]> B90416A18B28FF28=22,6250 [25.05.2018 17:32:48]> B90416A18B28FF28=22,6250 [25.05.2018 17:32:50]> B90416A18B28FF28=22,6250 

and so on at a specified interval. In this case, the interval is 2 seconds. How to implement the unloading of the last temperature reading from all PCs in one file? Sensor Rodos-5, servicing its software - BM1707.

  • one
    >> How can I collect all readings from all PCs << Serial from each computer on the network. Then merge everything into one file. That will be you from all PCs in one file. - test123
  • Need automatic collection. How to implement it? - Aleksey
  • uh ... you have already been answered. By network. Write to customer and collector. Let the client give the collector data on request. - test123

1 answer 1

There are lots of options. Depends on the possibilities. Offhand, like this:

  1. Each computer requires a file with readings, throw somewhere on the server (some) under a certain name (PC-1.measure.html ...). How to oblige? There are lots of options, the easiest is through some thread scheduler and ftp on the server.
  2. Further, on the server, by any means, a set of these readings (PC-1.. PC-2 ..) is merged into one file. It already depends on the input and output formats in order to understand how.

In principle, the issue can be solved by the executable scripts of the system, it can be confused, and something more serious can be written. It depends on the platforms in order to understand which tool for this will be better to use.

  • Well, then you can immediately download a cloud synchronizer, or a p2p synchronizer, bundle all 80 machines (so that they all share the same folder with each other), and give each one a task to collect data in the file with the name of the current PC in the synchronization folder. Or create 80 folders, and then do not be problems with catching changes from the synchronizer. Although, there will already need the Internet) - test123