-
Notifications
You must be signed in to change notification settings - Fork 145
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
OPP Lamp Driver Numbering seems to truncate the board number #1867
Comments
Could you try assigning a chain number to the port and using the full number to address the lights? Like assign it to chain 0 and then use the number 0-2-16. I am wondering if there is an issue with the shorthand numbering. I am not as familiar with the PSOC version of OPP and don't have a hardware test setup for it. |
Didn't know how to set the chain(s)? But this boots: #config_version=6
hardware:
platform: opp
driverboards: gen2
lights: opp
opp:
baud: 115200
ports: /dev/cu.usbmodem101
# chains: ???
lights:
l_backbox_match_00:
subtype: matrix
number: "/dev/cu.usbmodem101-0-0"
l_grooveline_lit:
subtype: matrix
number: "/dev/cu.usbmodem101-2-1" While this: ...
lights:
l_backbox_match_00:
subtype: matrix
number: "/dev/cu.usbmodem101-0-0"
l_grooveline_lit:
subtype: matrix
number: "/dev/cu.usbmodem101-2-0" Has the same result:
So is this just the duplicate light check specific to OPP Cypress? |
Actually, this is probably what you meant? But same result... if the last digit is the same, it thinks it's a dup: #config_version=6
hardware:
platform: opp
driverboards: gen2
lights: opp
opp:
baud: 115200
ports: /dev/cu.usbmodem101
chains:
0: /dev/cu.usbmodem101
lights:
l_backbox_match_00:
subtype: matrix
number: 0-0-0
l_grooveline_lit:
subtype: matrix
number: 0-2-0 # throws but number: 0-2-1 works |
The shorthand is not relevant for the STM32 OPP since each board is it's own chain since it is USB connected. We always use the full 3 element number. That is what I recommend for you as well. Now to figure out why it is doing this... |
So would you say my last config example above is best practice going forward for OPP numbering (chain-board-number)? With a loop of Cypress boards, the chain would always be static 0? And so each number would be:
From looking at the source, I feel like the |
Yes, that looks like a good practice. Similarly, STM32 users always have the middle number as a 0. I have never used an Incand card. I have only use neopixels or coil outputs as light drivers. Let me take a look in a couple places and report back. |
I submitted #1868 as a naive first whack at a fix. I don't know the code base well enough to know if this is a good approach or not. |
Ahhh, that would explain why there wouldn't ever be a dup for that setup then. |
We're trying to run a chain of 6 OPP Cypress boards with
mpf 0.57.x
(both from source and through the package manager) in this project.. We kept running into Duplicate Switch issues such as this one:Our lights config is from here. We've tried changing the subtype, adding/dropping the
platform: opp
, dropping the tags and just about everything we can think of. It seems like the "board" part of the light numbering is being truncated somewhere per print debugging the _check_duplicate_light_numbers method. The game seems to boot as long as the second number is different.I was able to reproduce with this simple config:
Sure enough, we get more or less the same error:
Moving the second lamp to number
2-1
boots without issue:Here's the result of our
mpf hardware scan
The text was updated successfully, but these errors were encountered: