mjrgh / PinscapeConfigTool

Pinscape Controller Config Tool. This is a Windows program that helps you set up the Pinscape Controller. The Pinscape Controller is firmware that runs on the KL25Z microcontroller board, providing I/O functions uniquely designed for virtual pinball cabinets.
https://developer.mbed.org/users/mjr/code/Pinscape_Controller_V2/
Other
16 stars 7 forks source link

Managing new expansion board #22

Closed arnoz26 closed 3 years ago

arnoz26 commented 3 years ago

Hello there !

I'm actually adding my RigMaster board to Pinscape Config Tool. Everything is fine with it. I also need to add a new expansion board (Mollusk, 1 TLC5940). I've made a new Ext3 (as ext 1 for mosfet power board & ext 2 for chime board) My only issue is that the ext3 count is not keep in count with save, load and load from USB. I've already add it in MainSteup.cs line 646 : "14 expansionBoards {type:$B,version:$B,ext0:$B,ext1:$B,ext2:$B,ext3:$B}", But i can't find the way to manage it . If you could help me it will be a pleasure

EDIT : I think I've found the issue, it's a firmware issue. Is it possible to use the ID14 byte 8 for my Mollusk expansion board please, then add commentary for byte 3 "4 = RigMaster (arnoz.com)", then i'll will upload my code.

Thanks a lot

mjrgh commented 3 years ago

I've already add it in MainSteup.cs line 646 : "14 expansionBoards {type:$B,version:$B,ext0:$B,ext1:$B,ext2:$B,ext3:$B}", But i can't find the way to manage it .

I'm afraid that the firmware only stores three 'ext' bytes, so if you wanted to add a fourth byte, you'd have to modify the firmware.

Do you actually need to add a new variable here, or can you just repurpose one of the existing ones? In other words, with your boards, is "number of MOSFET power boards" a factor at all when using your main board? Is "number of chime boards" a factor? If you can plug power boards and chime boards into your main board, then the answer is yes. If you can't plug those boards in to your main board, then there's no need for variables representing "Number of power boards" and "number of chime boards", because those are always just "zero", right?

If that's the case, then you can just repurpose ext1 as your add-on board counter. ext1 isn't defined in the protocol as "number of MOSFET boards"; it's defined in the protocol as "additional data byte #1 for the selected expansion board". It only means "number of MOSFET boards" when the board type is set to '1' for Pinscape Expansion Boards.

By the way, it would be a good idea to add your new board type to the firmware documentation, to avoid confusion for anyone else adding another new board type in the future. I assume you're using "3" as your board type ID?

Regards, Mike


From: arnoz26 @.> Sent: Thursday, September 9, 2021 3:12 AM To: mjrgh/PinscapeConfigTool @.> Cc: Subscribed @.***> Subject: [mjrgh/PinscapeConfigTool] Managing new expansion board (#22)

Hello there !

I'm actually adding my RigMaster board to Pinscape Config Tool. Everything is fine with it. I also need to add a new expansion board (Mollusk, 1 TLC5940). I've made a new Ext3 (as ext 1 for mosfet power board & ext 2 for chime board) My only issue is that the ext3 count is not keep in count with save, load and load from USB. I've already add it in MainSteup.cs line 646 : "14 expansionBoards {type:$B,version:$B,ext0:$B,ext1:$B,ext2:$B,ext3:$B}", But i can't find the way to manage it . If you could help me it will be a pleasure

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mjrgh/PinscapeConfigTool/issues/22, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB7DK3LXWQGUHUI3FXHM73DUBCCBNANCNFSM5DWY2VAQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

arnoz26 commented 3 years ago

I'm gonna watch for adding ext3 on firmware, because basically people can add Pinscape power board as it's a tlc based board. I tried to put my board as EXT1, but when i choose outputs, I have MOLLUSK + PINSCAPE POWER BOARD seeing on pinscape, I want only Mollusk. that's why i use EXT3.

For the RigMaster type, i used 4 because 3 is for Pinscape Lite

arnoz26 commented 3 years ago

Everything seems OK with config tool & firmware. I will try to make an upload.