Git Product home page Git Product logo

bluez's People

Contributors

dertosh avatar luetzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bluez's Issues

Keep in sync with upstream

Hi,

Thank you for creating this repo, I finally achieved to make my Shanwan clone work with BT.

Do you plan to maintain this patchset with upcoming Bluez release (5.40 is already out)?

5.42 compilation error

I've got compilation error:

make --no-print-directory all-am
  CC       client/main.o
make[1]: *** No rule to make target 'client/advertising.c', needed by 'client/advertising.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  CC       client/agent.o
client/main.c:47:25: fatal error: advertising.h: No such file or directory
 #include "advertising.h"
                         ^
compilation terminated.
make[1]: *** [Makefile:5670: client/main.o] Error 1
make: *** [Makefile:3133: all] Error 2

Looking at bluez source, there is the following files in client directory:

$ ls src/bluez-5.42/client/
advertising.c  advertising.h  advertising.o  agent.c  agent.h  agent.o  display.c  display.h  display.o  gatt.c  gatt.h  main.c

but in your repo there is only:

$ ls src/bluez/client/
agent.c  agent.h  agent.o  display.c  display.h  display.o  gatt.c  gatt.h  main.c

Copying advertising.* from bluez source makes compilation error go away.

unit/test-gatt fails

https://pastebin.com/XFqqKvbT
all the relevant errors below, full output above

CCLD unit/test-avdtp
./test-driver: line 107: 10523 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-hog
./test-driver: line 107: 10574 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-avrcp
./test-driver: line 107: 10563 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-avctp
PASS: unit/test-ecc
CCLD unit/test-sdp
./test-driver: line 107: 10700 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-sdp
PASS: unit/test-gobex-transfer
CCLD unit/test-gatt
./test-driver: line 107: 10767 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-gatt

"Ravcore Lance" results

Hi,

I've connected Ravcore Lance gamepad, using instructions from https://raspberryblog.de/?p=1870&page=6 .

Works, pairs, connects, except I get in dmesg:

[   46.135233] sony 0005:054C:0268.0001: unknown main item tag 0x0
[   46.135300] sony 0005:054C:0268.0001: unknown main item tag 0x0
[   51.191549] sony 0005:054C:0268.0001: Failed to set controller into operational mode
[   51.191891] sony 0005:054C:0268.0001: hidraw0: BLUETOOTH HID v80.00 Joystick [PLAYSTATION(R)3 Controller] on B8:27:EB:74:24:45
[   51.191903] sony 0005:054C:0268.0001: failed to claim input

... and there is no entry in /dev/input/ , still.

Any ideas? I know a bit of C from the "old days"...

Conflicting types of 'pause

profiles/audio/media.c:1241:13: error: conflicting types for ‘pause’; have ‘_Bool(void *)’
1241 | static bool pause(void *user_data)
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /usr/include/glib-2.0/glib/gbacktrace.h:36,
from /usr/include/glib-2.0/glib.h:34,
from profiles/audio/media.c:33:
/usr/include/unistd.h:489:12: note: previous declaration of ‘pause’ with type ‘int(void)’
489 | extern int pause (void);
| ^~~~~
make[1]: *** [Makefile:7215: profiles/audio/bluetoothd-media.o] Error 1
make: *** [Makefile:3121: all] Error 2

^this happens when compiling

profiles/audio/media.c:1284:13: error: conflicting types for ‘pause’; have ‘_Bool(void *)’

root@lm-OptiPlex-3000:/home/lm/Downloads/bluez-5.60# sudo make
make --no-print-directory all-am
  CC       profiles/audio/bluetoothd-media.o
profiles/audio/media.c:1284:13: error: conflicting types for ‘pause’; have ‘_Bool(void *)’
 1284 | static bool pause(void *user_data)
      |             ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/glib-2.0/glib/gbacktrace.h:38,
                 from /usr/include/glib-2.0/glib.h:36,
                 from profiles/audio/media.c:21:
/usr/include/unistd.h:489:12: note: previous declaration of ‘pause’ with type ‘int(void)’
  489 | extern int pause (void);
      |            ^~~~~
make[1]: *** [Makefile:8562: profiles/audio/bluetoothd-media.o] Error 1
make: *** [Makefile:4137: all] Error 2

Glib version check error when executive configure

It is shown ´configure: error: GLib >= 2.28 is required´
And package list information:
ii libglib2.0-0:a 2.42.1-1 armhf GLib library of C routines
ii libglib2.0-bin 2.42.1-1 armhf Programs for the GLib library
ii libglib2.0-dat 2.42.1-1 all Common files for GLib library
iU libglib2.0-dev 2.50.3-2 armhf Development files for the GLib li

Authentication attempt without agent

Hi, first thanks your best job. I used this software to connect ps3 controller in raspberry pi. But It can't work properly.
this is my bluetooth's log
`pi@raspberrypi:~ $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-04-16 18:27:19 UTC; 7h ago
Docs: man:bluetoothd(8)
Main PID: 506 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─506 /usr/lib/bluetooth/bluetoothd

Apr 17 01:19:26 raspberrypi bluetoothd[506]: Authentication attempt without agent
Apr 17 01:19:26 raspberrypi bluetoothd[506]: Access denied: org.bluez.Error.Rejected
Apr 17 01:19:32 raspberrypi bluetoothd[506]: Authentication attempt without agent
Apr 17 01:19:32 raspberrypi bluetoothd[506]: Access denied: org.bluez.Error.Rejected
Apr 17 01:20:12 raspberrypi bluetoothd[506]: 01:52:5E:64:63:25: error updating services: Connection timed out (110)
Apr 17 01:21:45 raspberrypi bluetoothd[506]: Authentication attempt without agent
Apr 17 01:21:45 raspberrypi bluetoothd[506]: Access denied: org.bluez.Error.Rejected
Apr 17 01:22:25 raspberrypi bluetoothd[506]: 01:52:5E:64:63:25: error updating services: Connection timed out (110)
Apr 17 01:25:33 raspberrypi bluetoothd[506]: 01:52:5E:64:63:25: error updating services: Connection timed out (110)
Apr 17 01:28:04 raspberrypi bluetoothd[506]: 01:52:5E:64:63:25: error updating services: Connection timed out (110)
pi@raspberrypi:~/git/bluez $ bluetoothctl
[NEW] Controller B8:27:EB:D1:91:53 raspberrypi [default]
[NEW] Device 01:52:5E:64:63:25 PLAYSTATION(R)3 Controller
[NEW] Device 01:51:A4:71:63:25 PLAYSTATION(R)3 Controller
[CHG] Device 01:52:5E:64:63:25 Connected: yes
[PLAYSTATION(R)3 Controller]#
`

I don't known how to fix it, can you help me ? thanks you, best wish.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.