Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Feb 2010 @ Sweden
#11
Someone knows if nokia have PBAB in his n900 yet

or that will come on a update

//Bolle
 
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#12
I try to get PBAP working with my N900 and a Parrot MK6000 CarKit.
I installed syslogd and changed the files
/etc/event.d/bluetoothd
/usr/share/dbus-1/services/obexd.service
to have the "--debug" parameter and added "--pbap" to the obexd command.
So far I managed to get the latest obexd package compiled and replaced it on my N900. Don't forget to make it executable (chmod a+x obexd) again.
My N900 shows PBAP support, but my CarKit does not request it.
I think my CarKit tries the Nokia SyncML Server since I get this error:
Code:
static int SyncEngine::getDeviceType(int, const std::string&): Could not detect peer as computer or phone
static int SyncEngine::getDeviceType(int, const std::string&): from socket: class 0x240408]
static int SyncEngine::getDeviceType(int, const std::string&): from dbus: devclass 0x240408
I understand what that means and I don't think this is a problem: SyncML server only accepts connections from computer or phones. But since the SyncML server is offered via Bluetooth SDP my CarKit tries to use it and doesn't try PBAP. Is there a way to not show (deregister) the SyncML Server?
 

The Following 2 Users Say Thank You to hschmitt For This Useful Post:
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#13
To get rid of SyncML Server in SDP, I think I have to recompile Bluez. There I have to abort adding a SDP record when I recognize the uuid of SyncML Server.
 
