Skip to content
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

Add Serial Number lookup Support and Move EEPROM storage in USB Radio #81

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

coolacid
Copy link
Collaborator

@coolacid coolacid commented Mar 1, 2024

In the current version of chan_usbradio there is option to store configuration settings in the optional EEPROM. With URI's that use CM119B, the EEPROM is required as it stores configurations of the chip itself. The problem arises when chan_usbradio configurations is stored on the CM119B EEPROMs as chan_usbradio overwrites the chips parameters.

The first half of this change moves the storage of chan_usbradio to a higher point in the EEPROM memory that is currently identified as unused by all URI Chips. There is currently no code that checks for existing configuration at the old location.

Secondly, the Cmedia devices have the ability to access a USB serial number from the optional EEPROM. The second change in the PR allows a user to configure a devserial parameter in chan_usbradio. This will be checked against devices with serial numbers, and if a match is found will use that device from the list. This works similar to the devstr parameter. Serial numbers take priority over any other configuration parameter. If a serial is configured, but not found we drop into the previous methods. The code also successfully handles cases where mixed devices with and without serial numbers also function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant