Results 1 to 5 of 5

Thread: Edison PS2 Controller Bluetooth Issues

  1. #1

    Edison PS2 Controller Bluetooth Issues

    Hey,

    I set up the PS2 bluetooth controller by installing libusb-0.1-4 / libusb-0.1-dev and running gcc -o sixpair sixpair.c -lusb. I then ran sixair with the controller connected and it showed the following response

    Code:
    ~/HROS1-Framework/Linux/project/ps3_demo/sixpair# ./sixpair_edison Current Bluetooth master: d8:96:95:f3:8d:d6
    Setting
    After doing so, I went into the ps3_demo project and the following commands

    Code:
    rfkill unblock bluetooth
    killall bluetoothd
    ./start edison
    The robot starts with one error message and goes into sitting position. However the PS3 which has the 4 flashing lights never pairs via bluetooth. It is fully charged. As anyone had any luck with pairing the PS3 with the edison.

    Here is the output from starting the demo
    Code:
    ./start_edison killall: demo: no process killed
    ./start_edison: line 5: bluetoothd: command not found
    Bluetooth HID daemon
    joymixer started.
    Starting PS3 l2cap server.
    Sitting = 9005, Squating = 6, Standing = 65
    
    
    Robot is Ready

  2. #2

    Re: Edison PS2 Controller Bluetooth Issues

    I assume you mean PS3 and not PS2...

    As I mentioned in a different thread yesterday, I had issues with PS3 on the Edison... Are you using the Image for the Edison that was setup by Trossen? I know R3n33 has had luck with the PS3 and Edison.

    I see you did the pairing and the like.

    I think maybe I will update one of my Edisons to run with Andrews image and see if I have some luck. Something that you might do that might help verify a few things include, when you have the robot in the state you show, where it says Robot is Ready...

    In a different window (Putty?), get some more diagnostic information:

    Example: Try typing the command: ls /dev/input
    Does the device name: /dev/input/js0 show up? My guess is not.

    Also see if there is any diagnostic information that might help, like type something like: dmesg | tail -30

    And see what messages are there about the joystick.

    Sorry I don't have any better clues.

    Kurt

  3. #3
    Join Date
    Mar 2015
    Location
    Texas
    Posts
    342
    Images
    15
    Rep Power
    35

    Re: Edison PS2 Controller Bluetooth Issues

    In your output it says:

    Code:
    ./start_edison: line 5: bluetoothd: command not found
    Which makes me believe you don't have BlueZ4 installed. In fact when I downloaded and flashed the latest Edison image for the HR-OS1 I believe it came with BlueZ5 installed.

    Which means... You need a different start script for the ps3_demo. What I did was create a file called start_edison_bluez5 with the contents:

    Code:
    #!/bin/sh -e
    rfkill block bluetooth &
    killall demo &
    sleep 2
    ./demo &
    sleep 2
    rfkill unblock bluetooth &
    

    Execute this instead of start_edison and your controller will hopefully work.
    01001001001000000100110001101111011101100110010100 10000001010010011011110110001001101111011101000111 0011

    My Instagram
    My YouTube

  4. #4

    Re: Edison PS2 Controller Bluetooth Issues

    That worked and yes it is using BlueZ5. Thanks for the help. Also I noticed the current repository does not have a script for stopping the robot. Is there a reason for that, was it taken out in replacement of something else.

  5. #5
    Join Date
    Mar 2015
    Location
    Texas
    Posts
    342
    Images
    15
    Rep Power
    35

    Re: Edison PS2 Controller Bluetooth Issues

    Great! I'm glad that worked.

    I noticed the same thing about the missing stop script.. for now I use the command

    Code:
    killall demo
    but I don't know exactly why the old script is missing. I think mainly things are "in progress" and have a big update coming soon.
    01001001001000000100110001101111011101100110010100 10000001010010011011110110001001101111011101000111 0011

    My Instagram
    My YouTube

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My HR OS-1 falls a lot, can't pair PS3 to Intel Edison
    By OldBotBuilder in forum HR-OS1 Development and Discussion
    Replies: 6
    Last Post: 06-08-2016, 01:58 AM
  2. Experiment with Intel Edison...
    By KurtEck in forum Arbotix, Microcontrollers, Arduino
    Replies: 99
    Last Post: 05-27-2015, 01:36 PM
  3. Question(s) ps3_demo and Edison libusb-0.1.so.4
    By bg404 in forum HR-OS1 Development and Discussion
    Replies: 13
    Last Post: 04-29-2015, 03:14 PM
  4. Question(s) New robot question and Intel Edison
    By dmcman73 in forum Robotics General Discussion
    Replies: 5
    Last Post: 03-16-2015, 10:26 AM
  5. Question(s) Interfacing FLIR Lepton with Intel Edison
    By McRender in forum Sensors
    Replies: 11
    Last Post: 03-07-2015, 12:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •