Page 7 of 8 FirstFirst 12345678 LastLast
Results 61 to 70 of 76

Thread: Sdk?

  1. #61
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    I'm running on an Intel box with XP, programming in VB2008 Express.

    Try cutting the code down to nothing and adding lines back in one by one to see what command causes the app to die.

  2. #62
    Low Bitrate UniqelyCommon's Avatar
    Join Date
    Nov 2008
    Location
    Behind you.
    Posts
    76
    I'm unable to connect to my FB from my VB code (also VB.net Express : ) but the Fusion Control can. The strange bit is I don't have an entry in my registry where I see some software looking. How does Fusion Control MDX find my Fusion Brain, since I can't seem to find my organic one?

  3. #63
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Quote Originally Posted by UniqelyCommon View Post
    I'm unable to connect to my FB from my VB code (also VB.net Express : ) but the Fusion Control can. The strange bit is I don't have an entry in my registry where I see some software looking. How does Fusion Control MDX find my Fusion Brain, since I can't seem to find my organic one?
    Try it with my code. You want the fusion brain code demonstration.
    http://lefebure.com/software/

    The only registry entry I read is one that stores the VID/PID of the connected brains. If you already know what that is (via Device Manager) then you don't have to check the registry to see what is available. In your case, I wonder if it cannot write that stuff to the registry due to a permission issue or something. Or maybe 2k1 released a new driver that plays differently. I've been using a driver from 6 months ago.

  4. #64
    Low Bitrate UniqelyCommon's Avatar
    Join Date
    Nov 2008
    Location
    Behind you.
    Posts
    76
    USB\VID_04D8&PID_000C&REV_0000
    USB\VID_04D8&PID_000C

    these are the id's I found in device manager, neither work, from my reading I THINK that they are in the right format, but I've been wrong before

    Maybe I should blame Vista? (heard from behind monitors everywhere: "Oooooh....*sigh*")

    I acquired your software earlier (actually, I grabbed the copy of FusionUSB.DLL that I'm using from it : ) and it can't find the registry entry (and thus connect) I've even tried manually placing the id's above in and nada, perhaps there is a different piece of information that I could grab from the device manager? (Ex: guid, or compatible Ids or...?)

    Thanks for the input on this rather...specific and weird problem

    EDIT: Hmm...using this DLL I should also be able to connect to my USB mouse and get a bunch of jarbled data, right?

  5. #65
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    If using LibUSB drivers, you must use the libusb files to communicate with the brain.

    If using FusionUSB.dll, you need to install the Fusion Brain with the Microsoft WinUSB drivers which we do not use anymore.

    These drivers do NOT play nice together. You must completely uninstall one before installing the other. And I mean completely or you will get random freezups.

    Vista is not to blame, I am developing for the Fusion Brain on it right now. I also use it on XP and it works just fine.

    I suggest looking here for examples on how to connect: http://www.fusioncontrolcentre.com/M...cationClass.cs
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #66
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    I'm still using the FusionUSB.dll and the VID/PID looks like:

    USB\VID_04D8&PID_000C\5&39258cb2&0&1

    Make sure you have the &0&1 on the end.

    Or start using the new drivers, which is a better long term solution.

  7. #67
    Low Bitrate UniqelyCommon's Avatar
    Join Date
    Nov 2008
    Location
    Behind you.
    Posts
    76
    Sooo...this would be the adaptation?
    Code:
    Public Class UCSettingsIO
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> <System.Runtime.InteropServices.ComVisible(False)> _
        Public Shared Function usb_init() As Integer
        End Function
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_find_busses() As Integer
        End Function
    ...
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_get_busses() As StructFormat
        End Function
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_open(ByRef usb_device) As StructFormat
        End Function
    ...
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_get_string(ByRef dev, ByVal index, ByVal langid, ByRef buf, ByVal buflen) As Integer
        End Function
    Or am I way off?
    To use libusb-win32 in your own programs include the supplied header file usb.h, and link against the import library (libraries for GCC, BCC, and MSVC are available)
    (http://libusb-win32.sourceforge.net/)

    I don't think these or the
    Code:
    using LibUsbDotNet;
    using LibUsbDotNet.Usb;
    using LibUsbDotNet.Usb.Main;
    used in the example file (THANK YOU) are VB.net friendly, just for C++/C#.net right?

  8. #68
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by UniqelyCommon View Post
    Sooo...this would be the adaptation?
    Code:
    Public Class UCSettingsIO
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> <System.Runtime.InteropServices.ComVisible(False)> _
        Public Shared Function usb_init() As Integer
        End Function
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_find_busses() As Integer
        End Function
    ...
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_get_busses() As StructFormat
        End Function
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_open(ByRef usb_device) As StructFormat
        End Function
    ...
        <System.Runtime.InteropServices.DllImport("C:\Program Files\Fusion Control Centre Uber MDX Edition\Drivers\libusb0.dll")> _
        Public Shared Function usb_get_string(ByRef dev, ByVal index, ByVal langid, ByRef buf, ByVal buflen) As Integer
        End Function
    Or am I way off?
    (http://libusb-win32.sourceforge.net/)

    I don't think these or the
    Code:
    using LibUsbDotNet;
    using LibUsbDotNet.Usb;
    using LibUsbDotNet.Usb.Main;
    used in the example file (THANK YOU) are VB.net friendly, just for C++/C#.net right?
    LibUSBDotNet is .NET friendly. VB.NET and C# compile to the same thing.

    LibUSB win32 is C++/VB friendly.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  9. #69
    Low Bitrate UniqelyCommon's Avatar
    Join Date
    Nov 2008
    Location
    Behind you.
    Posts
    76
    in a typical install I'm assuming the LibUSBDotNet file is:
    C:\Program Files\Fusion Control Centre Uber MDX Edition\Configurator\LibUsbDotNet.dll

  10. #70
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by UniqelyCommon View Post
    in a typical install I'm assuming the LibUSBDotNet file is:
    C:\Program Files\Fusion Control Centre Uber MDX Edition\Configurator\LibUsbDotNet.dll
    It is both there and in MDX's folder.

    It is not installed to the system location, so basically the program folder can be copy/pasted to a new computer and still work, assuming you have the dependencies installed.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Page 7 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. iGuidance SDK
    By Quattro in forum GPS
    Replies: 57
    Last Post: 06-23-2006, 07:37 AM
  2. SDK commands over the serial port ????
    By tolisn in forum Road Runner
    Replies: 4
    Last Post: 12-14-2005, 12:03 PM
  3. Developing Touchscreen SDK -- need feedback!
    By kevlar in forum Software & Software Development
    Replies: 3
    Last Post: 07-14-2005, 05:55 PM
  4. Replies: 9
    Last Post: 03-31-2005, 02:40 AM
  5. Destinator 3 SDK features working
    By loscooby in forum GPS
    Replies: 4
    Last Post: 09-21-2004, 12:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •