Page 3 of 8 FirstFirst 12345678 LastLast
Results 21 to 30 of 77

Thread: Fusion Brain program for Linux

  1. #21
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    2,127
    Unfortunately I do not have it checked in anywhere, the one kev is working with is the latest copy. I've been on travel for work a lot and have a couple other projects so I haven't had much time to work on it.
    "stop with the REINSTALLS, what do you think we got some lame-o installer!!!" - mitchjs
    RevFE
    My Shop

  2. #22
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    Ok I'll take a look at why its not working for me and submit a patch

  3. #23
    Newbie
    Join Date
    Aug 2008
    Location
    Decatur Illinois
    Posts
    41
    This is great. If I could get my GPS software to work in Linux then I would absolutely scrap windows. The more applications that can be run under Linux, the less we will be held hostage by windows.

  4. #24
    FLAC
    Join Date
    Jan 2008
    Location
    Dartmouth, MA
    Posts
    914
    In trying to build the fusion brain files on ARM linux, I get the following errors:

    root@debian:~/FB# qmake && make
    WARNING: Found potential symbol conflict of FBTest.cpp (FBTest.cpp) in SOURCES
    WARNING: Found potential symbol conflict of FBTest.h (FBTest.h) in HEADERS
    Makefile:160: warning: overriding commands for target `moc_FBTest.cpp'
    Makefile:157: warning: ignoring old commands for target `moc_FBTest.cpp'
    g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/local/include/libusb-1.0 -I/usr/include/qt3 -o fblib.o fblib.cpp
    In file included from fblib.cpp:1:
    fblib.h:3:20: error: libusb.h: No such file or directory
    In file included from fblib.cpp:1:
    fblib.h:16: error: ISO C++ forbids declaration of 'libusb_device' with no type
    fblib.h:16: error: expected ';' before '*' token
    fblib.h:17: error: ISO C++ forbids declaration of 'libusb_device_handle' with no type
    fblib.h:17: error: expected ';' before '*' token
    fblib.h:18: error: ISO C++ forbids declaration of 'libusb_device' with no type
    fblib.h:18: error: expected ';' before '*' token
    fblib.h:19: error: ISO C++ forbids declaration of 'libusb_context' with no type
    fblib.h:19: error: expected ';' before '*' token
    fblib.cpp: In constructor 'fblib::fblib()':
    fblib.cpp:5: error: 'context' was not declared in this scope
    fblib.cpp:5: error: 'libusb_init' was not declared in this scope
    fblib.cpp:6: error: 'libusb_set_debug' was not declared in this scope
    fblib.cpp: In destructor 'fblib::~fblib()':
    fblib.cpp:10: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:10: error: 'libusb_close' was not declared in this scope
    fblib.cpp:11: error: 'devs' was not declared in this scope
    fblib.cpp:11: error: 'libusb_free_device_list' was not declared in this scope
    fblib.cpp:12: error: 'context' was not declared in this scope
    fblib.cpp:12: error: 'libusb_exit' was not declared in this scope
    fblib.cpp: In member function 'void fblib::init()':
    fblib.cpp:16: error: 'libusb_device' was not declared in this scope
    fblib.cpp:16: error: 'dev' was not declared in this scope
    fblib.cpp:17: error: 'devs' was not declared in this scope
    fblib.cpp:17: error: 'libusb_get_device_list' was not declared in this scope
    fblib.cpp:21: error: aggregate 'libusb_device_descriptor desc' has incomplete type and cannot be defined
    fblib.cpp:22: error: 'libusb_get_device_descriptor' was not declared in this scope
    fblib.cpp:26: error: 'fusionBrain' was not declared in this scope
    fblib.cpp: In member function 'void fblib::connect()':
    fblib.cpp:35: error: 'fusionBrain' was not declared in this scope
    fblib.cpp:35: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:35: error: 'libusb_open' was not declared in this scope
    fblib.cpp:41: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:41: error: 'libusb_claim_interface' was not declared in this scope
    fblib.cpp: In member function 'void fblib::setSingleOutput(int, bool)':
    fblib.cpp:77: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:77: error: 'libusb_bulk_transfer' was not declared in this scope
    fblib.cpp: In member function 'void fblib::setAllOutput(unsigned char, unsigned char)':
    fblib.cpp:128: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:128: error: 'libusb_bulk_transfer' was not declared in this scope
    fblib.cpp:142: warning: suggest parentheses around comparison in operand of &
    fblib.cpp:142: warning: suggest parentheses around comparison in operand of &
    fblib.cpp:110: warning: unused variable 'data_send'
    fblib.cpp: In member function 'int fblib::getAllOutputStatus()':
    fblib.cpp:167: error: 'fusionBrainHandle' was not declared in this scope
    fblib.cpp:167: error: 'libusb_bulk_transfer' was not declared in this scope
    fblib.cpp:151: warning: unused variable 'data_send'
    fblib.cpp:152: warning: unused variable 'actualSent'
    fblib.cpp:153: warning: unused variable 'EP_OUT'
    fblib.cpp:162: warning: unused variable 'dataSendResult'
    fblib.cpp:166: warning: unused variable 'stop'
    make: *** [fblib.o] Error 1
    Any ideas on how to quickly fix this? I don't want to start mucking around in the source if I don't have to.
    My Nearly Complete Car:
    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

    Micro Control Center... Control Your Car Across the Internet
    http://www.mp3car.com/fusion-brain/1...-internet.html

    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
    http://paulfurtado.com/

  5. #25
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    First, you should grab fbd from the linuxice repo as that has the latest code. I also checked in a small fix today.

    When I built this I needed to install libusb-0.1-4 and libusb-dev so make sure you have those. You may need libusb-1.0-0 , libusb-1.0-0-dev , libqt4-dev but I think at least the libusb's were for an older version.

    hth
    charles

  6. #26
    FLAC
    Join Date
    Jan 2008
    Location
    Dartmouth, MA
    Posts
    914
    Well it build successfully but now I have a new problem:
    root@debian:~/fbsvn# ./fbd
    Failed to register service: 'org.openice.fbd' on the system bus
    My Nearly Complete Car:
    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

    Micro Control Center... Control Your Car Across the Internet
    http://www.mp3car.com/fusion-brain/1...-internet.html

    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
    http://paulfurtado.com/

  7. #27
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    Yeah the install/setup for fbd needs to be added to a README and/or the makefile. You can race me to find it, but tripzero mentions what to do in the post where he announced fbd

  8. #28
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    Duh, that would be this thread

    To install, run qmake, make. Copy FusionBrain.conf to /etc/dbus-1/system.d/. Run as root.

    See fbddbus.xml for information on the DBus methods and signals available.
    Also you may find this useful for testing with dbus:

    Monitor a temperature sensor on input port 1 taking 10 samples (averaged)

    watch dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.GetAnalogValue int32:1 int32:10

    Turn on a relay plugged into output port 0

    dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:0 boolean:true

  9. #29
    FLAC
    Join Date
    Jan 2008
    Location
    Dartmouth, MA
    Posts
    914
    I really need to read up on dbus some time.

    But right now, I have a new issue:

    Now that the FBD works, when I have fbd running and I try to query it through dbus, I get a segmentation fault. No fusion brain is actually plugged in, I admit. Do you think this is the problem or is it something else?
    My Nearly Complete Car:
    http://www.mp3car.com/vbulletin/show...ed-car-pc.html

    Micro Control Center... Control Your Car Across the Internet
    http://www.mp3car.com/fusion-brain/1...-internet.html

    Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
    http://paulfurtado.com/

  10. #30
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Some lurkers probably already know what I'm going to do with this, but for now I don't want to announce it on the FB forum just yet.

    Tripzero, is there any chance you could create a dummy program, something that does exactly what fbd does from the perspective of dbus, but doesn't require an FB to do it? Just generate random numbers for a couple of analog inputs, and signal them on the bus that you use. Is that possible?

    Thanks,
    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

Page 3 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. *NEW* USB Input/Output Board -- Fusion Brain
    By 2k1Toaster in forum Fusion Brain
    Replies: 1123
    Last Post: 02-22-2010, 03:33 AM
  2. Replies: 17
    Last Post: 01-16-2009, 10:48 AM
  3. Replies: 3
    Last Post: 09-23-2008, 10:00 PM
  4. How to add a Fusion Brain instance to your configuration file
    By 2k1Toaster in forum FB Documentation and Tutorials
    Replies: 0
    Last Post: 06-07-2008, 09:42 AM
  5. Noob has some biginner questions about the Fusion Brain
    By phreaknes in forum Fusion Brain
    Replies: 14
    Last Post: 04-29-2008, 03:57 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
  •