Home > Back-end >  The Delphi problem about communication protocol (INDY)
The Delphi problem about communication protocol (INDY)

Time:10-08

First-time communication aspects of things, are not familiar with the various aspects, now expects to send with the indy control, not, also please guide,

Instruction detection format is as follows:
The frame head 0 x02h
Instruction code C
Equipment coding A0
DATA domain DATA
Check code CS
Tail frame 0 x03h

Control command:
The total detecting state
Functional description of this directive to the display equipment query total state, for the usual equipment condition monitoring,
Preset conditions
Instruction format 0 x02 (frame) 0 x30 0 x31 x32 (instruction) 0 0 x32 (destination address) 0 x00 0 x00 (check) 0 x03 frame (tail)
Return value 0 x02 (frame) 0 x30 0 x31 (instruction) 0 x31 0 x31 (destination address) 0 x01 (instruction execution, 00 said abnormalities, 01 said normal) 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 0 x30 (equipment state, said the 12 bytes 30 very, 31, said normal) 0 x00 0 x00 (check) 0 x03 frame (tail)
Instruction nine state value, representing: communication, power supply voltage, the fans, door switch state, system, drive channel, LED pixel, photosensitive head, lightning protection device, other keep

According to this instruction, can you help to write case column, I'm learning how to learn, not now not primarily group package, set out the hair up, equipment did not reply,

CodePudding user response:

Group equipment package that should see you unpack the rules, not disorderly group, equipment didn't reflect is certainly not conform to unpack the rules it does not recognize

CodePudding user response:

Instruction frame format if you can improve, the best in the head and a subsequent data bytes

CodePudding user response:

Your protocol description is not detailed,

CodePudding user response:

Wiring communication if you are using, you can use the dot of a monitor, to view your monitoring data in a network segment, this little tool can effectively reflect you content of the message issued or received and the request of consistent, and lower machine, usually receives data will have a small signal lights out, to indicate that data is transmitted, from here can be delivered, whether your data in the

CodePudding user response:

Your Data is the Data of how many bytes?

CodePudding user response:

Very simple things, however, afraid of couldn't say for sure in a few words, add me number: penguin, 99795108
  • Related