Mantis Bugtracker

Простой вид комментарии ] расширенный вид ] история ] печать ]
Номер Категория Серьезность Воспроизводимость Создан Изменен
0000102 [obex-data-server] General малая всегда 2008-07-02 18:39 2008-10-17 19:59
Инициатор manuel Видимость общая  
Ответственный skirsdeda
Приоритет обычный Решение решен  
Состояние закрыт   Версия продукта 0.3.1
Суть 0000102: ODS fails to register SDP record when choosing hci device on CreateBluetoothServer
Подробности BlueZ 3.X api had a limitation where SDP records coudln't be registered via Dbus on a different hci device than default. The new bluez 4.0 API (which is still experimental) allow this, so this patchs I'm commiting requires from this patch first: [^]

Unfortunately the new bluez api doesn't have any way to register binary sdp records, it can only do XML content, so I grabbed code from bluez code to do the conversion from binary sdp record to xml. I know we can just generate the xml content but I didn't want to struggle with that by now and go with a proven solution.

In case ods and bluez are running with new api compatibility then this patch will use the new api to register to the non default device in case the user requests it.

Comments and suggestions are welcomed.

Manuel Naranjo
manuel at aircable dot net
Дополнительные сведения
Tэги Нет прикрепленных тэгов.
Вложенные файлы ? file icon logging.patch [^] (3,678 bytes) 2008-07-02 18:39
? file icon [^] (633 bytes) 2008-07-02 18:39
? file icon ods-bluez.c.patch [^] (4,156 bytes) 2008-07-02 18:39
? file icon sdp_xml.patch [^] (20,230 bytes) 2008-07-02 18:39
? file icon choose_device.patch [^] (5,858 bytes) 2008-07-09 19:33

- Связи

-  Комментарии
manuel (инициатор)
2008-07-02 18:40

All patchs where generated against revision 1592
skirsdeda (администратор)
2008-07-04 01:42

Actually BlueZ 4.x API has AddServiceRecord on org.bluez.Adapter interface, so depending on selected hci device we call org.bluez.Adapter.AddServiceRecord on paths /hci0 /hci1 etc. There's no need for XML SDP records. As a matter of fact, ods used XML SDP records some time ago, but that was removed in favor of binary SDP records.
manuel (инициатор)
2008-07-06 01:44

Sorry to tell you that current BlueZ 4.X API doesn't have an add binary record yet. I don't know if this is either a bug in the interface, or a feature, so let's ask.

It makes sense to have an add binary record way in bluez 4.0 API, maybe they forgot that part?
manuel (инициатор)
2008-07-09 19:34

Ok, here we go again. But this time, and after discussing on irc, we decided to go with just sdp_lib this patch does that. And it's way simpler than using dbus interface.

(patch file is choose_device.patch, and has been done against rev 1613)
skirsdeda (администратор)
2008-07-10 15:20

fixed in svn rev 1622.

- история
Дата изменения Пользователь Поле Изменение
2008-07-02 18:39 manuel Новый вопрос
2008-07-02 18:39 manuel Файл добавлен: logging.patch
2008-07-02 18:39 manuel Файл добавлен:
2008-07-02 18:39 manuel Файл добавлен: ods-bluez.c.patch
2008-07-02 18:39 manuel Файл добавлен: sdp_xml.patch
2008-07-02 18:40 manuel Комментарий добавлен: 0000338
2008-07-04 01:42 skirsdeda Комментарий добавлен: 0000350
2008-07-06 01:44 manuel Комментарий добавлен: 0000353
2008-07-09 19:33 manuel Файл добавлен: choose_device.patch
2008-07-09 19:34 manuel Комментарий добавлен: 0000355
2008-07-10 15:20 skirsdeda Состояние новый => отработан
2008-07-10 15:20 skirsdeda Решение открыт => решен
2008-07-10 15:20 skirsdeda Ответственный => skirsdeda
2008-07-10 15:20 skirsdeda Комментарий добавлен: 0000356
2008-07-24 15:00 skirsdeda Целевая версия => 0.4
2008-10-17 19:59 skirsdeda Решен в версии => 0.4
2008-10-17 19:59 skirsdeda Состояние отработан => закрыт

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker