The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > Software

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-06-2008, 03:09 PM   #1
Low Bitrate
 
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
My Photos: (0)
Sample VB application to control a Fusion Brain

I've seen a few people here asking how to control a Fusion Brain with code in Visual Basic. I wrote a little demo application that shows exactly that, so people can copy the code into their own applications.

Note that this application sends commands through the FusionUSB.dll file, but I don't know who wrote that. The DLL is included in the zip files.

Screen shot:




Compiled Application

Source VB Code (Visual Basic 2008)

If you're coding in C#, you should be able to convert the code via one of the online VB->C converters. I can't guarantee that though.


-Lance
mx270a is offline   Reply With Quote
Sponsored Links
Old 04-06-2008, 04:56 PM   #2
Fusion Brain Creator
2k1Toaster's CarPC Specs
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
My Photos: (1)
Very nice!
2k1Toaster is online now   Reply With Quote
Old 04-06-2008, 10:06 PM   #3
FLAC
-zip-'s CarPC Specs
 
-zip-'s Avatar
 
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,137
My Photos: (1)
tyvm for this!
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
-zip- is offline   Reply With Quote
Old 04-07-2008, 08:16 AM   #4
MySQL Error
Sonicxtacy02's CarPC Specs
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
My Photos: (130)
wow... rr plugin might be on the way since you laid an example out. I'm good with vb6 but never used VB2k8. We'll see how it goes lol.
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
HARDWARE PROGRESS: 90%[/////////-]
Current Project: RRFusion, MovieTimes, RRMail, & CentraFusion
Sonicxtacy02 is offline   Reply With Quote
Old 04-07-2008, 09:35 PM   #5
Newbie
 
Join Date: Jul 2007
Posts: 35
My Photos: (0)
Excellent work. It's nice to have a third party tool to verify things are working.
ginigma is offline   Reply With Quote
Old 04-08-2008, 01:05 AM   #6
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
sweeeeeeeeeeeeeeet!
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 04-11-2008, 09:35 PM   #7
Newbie
 
Join Date: Apr 2008
Posts: 3
My Photos: (0)
Thanks, I'll try to convert this over to a c# sample...
fjmf is offline   Reply With Quote
Old 04-11-2008, 10:28 PM   #8
Low Bitrate
 
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
My Photos: (0)
New version is out. The screenshot and URLs in the first post point to the updated code.

I had one of the outputs labeled wrong, I added progress bars for the inputs, and I changed the inputs to show all 10 bits of data instead of only 8 bits.

-Lance
mx270a is offline   Reply With Quote
Old 04-11-2008, 11:05 PM   #9
Fusion Brain Creator
2k1Toaster's CarPC Specs
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
My Photos: (1)
Quote: Originally Posted by fjmf View Post
Thanks, I'll try to convert this over to a c# sample...

The main program is open source and already written in C#.
2k1Toaster is online now   Reply With Quote
Old 04-22-2008, 11:43 AM   #10
Low Bitrate
 
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
My Photos: (0)
This code has been updated to be compatible with the current FB firmware. The links in the original post go to the updated files. My old PIC was from late 2007, and some code had to be changed to get the new one to connect/disconnect correctly.

-Lance
mx270a is offline   Reply With Quote
Sponsored Links
Old 04-22-2008, 12:01 PM   #11
MySQL Error
Sonicxtacy02's CarPC Specs
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
My Photos: (130)
what time were the actual files updated.. i downloaded your source this morning and began working on converting it to an rr plugin. this was at about 11am eastern
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
HARDWARE PROGRESS: 90%[/////////-]
Current Project: RRFusion, MovieTimes, RRMail, & CentraFusion
Sonicxtacy02 is offline   Reply With Quote
Old 04-22-2008, 12:07 PM   #12
Low Bitrate
 
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
My Photos: (0)
Update was ~5 minutes before I posted the last message. Just check the version on the Form - I use the date as the version. If it's today's date, you have today's code.

2k1toaster and I have been discussing the send/receive stuff in the Disconnect sub. It shouldn't be necessary to Receive data there, but it's the only way I can get it to disconnect and reconnect nicely. Can you try remarking out the recieve if/then in the disconnect Sub to see if it will allow you to reconnect after you disconnect?

-Lance
mx270a is offline   Reply With Quote
Old 04-22-2008, 12:14 PM   #13
MySQL Error
Sonicxtacy02's CarPC Specs
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
My Photos: (130)
will do once i get the new source downloaded.. i gotta say thank you VERY much for releasing this open source as it has allowed a newb like me to understand how to communicate with the brain. If/when i release an rr plugin i will DEFINITELY be sure to credit you.
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
HARDWARE PROGRESS: 90%[/////////-]
Current Project: RRFusion, MovieTimes, RRMail, & CentraFusion
Sonicxtacy02 is offline   Reply With Quote
Old 04-22-2008, 12:22 PM   #14
MySQL Error
Sonicxtacy02's CarPC Specs
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
My Photos: (130)
ok.. when i comment then if/then statement the FB will not reconnect. the only way i can re-establish a connection is if i close the program AND disconnect/reconnect usb. Now with the if/then uncommented it connects/disconnects/reconnects as it should.
__________________
03 Acura RSX Coupe
a K.I.S.S Flash, VB, and Autoit Programmer
HARDWARE PROGRESS: 90%[/////////-]
Current Project: RRFusion, MovieTimes, RRMail, & CentraFusion
Sonicxtacy02 is offline   Reply With Quote
Old 04-22-2008, 12:23 PM   #15
Fusion Brain Creator
2k1Toaster's CarPC Specs
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
My Photos: (1)
Quote: Originally Posted by Sonicxtacy02 View Post
will do once i get the new source downloaded.. i gotta say thank you VERY much for releasing this open source as it has allowed a newb like me to understand how to communicate with the brain. If/when i release an rr plugin i will DEFINITELY be sure to credit you.

If you know how to make a COM object I would be forever greatful!

It just isnt working for me.

And I have not updated the source in a long time. I will package it all together and post it for you. That USB communication however has not changed at all.
2k1Toaster is online now   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrate fusion brain commands into road runner buttons scotty562 Software 13 07-18-2008 09:04 AM
power fusion brain from car battery customaudioman Fusion Brain 3 03-14-2008 06:41 PM
Skinning a custom VB application RJP350Z Software & Software Development 0 01-11-2005 08:36 AM
VB front end for SB Audigy control? wysocki Software & Software Development 2 12-14-2004 07:36 PM
VB Control for Character LCD's Jamez_Warner LCD/Display 0 05-17-2004 03:55 AM


All times are GMT -5. The time now is 03:36 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics