Comments (9)
Okay, it sounds like the issue was in the powering.
I'll try to connect more Dynamixels and check whether it makes the same problem.
You caught a great point. I will take updating this idea on the FAQ bulletin into account.
Thanks for all your contributions. :)
from dynamixelsdk.
Hi,
sorry for the inconvenience.
I need more details kinda environments, devices, hardware settings, software source code, if you don't mean, as much as you can give me, pictures,...
Occasional communication errors between the computer(or micro controller) and the Dynamixel can be occurred in various situations.
What kind of device are you using now?
from dynamixelsdk.
Thank you for your reply Leon. I use USB2dynamixel to command the MX64 from Matlab Win7. The power comes separately from a power supply. I am able to use sync_write to command 6 motor simultaneously. But when I try to read one motor position, it started to fail. The code is like this,
for loop
groupsyncwriteAddParam...
groupSyncWritePacket(group_num)
pause(0.005);
read2ByteTxRx(...) % only read one motor here
readResult = getLastTxRxResult(..)
pause(0.005);
end loop
The readResult sometimes is -3001 or -3002.
If I don't syncwrite, then the readresult is always success. If I syncwrite more motors, the readresult fails more frequently.
from dynamixelsdk.
Okay, I will see what happens here and tell you what to do :)
from dynamixelsdk.
Hello,
We will find the reason out as soon as possible.
By the way, if you want to do a simultaneous control, we everytime recommend user to use the sync/bulk functions, and in your case, the bulkread function is better than the normal read function.
See how the Dynamixels works in the Bulkread example.
from dynamixelsdk.
Thank you Leon. I tried Blukread before read2ByteTxRX. Same thing happened. Meanwhile I will try other things. I will also let you know if I find the problem. Thanks.
from dynamixelsdk.
Hi Leon, I happened to try my code on Ax12 motors. They worked with no problem. Would there be any fundamental differences between Ax12 and MX64 with respect to the reading?
from dynamixelsdk.
Hi,
I made the environments as nearly same as possible, and there was no results that you described.
- WIN10
- MATLAB 2016, but the source was developed in MATLAB 2012
- DynamixelSDK which is available now
- Five MX-64 Dynamixels
- 12V-5A
- USB2Dynamixel
heres film and source code
so check this and give me feedbacks :)
and,
basically the AX series and the MX series respond with same ones by read instruction packets. I think the MX that you have doesn't work well. Check the hardware status through the RoboPlusonce again.
from dynamixelsdk.
Thank you for your testing Leon! Based on your success, I started to trust the underlying code. So I checked the hardware very carefully. When I disconnected the 6th motor, the reading succeeded for the first 5 motors. Then I figured it was the problem with the wiring length. After I split the power and also the data wire from usb2dynamixel into two strands, one to ID 1,2,3 and the other to 4,5,6, everything works. Now I can use bulkread to read 6 motors within around 4 ms.
Thank you, appreciate your help.
from dynamixelsdk.
Related Issues (20)
- Failed to enable torque for Dynamixel ID 1 for AX-12А
- [3.7.51][C++][Ubuntu 18.04][XM430-W350-T] There is no status packet! HOT 1
- Dynamixel SDK documentation?
- Compilation error: Undefined reference to dynamixel::PortHandler::getPortHandler
- ROS2-Humble - Dynamixel Error: No module named ‘dynamixel_sdk_custom_interfaces’ HOT 1
- No Status packet error on Python read_write.py AX12a HOT 2
- NameError: name 'dynamixel' is not defined
- Unable to build the librqry in Ubuntu 22.04 64 bit OS
- Velocity control using ROS 2 HOT 3
- running on Nvidia Jestson AGX Orin HOT 2
- AX12A Control with RPI4B fault [RxTxResult] There is no status packet! HOT 1
- Is it safe to upgrade MX-106T, MX-64T, MX-28T and AX-12A to protocol version 2? HOT 3
- I would like advice on migrating code from Visual Studio to Visual Studio Code
- linux c++ fast_sync_read don't work?
- How to control Dynamixel motor in Velocity/Current mode
- Feature Request: No FastBulkRead or FastSyncRead on PythonSDK
- How to get data of present position of multiple motors using python under extended position control?
- AttributeError: 'NoneType' object has no attribute 'is_using'
- How can I make the motor move very close to target value
- LabVIEW SDK library not building correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamixelsdk.