Language acquisition sensor data, and then the data saved to the database (SQL this class), and then come out, give some specific code to take a look at best to consult,
CodePudding user response:
Brothers, is a bit complicated! Not a word or a routine can solve the problem!1, the first thing you need to use C language to write MCU program
(1), single chip microcomputer C language program is responsible for the collection of the sensor data
(2), single chip microcomputer is responsible for collecting data through TCP protocol to server
2, the computer write server program
(1), written in C # program C/S architecture program (one server and multiple clients on the TCP communications)
PC to server
The single chip processor as the client
(2), the program of single-chip computer and server communication protocol
(3), the single chip microcomputer to upload data parsing, save to the database
CodePudding user response:
As long as there is sensor communication protocol, can!CodePudding user response:
This thing can't answer,You do the database part first,
As for what kind of sensor, you first when the console manually enter the value of the good,
Ps: sensor this kind of thing, you can temporarily when the keyboard is a peripheral, after all, he is in itself a peripheral, before don't know you specific equipment, who also don't know what he is, the usb bus transmission? Bluetooth transmission? A serial port transmission? TCP transport?
Or you can learn, from the labview professional colleges and universities are not formal class from c # learning things, they from matlab, labview, wincc, ros, R learn things, to master the core essence, as to the basis of the complex technology is aside, after all, you can use the labview simple drag-and-drop fix things, instead of ordinary language development, is only a matter of time, is not difficult problem