sergev / baoclone

A command-line utility for saving, restoring and modifying the configuration of Baofeng handheld radios.
64 stars 11 forks source link

Baoclone port in Linux #15

Open iw2evk opened 3 months ago

iw2evk commented 3 months ago

Hi Serge,

i've compiled baoclone 1.6 for linux (i use ubuntu 20.04)

i don't understand how set the usb port...

i use for programming the radio a usb to ttl device.

the port it's /tty/USB0 so i try to download for my baofeng uv5r

iw2evk@iw2evk-4236j25:~/Scaricati/baoclone-master/baoclone-master/build$ baoclone -v /tty/USB0 Read image from file '/tty/USB0'. /tty/USB0: No such file or directory

What is the right command ?

many thanks

Regards

iw2evk Roberto

Milan

sergev commented 3 months ago

Hi Roberto, Try /dev/USB0.

iw2evk commented 3 months ago

It works!

/Dev/ttyUSB0

Il lun 10 giu 2024, 20:58 Serge Vakulenko @.***> ha scritto:

Hi Roberto, Try /dev/USB0.

— Reply to this email directly, view it on GitHub https://github.com/sergev/baoclone/issues/15#issuecomment-2159085807, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKPWREXULG2R2Q35DKTVE3ZGXZMNAVCNFSM6AAAAABJC3XYI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJZGA4DKOBQG4 . You are receiving this because you authored the thread.Message ID: @.***>

iw2evk commented 3 months ago

A question . i've see in datasheeth of RDA1846 chip some commands not present in menue or Chirp.

E.g.

Bit 58H[3] : Function pre/de-emph 1=pre/de-emph bypass 0=normal

or

Step1: set 58H[1:0]=11 set voice hpf bypass Step2: set 58H[5:3]=111 set voice lpf bypass and pre/de-emph bypass

It's possibible with boaclone send this data to the radio chip?

Thanks

watsoncj commented 1 month ago

Ubuntu 22 here. The device was located at /dev/ttyUSB0. Thanks!

sudo ./build/baoclone /dev/ttyUSB0

Running sudo dmesg immediately after plugging in the radio, helped to identify the device:

[2684300.109641] usb 1-9: new full-speed USB device number 16 using xhci_hcd
[2684300.264256] usb 1-9: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00
[2684300.264258] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2684300.264259] usb 1-9: Product: FT231X USB UART
[2684300.264260] usb 1-9: Manufacturer: FTDI
[2684300.264260] usb 1-9: SerialNumber: D30GK1ZZ
[2684300.268474] ftdi_sio 1-9:1.0: FTDI USB Serial Device converter detected
[2684300.268500] usb 1-9: Detected FT-X
[2684300.269118] usb 1-9: FTDI USB Serial Device converter now attached to ttyUSB0