To obtain your registration code, please send an email to [email protected]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python Script to convert SMR-D to CBF

1
Hi All

I have made a script to convert SMR-D files to cbf with Python and the help of Chat GPT any wizards fancy testing this out?

I assume this will allow a lot of guys to work in vediamo 4 instead of having to use DTS Monaco?

I have tested myself and it gives  CRC error in vediamo someone with a bit more knowledge can finish this if they can correct the formatting so vediamo understands it?

I have also converted a CBF in .JSON so the cbf is readable

Come on Team MHH lets do this!

Attached Files
.zip

Python.zip

87
1.08 KB
.zip

CEPC CBF JSON.zip

81
531.36 KB
2
Check the CRC of the files once converted to CBF, it should always be FFFFFFFF.
Thanks given by:
3
If you try SMR-F decompile and recompile let me know. I am very much interested in this.
Thanks given by:
4
I wish it was that easy as you expect
-Pin for maps Ntg 4.5/5/5.1/5.5
-Comand region conversion solutions
-Remote coding/programming
-Remote ECU tune
Thanks given by:
5
"Come on Team MHH lets do this!"

The last time someone said this developed vgs manager with the help of members and put a price on it afterwards but now we live different economical times where I don't think people are interested to work and at home they don't have enough food or money to buy clothes or bread and someone else will be selling there work on aliexpress.

I'm not saying that you will do such thing but that the fact that there isn't much interest into working on developing newer things because everything is for free posted publicly and everybody doesn't get there share and businesses has gone downhill and people think like this: " If there isn't money coming from developing new things, then why develop? Just leave it be and move one, everyone has to pay bills and make money so why bother with something that doesn't pay the bills "
Thanks given by:
6
(06-23-2023, 04:37 AM)AndyTech Wrote: "Come on Team MHH lets do this!"

The last time someone said this developed vgs manager with the help of members and put a price on it afterwards but now we live different economical times where I don't think people are interested to work and at home they don't have enough food or money to buy clothes or bread and someone else will be selling there work on aliexpress.

I'm not saying that you will do such thing but that the fact that there isn't much interest into working on developing newer things because everything is for free posted publicly and everybody doesn't get there share and businesses has gone downhill and people think like this: " If there isn't money coming from developing new things,  then why develop? Just leave it be and move one, everyone has to pay bills and make money so why bother with something that doesn't pay the bills "




Fair point that wasn't my intentions in honesty it was to save people money buying different adapters to work in vediamo 5 etc. but i get your point
Thanks given by:
7
I tried the code, and made serveral changes to make it "work"
For Converting SMR-D you need 'Depth' 'Height' and 'Width
Code:
def convert_smrd_to_cbf(smr_d_file, cbf_file):     # Read the .smr-d file     smr_d_data = np.fromfile(smr_d_file, dtype=np.float32)         # Perform necessary data processing here     depth = 50  # Replace with the appropriate depth of your data     height = 200  # Replace with the appropriate height of your data     width = 150  # Replace with the appropriate width of your data         total_elements = depth * height * width     if smr_d_data.size != total_elements:         print("Error: Cannot reshape array to the desired dimensions.")         return         smr_d_data = smr_d_data.reshape((depth, height, width))         # Rest of the code remains the same...

To find the right Values you need to exract it from Metadata if posible or from file Dokumentation.
I made a code which extract these value, but Daimler SMR-D files are NOT reconized as MRC-File
Thanks given by: Sidney

Possibly Related Threads…

 
Replies: 12
Views: 2,396
Yesterday, 05:57 AM
 
Replies: 3
Views: 121
11-14-2026, 07:00 PM
Users browsing this thread: