-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cm108 utility's flexibility for testing PTT, etc #345
Comments
For what it's worth, you can use The command
According to the documentation, you should be able to use |
I think this is an interesting alternative but I don't think the current CM108 support is via Hamlib and instead, it's via direct USB HID access. Is that correct John? |
direwolf and the cm108 utility access the Cmedia chip through the HID interface. They don't hamlib to do that. |
I'm not sure if the posted Windows binary for 1.7A has Hamlib support but if it does and if there is indeed a cm108 issue with the Windows binary, maybe this could be an alternative approach to help those users |
The Windows version does not support hamlib.
Next, I ran cm108 again, this time adding the USB Audio Device HID address to the command line:
Notice the following: The DINAH red LED goes on and off. |
Would it be difficult to add a feature to the cm108 tool to try setting the GPIO pin to test PTT?
Maybe add some options like:
-v : version of this tool
-d : the specific device to control
-g : the GPIO pin to control (default to GPIO3)
-a : action: 1 for high; 0 for low
I'm thinking it would be cool if it could maybe have two modes to help users confirm they have the right HID device for PTT control:
Specific device using the -d option : using the spacebar, toggle the state of the GPIO pin. Use control-c to return GPIO pin back to it's original state and then exit
Interactive Probe (if -d isn't specified):
Using the spacebar, each of the GPIO pin's state will be toggled until the spacebar is pressed again. At that point, the GPIO pin will be put back to it's previous state and it will toggle the state of the next GPIO pin. Once all available GPIO pins are touched, move on to the next valid hidraw interface. Use control-c to return GPIO pin back to it's original state and then exit
The text was updated successfully, but these errors were encountered: