Author Topic: A tool for Miniware MDP-P906 Power Supply  (Read 1457 times)

0 Members and 1 Guest are viewing this topic.

Offline leommxjTopic starter

  • Newbie
  • Posts: 5
  • Country: cn
A tool for Miniware MDP-P906 Power Supply
« on: November 22, 2023, 06:11:11 pm »
Hi, all.
I bought one MDP-P906 about one year ago, it works well and really portable.
But there seems no official way to control it through software/script on computer, only the M01 display module or hardcoded in txt file (which is quite useless to me). So, I did some reverse engineering and coding work for them :rant:
The protocol is trivial. Now I can control it through PC and a nrf24 adapter.
If anyone interesting, go see https://github.com/leommxj/mdp_commander
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #1 on: December 29, 2023, 01:46:20 pm »
Hello, can you by any chance download full firmware from unit through swd over prog connector? I have same unit with fried cpu, so i replaced cpu, but official firmware does not contain bootloader, and all my miniware products have different versions and not compatible.
 

Offline leommxjTopic starter

  • Newbie
  • Posts: 5
  • Country: cn
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #2 on: January 03, 2024, 03:28:45 pm »
Hello, can you by any chance download full firmware from unit through swd over prog connector? I have same unit with fried cpu, so i replaced cpu, but official firmware does not contain bootloader, and all my miniware products have different versions and not compatible.
Hi Crazypaqer, is there any way i can attach this unit without disassembly? I have read about TS100 have SWDIO/SWCLK on the usb port, tried with p906, didn't get lucky.
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #3 on: January 03, 2024, 06:44:03 pm »
Hello,
Yes you can access swd through prog connector. But you need a cable which comes with MDP-M01 screen and make a custom cabe from mini usb to swd connector of your debugger / programmer.
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #4 on: January 03, 2024, 06:54:30 pm »
My cable  setup is in attachment. Target MCU is GD32F303VCT6.
 

Offline leommxjTopic starter

  • Newbie
  • Posts: 5
  • Country: cn
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #5 on: January 04, 2024, 05:20:57 am »
I think I'm doing the same thing with a usb to pin adapter and connect D+/D- to SWDIO/SWDCLK to my h7tool which work as a debugger.
the type-c port and 2.5mm D+/D- are shorted so it should work on both ports.
Maybe something went wrong when I was doing it. I'll try again when I have time.
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #6 on: January 04, 2024, 04:40:26 pm »
It may require to go in dfu mode first, try plugging cable with button pressed.
 

Offline leommxjTopic starter

  • Newbie
  • Posts: 5
  • Country: cn
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #7 on: January 04, 2024, 05:35:09 pm »
Hello, can you by any chance download full firmware from unit through swd over prog connector? I have same unit with fried cpu, so i replaced cpu, but official firmware does not contain bootloader, and all my miniware products have different versions and not compatible.
|O After some trying, I manage to attach the unit with 3.3v supply directly to the 2.5mm port, in "USB MODE". Anyway, here is the flash dump from 0x08000000 to 0x08040000, i believe the bootloader you want are before 0x08008000, good luck.
* 20240105_010828_read_0x08000000_256kB.7z (74.98 kB - downloaded 21 times.)
« Last Edit: January 04, 2024, 05:37:04 pm by leommxj »
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #8 on: January 04, 2024, 06:14:16 pm »
Thanks a lot!!!
 

Offline Crazypaqer

  • Newbie
  • Posts: 6
  • Country: ru
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #9 on: January 24, 2024, 10:05:55 am »
It seems that miniware changed firmware protection for this unit. Can you also provide device id from your unit, it should be at address 0x1FFFF7E8 , 0x1FFFF7EC, 0x1FFFF7F0 as 3 32bit registers. They somehow correlate to data recorded just before end of bootloader .
 

Offline leommxjTopic starter

  • Newbie
  • Posts: 5
  • Country: cn
Re: A tool for Miniware MDP-P906 Power Supply
« Reply #10 on: February 23, 2024, 03:44:16 pm »

Code: [Select]
pyocd> read32 0x1FFFF7E8
1ffff7e8:  05d0ff30                               |...0|
pyocd> read32 0x1FFFF7EC
1ffff7ec:  35374742                               |57GB|
pyocd> read32 0x1FFFF7F0
1ffff7f0:  57218610                               |W!..|
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf