Page 1 of 8 12345678 LastLast
Results 1 to 10 of 76

Thread: Sdk?

  1. #1
    Live and Kickin'
    Arby's Avatar
    Join Date
    Dec 2000
    Location
    Houston
    Posts
    1,377

    Sdk?

    I'm interested in one of these things, but haven't had time to read through the mega-thread.

    Is there a software development kit available? Just some simple functions that I could include to read/set the inputs and outputs? It seems clunky to let your software run in the background and send commands through that. :S

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by Arby View Post
    I'm interested in one of these things, but haven't had time to read through the mega-thread.

    Is there a software development kit available? Just some simple functions that I could include to read/set the inputs and outputs? It seems clunky to let your software run in the background and send commands through that. :S
    Well currently, the program interfaces with a dll provided by Microchip. That dll is free for anyone to use, and it is really really simple to implement. Basically, just call the open port, command, send the stream, receive the stream, and close the port, and then you have sent and received a coded 64byte packet stream. Decoding it is relatively simple. That is the only way right now.

    However we do have a volunteer doing some work on coding a general dll. So it would be your code --> his dll --> microchip's dll --> hardware, so instead of encoding/decoding packet streams, all you have to do is tell which port is what.
    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

  3. #3
    Variable Bitrate P3D4T0R's Avatar
    Join Date
    Dec 2006
    Location
    MA, USA
    Posts
    403
    I thought you were putting together a DLL that would simplify all of that into one COM DLL?... So I didn't have to use that poorly thrown together one that I built for StreetDeck, which reminds me, I need to finish that :P
    "Mess with the best, die like the rest."
    Work Log --> Old Car (Totaled)
    Work Log v2 --> New Car (Totaled)
    Work Log v3 --> GMC Suburban K2500 (Engine died)
    Work Log v4.5 --> 05 Toyota Tundra DC SR5

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by P3D4T0R View Post
    I thought you were putting together a DLL that would simplify all of that into one COM DLL?... So I didn't have to use that poorly thrown together one that I built for StreetDeck, which reminds me, I need to finish that :P
    I was doing it. And I failed at it. I am not very good with writing dlls. I never was able to get shared memory working. However we do have someone who volunteered to help out, and try to get the dll working. He was making great progress on it last I heard. So it is coming hopefully, just not by myself!
    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

  5. #5
    Variable Bitrate P3D4T0R's Avatar
    Join Date
    Dec 2006
    Location
    MA, USA
    Posts
    403
    Awsome... I really want to get the StreetDeck mod working but the DLL's just dont play well at all with it... now
    "Mess with the best, die like the rest."
    Work Log --> Old Car (Totaled)
    Work Log v2 --> New Car (Totaled)
    Work Log v3 --> GMC Suburban K2500 (Engine died)
    Work Log v4.5 --> 05 Toyota Tundra DC SR5

  6. #6
    Newbie
    Join Date
    Aug 2007
    Posts
    6

    Question

    Any update on this? I'm particularly interested in knowing how to program directly to the XP/Vista DLL that was recently developed.

    I'm assuming I can just reference the DLL in a VS project, but what are the method signatures, etc? Anything else I need to know?

    Thanks!

  7. #7
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    this is all that is needed to call the device (C#):

    Code:
    public static class FusionUSB
            {
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern bool FUSB_Initialize(ref UInt32 pFusionUSB, String deviceID, UInt32 instanceNumber);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern bool FUSB_Receive(UInt32 pFusionUSB, byte[] buffer);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern bool FUSB_Send(UInt32 pFusionUSB, byte[] buffer);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern UInt32 FUSB_Free(ref UInt32 pFusionUSB);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern bool FUSB_printf(UInt32 pFusionUSB);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern UInt32 FUSB_GetWinUSBerror(UInt32 pFusionUSB);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern UInt32 FUSB_GetFUSBstatus(UInt32 pFusionUSB);
    
                [System.Runtime.InteropServices.DllImport("FusionUSB.dll")]
                public static extern String FUSB_GetDeviceInstanceID(UInt32 pFusionUSB);
    
            }
    The easiest way is to initialize first by passing in the device ID and getting a pointer. Then just use send (byte[64]) and then receive which returns a byte[64]. When you are done call Free with passing in the pointer.
    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

  8. #8
    Newbie
    Join Date
    Aug 2007
    Posts
    6
    Excellent!

    I guess my only other question at this point is where I can find your data format for the byte arrays that are sent and received. Sorry in advance if I missed them...

  9. #9
    Constant Bitrate
    Join Date
    Jul 2005
    Posts
    221
    dont forget road runner ;D

  10. #10
    Newbie
    Join Date
    Aug 2007
    Posts
    6

    Question

    Anyone??? I have sifted through the source but it would take me forever to trace through everything and take guesses as to what format the data is sent and received in.

    The software I'm developing requires a custom interface to the Fusion Brains that I have purchased, so I am really in need of this information (the sooner the better).

    Thank you!

Page 1 of 8 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
  •