title: Decode Data From Hex and LRC
body: <p>Hi i am having the following Rs485 data in that i know the value but unable to decrypt the data i am tried in taking 2's compliment but it comes to close but not get the correct data</p>
  
  <pre><code>3A 30 31 30 33 30 32 30 31 38 42 36 45 0D 0A
  </code></pre>
  
  <p>in above rs 485 data value is=395 that is 3842 =395 and 3645 =LRC and 0D0A=End character</p>
  
  <pre><code>3A 30 31 30 33 30 32 30 31 38 46 36 41 0D 0A
  </code></pre>
  
  <p>in above rs 485 data value is=399 that is 3846=399 and 3641 =LRC and 0D0A=End character</p>
  
  <pre><code>3A 30 31 30 33 30 32 30 31 39 30 36 39 0D 0A
  </code></pre>
  
  <p>in above rs 485 data value is=400 that is 3930 =400 and 3639 =LRC and 0D0A=End character</p>
  
  <pre><code>3A 30 31 30 33 30 32 30 31 39 32 36 37 0D 0A
  </code></pre>
  
  <p>in above rs 485 data value is=402 that is 3932 =402 and 3637 =LRC and 0D0A=End character</p>
  
  <p>Please guide me to get LRC value and data.Lrc value is summing of data and taking 2's compliment negotion but i don't know how to take lrc value.Please help me to get data and LRC value calculation</p>