OpenRTX / dmrconfig

Configuration utility for DMR radios
BSD 3-Clause "New" or "Revised" License
233 stars 55 forks source link

support for baofeng DM-X #39

Open ThomasChiroux opened 4 years ago

ThomasChiroux commented 4 years ago

Hi, just bought the new DM-X from aliexpress: https://www.aliexpress.com/item/32968762733.html Seems to be an upgrade of DM1801 and is not detected by dmrconfig.

Got this on dmesg:

[69949.682038] usb 1-1.1: new full-speed USB device number 15 using xhci_hcd
[69949.826630] usb 1-1.1: New USB device found, idVendor=0483, idProduct=5780, bcdDevice= 2.00
[69949.826637] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[69949.826642] usb 1-1.1: Product: STM32 Virtual ComPort in FS Mode
[69949.826647] usb 1-1.1: Manufacturer: STMicroelectronics
[69949.826652] usb 1-1.1: SerialNumber: 00000000050C
[69950.436452] usblp 1-1.1:1.0: usblp0: USB Bidirectional printer dev 15 if 0 alt 0 proto 2 vid 0x0483 pid 0x5780
[69950.436580] usbcore: registered new interface driver usblp

[UPDATE: also tried with a standard micro-usb cable instead of the baofeng programming cable: got the same output:]

[71349.498228] usb 1-1.1: new full-speed USB device number 17 using xhci_hcd
[71349.643940] usb 1-1.1: New USB device found, idVendor=0483, idProduct=5780, bcdDevice= 2.00
[71349.643951] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[71349.643957] usb 1-1.1: Product: STM32 Virtual ComPort in FS Mode
[71349.643963] usb 1-1.1: Manufacturer: STMicroelectronics
[71349.643967] usb 1-1.1: SerialNumber: 00000000050C
[71349.662407] usblp 1-1.1:1.0: usblp0: USB Bidirectional printer dev 17 if 0 alt 0 proto 2 vid 0x0483 pid 0x5780

(i've got 2 dmx-x, both have the same output in dmesg).

whith dmrconfig -r -t I get this:

sudo dmrconfig -r -t                                                                                                                                                  
Cannot find USB device 0483:df11
Cannot find USB device 15a2:0073
Cannot find USB device 28e9:018a
No radio detected.
Check your USB cable!

(response seems logical, the new dm-x has 0483:5780 instead of 0483:df11)

I can help to test if support is working. Thks,

[UPDATE2], interesting thread here, indicating DM-X is a sort of DM-1702: https://www.twowayradioforum.com/t/baofeng-dm-x-dmr/7249/235

and found a python tool for this devide in the thread: https://github.com/OK2MOP/MD1702-tools which seems to work (managed to dump firmware)

sergev commented 4 years ago

Looks like a pretty new design, not a clone of dm1801 or md380. Format of codeplug is quite different. I'm ready to add a support for it, in case somebody donates me the radio.

smachj commented 4 years ago

Does dmr config also work on DM 1801 with FW openGD77? dmesg normal boot [ 1965.526219] usb 3-2: new full-speed USB device number 2 using uhci_hcd [ 1965.715311] usb 3-2: New USB device found, idVendor=1fc9, idProduct=0094, bcdDevice= 1.01 [ 1965.715322] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1965.715329] usb 3-2: Product: MCU VIRTUAL COM DEMO [ 1965.715335] usb 3-2: Manufacturer: NXP SEMICONDUCTORS [ 1966.980653] usbcore: registered new interface driver cdc_acm [ 2404.378193] usb 5-1: new full-speed USB device number 2 using uhci_hcd [ 2404.566285] usb 5-1: New USB device found, idVendor=1fc9, idProduct=0094, bcdDevice= 1.01 [ 2404.566296] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2404.566303] usb 5-1: Product: MCU VIRTUAL COM DEMO [ 2404.566310] usb 5-1: Manufacturer: NXP SEMICONDUCTORS

flash boot [ 236.842219] usb 1-2: reset full-speed USB device number 2 using uhci_hcd [ 1965.526219] usb 3-2: new full-speed USB device number 2 using uhci_hcd [ 1965.715311] usb 3-2: New USB device found, idVendor=1fc9, idProduct=0094, bcdDevice= 1.01 [ 1965.715322] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1965.715329] usb 3-2: Product: MCU VIRTUAL COM DEMO [ 1965.715335] usb 3-2: Manufacturer: NXP SEMICONDUCTORS [ 1966.980653] usbcore: registered new interface driver cdc_acm [ 2404.378193] usb 5-1: new full-speed USB device number 2 using uhci_hcd [ 2404.566285] usb 5-1: New USB device found, idVendor=1fc9, idProduct=0094, bcdDevice= 1.01 [ 2404.566296] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2404.566303] usb 5-1: Product: MCU VIRTUAL COM DEMO [ 2404.566310] usb 5-1: Manufacturer: NXP SEMICONDUCTORS

I changed to radio.c if (hid_init(0x15a2, 0x0073) >= 0) to if (hid_init(0x1fc9, 0x0094) >= 0)

_// Try TYT MD family.
ident = dfu_init(0x0483, 0xdf11);
if (! ident) {
    // Try RD-5R, DM-1801 and GD-77.
       if (hid_init(0x1fc9, 0x0094) >= 0)
        ident = hid_identify();
}_

but it did not help

...../dmrconfig> ./dmrconfig -t -r Cannot find USB device 0483:df11 ---Send 01 00 07 00 02 50 52 4f 47 52 41 Error -9 transmitting data via control transfer: Pipe error