-
Notifications
You must be signed in to change notification settings - Fork 22
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
ESC HW Platinum V5 supported? #138
Comments
To implement telemetry for an Esc, I have to know the detail of the protocol or to find on internet another project that implement it. |
I tried the project from dgatf. There I only get data when I select VBAR. If I select Hobbywing Platinum 80A V4 as normal, I get the sensors but no values. |
I just found this /*
*/ It was in this link Do you have a logic analyser to capture the data provided by the ESC and see if it matches this doc? |
Yes,I have alogic analyser. I will have a look. |
Here is a Sigrok PulseView sample: |
I tried to implement it in version 3.0.7 (in test branch on github). I did not tested it. |
These are now my settings: 09:35:44.274 -> Version = 3.0.7 Unfortunately, I am not yet receiving any sensors from the ESC |
I have now made further attempts. 13:13:02.811 -> processing cmd But as soon as I step on the throttle, the transmission stops. I use an RM TX16S with EdgeTx. There I can see this at the points near the sensors. |
As soon as the throttle is greater than -100%, the data is transferred at a different interval. If you go back to -100% with the throttle, the data is transferred more slowly again....I recorded this here with PulseView |
I found a bug that could explain strange value for the voltage. I put a new version 3.0.8 on github. I could not look at your capture in siglog format because I get an error when I try to use pulseviewer. If you get values only when you connect the logic analyser, it could be that you have to add a pull up resistor (e.g. 1K) between 3.3V and the ESC pin. |
Wow. Here you find the SerialMonitorDump A 1k pull-up resistor between 3.3V and the ESC pin does not change anything. |
Thanks.
Are you able to provide a capture in a salea logic analyser format? This could help to understand why some frames are not correctly decoded |
I have just tried it. But Salae doesn't recognise my logicanalyser. Sigrok cannot export it in .sal format either. I have tried the recording on several PCs and was able to open it directly. Strange |
This was captured with the version from above. |
My issue is that I installed the same version of pulseview as you. It succeeded but when I run it it says that a dll is missing. In fact I am looking if the ESC frames with the data we are looking for are always the first byte after the line stays HIGH for at least 8 msec. This is the criteria I use to detect the begin of a frame. Perhaps you can loot at this in your views. |
I installed the missing dll and now I can see your capture. In one of them, I can see that the uart line is not always HIGH when there is no signal. |
If I insert a pull-up resistor of 1K between 3.3V and the ESC pin, the signal is permanently at 3.3V. No more signals get through |
Okay. I made the recording from this afternoon without the signal being connected to the RP2040 input (screenshot). |
It is perhaps like hobbywing V4 where the pullup is needed but can't be activated just after power on. I put on github a version 3.0.9 where I activate automatically a pull up (from RP2040) 3 sec after power on. Can you try to remove the external resistor and use 3.0.9. Pehaps, this will solve the issue. |
okay, I will try now. |
Here is a PulseView Trace and the serial Monitor Hex dump It looks good now. I will go on checking |
You last trace confirm that:
In fact the line is bidirectionnal and the question is who is the master and when must the line have a pull up activated. I do not have the specification. I saw a link to a pdf on a german forum (RC-Heli I think) but it requires to be a member and when I try I do not get the email that I have to use to confirm that it is me. Let see if last version (3.0.9) is OK |
Indeed it looks good. Now look if the values reported by oXs (e.g. with FV command) are good. |
Yes, the values look quite good now. However, the value for Tmp2 always returns 255 degrees Celsius. Unfortunately, there is no correct temperature value for the BEC (field 20 only shows FF). Could the HEX output in the serial monitor now be deactivated again? Or do we still need data? |
Now 3.0.10 where debug msg are disabled. I could also avoid to send the second temp but perhaps that another device using V5 protocol could transmit it. |
Yes thats the best solution 👍 |
Now I have started to calibrate the Platinum 80A V5. However, the Excel file shows a minus value for Offset2 (-1641.442308). The values displayed for Throttle are also correct so far. Unfortunately, I already get 1.6A displayed in idle mode. Is it possible that if the offset has a negative sign, this is not being converted correctly? |
The current is calculated like this where
So the sign must be correcly handled. currentf = ((float)current) * 100.0 * config.scaleVolt2 - config.offset2; What is the value of "current" (so in the frame) when throttle is at -100 (so I expect = 0 in the frame)? |
yes. In frame is 0 0 (field 17 and 18) my values |
Is there still a chance that the case of a negative offset2 value will be treated separately? |
Hello mstrens, many thanks for this great project. I have successfully used it with GPS, Vario and Hobbywing Platinum pro 130A V4 and Hobbywing Flyfun 80A V5. I use the current TEST branch. Now I have a Hobbywing Platinum 80A V5 and get no telemetry values at all. Is it possible that the Hobbywing Platinum V5 is also supported?
Many thanks and best regards
Ralf
The text was updated successfully, but these errors were encountered: