Mp3car Home Page The mp3Car.com Forums The mp3Car.com Store The mp3Car.com Blog About mp3Car.com    

Sponsored links

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

Notices

Reply
 
Share Thread Tools Display Modes
Old 09-24-2008, 10:41 AM   #1
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,848
COM Sneak Preview

With the help from Sonic, Fusion Control Centre is now COM enabled.

You can start RoadRunner or FCC in any order. Once either is running you can close and restart either as well at any time, hasn't broken yet. I dont know the internals of RR, but it hasnt crashed or anything with FCC restarting. The DLL tries to always give back a value, so there shouldnt be anything wrong.

More coming later, but here is a preview:



2k1Toaster is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-24-2008, 11:27 AM   #2
Newbie
 
rightsidenov's Avatar
 
Join Date: Sep 2008
Location: Orlando, FL
Posts: 17
So what does this mean exactly? I'm relatively new here. I do know what RR is, as well as FB. But what is this COM thing? A way to communicate between the two? Was that not able before? Thanks!

I can't wait till I build a carPC, get a FB and start playing around with it!
rightsidenov is offline   Reply With Quote
Old 09-24-2008, 11:30 AM   #3
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,848
Quote: Originally Posted by rightsidenov View Post
So what does this mean exactly? I'm relatively new here. I do know what RR is, as well as FB. But what is this COM thing? A way to communicate between the two? Was that not able before? Thanks!

I can't wait till I build a carPC, get a FB and start playing around with it!

Yes COM is a way of communicating between the 2 applications. We supply our own software for free unlike others, and previously all you needed to do was just embed the application like you would a GPS app into any other program like RR or CF or SD.

Now with COM, our program will run behind the scenes if you want it to, and your frontend program of choice can do the display natively.
2k1Toaster is offline   Reply With Quote
Old 09-24-2008, 11:35 AM   #4
Variable Bitrate
 
Join Date: Mar 2006
Posts: 250
Hurray! Been waiting for this a long time.
BlackStealth is offline   Reply With Quote
Old 10-10-2008, 01:42 AM   #5
Newbie
 
Join Date: Mar 2008
Posts: 16
Calling FB from app other than RoadRunner

Any chance you can give me an idea of how to get started using the new COM interface from code (i.e. VB.net, not from RR)? I've tried a few different methods such as

Code:
Dim myBrain As New FusionCOM.FusionServer myBrain.SetDigitalOutValue(0, 1) myBrain.SetDigitalOutValue(1, 1) 'etc...

but I can't seem to make contact with the board. Is there something that needs to be done to initialize the connection and specify the board you want to communicate with?

I appreciate that you're pretty busy so thank you for helping in advance...

JoeBerni
joeberni is offline   Reply With Quote
Old 10-10-2008, 01:56 AM   #6
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,848
Quote: Originally Posted by joeberni View Post
Any chance you can give me an idea of how to get started using the new COM interface from code (i.e. VB.net, not from RR)? I've tried a few different methods such as

Code:
Dim myBrain As New FusionCOM.FusionServer myBrain.SetDigitalOutValue(0, 1) myBrain.SetDigitalOutValue(1, 1) 'etc...

but I can't seem to make contact with the board. Is there something that needs to be done to initialize the connection and specify the board you want to communicate with?

I appreciate that you're pretty busy so thank you for helping in advance...

JoeBerni


Some things to note:

MDX must be running, it does the actual communication. MDX will initialize everything. MDX can run in the system tray from start, so that may be what you want.

Then make a new instance of the Server Class. And call MyServerClass.xxxx where xxxx is:

GetAnalogueValue
GetDigitalOutValue
GetDigitalInValue
GetNumericVariableValue
GetBooleanVariableValue

Each of those functions takes an int32 as a parameter. The int is the index of the item as laid out in the configuration file. Object 0 is the first (topmost) and Object n is the last (bottommost)

Also MDX must have the COM enabled by setting status="enabled" in the configuration file's general section.

Last edited by 2k1Toaster; 10-10-2008 at 02:05 AM.
2k1Toaster is offline   Reply With Quote
Old 10-10-2008, 02:04 AM   #7
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,848
Also, if you want to set things, not just get (like change a digital output), then you will need to fire the COM_CommandReceived event either by calling it directly if your language supports it, OR by calling Server_SendBackCommandEvent which takes a string "command"as a parameter.

The string command is interpreted by MDX as specified in the configuration file in the COM section.

If your COM section looks like this:
Code:
<com status="enabled"> <commands> <command id="myCustomCOMCommand" minimum_delta_vote_time="100"> <do function="trigger output" functionTargetID="Digital Output 0" vote_opinion="on" vote_priority="medium"></do> <do function="trigger output" functionTargetID="Digital Output 1" vote_opinion="on" vote_priority="medium"></do> </command> </commands> </com>

So if you call COM_CommandReceived("myCustomCOMCommand"); then MDX will interpret it and Turn on Digital Output 0 and Digital Output 1
2k1Toaster is offline   Reply With Quote
Old 10-10-2008, 02:20 AM   #8
Newbie
 
Join Date: Mar 2008
Posts: 16
Thanks Nick! Appreciate the great (and fast) response.
joeberni is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
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 On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
video preview problem Morpheus2010 Road Runner 0 11-08-2007 04:35 AM
Preview for new features? jAyRoCkS24r StreetDeck 4 12-25-2006 07:31 PM
flash skin preview holistic RR Skins 58 07-09-2005 05:17 AM
sneak preview FunkDaMonkMan Bruno Speech Recognition 4 05-12-2005 12:59 AM
AIMEE Sneak preview Confused Software & Software Development 56 10-01-2004 10:36 AM


All times are GMT -5. The time now is 12:35 AM.


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