7 Replies Latest reply on Mar 13, 2015 6:40 PM by CMata_Intel

    leading trailing zeros on serial rx (/dev/ttyMFD1)

    Guido_H

      Hello,

      I am trying to control a Herkulex servo via the serial port on the EDISON+Arduino.

      After initiliazing the serial port using mraa in python and using pyserial,sending data works correctly.

       

      But the received data is preceded by a number of zeros and followed by some zeros ( 5-10 or so)

      The number of zeros varies with the size of the received string but I have not discovered any logic in it.

      Of course I can strip the zeros from the received string.

      But I would appreciate suggestions to know how to avoid the added zeros.

       

      (using the herkulex servo with pyserial from a windows pc does not give the zeros)

       

      Thanks,

      Guido

       

      PS Before upgrading to the latest version, I had a problem geeting a constant stream on receive.