skuep / AIOC

Ham Radio All-in-one-Cable
MIT License
705 stars 56 forks source link

AIOC and SVXLINK #86

Open F8ASB opened 1 week ago

F8ASB commented 1 week ago

Hello all,

I'm trying AIOC with Svxlink repeater software, AIOC is detected and audio level on alsamixer are available and /dev/hidraw0 is present on my Raspberry Pi.

For RX config is for a CM108 and SQUELCH(COS) detection on VOL_DW pin 48. HID_DEVICE=/dev/hidraw0 HID_SQL_PIN=VOL_DN SQL_DET=HIDRAW

For TX config: PTT_TYPE=Hidraw HID_DEVICE=/dev/hidraw0 HID_PTT_PIN=GPIO3

I have this error: Wed Sep 11 10:04:09 2024: ERROR: unknown/unsupported sound chip detected... Wed Sep 11 10:04:09 2024: ERROR: Squelch detector initialization failed for RX "Rx1" Wed Sep 11 10:04:09 2024: ERROR: Could not initialize RX "Rx1" Wed Sep 11 10:04:09 2024: ERROR: Could not initialize Logic object "SimplexLogic". Skipping...

Have you an idea to resolve this problem?

Maybe HID_SQL_PIN=VOL_DN isn't correct for AIOC.

skuep commented 2 days ago

Hi! I am not familiar with the software. From what I can tell, I would guess that the last 3 errors are a result of the first error. And the first error is probably related to the fact that SVXLINK checks VID/PID of the given hidraw device, to detect what driver it needs to use (e.g. CM108). It doesn't recognize the AIOC's own VID/PID although the AIOC would be compatible to the CM108 chipset.

Currently, there are two ways to solve this particular problem. Either use the preview release and a python script to configure the AIOC for a different VID/PID. However this does currently not work on Windows. https://github.com/skuep/AIOC/issues/46

The second way is to use the firmware of G1LRO, that has baked these changes into the firmware. https://github.com/skuep/AIOC/issues/61 https://g1lro.uk/?p=676

In both cases, the VID/PID pair of the AIOC is changed so that it looks (almost) like a genuine CM108 chip to the computer. So it comes with all the caveats that you can read in those issues.

F8ASB commented 1 day ago

Hi!,

Thanks for your reply.

I'll try and report back on this thread.