Home > Back-end >  Need written in Delphi remote monitoring PC, just contact with Delphi, could you tell me how to star
Need written in Delphi remote monitoring PC, just contact with Delphi, could you tell me how to star

Time:10-27



Need to be written in Delphi a set of remote monitoring of PC, the C/S mode, how but I have no contact with Delphi, please learn from what respect to start? Communications? Database? Interface? Have a little faster to fit the way?

CodePudding user response:

Is the network communication and serial port, if is the first study the Internet or network in indy class components, know how to send data, receive data; If is a serial port serial port that learning class components, such as spcomm, have communication protocol, the premise is to learn to Delphi,

CodePudding user response:

The demand for information sent to me, I see,

CodePudding user response:

The roof, the building Lord, how long the DELPHI, add QQ group, learn to look

CodePudding user response:

Learn SCOKET programming,

CodePudding user response:

refer to the second floor zhu_1976 response:
send demand information to me, I see,



Sorry, there is no specific demand information, is to be a ship remote monitoring system of upper machine and lower machine part mainly rely on PLC for ship end data acquisition, but this part don't need me, I just need to know the address of data storage, the collect good data transferred to industrial after initial treatment, through a serial port is passed to the ship of the GPRS module, GPRS module to send the data to the server and client software to access the server by monitoring the end, extract the data, remote monitoring can be realized, overall just do a PC, roughly including man-machine interface module, database module, the remote communication module three parts, but now with vague concept of his mind, only know the general framework, but don't know how to go about, their programming ability is limited, so a bit worried, but sincerely hope to be able to take him out on his own...

CodePudding user response:

reference 4 floor ZyxIp response:
first SCOKET programming learning


I realized the remote data communication in indy controls, but the function is very simple, that is similar to QQ chat software, send a data over there, this way will receive a, actually, I more hope between the client and the server communication through data frame, but how to get the data frame programming I was at a loss, such as how to code, how to unpack, and so on, by the way, yourself too much food, was too embarrassed to ask you...

CodePudding user response:

reference hhhfff2010 reply: 3/f
, and the building Lord, how long the DELPHI, plus QQ group, learn to look


Contact Delphi about half a year, but may be the right way, always like a no entry, look at those so-called data operation, sorting, array are able to read, but to the actual programming, communications, it is not well, always think Delphi is not accomplished by the control function? Learn these basic data operation can have what use? Also added a QQ group, but not making much progress with his feeling!

CodePudding user response:

Controls just help you encapsulate a function, but not all the business functions of someone you give you encapsulate become controls and provided free of charge to you,

All SOCKET programming development language, almost all the Internet protocol is the basis of TCP, UDP,
Add group also can only help you to solve some questions, learning, and can't carry it for you

Progress is the fastest way is to write a lot of code, summary, see the information, ask questions,

CodePudding user response:

Saw a narrative of the building Lord still don't quite understand the PC monitoring requirements of the building Lord to do the interface where exactly in which part,

Roughly by according to the above information provided by the building Lord, I have several ideas:
1 PC can be connected directly to the PLC and PLC communication, understand PLC communication protocol, data parsing PLC to implement the monitoring,
This only need to use the PLC manufacturers control can realize communication, difficulty is not great, general PLC provides a TCP, UDP or serial communication control, you parse the data according to the agreement, speaking, reading and writing,

2. Collect good data transferred to industrial PLC after initial treatment, through a serial port is passed to the ship of the GPRS module, GPRS module to send the data to the server,
This process need to achieve in your PC? If you need, you need to know the serial communication between the GPRS module and PC quickly, it have a serial port communication protocol between, you need to understand,
At the back of the GPRS is a piece of the data sent to the server, this step if the implementation? Because I didn't do this to give the building Lord suggested,

3. Customers by monitoring software to access the server, to extract data, remote monitoring can be realized,
If the client is also your development, so here is a client and server communication, there is no doubt that USES TCP or UDP communication more convenient, you will use the indy or socket,
Don't know what LZ finally is the data collected in the form of data, if LZ for data real-time demand is higher, personal advice LZ with
The socket for communication between the server and the client,

CodePudding user response:

references 9 f jie101 response:
saw a narrative of the building Lord still don't quite understand the PC monitoring requirements of the building Lord to do the interface where exactly in which part,

Roughly by according to the above information provided by the building Lord, I have several ideas:
1 PC can be connected directly to the PLC and PLC communication, understand PLC communication protocol, data parsing PLC to implement the monitoring,
This only need to use the PLC manufacturers control can realize communication, difficulty is not great, general PLC provides a TCP, UDP or serial communication control, you parse the data according to the agreement, speaking, reading and writing,
.
thank you!

CodePudding user response:

I do have a GPRS remote automatic meter reading system, and what you said is more similar,

Principle is the server side has a TCP/IP mode listener, is responsible for receiving the client upload data,

The client program, I think your side can directly by the PLC via a serial port to GPRS, according to the GPRS protocol format can automatically send, don't need to add a industrial PC,

CodePudding user response:

11 references zhu_1976 response:
, I do have a GPRS remote automatic meter reading system, and what you said is more similar,

Principle is the server side has a TCP/IP mode listener, is responsible for receiving the client upload data,

The client program, I think your side can directly by the PLC via a serial port to GPRS, according to the GPRS protocol format can automatically send, don't need to add a industrial PC,


Thank you, I just don't understand to the so-called agreement, do not know how to programming, can you read it upstairs great god source program? [email protected], thanks a lot!

CodePudding user response:

To see a problem with two parts, the first to catch data, then can transfer data,

Catch catch data need OPC data such as kepserver dOPC), OPC software bring drive (because of the PLC communication protocol, different from the same company different PLC agreement that has such abnormal situation is very common)

How catch data after GPRS data transfer problem I don't know,

CodePudding user response:

reference 13 floor kwer reply:
two parts to see a problem, can grasp the data first, then can transfer data,

Catch catch data need OPC data such as kepserver dOPC), OPC software bring drive (because of the PLC communication protocol, different from the same company different PLC agreement that has such abnormal situation is very common)

How catch data after GPRS data transfer problem I don't know,


Thank you very much, have benefited a lot from
  • Related