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

Failed transmit instruction package #15

Closed
alhatton opened this issue Jun 30, 2016 · 3 comments
Closed

Failed transmit instruction package #15

alhatton opened this issue Jun 30, 2016 · 3 comments
Assignees
Labels

Comments

@alhatton
Copy link

Hello,
I keep having an error pop up when I attempt to run the examples in the DynamixelSDK file. I've go a crustcrawler ax-18a smart arm and I'm trying to connect to it with a USB2Dynamixel hooked up to a jetson TK1 board with ubuntu tegra on it. I've tried running the Ping example and it outputs this: Succeeded to open the port!
Succeeded to change the baudrate!
[TxRxResult] Failed transmit instruction packet!
[ID:001] ping Succeeded. Dynamixel model number : 0
I'm still pretty new with UNIX coding and so I'm not sure what the failed transmit instruction packet is or how to fix it. Also I'm not sure if its the problem or not but to get the make file to work I had to comment out the Format: -m64 line.

Thanks

@LeonJung
Copy link
Contributor

LeonJung commented Jul 1, 2016

Hi!

First of all, The notices like "transmit instruction packet" are printed out from the example source code, not from the linux. This may mean that the kernel on the jetson failed to write packet on the buffer.

-m64 option is to force to build the source in 64bit configuration
There was some issues of -m32 or -m64 option which were occurred by using SBCs.
Keep your work going as you did.

Anyway, did you tested in another SBC? If you have any others, please test with that at first. If there is no error, we should find out any other solution with jetson.
I actually am planning the test with SBCs like jetson, but it has not been done yet.

I'm sorry for the inconvenience

@LeonJung LeonJung closed this as completed Jul 1, 2016
@alhatton
Copy link
Author

alhatton commented Jul 1, 2016

I have another jetson, but that is it as far as SBCs go. Is there anyway I can check if it wrote to the buffer or not?

@LeonJung LeonJung reopened this Jul 1, 2016
@LeonJung
Copy link
Contributor

LeonJung commented Jul 4, 2016

Dynamixel SDK uses write() function that is from fcntl.h in the code:

Link : https://github.com/ROBOTIS-GIT/DynamixelSDK/blob/master/c/src/dynamixel_sdk_linux/port_handler_linux.c

int writePortLinux(int port_num, uint8_t *packet, int length)
{
  return write(portData[port_num].socket_fd, packet, length);
}

it returns the result of writing so you may check it :)

@LeonJung LeonJung closed this as completed Jul 4, 2016
@LeonJung LeonJung mentioned this issue Aug 3, 2016
@LeonJung LeonJung self-assigned this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants