Jump to content



Photo
- - - - -

Starting FTDI (Sainsmart) controller failed with error

FT_DEVICE_INFO_NODE Sainsmart

  • Please log in to reply
50 replies to this topic

#1 blokenamedblake

blokenamedblake

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: Australia

  • Favorite Pinball: Addaam's Family

Posted 29 October 2024 - 05:35 AM

I've have a prebuild cabinet for a few years now, and it was all getting a little laggy thanks to all of my tinkering.  I'm a software guy, definitely not hardware, so why is this confusing me so much?
 

I backed everything up, ran a fresh baller installer, updated over the Direct Output, edited a template ini file to match the new file structure, and boom.........

I'm sure I have just forgotten a step, and at least one of the solenoids fires when windows starts up, so help me VPForums, you're are my only hope.

 

 

 

29-Oct-24 16:04:37.033 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
29-Oct-24 16:04:37.033 - Starting up - version 8.13
29-Oct-24 16:04:37.049 - DOF Path = C:\DirectOutput\
29-Oct-24 16:04:37.049 - DirectOutput.dll version = 3.2.9036.21665  dated 27/09/2024 11:02:12 AM
29-Oct-24 16:04:37.080 - 64 bit operating system
29-Oct-24 16:04:37.080 - 64 bit application
29-Oct-24 16:04:37.080 - For support come and visit the community here http: //www.vpforums.org/index.php?showforum=104
29-Oct-24 16:04:37.080 - Pre-Reading DOFLinx.INI startup config file details
29-Oct-24 16:04:37.143 - DEBUG enabled with showing of window True
29-Oct-24 16:04:39.644 - Joystick # 1 detected : 32 buttons   Z-Axis
29-Oct-24 16:04:39.706 - DOFLinx device: 1 Initializing as Pinscape #16 with name=Pinscape Controller
29-Oct-24 16:04:39.706 - DOFLinx device:1 Pinscape setup with 22 outputs
29-Oct-24 16:04:39.909 - PinOne Port = 
29-Oct-24 16:04:39.909 - Starting FTDI (Sainsmart) controller failed with error - System.InvalidCastException: Conversion from type 'Object()' to type 'FT_DEVICE_INFO_NODE()' is not valid.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ObjectUserDefinedConversion(Object Expression, Type TargetType)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ChangeType(Object Expression, Type TargetType, Boolean Dynamic)
   at Microsoft.VisualBasic.CompilerServices.OverloadResolution.PassToParameter(Object Argument, ParameterInfo Parameter, Type ParameterType)
   at Microsoft.VisualBasic.CompilerServices.OverloadResolution.MatchArguments(Method TargetProcedure, Object[] Arguments, Object[] MatchedArguments)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ConstructCallArguments(Method TargetProcedure, Object[] Arguments, BindingFlags LookupFlags)
   at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
   at DOFLinx.MainForm.Start_DOF(Boolean TheDebug)
29-Oct-24 16:04:41.600 - Stopping ROM
 
 
 
 
Thank you, thank you, thank you!

Edited by blokenamedblake, 29 October 2024 - 05:36 AM.


#2 dvdedmen

dvdedmen

    Neophyte

  • Members
  • Pip
  • 2 posts

  • Flag: United States of America

  • Favorite Pinball: ACDC

Posted 04 November 2024 - 03:21 PM

Did you every find how to fix this. I"m in the same boat. Upgrading from and old 7.44 to this one. Cant get Sainsmart to be recognized. Tried having it make doflix.ini with DOFLconfig.exe  Then my own based Terry updated file with my toy config settings. My Dof work for Vpx. Had about 90 percent working in DoFlinx 7.44. followed guides, stuck on this. Any Luck? any Ideas? Thanks



#3 Saintintn

Saintintn

    Neophyte

  • Platinum Supporter
  • 8 posts
  • Location:Nashville, TN

  • Flag: United States of America

  • Favorite Pinball: Black Knight

Posted 05 November 2024 - 10:43 PM

Same issue here.  



#4 blokenamedblake

blokenamedblake

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: Australia

  • Favorite Pinball: Addaam's Family

Posted 05 November 2024 - 11:05 PM

Sadly, I have now started completely from scratch. New windows lite installamd a new baller installer, um install. Will post if it resolves it.
Was looking for excuse to trim down my 391 tables.

#5 Saintintn

Saintintn

    Neophyte

  • Platinum Supporter
  • 8 posts
  • Location:Nashville, TN

  • Flag: United States of America

  • Favorite Pinball: Black Knight

Posted 05 November 2024 - 11:24 PM

Oh man, that is EXACTLY what I'm trying to avoid.  Sigh...


So, 7.44 was still working.  Honestly, I think the early 8 versions were fine, too.  



#6 blokenamedblake

blokenamedblake

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: Australia

  • Favorite Pinball: Addaam's Family

Posted 05 November 2024 - 11:29 PM

I'm very sure I installed the wrong java, jre, windows driver or something when trying to "clean up" and update my vpin.
I will say with Ghost Spectre and the new baller installer, it runs much quicker. Still haven't configured DOF yet.

#7 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 06 November 2024 - 06:05 AM

Hi all.  I just saw this (sorry been away for a few weeks).  This is DOFLinx, its the change to get it working with the new DirectOutput that auto senses 32 / 64 bit.  The new DirectOuput WAS NOT fully backward compatible resulting in a lot of work on my part.  I did put the call pout but failed to find anyone to test the SainSmart.

 

I am currently working on the new FX3 release then will get back onto this.  There may be a little trial and error so do need someone(s) willing to test.


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

#8 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 06 November 2024 - 06:32 AM

8.11 would be the last version that would have worked correctly with a SainSmart device....... Looking now.


Edited by DDH69, 06 November 2024 - 06:32 AM.

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

#9 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 06 November 2024 - 09:38 AM

If someone (or more) could please test the attached (64 bit) for SainSmart with DEBUG=2 (or 1 if you want to see it) that would be great.

 

Please let me know the result and post the DEBUG.LOG

Attached Files


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

#10 rufus50

rufus50

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: Australia

  • Favorite Pinball: GetAWAY

Posted 06 November 2024 - 11:09 AM

Here are my results.

 

06-Nov-24 22:57:00.094 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
06-Nov-24 22:57:00.099 - Starting up - version 8.14 Beta 3
06-Nov-24 22:57:00.111 - DOF Path = C:\DirectOutput\x64\
06-Nov-24 22:57:00.113 - DirectOutput.dll version = 3.2.9036.21665  dated 27/09/2024 11:02:12 AM
06-Nov-24 22:57:00.136 - 64 bit operating system
06-Nov-24 22:57:00.137 - 64 bit application
06-Nov-24 22:57:00.137 - For support come and visit the community here http: //www.vpforums.org/index.php?showforum=104
06-Nov-24 22:57:00.139 - Pre-Reading DOFLinx.INI startup config file details
06-Nov-24 22:57:00.236 - DEBUG enabled with showing of window True
06-Nov-24 22:57:09.414 - Found Teensy controller named 'Pincab'
06-Nov-24 22:57:09.437 - Joystick # 1 detected : 32 buttons   Z-Axis
06-Nov-24 22:57:09.446 - DOFLinx device: 1 Initializing as Pinscape #1 with name=Pinscape Controller
06-Nov-24 22:57:09.449 - DOFLinx device:1 Pinscape setup with 22 outputs
06-Nov-24 22:57:09.565 - PinOne Port = 
06-Nov-24 22:57:09.567 - DOFLinx device: 2 Initializing as LEDWiz #8 with ID=0
06-Nov-24 22:57:09.570 - DOFLinx device:2 LEDWiz setup with 32 outputs
06-Nov-24 22:57:09.572 - This device is probably a PinScape emulating a LEDWiz, if it is, then it is better to assign toys to the Pinscape device not this one
06-Nov-24 22:57:09.574 - Point A
06-Nov-24 22:57:09.577 - Point B
06-Nov-24 22:57:09.580 - Point C
06-Nov-24 22:57:09.586 - Starting FTDI (Sainsmart) controller failed with error - System.InvalidCastException: Conversion from type 'Object()' to type 'FT_DEVICE_INFO_NODE()' is not valid.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ObjectUserDefinedConversion(Object Expression, Type TargetType)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ChangeType(Object Expression, Type TargetType, Boolean Dynamic)
   at Microsoft.VisualBasic.CompilerServices.OverloadResolution.PassToParameter(Object Argument, ParameterInfo Parameter, Type ParameterType)
   at Microsoft.VisualBasic.CompilerServices.OverloadResolution.MatchArguments(Method TargetProcedure, Object[] Arguments, Object[] MatchedArguments)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ConstructCallArguments(Method TargetProcedure, Object[] Arguments, BindingFlags LookupFlags)
   at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
   at DOFLinx.MainForm.Start_DOF(Boolean TheDebug)
