Jump to content



Photo
- - - - -

DOFLinx Adding SainSmart 8 Relay - Getting Error

DOFLinx SainSmart

  • Please log in to reply
7 replies to this topic

#1 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,805 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 20 June 2018 - 11:51 PM

When I add a Saintsmart board I get this Error every time

 

Error

Spoiler

 

log

Spoiler

Attached Files


Edited by Outhere, 20 June 2018 - 11:52 PM.


#2 TerryRed

TerryRed

    Pinball Fan

  • Silver Supporter
  • 1,960 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 21 June 2018 - 12:31 AM

if you have dof r3++ installed....and you have sainsmart configured in a cabinet.xml, then you "may" need to remove the sainsmart from the cabinet.xml because dofr3++ now autodetects sainsmart.



#3 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,805 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 21 June 2018 - 12:48 AM

Using dof r3++

Not in cabinet.xml

if you have dof r3++ installed....and you have sainsmart configured in a cabinet.xml, then you "may" need to remove the sainsmart from the cabinet.xml because dofr3++ now autodetects sainsmart.



#4 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,570 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 21 June 2018 - 02:01 AM

Once you add a SainSmart device it forces the output devices to be closed in between when DOFLinx is activated by a running process.  The reason for this is that the USB driver for a SainSmart can only handle one process talking to it at a time.  (this is why I don't like them!).

 

So I'm not sure if it is your issue, but you have now changed the way DOFLinx is working.  The close between process activation's can be forced via a parameter, but at work (midday here) I can't remember what its called.  You'll find it in the guide.

 

The issue becomes if you use any DOFLinx functions that need the output devices open in between being activated by running processes, then you can no longer do this and this may be causing you the issue.

 

To test if it is the SainSmart, or the change in the way things run, I'd suggest

1) disconnect the SainSmart cable

2) Check if things start up OK again

3) Find the parameter to force closing devices, turn it on with the SainSmart still disconnected

4) See if you get the same error

 

All very brief I know, but wanted to do a quick "brain dump" to try and help you keep moving.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#5 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,805 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 21 June 2018 - 05:05 AM

Everything works fine if I do not use the SainSmart..

After adding the parameter To force closing devices turned on with the SainSmart disconnected I do not get the Error...

It would appear the SainSmart board does that like the KL25Z microcontroller board, So the SainSmart board will have to go.

  Thanks TerryRed And DDH69 for your Help



#6 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,570 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 21 June 2018 - 05:17 AM

Glad to help.  Looks like some boosted outputs for the LEDWiz or Pinscape to me :)


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#7 supermario0523

supermario0523

    Hobbyist

  • Members
  • PipPip
  • 12 posts

  • Flag: United States of America

  • Favorite Pinball: Mario

Posted 17 August 2018 - 09:49 PM

So if I understand this correctly, there really is no viable workaround for the "Index outside the bounds" issue? 

 

I got everything to work on Pinball FX3 and DOFLinx... but as soon as I open PBX or VPX, and try to open up FX3 again, all bets are off. I'm trying to look for a process that VPX creates that I can have it close on exit that would allow the DOFLinx to talk to the FTDI device again, but I'm not seeing anything in system processes. 



#8 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,570 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 18 August 2018 - 06:06 AM

The issue that this thread relates to was never pursued to conclusion since Outhere took another path.
DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here





Also tagged with one or more of these keywords: DOFLinx, SainSmart