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

CM108 driver data and mask possibly reversed #210

Closed
pfiliberti opened this issue May 28, 2019 · 2 comments
Closed

CM108 driver data and mask possibly reversed #210

pfiliberti opened this issue May 28, 2019 · 2 comments

Comments

@pfiliberti
Copy link

I believe that possibly the data and mask sent in function cm108_write may be reversed.
I had problems working with my device and i looked at some other code for diagnosing
uri's found here: https://github.com/AllStarLink/uridiag. I have mine now set to the followin:
io[2]=iodata;
io[3]=iomask;

That corrected the problem for me. Also my device shows it has a product id of 0x013c which direwolf has as CMEDIA_PID_HS100 however the diag code has it as CMEDIA_PID_CM108AH.
My device was not being recognized until I changed that so maybe we need to revisit the vendor ids? Thanks all hope this helps. 73

@wb2osz
Copy link
Owner

wb2osz commented May 29, 2019

Thanks for pointing that out. After reviewing the CMedia datasheets, we see that data (high, low) comes before the mode (input, output).

The product ID is problematic. It is sometimes listed as a range in the datasheets and is sometimes programmable. This is what I found in the datasheets.

CM108: 0008 - 000f
CM119: 0008 - 000f - programmable by MSEL and MODE pin.
CM109: 0008 - 000f - programmable by MSEL and MODE pin.
CM108B: 0012
CM119B: 0013
CM108AH: 0139 - product id programmable by MSEL and MODE pin.
CM119A: 013a
HS100: 013c

To make things more confusing,

"PID changes with the jumper pin setting so different setting have different PID. For customized product, customer can attach a 93C46 EEPROM to override the embedded VID, PID and provide addition serial number for each set. CM119A automatically detects 93C46 existence and performs the overwrite function during power up."

@wb2osz
Copy link
Owner

wb2osz commented Jul 6, 2019

Fixed in dev branch and will be in release 1.6.

342989b

@wb2osz wb2osz closed this as completed Jul 6, 2019
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

No branches or pull requests

2 participants