ilyakurdyukov / spreadtrum_flash

Spreadtrum firmware dumper for Linux
102 stars 33 forks source link

How to make the baudrate higher? #14

Open alebalasov opened 2 months ago

alebalasov commented 2 months ago

Is it possible to change the baudrate of the port to make the dumper work faster? I saw the parameter, but not shure how to change it correctly.

ilyakurdyukov commented 2 months ago

Many FDLs ignore the CHANGE_BAUD command, most likely this command is only for UART connection. Some people forked my repo and added this command, but you may notice that this code is under !USE_LIBUSB condition.

alebalasov commented 2 months ago

Thank. Than, the only possible way to make it for "non-libusb" is to send the parameter "disable_transcode" after fdl2 if it is supported by the model. It will look something like: "spd_dump exec fdl1.... fdl2... disable_transcode write_part ....." Am I right?

ilyakurdyukov commented 2 months ago

You can try sending this command on FDL1 stage to see if it does anything.

Tiger T310's FDL2 doesn't have a handler for this command, FDL1 has a handler for UART mode.

If you are using USB connection, it will remain USB connection. I don't know what you imagine transcoding to be, but it's just converting certain byte values ​​to an escape sequence and back:

7d -> 7d 5d
7e -> 7d 5e