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.
|
04-06-2008, 03:09 PM
|
#1
|
|
Low Bitrate
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
|
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
|
|
|
04-06-2008, 04:56 PM
|
#2
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
|
Very nice!
|
|
|
04-06-2008, 10:06 PM
|
#3
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,137
|
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
|
|
|
04-07-2008, 08:16 AM
|
#4
|
|
MySQL Error
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
|
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
|
|
|
04-07-2008, 09:35 PM
|
#5
|
|
Newbie
Join Date: Jul 2007
Posts: 35
|
Excellent work. It's nice to have a third party tool to verify things are working.
|
|
|
04-08-2008, 01:05 AM
|
#6
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
|
sweeeeeeeeeeeeeeet!
|
|
|
04-11-2008, 09:35 PM
|
#7
|
|
Newbie
Join Date: Apr 2008
Posts: 3
|
Thanks, I'll try to convert this over to a c# sample...
|
|
|
04-11-2008, 10:28 PM
|
#8
|
|
Low Bitrate
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
|
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
|
|
|
04-11-2008, 11:05 PM
|
#9
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
|
Quote: Originally Posted by fjmf 
Thanks, I'll try to convert this over to a c# sample...
The main program is open source and already written in C#. 
|
|
|
04-22-2008, 11:43 AM
|
#10
|
|
Low Bitrate
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
|
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
|
|
|
04-22-2008, 12:01 PM
|
#11
|
|
MySQL Error
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
|
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
|
|
|
04-22-2008, 12:07 PM
|
#12
|
|
Low Bitrate
Join Date: Aug 2003
Location: Iowa
Vehicle: 2006 Subaru WRX STi
Posts: 95
|
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
|
|
|
04-22-2008, 12:14 PM
|
#13
|
|
MySQL Error
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
|
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
|
|
|
04-22-2008, 12:22 PM
|
#14
|
|
MySQL Error
Join Date: Sep 2004
Location: Woodbridge, VA
Vehicle: 2003/Acura/RSX
Posts: 4,838
|
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
|
|
|
04-22-2008, 12:23 PM
|
#15
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 7,214
|
Quote: Originally Posted by Sonicxtacy02 
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.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:36 PM.
|
|