Аноним | вход | зарегистрировать новую учетную запись | 2022-07-01 00:41 EEST |
главная | моя сводка | список вопросов | журнал изменений | план развития | документация | моя учетная запись |
Простой вид [ комментарии ] | [ расширенный вид ] [ история ] [ печать ] | |||||||||||
Номер | Категория | Серьезность | Воспроизводимость | Создан | Изменен | |||||||
0000246 | [obex-data-server] General | большая | всегда | 2009-12-14 15:45 | 2010-01-09 10:31 | |||||||
Инициатор | live4love | Видимость | общая | |||||||||
Ответственный | skirsdeda | |||||||||||
Приоритет | обычный | Решение | повторно открыт | |||||||||
Состояние | нужен отклик | Версия продукта | 0.4.4 | |||||||||
Суть | 0000246: obex-data-server can not receive file through bluetooth with size large than 512 bytes | |||||||||||
Подробности |
When I send a file with size >= 512 from phone to PC through bluetooth, obex-data-server will fail to receive it. bluetooth-applet show following logging when it start. ** Message: adding killswitch idx 1 state 1 ** Message: Reading of RFKILL events failed ** Message: killswitch 1 is 1 ** Message: killswitches state 1 ** (bluetooth-applet:3529): DEBUG: Unhandled UUID 00005005-0000-1000-8000-0002ee000001 (0x5005) ** Message: killswitch 1 is 1 ** Message: killswitches state 1 obex-data-server console displays while transtering: ** Message: server socket created ** Message: Server created by: :1.40 ** (obex-data-server:3465): WARNING **: Server path: /mypath ** Message: Client connecting ** (obex-data-server:3465): WARNING **: Session path: /mypath ** Message: Bluetooth address: 00:13:70:22:12:42 ** Message: Creating server session ** Message: io callback ** Message: event: 1 ** Message: event: 2 ** Message: CMD_CONNECT requested ** Message: Version: 0x10. Flags: 0x00 OBEX packet length: 4000 ** Message: Resizing stream chunks to 3800 ** Message: event: 3 ** Message: io callback ** Message: event: 1 ** Message: event: 11 ** Message: CMD_PUT requested at REQCHECK ** Message: header: 1 ** Message: HDR_NAME: tbig ** Message: header: 195 ** Message: HDR_LENGTH: 512 ** Message: header: 66 ** Message: ret=-1 ** Message: event: 3 ** Message: io callback ** Message: server session closed ** Message: closing connection It is tested on ubuntu 9.10 32bit (kernel 2.6.31-16) bluetooth dongle BCM2035 obex-data-server 0.4.4-2build1(installed by default in ubuntu 9.10) Phone: Nokia 3230 |
|||||||||||
Дополнительные сведения |
It is okay to receive file with size < 512bytes from phone.(See attachment) It is okay to send file from PC to phone, with any size. It is okay to receive file from phone through obexpushd instead of obex-data-server, with any size. It is okay to send/receive file using obex-data-server with another Phone SonyEricsson 700. I think it should not be an issue on the phone, because I test it works anywhere else. |
|||||||||||
Tэги | Нет прикрепленных тэгов. | |||||||||||
Вложенные файлы |
![]() |
|||||||||||
|
![]() |
|
(0000871) skirsdeda (администратор) 2009-12-14 17:16 |
It seems that your phone sends TYPE header which obex-data-server cosiders invalid. I will try to put more debugging info in this case so that I could actually see why this header is considered to be invalid. I'll let you know when I have an improved version. |
(0000941) skirsdeda (администратор) 2010-01-03 19:08 |
Could you please try the newest code from svn? You could do this in console: svn co svn://muiline.com/obex-data-server/trunk [^] obex-data-server cd obex-data-server ./autogen.sh make killall obex-data-server ./src/obex-data-server --no-daemon Then try sending again and send me obex-data-server output (even if it works, I want to see how that invalid header looks like). I really have no way of testing this so your cooperation would be much appreciated :) |
(0000976) live4love (инициатор) 2010-01-09 09:59 изменен: 2010-01-09 10:14 |
skirsdeda, thanks for your work. The svn version is okay to send file with any size. A limitation is, after obex-data-server(svn version) started, I have to restart bluetooth before any transferring. Logging from obex-data-server: 1.start obex-data-server(svn) obex-data-server 0.4.6svn Using Session bus 2.restart bluetooth. Run /etc/init.d/bluetooth stop, then start. server socket created Server created by: :1.23 **Warning: Server path: /mypath 3. transfer bigfile - success Client connecting **Warning: Session path: /mypath Bluetooth address: 00:13:70:22:12:42 Creating server session Used MTUs: RX=32767, TX=32767 io callback CMD_CONNECT requested Version: 0x10. Flags: 0x00 OBEX packet length: 4000 Resizing stream chunks to 3800 io callback CMD_PUT requested at REQCHECK header: 1 HDR_NAME: bigfile header: 195 HDR_LENGTH: 612 header: 66 HDR_TYPE invalid: text/plain�K� header: 68 HDR_TIME path: /mypath ret=0 TransferStarted emitted at obex_request_put Suspending request LOCK ods_server_session_accept UNLOCK ods_server_session_accept Suspend result: 1 io callback There is some data CMD_PUT requested io callback server session closed closing connection 4. transfer more large file (mp3) - success Client connecting **Warning: Session path: /mypath Bluetooth address: 00:13:70:22:12:42 Creating server session Used MTUs: RX=32767, TX=32767 io callback CMD_CONNECT requested Version: 0x10. Flags: 0x00 OBEX packet length: 4000 Resizing stream chunks to 3800 io callback CMD_PUT requested at REQCHECK header: 1 HDR_NAME: QUEEN2.MP3 header: 195 HDR_LENGTH: 940826 header: 66 HDR_TYPE invalid: audio/mpeg�K� header: 68 HDR_TIME path: /mypath ret=0 TransferStarted emitted at obex_request_put Suspending request LOCK ods_server_session_accept UNLOCK ods_server_session_accept Suspend result: 1 io callback io callback io callback io callback io callback io callback ... There is some data io callback io callback io callback io callback There is some data CMD_PUT requested io callback server session closed closing connection 5. transfer small file - success Client connecting **Warning: Session path: /mypath Bluetooth address: 00:13:70:22:12:42 Creating server session Used MTUs: RX=32767, TX=32767 io callback CMD_CONNECT requested Version: 0x10. Flags: 0x00 OBEX packet length: 4000 Resizing stream chunks to 3800 io callback CMD_PUT requested at REQCHECK header: 1 HDR_NAME: smallfile header: 195 HDR_LENGTH: 511 header: 68 HDR_TIME path: /mypath ret=0 TransferStarted emitted at obex_request_put Suspending request LOCK ods_server_session_accept UNLOCK ods_server_session_accept Suspend result: 1 io callback There is some data CMD_PUT requested io callback server session closed closing connection Notes: For large file, HDR_TYPE shows garbled text. But the transferring can finish without any exception.I wonder the garbled text is generated by my Nokia phone in Chinese. For step 2: I have to restart bluetooth before any transferring, otherwise connections from phone to PC will always fail, sometimes connection succeed but transferring fail(even for small file, see following logging). Client connecting **Warning: Session path: /mypath Bluetooth address: 00:13:70:22:12:42 Creating server session Used MTUs: RX=32767, TX=32767 io callback CMD_CONNECT requested Version: 0x10. Flags: 0x00 OBEX packet length: 4000 Resizing stream chunks to 3800 io callback CMD_PUT requested at REQCHECK header: 1 HDR_NAME: smallfile header: 195 HDR_LENGTH: 511 header: 68 HDR_TIME path: /mypath ret=0 TransferStarted emitted at obex_request_put Suspending request Suspend timeout (15s), rejecting incoming file Suspend result: -1 io callback server session closed closing connection |
(0000977) live4love (инициатор) 2010-01-09 10:31 |
Another logging from obex-data-server(svn version) for SonyEricssion phone, succeed to transfer a big file: Client connecting **Warning: Session path: /mypath Bluetooth address: 00:18:13:B4:B0:EC Creating server session Used MTUs: RX=32767, TX=32767 io callback CMD_CONNECT requested Version: 0x10. Flags: 0x00 OBEX packet length: 4096 Resizing stream chunks to 3896 io callback io callback There is some data Writing to buf CMD_PUT requested at REQCHECK header: 1 HDR_NAME: bigfile. header: 195 HDR_LENGTH: 612 path: /mypath ret=0 TransferStarted emitted at obex_request_put Suspending request LOCK ods_server_session_accept UNLOCK ods_server_session_accept Suspend result: 1 io callback CMD_PUT requested io callback server session closed closing connection |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |