robotnikautomation / daly_bms Goto Github PK
View Code? Open in Web Editor NEWPython module for Daly BMS devices
License: MIT License
Python module for Daly BMS devices
License: MIT License
The humble version do not require robotnik messages and when running fails
time_remaining is currently computed with the last current data that the sensor read in charging mode. This is not robust enough, we should at least use a sliding window approach, or estimate it using the mean consumption value.
I am trying to use the package with my Daly BMS for a mobile robot, but I am having problems with the connection. I am using Ubuntu 20.04 with ROS Humble and immediately after connecting the BMS with the UART converter provided by Daly the BMS is recognized, if I run ls /dev/ttyUSB_*
I see the ttyUSB_BMS port in the list, after one or two seconds the port disappears and I can't get the information from the device. How can I solve this problem, is there something else I need to set up?
Deleted
This error is happening in some recent robots (THER0-230130AA and THER0-221207AA).
The node stops publishing the battery estimation apparently without logging any kind of issue.
If you try to restart the node or use the python-daly-bms cli, it fails with the following error: could not open port /dev/ttyUSB_BMS: [Errno 5] Input/output error: '/dev/ttyUSB_BMS'
.
Output for cat /dev/ttyUSB0, same if you use sudo
cat: /dev/ttyUSB0: Input/output error
/robot/battery_estimator/data stops publishing. /robot/battery_estimator/state shows INIT_STATE, although I'm not sure what the process was. I tried to check the logs without success, so I don't know if the node was restarted after the issue.
It is fixed rebooting the PC or rebooting the USB devices as follows:
for port in $(lspci | grep USB | cut -d' ' -f1); do
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
sleep 5;
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
sleep 5;
done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.