06-Nov-24 22:57:11.422 - Stopping ROM
06-Nov-24 22:57:39.014 - Shutting down
06-Nov-24 22:57:40.031 - Program close

Edited by rufus50, 06 November 2024 - 11:59 AM.


#11 Saintintn

Saintintn

    Neophyte

  • Platinum Supporter
  • 8 posts
  • Location:Nashville, TN

  • Flag: United States of America

  • Favorite Pinball: Black Knight

Posted 06 November 2024 - 07:32 PM

By switching back to version 8.10, the issue is gone.

#12 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 07 November 2024 - 12:55 AM

By switching back to version 8.10, the issue is gone.

 

:tup:  Yes.  As I said, introduced in 8.11 with the change to DirectOutput.dll

 

I am having trouble working out an array definition required for FTDI devices at runtime as opposed to compile time.  What I've done is revert to the 8.10 method with a couple of critical changes.  This then relies on having a copy of DirectOutput.dll in the same folder as DOFLinx.exe (not really an issue for the time being), DOFLinx will still use the preferred DirectOutput.dll for all DOF work.  This should work, but as I've said I don't have a SainSmart device.  (Can you still buy them?  Any pointers to the most common device used so I can get one in Oz?)

 

Again if someone can try the attached beta with extra logging with DEBUG=2 and report back that would be great.

Attached Files


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

#13 rufus50

rufus50

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: Australia

  • Favorite Pinball: GetAWAY

Posted 07 November 2024 - 02:42 AM

Hi,thanks for the hard work really appreciate what you are doing for the community.I purchase my sainsmart board from this site.Im from Oz too.
 

 

https://www.umart.co...tion-12-v-60454



#14 rufus50

rufus50

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: Australia

  • Favorite Pinball: GetAWAY

Posted 07 November 2024 - 02:54 AM

Update:All working well thanks again DDH69. :otvclap:  :otvclap:



#15 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 07 November 2024 - 03:00 AM

Update:All working well thanks again DDH69. :otvclap:  :otvclap:

 

 

Thanks for testing.  This will allow me to get a release out there to fix this and the new FX3.  I will do that later today.

 

Thanks for the link, didn't think of Umart / MSY.  Sadly they only have them via delivery not in store ... suppose I'll have to suck up the $12 delivery  :thmbdn:


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

#16 rufus50

rufus50

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: Australia

  • Favorite Pinball: GetAWAY

Posted 07 November 2024 - 03:03 AM

If you have paypal i shoot you the 12bux.At least i can buy you a beer for the amazing work. :)


Edited by rufus50, 07 November 2024 - 03:04 AM.


#17 blokenamedblake

blokenamedblake

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: Australia

  • Favorite Pinball: Addaam's Family

Posted 07 November 2024 - 03:05 AM

Noooooo! If only I was a patient person.[face palm emoji]
Thank you for all your community work though. There is no way you can understand the joy that your efforts being to so many of us!

#18 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 07 November 2024 - 03:12 AM

If you have paypal i shoot you the 12bux.At least i can buy you a beer for the amazing work. :)

 

 

Thanks. Donation link is in the footer  :otvclap:


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

#19 rufus50

rufus50

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: Australia

  • Favorite Pinball: GetAWAY

Posted 07 November 2024 - 03:36 AM

 

If you have paypal i shoot you the 12bux.At least i can buy you a beer for the amazing work. :)

 

 

Thanks. Donation link is in the footer  :otvclap:

 

Done!! :dblthumb:



#20 Saintintn

Saintintn

    Neophyte

  • Platinum Supporter
  • 8 posts
  • Location:Nashville, TN

  • Flag: United States of America

  • Favorite Pinball: Black Knight

Posted 07 November 2024 - 10:40 PM

Ok, I downloaded V4 and I still have no Sainsmart. Even when I did debug =2, I get an error from Microsoft.NET Framework with Unhandled exception and that it cant load the DirectOutput.dll.





Also tagged with one or more of these keywords: FT_DEVICE_INFO_NODE, Sainsmart