title: Using pyserial to send binary data
body: <p>I know there has been a lot of discussion on this but I still have a question. I am trying to send hex values through pyserial to my device using pyserial</p>
  
  <pre><code>command="\x89\x45\x56"
  ser.write(command)
  </code></pre>
  
  <p>However I keep getting an error saying  <code>string argument without encoding.</code> Does anyone know how to solve this?</p>