Comments (17)
What is an actual baudrate you have set up on the sensor? Could you access it and enumerate the messages with message-enumerator
utility?
from witmotion_imu_ros.
The baudrate i set is 115200 as per the data sheet.
from witmotion_imu_ros.
Yes, but was it set up also on the sensor? Can you see the data with this baudrate from another application? Did you try another values?
from witmotion_imu_ros.
Yeah sensor is working fine, i tries with the witmotion app provided by the manufacturer, its working well,
Does this package support WT901BLECL 5.0 IMU Sensor ?
from witmotion_imu_ros.
@Nareshkumar-g It depends on whether the sensor:
- drops the data formatted by the Witmotion 11-byte communication protocol
- The connection settings are set up properly
Please check the exact connection settings on your Witmotion controller application. It is a chance that you have wrongly set baudrate there, so the sensor remembers it and it is actually works not on 115200 baud.
from witmotion_imu_ros.
I have the same issue.
Initially I got the below error
Environment:
Ubuntu 20.04
ROS Noetic
IMU HW905-RS485
******* Error 1 ******************
Opening device "ttyUSB0" at 9600 baud
[ INFO] [1686612884.631942076]: Initiating RTC pre-synchonization: current timestamp 2023-06-13T08:34:44.631
[ INFO] [1686612884.632297483]: Configuration ROM: lock removal started
[ INFO] [1686612889.634066069]: RTC pre-synchonization completed, saving configuration
[ INFO] [1686612890.634352841]: RTC synchronized
[ERROR] [1686612890.634802042]: Sensor error: Error opening the port!
[ INFO] [1686612890.634899953]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
I have tried to change the USB access permissions using the following command
sudo chmod a+rw /dev/ttyUSB0
Then I got the following error:
************ Error 2 ***************************
process[witmotion_imu-1]: started with pid [11572]
Opening device "ttyUSB0" at 9600 baud
[ INFO] [1686614065.787490338]: Initiating RTC pre-synchonization: current timestamp 2023-06-13T08:54:25.787
[ INFO] [1686614065.787867738]: Configuration ROM: lock removal started
Instantiating timer at 50 ms
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x69
Configuration packet sent, flushing buffers...
Configuration completed
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x33
Configuration packet sent, flushing buffers...
Configuration completed
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x32
Configuration packet sent, flushing buffers...
Configuration completed
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x31
Configuration packet sent, flushing buffers...
Configuration completed
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x30
Configuration packet sent, flushing buffers...
Configuration completed
[ INFO] [1686614070.789366009]: RTC pre-synchonization completed, saving configuration
Configuration task detected, 1 commands in list, configuring sensor...
Sending configuration packet 0x0
Configuration packet sent, flushing buffers...
Configuration completed
[ INFO] [1686614071.789645050]: RTC synchronized
[ERROR] [1686614071.790033951]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.790075629]: Entering SUSPENDED state
QObject::killTimer: Timers cannot be stopped from another thread
QObject::~QObject: Timers cannot be stopped from another thread
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.790718832]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.790753356]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.790782941]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.790816132]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.790884519]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.790927138]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.790955150]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.790981289]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.791038104]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.791067439]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
[ERROR] [1686614071.791111340]: Sensor error: No data acquired during last 3 iterations, please check the baudrate!
[ INFO] [1686614071.791137008]: Entering SUSPENDED state
Suspending TTL connection, please emit RunPoll() again to proceed!
from witmotion_imu_ros.
The timeout parameter will be added soon. Now the question is the baudrate, we should ensure the value the sensor remembers by itself
from witmotion_imu_ros.
@twdragon, I checked the baudrate from the application its 115200.
from witmotion_imu_ros.
@Nareshkumar-g then:
- Ensure the username of the system user is in
dialout
group - Try to run
message-enumerator
to determine on which virtual filesystem name the device drops the data
If you share the output of message-enumerator
's output we will see what is not working properly
from witmotion_imu_ros.
I have checked with different baud rates and polling interval. But still the problem remains same. I have also tried using message-enumerator.
Output of the message enumerator
Press Ctrl+C to stop enumeration and see the report
Opening device "ttyUSB0" at 9600 baud
Instantiating timer at 50 ms
ERROR: No data acquired during last 3 iterations, please check the baudrate!
Closing TTL connection
WITMOTION UART MESSAGE ENUMERATOR BY TWDRAGON
Acquired at 2023년 6월 13일 화요일 오후 4시 35분 32초 KST
ID Qty Description
Unknown IDs: 0 [ ]
Total messages: 0
from witmotion_imu_ros.
@SunilSrivatsav9 the output is for 9600 baud. Is it the same for 115200 and the other rates?
from witmotion_imu_ros.
Yes its the same for all values.
I feel the issue is with interface (HW905- RS485)
from witmotion_imu_ros.
@SunilSrivatsav9 It is totally different serial interface. What is the converter you use to access it from Linux?
from witmotion_imu_ros.
@twdragon I am not using any driver. I directly connected the USB-SERIAL CH340 convertor to the system. I just checked the port using ls /dev/ttyUSB* and gave the root permissions to the port. Its working using windows SDK, but its unable to receive data with Ubuntu ( ROS ).
from witmotion_imu_ros.
Below are the Parameters from Windows SDK
from witmotion_imu_ros.
@SunilSrivatsav9 it seems your device got 9600 baud. Can you see anything connecting to the corresponding port via Linux on minicom
with this baudrate?
from witmotion_imu_ros.
I was successful in using the given link https://github.com/WITMOTION/WitStandardModbus_WT901C485
Since I am using RS485 communication, using Modbus protocol as mentioned in the above package helped in solving the issue.
Thank you so much @twdragon for immediate responses
from witmotion_imu_ros.
Related Issues (20)
- IMU ros driver compatible with i2c protocol HOT 1
- [ROS2] Add installation instruction for ROS2 HOT 5
- [ROS2] Test reports for ROS2 version on different sensors HOT 6
- Test reports for ROS1 version on different sensors HOT 3
- Trouble interfacing with Raspberry Pi HOT 12
- I can see topics, but no values on hwt905-ttl ?! HOT 17
- wt901 sensor covariance HOT 8
- Massive latency in HWT906 with dev board and USBC connection. HOT 5
- [ROS2] WT901C issues HOT 3
- [ROS2] clean build failing on ROS2 Foxy HOT 9
- Setting frequency HOT 1
- BWT901CL imu not showing any data HOT 3
- HWT9053-485 is not working. HOT 3
- WT901C-485 is not working in ros2 humble HOT 1
- Issue with HWT 905-485 Sensor - Timed Out Waiting for Data HOT 2
- Massive latency in HWT905 HOT 1
- CMake error trying to find_package(witmotion_ros REQUIRED) HOT 2
- wit WT901C-TTC not detected on my raspberry pi4 HOT 7
- [ROS2] Can't read anything on `/imu` topic HOT 4
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 witmotion_imu_ros.