(18.11.2020, 09:41)Daniel. Wrote:  Each product must have a address which is one of the byte in the string, probably the first.
YES, for example, when LM receives a string of 20 bytes of data, I only need the consecutive 16 bytes. How can I extract these 16 bytes?
 (18.11.2020, 09:46)admin Wrote:  Are you sure that each frame has a fixed length of 16 bytes? From your logs it seems that the length can be different.
YES,the air conditioner panel I need to receive is 16 bytes each time. But sometimes this panel will actively report more than 16 bytes of data, and I will ignore this data.
 (18.11.2020, 09:49)Rick Wrote:   (18.11.2020, 09:41)Daniel. Wrote:  Each product must have a address which is one of the byte in the string, probably the first.
YES, for example, when LM receives a string of 20 bytes of data, I only need the consecutive 16 bytes. How can I extract these 16 bytes?
 (18.11.2020, 09:46)admin Wrote:  Are you sure that each frame has a fixed length of 16 bytes? From your logs it seems that the length can be different.
YES,the air conditioner panel I need to receive is 16 bytes each time. But sometimes this panel will actively report more than 16 bytes of data, and I will ignore this data.
And I need 16 data starting with AD BD OD to make judgment logic.