Home > Back-end >  Use spcomm receive serial data
Use spcomm receive serial data

Time:10-07

Early masters, I am using Delphi, want to ask next use spcomm controls receive serial data problems, I use a serial port debugging, debugging elves in operation of the equipment the buttons on the received data is A1 6 b FF FF FF FF FF FF FF FF FF FF CA, I pressed a key on the device receives the data becomes a A1 6 b F9 FF FF FF FF FF FF FF FF FF CC or A1 6 b FE FF FF FF FF FF FF FF FF FF CB, etc., I want to know how to want to write to read only useful A1 6 b F9 FF FF FF FF FF FF FF FF FF CC or A1 6 b FE FF FF FF FF FF FF FF FF FF CB, so that I can know is to press the key on the device, urgently, online etc.!!!!!!!!!!

CodePudding user response:

See agreement.
You have the agreement file.

CodePudding user response:

No agreement on hand, just use serial debugging assistant measure

CodePudding user response:

It's a question, read the useless directly throw ah, ah

CodePudding user response:

New!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CodePudding user response:

No agreement, a guess, or more pain, had better go to the equipment of raw plant manufacturers, call advisory or go to website to download the SDK

CodePudding user response:

reference 5 floor unearth reply: ,
no agreement by guess, is painful, to the best equipment of raw plant manufacturers, calls or to download the SDK site

+ 1

CodePudding user response:

reference 5 floor unearth reply: ,
no agreement by guess, is painful, to the best equipment of raw plant manufacturers, calls or to download the SDK site
entirely correct, it is best to get the production specification PDF documents about the communication protocol

CodePudding user response:

Do a secondary broken frame buffer, received bytes at a time, loop check received byte array, see initialization operator (A1) frame head frame buffer pointer, then put it in one by one, to the end of the frame (byte count), just throw out the array to the handler, and then wait for the next frame synchronization head
Basic idea like this, I don't understand can Q: 2642141788

CodePudding user response:

In SPCOMM receivedata events, receives an array of bytes and your keys under the comparison of two groups of byte array, is 2 times, no trouble,

CodePudding user response:

references 9 f wangyang4506 response:
in SPCOMM receivedata events, receives an array of bytes and the keys you want under the comparison of two groups of byte array, is 2 times, no trouble ah,


+ 1

Directly to check it. After all, is not much
  • Related