Given: Web server and client device. On the client device there are ports (COM, USB, etc.) through which the device receives data from the peripherals (sensors, sensors, etc. equipment) A browser is available on the device, any plug-ins to it and, in principle, it is possible to install any add. by. There are many client devices. Their number is not known in advance.

Question: With what technologies it is possible to implement the primary processing and display of data from peripheral devices in the browser on the client machine. Well, the data transfer to the server? Addition: Is there something appropriate in .Net?

As an example: There are, say, temperature, pressure and humidity sensors. Connected to PC via USB, COM and Ethernet. I open some page on my server in the browser on this PC and I want the server to calculate the weather for the next hour on the server according to the sensor data, or the data was simply entered into the database for further processing and, at the same time, I don’t want to score with pens sensor readings in the form to be sent to the server.

  • Any technology that can work with DB and COM ports is a very general question too - JK_Action
  • to JK_Action: Good. I choose Borland C ++. It can both from COM and from a DB. Tell us how to use this technology to implement the behavior described as an example in my question. - Alexey
  • one
    A plugin to the browser compiled in Borland C ++ on the one hand connects to COM | USB, on the other hand provides an API for javascript. Javascript, on the one hand, using this API, requests data from the plugin, on the other hand, using AJAX or more modern methods, sends this data to the Web server. For IE, you don't even need a plug-in. There, javascript has always been able to connect to ActiveX, if I'm not mistaken. Then ActiveX needs to be done - Sergey
  • to banme: If I choose a bunch of IE + ActiveX, then the only thing that the owner of the device needs to worry about who wants to use my services is the presence of drivers for devices from which otherwise information cannot be obtained? those. can I connect from com or access the driver from the ActiveX component provided that the user allows it (ActiveX) to start? Or is it possible that the launch of ActiveX is allowed by the user, but the component itself is launched "in the sandbox" and all that it can do is use the computational power of the local machine, without access to the periphery, drivers and the file system? - Alexey
  • I do not quite understand where the web server is located on the device or somewhere on another PC? Can you write on for data collector devices? What is meant by the phrase on the device browser available? Can you use the device like a PC? Or can you connect to the device via http? Specify what kind of device, what platform? - JK_Action

1 answer 1

You need to develop cross-platform software for your devices. Technology darkness is something difficult to advise, you need to know the requirements for architecture and performance. (C ++ Qt / Poco, Python, NodeJS ... if win is possible and .net) This software will collect data and transfer to a remote server (HTTP-REST or Websocket). Browser, I just do not understand why here. On your remote server, you need to organize a backend for the web server that will handle the post processing. Here something to advise on technology is also difficult. It is not clear under what OS server and what requirements for productivity.

  • Browser here despite the fact that the logic of data processing I want to put on the server. And the client will receive the result in the browser. And now an interesting moment with the collection: I collected and sent data to the server with my software. And then the user of this device opened the browser, went to a certain page and expects to see there the results of data processing that came from his device. The question is, how will my server, with an http request from a browser on a client device, understand what data to display on this device? - Alexey
  • More about software for client devices. His number, size, diversity must be reduced to a minimum. Ideally, generally refuse to write your p. which is installed on the client machine. That is the main purpose of my question. Ideally, I would like to find an option in which for client devices the installed p. It is not written at all because its installation / configuration and update in my case is hellish hemorrhage and the source of endless problems. (in the present, written bp is used which is engaged in both collecting, analyzing, and displaying data on the device. - Alexey