Page 7 of 8 FirstFirst 12345678 LastLast
Results 61 to 70 of 76

Thread: Fusion Brain program for Linux

  1. #61
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,169
    Blog Entries
    53
    Quote Originally Posted by newkirk View Post
    Ummm, what program are you referring to? And why are you looking for a .exe file for a linux program anyway?

    j
    highlight all of the text in my last post, you'll understand
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  2. #62
    Newbie
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    27
    Quote Originally Posted by 2k1Toaster View Post
    I think he is jesting... If I remember correctly he is a linux man, he knows there arent any exe's, just giving the thread a bump.


    j

  3. #63
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Quote Originally Posted by cgalpin View Post
    Fantastic work guys!

    As soon as I learned about the Fusion Brain I ordered one and it arrived today. I couldn't resist giving it a whirl so I downloaded/built Malcom's FB package and giggled like a little schoolgirl as I toggled LEDs

    I then downloaded/built Kev's fbd and ran it per the instructions above. I know next to nothing about dbus so figured a quick commandline test was a good start, but I ran into problems. It's past my bedtime (I'm getting old) so I figured I'd ask in case there was a quick answer. Using dbus-send, I'm not sure how to toggle one of the digital outputs. I have #1 turned on right now so I tried to turn it off with

    cgalpin@jaunty:~/fbd$ dbus-send --session --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int16:1 boolean:false
    Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.openice.fbd was not provided by any .service files
    cgalpin@jaunty:~/fbd$ dbus-send --session --print-reply --dest="org.openice.fbd.fusionbrain" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int16:1 boolean:false
    Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.openice.fbd.fusionbrain was not provided by any .service files

    As you can see, it doesn't seem to understand the destinations. Any ideas? I tried a few other things and perhaps made progress with

    cgalpin@jaunty:~/fbd$ dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int16:1 boolean:false
    Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'SetSingleOutput' in interface 'org.openice.fbd.fusionbrain' at object path '/org/openice/fbd' (signature 'nb')

    Also, I first build FB using libusb-1.0-0 since it was newer, and other than a #include and a makefile tweak it built and ran fine. When I went to build fbd, there were a boatload of differences to both FB, but also the version of usb. I started making the changes from usb to libusb but then started finding functions that didn't seem to have libusb analogs and gave up and just installed libusb-0.1-4 and libusb-dev and it built fine unmodified. In a nutshell, what is the difference between these versions?

    Anyway, just wanted to say thanks and I look forward to being able to get this working, and take some time to contribute myself.

    charles
    Same problem here. I've read this thread but don't understand how you fixed it. Here's what I've done:

    1. Installed fbd
    2. Installed libusb files
    3. Tried to test the service with: dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true

    Response was:

    root@iPlug:/etc# dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true
    Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.openice.fbd was not provided by any .service files

    I found the .services files in /usr/share/dbus-1/services and tried to duplicate and existing one for org.openice.fbd naming it org.openice.fbd.servce but alas, it did not work. Here's what I put in it:

    Code:
    [D-BUS Service]
    Name=org.openice.fbd
    Exec=/usr/bin/fbd

    Any help is appreciated.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  4. #64
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by Bugbyte View Post
    Same problem here. I've read this thread but don't understand how you fixed it. Here's what I've done:

    1. Installed fbd
    2. Installed libusb files
    3. Tried to test the service with: dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true

    Response was:

    root@iPlug:/etc# dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true
    Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.openice.fbd was not provided by any .service files

    I found the .services files in /usr/share/dbus-1/services and tried to duplicate and existing one for org.openice.fbd naming it org.openice.fbd.servce but alas, it did not work. Here's what I put in it:

    Code:
    [D-BUS Service]
    Name=org.openice.fbd
    Exec=/usr/bin/fbd

    Any help is appreciated.
    After creating that service file (and probably restarting the machine), it should have worked. The service file actually tells dbus to launch the application when an app requests that service name. I think you've stumbled on a cool feature that fbd should probably have. I will accept that as a patch and include it in the next version. Thanks.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  5. #65
    Newbie
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    27
    Quote Originally Posted by Bugbyte View Post
    Same problem here. I've read this thread but don't understand how you fixed it. Here's what I've done:

    1. Installed fbd
    2. Installed libusb files
    3. Tried to test the service with: dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true

    Response was:

    root@iPlug:/etc# dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:1 boolean:true
    Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.openice.fbd was not provided by any .service files

    I found the .services files in /usr/share/dbus-1/services and tried to duplicate and existing one for org.openice.fbd naming it org.openice.fbd.servce but alas, it did not work. Here's what I put in it:

    Code:
    [D-BUS Service]
    Name=org.openice.fbd
    Exec=/usr/bin/fbd
    Any help is appreciated.
    Since it's a system service, shouldn't it go under /usr/share/dbus-1/system-services?

    I start it via udev - created /etc/udev/rules/99-fusionbrain containing
    Code:
    ACTION!="add", GOTO="fb_rules_end"
    SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
    SUBSYSTEM!="usb_device", GOTO="fb_rules_end"
    
    LABEL="pid_test"
    
    # Check for FusionBrain.
    ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000e", RUN+="/usr/local/bin/fbd >/dev/null 2>&1 &"
    
    LABEL="fb_rules_end"
    
    ACTION!="remove", GOTO="fb_rules_real_end"
    
    SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
    SUBSYSTEM!="usb_device", GOTO="fb_rules_end"
    
    LABEL="pid_test"
    
    # Check for FusionBrain.
    ENV{ID_MODEL}=="Fusion_Brain", RUN+="/usr/bin/killall fbd"
    
    LABEL="fb_rules_real_end"
    As noted many messages back in this thread, though, it doesn't seem to start up on boot, only if FB is jacked into USB after udev is running, so I call "/sbin/udevadm trigger --attr-match=idVendor=04d8" from a custom startup script toward the end of bootup. (also note that I have fbd under /usr/local/bin, you apparently have it in /usr/bin)

    I haven't devoted any time to this lately, I need to. I had the FB hardware-supported momentary output going at one point (limited number of options there, 1/2/3/4/5/6/7/8/9/10 seconds, 30/60/90 secs, 140-640 secs in 10-sec increments) but support for arbitrary-duration timers will need threading or else it hangs waiting for the timeout. (IE, tell it to turn on for 45 seconds, then try to do something else during those 45 secs and it queues up and does it after the 45 secs elapses) So I took a step back and got sidetracked. Maybe this weekend I can dig into it again and post back the diff. (some cleanup, HW momentary, getFWver and getHWver - I have untested PWM support in one of my many fbd build dirs, hafta go find it)

    j

  6. #66
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    The pwm support would be cool! Then you could control servos and hvac.

    With Trip's help on #Linuxice IRC we found that the dbus service was running but crashes without the FB plugged in. I'm going to test it tomorrow with the FB plugged in if I get a spare second or two.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  7. #67
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494

    fbd now in git

    I just created a git repo for fbd on archive.openice.org:

    http://archive.openice.org/repos/fbd.git

    This will probably make patches easier to flow upstream and it'll make it easier for me to maintain it.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  8. #68
    Newbie
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    27
    Quote Originally Posted by Bugbyte View Post
    The pwm support would be cool! Then you could control servos and hvac.

    With Trip's help on #Linuxice IRC we found that the dbus service was running but crashes without the FB plugged in. I'm going to test it tomorrow with the FB plugged in if I get a spare second or two.
    Well as said, it's untested. I've got nothing on-hand to test it with. Wrote the code based on the FB V4 bytestream breakdown. Thought I could test it by watching the LED, expecting that with a low duty-cycle I'd see a dimmer LED, but no go - either the plan was flawed (on-board LED is always on/off regardless of PWM) or I've got something wrong... Never got around to tying an LED to the actual output pins though.

    j

  9. #69
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    I should be able to test it with a servo. They use pwm. How can I set it to a specific pulse width.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  10. #70
    Newbie
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    27
    Quote Originally Posted by Bugbyte View Post
    I should be able to test it with a servo. They use pwm. How can I set it to a specific pulse width.
    Found the latest code I'd been working with, will have to massage it some to eliminate the testing I was doing for threading, etc. It includes:

    GetFWver()
    GetHWver()
    getTempF(analognum)
    getTempC(analognum)
    MomentarySingleOutput(ionum,duration)
    SetTimedOutput(ionum,duration)
    SetPWMOutput(ionum,duty)

    The last one follows the hardware and specifies duty as a value 0-127. 0 is 1/128th duty cycle, 126 would be 127/128th duty cycle, 127 is full-on.

    Either Momentary or Timed will be removed as it was where I was working on arbitraty-duration delays but never got threading coded in - the other (don't remember which was which) is the hardware-supported timed output. Eventually I had hoped (still may) to get arbitrary-duration PWM output working. The support I'd coded for arbitrary durations accepted values in milliseconds, btw. Seemed unnecessarily precise for the most part, but I wanted to be able to specify fractions of a second if needed and milliseconds was the simplest approach, code-wise.

    j

Page 7 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
  •