PDA

View Full Version : [Question(s)] ps3_demo and Edison libusb-0.1.so.4



bg404
04-28-2015, 09:11 PM
Trying to get the ps3_demo to work.

1. Went to:
/home/root/HROS1-Framework/Linux/project/ps3_demo/sixpair

2. Executed:

./sixpair_edison

3. Received error:

./sixpair_edison: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory

4. Ran ldd sixpair_edison:

linux-gate.so.1 (0xb77f2000)
libusb-0.1.so.4 => not found
libc.so.6 => /lib/libc.so.6 (0x45b54000)
/lib/ld-linux.so.2 (0x45b27000)

5. Looked for file in /lib/:

libusb-1.0.la

libusb-1.0.so

libusb-1.0.so.0

libusb-1.0.so.0.1.0

Not sure what the next step is to fix the issue.

Also did not perform any sudo apt-get prior to trying to run the pairing.

Thanks,

Brad

KurtEck
04-28-2015, 09:57 PM
At a command prompt try the command:

opkg install libusb-0.1-4

forgot to mention that Edison linux uses the opkg commands and not the apt-get commands.

bg404
04-28-2015, 10:00 PM
$opkg install libusb-0.1-4

Yields:

Unknown package 'libusb-0.1-4'.
Collected errors:
* opkg_install_cmd: Cannot install package libusb-0.1-4.

bg404
04-28-2015, 10:02 PM
$opkg list libusb*

Yields:

libusb-1.0-0 - 1.0.9-r1
libusb-1.0-dev - 1.0.9-r1

KurtEck
04-28-2015, 10:11 PM
I must confess, that I am not just using the image that came on my edison, so the above command shows:

[email protected]_HROS1:~# opkg list libusb*
libusb-0.1-4 - 1:0.1.5-r0 - libusb-0.1 compatibility layer for libusb1 libusb-0.1 compatible layer
for libusb1, a drop-in replacement that aims to look, feel and behave
exactly like libusb-0.1
libusb-0.1-dbg - 1:0.1.5-r0 - libusb-0.1 compatibility layer for libusb1 - Debugging files libusb-0.1
compatible layer for libusb1, a drop-in replacement that aims to look,
feel and behave exactly like libusb-0.1 This package contains ELF
symbols and related sources for debugging purposes.
libusb-0.1-dev - 1:0.1.5-r0 - libusb-0.1 compatibility layer for libusb1 - Development files
libusb-0.1 compatible layer for libusb1, a drop-in replacement that aims
to look, feel and behave exactly like libusb-0.1 This package contains
symbolic links, header files, and related items necessary for software
development.
libusb-0.1-staticdev - 1:0.1.5-r0 - libusb-0.1 compatibility layer for libusb1 - Development files (Static
Libraries) libusb-0.1 compatible layer for libusb1, a drop-in
replacement that aims to look, feel and behave exactly like libusb-0.1
This package contains static libraries for software development.
libusb-1.0-0 - 1.0.9-r1 - Userspace library to access USB (version 1.0) Userspace library to
access USB (version 1.0).
libusb-1.0-dbg - 1.0.9-r1 - Userspace library to access USB (version 1.0) - Debugging files
Userspace library to access USB (version 1.0). This package contains ELF
symbols and related sources for debugging purposes.
libusb-1.0-dev - 1.0.9-r1 - Userspace library to access USB (version 1.0) - Development files
Userspace library to access USB (version 1.0). This package contains
symbolic links, header files, and related items necessary for software
development.
libusb-1.0-staticdev - 1.0.9-r1 - Userspace library to access USB (version 1.0) - Development files (Static
Libraries) Userspace library to access USB (version 1.0). This package
contains static libraries for software development.

Probably because I have more places configured to download stuff from. Probably from either step 4) or 5) from my
cheat sheet I have up on the Edison forum: https://communities.intel.com/thread/57598

bg404
04-28-2015, 10:40 PM
Closer...

Now I run:
./sixpair_edison

and it yields:
usb_get_busses: No such file or directory

Here's what I installed/updated:


$echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
$opkg update
$opkg install libmraa0
$vi /etc/opkg/base-feeds.conf
Copied into this file:

src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
$opkg update
$opkg list libusb*
$opkg install libusb-0.1-4

KurtEck
04-28-2015, 10:54 PM
Sounds like standard error if PS3 is not plugged into USB of Edison through the converter cable. Note Edison on mini boards has issue on warm boots, where if the server mode USB is installed, the USB will only work on every other boot.

quick test is if you type: lsusb
if it shows some stratus like -99, then you hit that bug, reboot again

bg404
04-29-2015, 12:00 AM
Baby steps...

With PS3 Controller plugged in via the cable used between Arbotix Pro and Edison: USB mini cable in PS3, USB in Arbotix-to-Edison USB end, USB micro into Edison breakout (same USB micro female as regular Arbotix Pro connection)

$./sixpair_edison
Current Bluetooth master: 10:40:f3:7f:ca:9b
Unable to retrieve local bd_addr from `hcitool dev`.
Please enable Bluetooth or specify an address manually.

bg404
04-29-2015, 12:02 AM
Forgot to post results of:

$lsusb
Bus 001 Device 002: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

bg404
04-29-2015, 12:07 AM
And then....

$rfkill unblock bluetooth
$bluetoothctl

Then I added at prompt:
#agent KeyboardDisplay
#default-agent
#scan on
#exit

KurtEck
04-29-2015, 12:13 AM
Sorry I am not near Edison now on iPad

look at Edison Bluetooth guide, you may need to enable Bluetooth: rfkill unblock bluetooth

bg404
04-29-2015, 12:25 AM
Arrgh!


$./start_ps3_demo
./start_ps3_demo: line 2: sudo: command not found
./start_ps3_demo: line 4: sudo: command not found
./start_ps3_demo: line 6: sudo: command not found

I did:
$opkg install sudo sudo-dbg sudo-dev sudo-doc

Progress....

$sudo ./start_ps3_demo killall: bluetoothd: no process killed
Bluetooth HID daemon
joymixer started.
Starting PS3 l2cap server.
Sitting = 9008, Squating = 1, Standing = 65
Robot is Ready
HROS1-Framework/Linux/project/ps3_demo# sudo: bluetoothd: command not found

No package named bluetoothd....

kgranat
04-29-2015, 03:01 PM
We are working on a fix - I'll have some sort of news on it tomorrow

bg404
04-29-2015, 03:14 PM
Cool. Thanks.