Giter Site home page Giter Site logo

daly_bms's People

Contributors

alex-arnal avatar alvarovillena avatar asoriano1 avatar cllamasm avatar dreadnought avatar ggari-robotnik avatar robert-ros avatar romanrobotnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

daly_bms's Issues

Handle device disconnections

If device is disconnected while the node is being executed, the read thread will fail with the following error:
Screenshot from 2022-03-07 17-10-16

Node does not fail, because publisher thread is still alive. This means that the node cannot be automatically relaunched, and that it will keep publishing the last valid data.

Improve time_remaining calculation

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.

Ubuntu connection problem

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?

Unable to communicate with device

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.