Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial read poor speed #84

Open
ashsifat opened this issue Mar 24, 2018 · 1 comment
Open

serial read poor speed #84

ashsifat opened this issue Mar 24, 2018 · 1 comment

Comments

@ashsifat
Copy link

ashsifat commented Mar 24, 2018

Hello, Can anyone please tell me why it is taking 0.015 sec for me just to read 22 bytes from the serial port? i am attaching the code below. I use a modified version of this package and try to use the ser.read in the dynamixel_driver/dynamixel_io functions. I use FTDI USBcomm 485 port and have 2 dynamixel xh430 motors in the daisy chain.

    t0=time.time()	
        # read response
    self.data.extend(self.ser.read(22))
    timestamp = time.time()
    print "read_spent_time", timestamp-t0

output: read_spent_time 0.01518201828

@ashsifat
Copy link
Author

ashsifat commented Mar 24, 2018

improvised by making timeout shorter. but if timeour reduced much, cannot catch the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant