v1.2.0 RC1 CM108 PTT Preview
Pre-releaseCM108 PTT control
This is a release-candidate, i.e. currently not tested well enough for a Release.
This is the first version of CM108 style PTT support. It works "in parallel" with the regular COM-Port DTR PTT support, which should not be an issue.
CM108 PTT control has been tested in direwolf. The following needs to be adapted in direwolf.conf
#PTT /dev/ttyACM0 DTR # comment out any lines similar to this
PTT CM108 # add this line
In addition, look in the direwolf manual for configuring the correct permissions on the hidraw device. For a quick and dirty test, run direwolf, it will report a message like this.
could not open /dev/hidraw13 for write, errno=13
Now, we now that the AIOC hid device is hidraw13
. Run the following command.
sudo chmod 666 /dev/hidraw13
Restart direwolf and this error disappears (Note: This method has the disadvantage that it has to be repeated manually each time you plug in the AIOC).
Note that currently, direwolf still shows the following warnings:
Warning: USB audio card 5 (AllInOneCable) is not a device known to work with GPIO PTT.
....
ioctl HIDIOCGRAWINFO failed for /dev/hidraw13. errno = 0.
The first error is understandable, since the AIOC does not use the USB VID:PID pair that any of the CM108 (or similar) chipsets use. This warning can only be made to disappear at the hands of the direwolf developers. You can ignore this.
The second warning is, in my opinion, a bug in direwolf and is currently only a minor annoyance and not a deal-breaker. It is related to a "sanity check" whether we are working with a "supported device", however the if/else clauses seem to be jambled up. See this issue: wb2osz/direwolf#448
This should get you started immediately. Note that as per direwolf's default, the GPIO3 (at CM108) is used for PTT control. GPIO4 is used for PTT2 control (should your radio have a second PTT).
Should you encounter any problems or have suggestions, please use this issue: #17