Posts: 278 | Thanked: 303 times | Joined on Feb 2010 @ Norwich, UK
#14
I have to wonder at the car kits most people use - The integrated handsfree in my car (along with every BT kit i've ever personally used) allows you to manually send contact information as contact cards over bluetooth, if the phone doesn't support PBAB. This is exactly how i've hooked up my N900 (as well as my E90 and several other Nokia phones that were all missing PBAB) and it works flawlessly.
Am I just lucky with clever handsfree systems?
 
Posts: 163 | Thanked: 21 times | Joined on Feb 2010 @ London UK
#15
Audi it will most probably be a Dension Gateway 500 which I also use. I hope I can VCard my contacts to it when I get the bluetooth installed or it will render in car calling pretty crap if I dont know whos calling or need to use the HS to make a call.
 
Posts: 8 | Thanked: 16 times | Joined on Feb 2010
#16
I found a sort of a solution for contacts sync. One way batch transfer of all contact to the car kit. When you repeat it (after several contacts have updated and you want to updated your carkit), it DOES NOT create duplicates. So it's sort of ok.

1. In contacts, export all contacts to a new empty directory
2. Install petrovitch if you don't have it
3. In Petrovitch , find that new directory containing your exported contacts, , select all those vcard files and "share" them with your car kit. it is a silent process, you just have to wait... for a few minutes to make sure all contacts are there. (I did 400 in about 5 min with all photos).

This has worked for me on parrot mk6100 and 3200. what's nice is that contact photos are also copied to the 3200 so you see caller photo ID in the car.

let me know if you have questions.
 

The Following User Says Thank You to swineflue For This Useful Post:
Fargus's Avatar
Posts: 1,217 | Thanked: 446 times | Joined on Oct 2009 @ Bedfordshire, UK
#17
Originally Posted by swineflue View Post
I found a sort of a solution for contacts sync. One way batch transfer of all contact to the car kit. When you repeat it (after several contacts have updated and you want to updated your carkit), it DOES NOT create duplicates. So it's sort of ok.

1. In contacts, export all contacts to a new empty directory
2. Install petrovitch if you don't have it
3. In Petrovitch , find that new directory containing your exported contacts, , select all those vcard files and "share" them with your car kit. it is a silent process, you just have to wait... for a few minutes to make sure all contacts are there. (I did 400 in about 5 min with all photos).

This has worked for me on parrot mk6100 and 3200. what's nice is that contact photos are also copied to the 3200 so you see caller photo ID in the car.

let me know if you have questions.
Interesting solution, I wonder if the export from the Address Book and export could be automated with a script rather than having to write an application? This would make updates a much simpler proposition to just 'publish' your address book to the car kit.

Now all I need to do is sort out the 'echo' for the other party on my car kit when using Bluetooth! LOL
 
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#18
Now I am using pbap-client from the obexd package from my notebook to testpbap on my N900. I am pretty far. All my contacts are read, but the obex message is not sent back successfully.
Code:
pr  5 09:56:35 Nokia-N900-51-1 obexd[1203]: pbap_get: pbap_get() 
Apr  5 09:56:35 Nokia-N900-51-1 obexd[1203]: phonebook_pullphonebook: phonebook_pullphonebook 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: pbap_pullphonebook: phonebook_pullphonebook had no errors 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: pbap_add_result_apparam_header: pbap_add_result_apparam_header maxlistcount=65535 rspsize=0 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: pbap_get: pbap_get() no error 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: pbap_get: pbap_get() addbody 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: pbap_get: pbap_get() OBEX_ObjectSetRsp() 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: PROGRESS(0x0), GET(0x3), (null)(0x0)
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: ebookpull_cb: ebookpull_cb count=305 size=42944 
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: STREAMEMPTY(0x8), CONNECT(0x0), (null)(0x0)
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: obex_write_stream: name=telecom/pb.vcf type=x-bt/phonebook tx_mtu=3896 file=(nil)
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: STREAMEMPTY(0x8), CONNECT(0x0), (null)(0x0)
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: obex_write_stream: name=telecom/pb.vcf type=x-bt/phonebook tx_mtu=3896 file=(nil)
Apr  5 09:56:36 Nokia-N900-51-1 obexd[1203]: PROGRESS(0x0), (null)(0x10), (null)(0x0)
Apr  5 09:56:37 Nokia-N900-51-1 obexd[1203]: REQDONE(0x3), (null)(0x10), (null)(0x3)
Apr  5 09:57:00 Nokia-N900-51-1 obexd[1203]: obex_handle_input: poll event HUP ERR
 

The Following User Says Thank You to hschmitt For This Useful Post:
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#19
I think the actual obexd PBAP with ebook implementation does not work because of a bug in openobex 1.4 which is fixed in 1.5:
http://git.kernel.org/?p=bluetooth/o...2be877612df08e
So I will wait until openobex 1.5 is deployed for the N900. Unfortunately it won't be available in PR1.2
 

The Following User Says Thank You to hschmitt For This Useful Post:
Posts: 159 | Thanked: 122 times | Joined on Nov 2009
#20
At least I have managed to make PBAP on my N900 work.
Disclaimer: Don't do this to your N900. It can cause damage!
See patch:
https://bugs.maemo.org/show_bug.cgi?id=6368#c56
It is a patch against the current HEAD of obexd at
http://git.kernel.org/?p=bluetooth/obexd.git;a=summary
To compile it I used the VirtualBox dev image from
http://maemovmware.garage.maemo.org/...x_machine.html
First you have to clone git repository
Code:
maemo@maemo-desktop:/$ cd /scratchbox/users/maemo/home/maemo/workspace/
maemo@maemo-desktop:/scratchbox/users/maemo/home/maemo/workspace$ git clone git://git.kernel.org/pub/scm/bluetooth/obexd.git
Then you have to apply the patch (I did not test this step)
Code:
maemo@maemo-desktop:/scratchbox/users/maemo/home/maemo/workspace$ cd obexd/
maemo@maemo-desktop:/scratchbox/users/maemo/home/maemo/workspace/obexd$ git apply < ../pbap.patch
Then login to scratchbox, change to ARM(that I don't remeber)and run bootstrap-configure script.
Code:
maemo@maemo-desktop:/$ /scratchbox/login 

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-FREMANTLE_ARMEL: ~] > cd workspace/obexd/
[sbox-FREMANTLE_ARMEL: ~/workspace/obexd] > ./bootstrap-configure
After that you have to add the variable abs_top_srcdir = /home/maemo/workspace/obexd to the Makefile file. After you run make you have the obexd bin in the src directory.
I made a copy of the original obexd file before I replaced it on my N900, which was very helpful because the ftp via bluetooth stopped working with the generated version.

Last edited by hschmitt; 2010-04-15 at 12:14.
 

The Following 3 Users Say Thank You to hschmitt For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:43.