Upload with mono or python / Fedora30

User avatar
F1RMB
Posts: 2611
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Upload with mono or python / Fedora30

Post by F1RMB » Fri Dec 20, 2019 5:36 pm

Hi Saku (I looked up on QRZ.com ;-) ),

If you want, I can send you latest version of the binary I use. Just tell me.

I also don't use python either, as I don't, hum, like it. But it was a way to make something that could work on other OSs than Windows.
It's a bit hackish to support python2 and python3, in both flasher and screengrabber, but it works.

About Serial device and CPS under Wine, yes, you can make it available in the dropdown list, but it will always fail. I got an update of Wine (5-rc1), but I didn't tried it yet (I definitely think it's hopeless).
Since LibUSBDotNet works, I've started to port CPS code to use it, but there is some other problems with the code dependencies: DockPanel doens't run out of the box with Mono. I've started to fix this, but it's not finished.

Once CPS will work with Mono, at least for non Windows systems (maybe OS-X too), that will make things easier, and multi-platform.

For the codeplug flashing, once all of the problems get fixed, it will work, as code uses SerialPort .net.


But there is a lot to do, and I'm spending more time on the firmware at the moment.

Cheers.
---
Daniel

OH1KH
Posts: 14
Joined: Wed Dec 18, 2019 6:54 pm
Location: Pori, Finland
Contact:

Re: Upload with mono or python / Fedora30

Post by OH1KH » Sun Dec 22, 2019 9:14 am

Hi Daniel!

Once you have something ready for CPS that could work I'm willing to test it with Fedora.
At the moment I'm trying to learn rig menu usage and go along with my existing codeplug.

I still recall the communication with TCP option. It could resolve serial issues letting them to be solved by OS specific way.
And it also could allow rig setup via network from another PC. Then remote control is just one step away...


BTW!
Yesterday uploaded a firmware version and noticed that GD reports itself as different USB device when 2 buttons pressed.
Quite confusing if you do not know it...

Buttons pressed:
Dec 22 11:07:06 hamtpad kernel: usb 1-1.2: New USB device found, idVendor=15a2, idProduct=0073, bcdDevice= 0.02
Dec 22 11:07:06 hamtpad kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 22 11:07:06 hamtpad kernel: usb 1-1.2: Product: USB COMPOSITE DEVICE
Dec 22 11:07:06 hamtpad kernel: usb 1-1.2: Manufacturer: FREESCALE SEMICONDUCTOR INC.
Dec 22 11:07:06 hamtpad kernel: hid-generic 0003:15A2:0073.0006: hiddev97,hidraw4: USB HID v1.00 Device [FREESCALE SEMICONDUCTOR INC. USB COMPOSITE DEVICE] on usb-0000:00:1a.0-1.2/input0

Not pressed:
Dec 22 11:06:55 hamtpad kernel: usb 1-1.2: New USB device found, idVendor=1fc9, idProduct=0094, bcdDevice= 1.01
Dec 22 11:06:55 hamtpad kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 22 11:06:55 hamtpad kernel: usb 1-1.2: Product: MCU VIRTUAL COM DEMO
Dec 22 11:06:55 hamtpad kernel: usb 1-1.2: Manufacturer: NXP SEMICONDUCTORS
Dec 22 11:06:55 hamtpad mtp-probe[5376]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Dec 22 11:06:55 hamtpad mtp-probe[5376]: bus: 1, device: 7 was not an MTP device
Dec 22 11:06:55 hamtpad kernel: cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

User avatar
F1RMB
Posts: 2611
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Upload with mono or python / Fedora30

Post by F1RMB » Sun Dec 22, 2019 10:47 am

Hi Saku,

Okay about the TCP serial. I keep that in mind.

About the different VIP/PID, when in/and out bootloader mode, yes, that's perfectly normal with OpenGD77. This is why there are two different configuration in the udev rules file.
BTW, do you mind sharing your udev rules file ? This morning Roger merged a PR that added the Linux related stuff, and I would like to add the Fedora config file too.

Cheers.
---
Daniel

OH1KH
Posts: 14
Joined: Wed Dec 18, 2019 6:54 pm
Location: Pori, Finland
Contact:

Re: Upload with mono or python / Fedora30

Post by OH1KH » Tue Dec 24, 2019 7:35 am

Hi Daniel!

There is nothing much to share. I have added few lines to end of my 92-persistent-usb.rules where I have rules for my HF rigs, CW keyer, Arduinos and ESP/ESP32 modules:

# Radioddity
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE==666, SYMLINK+="OpenGD77"

User avatar
F1RMB
Posts: 2611
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Upload with mono or python / Fedora30

Post by F1RMB » Tue Dec 24, 2019 7:51 am

Hi Saku,

Okay, I'll add that to the repository.


Many thanks.
---
Daniel

Post Reply