-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Need clarity for battery service parameters 0.2 #104
Comments
Yes.
The vendor bits are chosen at random so the collision probability estimates look as follows:
If you, as a vendor, prefer to switch to 32/32 over the current 40/24 and you are comfortable with the marginally increased risk of collision, we can do that. Going any further would be a mistake.
Hashing is intended for use with smart battery protocol converters that have to provide a DS-015 compliant interface based on the data they obtain from the battery. If your battery stores a unique numerical ID, then you can just use that, otherwise, use hashing. See, the only requirement for this field is to be unique, everything else is optional.
From https://batteryuniversity.com/learn/article/charging_lithium_ion_batteries:
Field |
Does it need to be chosen at random ? Since this DSDL is the reference that would be used by any vendor/user of the DSDL, does it not make sense to create a repository with the vendor names. If a vendor badly wants to use an existing ID, they may still do that with the downside that it will collide with the existing vendor.
I think its easier to maintain a repo with the hopefully 1000s, maybe not upto the millions vendors, than rely on a random number to prevent collision?
Makes sense. Would be good to be more verbose above this. |
Randomness allows us to avoid the cost of maintaining a registry. I am not sure if there are any tangible downsides here. We could perhaps define these 32-bit as If you find it sensible, we can update the description of the field accordingly. As I said above, this is a mere recommendation rather than a hard requirement.
It is not easier because vendors are bad at following rules and having to maintain another centralized registry complicates the standard.
Would you like to extend #105 with these changes? |
Please make it
It is ok even if they dont follow from what I understand. But I dont care either way. Thought a list of vendor may be helpful to a maintain for marketing/product search perspective.
Can do. |
Ok. I will be waiting for updates in #105 |
* Update reg.drone.service.battery.Status.0.1 to include an array of cell voltages and update reg.drone.service.battery.Parameters.0.1 to remove cell count now provided by cell voltages. Status.0.1 and Parameters.0.1 are now deprecated. * Adding comments for few of the parameters in parameters message for clarity. * Update reg/drone/service/battery/Status.0.2.uavcan Co-authored-by: Pavel Kirienko <[email protected]> * Update reg/drone/service/battery/Parameters.0.2.uavcan Co-authored-by: Pavel Kirienko <[email protected]> * Cleaning up "deprecated" * 1. spell error correction 2. Detailed and generic explanation of the different terms used in this message. The terms apply to most rechargeable batteries. Although the some may be irrelevant * Changes made in reference to #104 * Redefining and clarifying what charge_voltage is based on Pavel comment * Fixing grammatical weirdness * CI trailing space fix * Fixing CI space issue * Slightly adjust the docs for the updated battery messages to enhance clarity. * Ditch unused print statements Co-authored-by: Kyle Pawlowski <[email protected]> Co-authored-by: Eohan <[email protected]> Co-authored-by: Pavel Kirienko <[email protected]>
https://github.com/UAVCAN/public_regulated_data_types/blob/master/reg/drone/service/battery/Parameters.0.1.uavcan has a parameter unique_id.
I think it needs more clarity on how it may be defined. If its 64 bits, is the idea for a vendor to use a random 40 most significant bits to identify the vendor and the rest bits to identify a particular battery ?
Also need clarity for uavcan.si.unit.electric_current.Scalar.1.0 charge_termination_treshold # End-of-charging current threshold
What does this parameter represent ?
The text was updated successfully, but these errors were encountered: