-
Notifications
You must be signed in to change notification settings - Fork 402
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
Battery firmware #17
Comments
what FW version are you talking about? edit: I guess you mean 1.7 as I found at phantompilots forum people complaining about how FW 1.7 disabled aftermarket batteries but that's very strange, because on 1.6, those batteries were allowed |
There already are 3rd party batteries. And some people are disconnecting the lipo cells and connecting their own packets to the board. I don't see much benefit in looking at this firmware. But id someone wanted to, first step would be to look at the battery board and identify microcontroller used. Then a proper disassembler can be used to take a look at the code. |
i thought it was a different processor. im not good at disassembly OR
assembly. but i know alot more about it now since ive been using your
tools. thanks
and @ferraript. i will always be talking about fw 1.7.6 because i dont think i would ever use any other version.
|
@mefistotelis. when i cranked up the speed settings the drone would go between 45-60 mph per hour, about 20-25 mps. only thing is the person i have running the firmware gets battery errors about the current. i dont get these errors at all. this persons gimbal has been moved to the front of the drone and they think that might be the problem, but i dont think it is. also it is 1 degree F where this person is flying. |
It is. Processors which are not focused on computational power but on driving another hardware are called microcontrollers (uC).
I'm pretty sure that was the issue. If the battery had time to cool down below zero, it would definitely act strange. There is a thermal sensor which usually blocks the drone from starting in such case. |
It's a TI MSP430 IIRC. I guess they are authenticating the battery via a handshake on the I2C bus. |
Communication with the battery is done via serial at 115200 baud and I've managed to simulate most of the communication (enough to start the motors) using an Arduino board. But I agree with mefistotelis that it is not wroth spending much time on the battery firmware as the 3rd party alternatives are easily available and cheap enough. |
Pawelsky can you share the code for the arduino please. Thanks!!
|
No, as I said I don't want to spend time on it to make it "shareable", sorry. The 3rd party replacements are good and cheap enough now. |
Yea okay your helpful. Why even open your mouth then.
|
I was just about to start translating the description of the battery communication protocol into English, but seeing the attitude above I've really lost my motivation :( Maybe some other time... |
Lost your motivation? "No, as I said I don't want to spend time on it to make it "shareable", sorry." OKAY |
You do understand a difference between "Arduino code" and "description of the communication protocol" right? You are really not making yoursef any favours with that attitude... |
Honestly im not sure how the handshake process works
|
But i do have an arduino and it sounds like somthing i want to do. I want
to see how it behaves when it dont detect the load on the battery.
|
It is not just a handshake. It is continuous exchange of vital battery parameters (including voltages, discharge current, temperature, charge level, errors, etc.) |
Well if you still willing to shRe the project with me that would be great. I think it would be alot of fun. I setup my battery to 115200 and was getting somthing but not sure what to make of it. Were you able to get any english fro. The console? Thanks |
@pawelsky I'm late to this party, however I do have some questions you may be able to answer easily. I'm looking to re-use Inspire battery boards with higher capacity cells, so need to reset the discharge counter as well as the capacity reductions that the processor calculates and stores, just wondering if you've succeeded in any communications with the TI MSP430 microcontroller via the TX/RX pads, not the I2C communications between the battery and controller. Or if that's not the place to be looking for communication to acess the usage logs, can you suggest if I should access the I2C comms instead |
Never had Inspire battery in my hands. PH3 batteries communicate via UART, not I2C. |
Sorry for digging up the post! |
@ITANOSYS |
Do you know which firmware version of bq78350? |
Unfortunately not :( |
Do you have good quality pictures of TB47 battery board? |
Thanks!
Do you have any i2c or smbus adapters to read basic information from
bq78350?
чт, 25 апр. 2019 г. в 12:45, Pawelsky <notifications@github.com>:
… Here http://i.imgur.com/bjeAfxz.jpg
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJHZPA6WXF6E5DDHQZIV4XDPSF4UXANCNFSM4C7QHINQ>
.
|
Well, I do have EV2300, but... ...I don't have the TB47 board (the picture was found somewhere in the internet) :) |
pawelsky, did you emulate SHA1-HMAC authentication sequence over UART between arduino board and P3 drone when experimented in your lab setup without genuine smart battery? |
No, it was not needed. |
my calculation shows different value, 3850mAh (factory) => 2 mOhms (4||4) It's roughly 1.5mOhms, exactly like in DJI P3 battery board, 2 pcs of 3mOhms in parallel, so if you have this pcb in spares you could take it out there. But the best practice is to reprogram the chip to proper capacity then messing with shunt resistors. |
Guys, want to say thank you for the guidance. I've just flown the first two Inspire 1 TB47 batteries I've resoldered new cells into. Turns out DJI puts heatsinks between each cell, and also a spacer between every two for air circulation; I've redone the new ones the same way. Managed to not destroy the thermistor, so that one's still reporting temp. After a power cycle the BMS reports full 4500mAh from the new cells, and power graphs from flying looks perfectly normal, no deviations. Landing at 10% got me 16 min flying; so far, like a new TB47. I'll try TB48 cells next in some old TB47; got 8x of dead ones bought cheap. Thanks again. |
Hey, any updates about unlocking spark battery? |
If I remember correctly, |
Hi just wondering where are you located ?Did you have much trouble desoldering/remove old cells |
@rokz12 Sweden. No problems desoldering, just watch the thermistor, it's thin and fragile. Use thin metal strips to open batteries; needs to be thin metal under all plastic hooks before removing top white from black. Reuse heatsinks and spacers. Afterwards all just snaps together, looking like new. Good luck! |
Great thanks i have about 400 packs here myself.And want to rebuild them
to sell so also looking for a good supplier of lihv cells ?
…On Wed, 23 Jun 2021, 2:52 pm svarteld, ***@***.***> wrote:
Hi just wondering where are you located ?Did you have much trouble
desoldering/remove old cells
@rokz12 <https://github.com/rokz12> Sweden. No problems desoldering, just
watch the thermistor, it's thin and fragile. Use thin metal strips to open
batteries; needs to be thin metal under all plastic hooks before removing
top white from black. Reuse heatsinks and spacers. Afterwards all just
snaps together, looking like new. Good luck!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXC56XP4LINARP37FROFVTTUHRKLANCNFSM4C7QHINQ>
.
|
@rokz12 there's a company that makes refurbished TB47 and TB48; HeliEngadin. Any inspiration from them? Regarding cells, I'd give HSABAT a try; Alibaba/Aliexpress. There's an option with 12 cells already soldered together with the top connection board to fit inside TB enclosures, so only a couple of wires to resolder for all those 400 units. What brand will you be selling those under? Price idea? |
Unfortunately they are licensed to sell only to DJI ......think I will
carry on using the 18650 cells or get some Tesla 21700
…On Mon, 5 Jul 2021, 11:58 am Oliver, ***@***.***> wrote:
@rokz12 <https://github.com/rokz12> DJI cells are supplied by ATL
<https://www.atlbattery.com/en/index.html>, maybe you can get a bulk
order from them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXC56R42N5RUDCUWTZW2O3TWGF4PANCNFSM4C7QHINQ>
.
|
@rokz12, if you'd like to sell some of your dead TB47/TB48 to me (like 5-10), I'm interested. Or perhaps I send one back to you to try, with new cells as a thank you? Cheers /P |
Where are u located
…On Tue, 6 Jul 2021, 9:40 am svarteld, ***@***.***> wrote:
@rokz12 <https://github.com/rokz12>, if you'd like to sell some of your
dead TB47/TB48 to me (like 5-10), I'm interested. Or perhaps I send one
back to you to try, with new cells as a thank you? Cheers /P
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXC56TDKLR3KEXEPEUDEYLTWK6RTANCNFSM4C7QHINQ>
.
|
@rokz12 Sweden (EU), Norrköping
|
Pity as unable to send batteries to Sweden....unless u can find someone
that can
…On Tue, 6 Jul 2021, 9:44 am svarteld, ***@***.***> wrote:
@rokz12 <https://github.com/rokz12> Sweden (EU), Norrköping
Where are u located
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXC56SYWJXSO3YPN7ALM5LTWK67VANCNFSM4C7QHINQ>
.
|
If you remove cells it should be OK? Also light to ship. Easy after the first one's done, but still some work. |
@svarteld I've got a TB47 with 2 cells that won't wake up(most likely dried up) Linköping if you're up for it. |
@OlliDXD if it's cheap absolutely; 200 kr? |
@svarteld Do you have a preferred way of contact? I'd like to exchange a few words to double check a couple of things with ya. |
Hi sorry for the late reply just busy. I can send but will be end next
week..
…On Tue, 6 Jul 2021, 10:47 am Oliver, ***@***.***> wrote:
@svarteld <https://github.com/svarteld> Do you have a preferred way of
contact? I'd like to exchange a few words to double check a couple of
things with ya.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXC56VYH4SZ64ES3JGGA2DTWLGLRANCNFSM4C7QHINQ>
.
|
@svarteld sent you an email the other day |
@OlliDXD sorry, I've been in vacation mode here :-) Mail sent |
I'm a bit confused. The labels on my P3 battery (PH3-4480 mAh) connector-board are "SDA" and "SCL" (see attached picture) and are connected to testpoints on the main battery board using the same labels, therefore I thought the external connector would be using the SMBus (or i2c) protocol. According to the RC on the video you have a different P3 model than me, but I thought the batteries are the same for the whole P3 family, except that the one for the Pro can be charged faster. Can you please shed some light into this topic? Do some P3 battery models use UART and others SMBus protocol to talk to the battery? |
The fact that the pins are labelled as I2C on PCB does not automatically make them I2C. Their function can be configured in software. To my knowledge all the P3 batteries are the same, but I did not follow the P3 market for a long time, so can't tell if anything changed over the years. All I know is that I communicated with the P3 battery using serial @ 115200. The easies way to check if that is still the case is to connect a serial adapter to the TX wire and listen to the communication. |
I have a DJI T30 battery with only STM32L071CZT6 chip on it How to unlock the battery |
I have a DJI T30 battery with only STM32L071CZT6 chip on it How to unlock the battery |
Hello, where did you connect the ev2400 to the battery board? |
Did you try testpoints marked SMBC, SMBD and GND? :) |
i notice the battery firmware is not encrypted. i wonder what could be done to the battery controller so aftermarket batteries could be connected
The text was updated successfully, but these errors were encountered: