PDA

View Full Version : [Announce] Bluetooth PBAP and IrMC / Carkit support is coming to N900...


Pages : 1 [2] 3

sajon
2010-12-15, 13:47
Hi,
I have Opel/Vauxhal Vectra C with UHP (car kit) which is not supporting PBAP (according document which I found on the network -https://www.bluetooth.org/qualweb/ProductDetails.cfm?ProductID=2473).
Solutions which is made by developers is not working for me. I've few old Nokia's at home and all of them are working fine. All contacts are displayed on the screen in the car.

Do you know if any different solution exist to solve this problem?? Transfer vCards with Petrovich is not working.

Crogge
2010-12-17, 00:03
I used the latest problem of PBAP and can't get it working correctly, though the basic function seems to be working fine.

I'm trying it with my German Mercedes W203 which has a Kenwood BT60U (http://www.kenwood.de/products/car/receivers/cdreiver/KDC-BT60U/) installed. The radio is using a real good working Parrot Bluetooth module which has tons of options and even supports Bluetooth audio (A2DP) and a lot of other functions.

Yesterday I tried to get PBAP running and installed the two suggested .deb files, after I restarted phone I connected it via BT to the BT60U. It is showing "Downloading..." now and the section "Phone book" appears. When I select it I see one single phone number and a lot of empty entries with no number/name at all, though I can select them.

The following BT formats are supported: HFP, HSP, SPP, PBAP, OPP, SYNC, A2DP, AVRCP. Maybe something is conflicting with each other?

Anyone has an idea why it is receiving only a single number and shows all other contacts without name / number?

mirakels
2010-12-17, 08:31
@crogge
It probably receives only a single number because it stops after this first number...

please follow the other suggestions on the wiki page about getting log information about the bluetooth traffic. That information may show you what is going on and might help you to resolve your problem.

oizone
2010-12-19, 23:26
Got this working mostly ok with porsche PCM in new 2011 Cayman.

Only thing that is not working correctly is fetching the last received/dialed numbers, the lists are populated but the contents seem quite random and there are numbers there that I'm pretty sure I've never dialed with this phone.

But anyways as the phonebook part itself is working, it's good enough for me, so thanks again for this!

morgan.day
2010-12-24, 08:54
hi

have installed both .deb files via root, but the n900 still doesnt sync contacts with my dension gateway500 i would like to post report but not sure what i need to do to get log files off n900. to confirm it works great with my GF's iphone 3gs.




i noticed in the old thread, member crsnwby has the same set up in his a6, tried to message him to see if he got it working but i dont have required permissions. if someone on here who nows him could message him to let me know if there is a workaround it would appreciated.

thanks for the great work guys

morgan

Liplap
2010-12-28, 18:10
Nokia CK-200 and

libopenobex2 1.5
obexd2 0.35-0maemo1

does not work. CK-200 starts the transfer but immediately returns to the main menu.

cenwesi
2010-12-29, 15:50
just in case anyone is wondering, this method works with sending contact info to the Blueant Q2 Bluetooth. Now when someone calls my n900 the Bluetooth announces the name :)

Smooth-op
2010-12-29, 16:59
I have tried this with a Nissan Qashquai and it works! The dialed calls and missed calls don't show what they should but at least the phonebook works a treat:-) Many thanks to all......

rajil.s
2010-12-30, 23:54
Do all Garmin SatNavs use PBAP? Anybody tried this with a TomTom?

jpvalente
2010-12-31, 16:42
Followed the instructions and it worked perfectly for my car bluetooth kit (Opel Insignia Navi 800)!!
For the less experienced (as myself)just take care where you place the .deb files, if you put them in the N900 root folder (using the file manager), be aware that in the x-terminal it is called home/user/MyDocs !!!

mirakels
2011-01-01, 13:33
Nokia CK-200 and

libopenobex2 1.5
obexd2 0.35-0maemo1

does not work. CK-200 starts the transfer but immediately returns to the main menu.

I don't see much from the hcidump. There are some PBAP messages and some sort of 'telecom' request but now actual transfer of data.
Maybe you can try getting some obexd logging using the obexd debug mode and syslog logging. See the wiki page for that.

StocChr
2011-01-19, 20:40
Hy,

My car is a Ford Focus with CD6000 Radio.

The app works, but I have several problems.

1.) The most contacts will only displayed as phone numbers, not as their contact name.
2.) The names are not in order.

Can anyone help? - Have you the same problem?

Also there is a problem with the outgoing/incoming/missed list.
These lists are transmitted, but there are names in, with whom I have long had no contact. Moreover, these seem to be randomly taken from the phonebook. By the way, the names in outgoing, incoming and missed, are all the same.

cheers

StocChr
2011-01-20, 11:44
attached you can find the hcidump and the sysklogd files.

maybe someone can help me, cause this tool is very nice an i really want to refloat it

cheers

mirakels
2011-01-20, 21:03
from what I can see your hcidump shows proper PBAP request and replies to your Ford. If the data is correct only you can say...

run
hcidump -t -V -X -r hcidumpfocus

and verify the ascii dump at the end of it as responses to the x-bt/phonebook.
requests.. Then you can tell if the data is correct.

mooninite
2011-01-21, 06:11
Has anyone tried to get the N900 going with a E46 BMW? (2004-2006 3 series)

I can call people just fine, by manually dialing the number, but the phonebook doesn't transfer.

I've installed the two debs and rebooted the phone, but the phonebook is still empty on the car (turned car off and on, too).

I see there is a new obexd out (0.39). Does anyone have the debian package files that were used to compile the obexd2 debs? Or can the guy that made the debs on the wiki recompile for the latest version?

StocChr
2011-01-21, 18:07
Hy,

My car is a Ford Focus with CD6000 Radio.

The app works, but I have several problems.

1.) The most contacts will only displayed as phone numbers, not as their contact name.
2.) The names are not in order.

Can anyone help? - Have you the same problem?

Also there is a problem with the outgoing/incoming/missed list.
These lists are transmitted, but there are names in, with whom I have long had no contact. Moreover, these seem to be randomly taken from the phonebook. By the way, the names in outgoing, incoming and missed, are all the same.

cheers

i've got it! special thanks to mirakles!!!

i read out my hcidump file and verify the ascii dump with the hcidump -t -V -X -r command...

now my results:
i find out that all VCards 2.1 requested and transferred correct.
ok, then i looked at the bodywork of all VCards and find out, that only contacts with a specific bodywork display the name on the radio.

the false bodywork:
BEGIN:VCARD
VERSION:2.1
UID:593
REV:2010-01-28T19:06:25Z
N:;Max;;;
TEL;VOICE:0123456789
END:VCARD

the right bodywork:
BEGIN:VCARD
VERSION:2.1
UID:593
REV:2010-01-28T19:06:25Z
TEL;VOICE:0123456789
N:;Max;;;
END:VCARD

it is obvisouly essential that the Name Part of the vcard is at the end!!

so, i revise all my vcards like the right one and ALL contacts were displayed as there name... i am very happy now :D

one downer lasts:
outgoing/incoming/missed are transmitted, but there are names in, with whom I have long had no contact. Moreover, these seem to be randomly taken from the phonebook. By the way, the names in outgoing, incoming and missed, are all the same.

but this doesn't matter, the principal thing that the radio show names work!!

cheers

Mummelnase
2011-02-21, 13:39
Hello everyone,

I installed the packages as instructed in the wiki, and it works fine with my JVC stereo, I have added that to the wiki.

But now I can't install packages anymore. The error is:

The following packages have unmet dependencies:
mp-fremantle-generic-pr: Depends: obexd (= 0.18-0maemo6+0m5) but 0.18-0maemo5+0m5 is to be installed

I'm not very much into aptitude stuff (I'm more into Gentoo), so: what's wrong here and how can I fix it?

Thanks
Thomas

mirakels
2011-03-02, 08:50
Here are the latest version of the libopenobex2 and obexd2 packages (also see the wiki page mentioned on post 1 of this thread for further instructions).

This is probably the most upstream version of obexd we can use. Newer versions of upstream obexd need a newer version of the evolution-addressbook server.

I'll try to get the libopenobex2 and obexd2 into the CSSU in the near future.

Zarhan
2011-03-06, 09:11
Has anyone attempted to upgrade N900's Bluez stack to a version that would support the phonebook access AT commands (At+cpbr, at+cpbs) and so on via the HFP profile? My Seat Ibiza's car kit does not support PBAP or IrMC, unfortunately.

mirakels
2011-03-06, 10:13
Has anyone attempted to upgrade N900's Bluez stack to a version that would support the phonebook access AT commands (At+cpbr, at+cpbs) and so on via the HFP profile? My Seat Ibiza's car kit does not support PBAP or IrMC, unfortunately.

as far as i know bluez does not support these at commands. I'm played with the latest bluez and it runs on my n900 but do'nt know if it breaks anything...

I did add some of the at commands, but the cpbr and cpbs are a bit (to) complicated for now.

mirakels
2011-03-06, 10:18
Hello everyone,

I installed the packages as instructed in the wiki, and it works fine with my JVC stereo, I have added that to the wiki.

But now I can't install packages anymore. The error is:

The following packages have unmet dependencies:
mp-fremantle-generic-pr: Depends: obexd (= 0.18-0maemo6+0m5) but 0.18-0maemo5+0m5 is to be installed

I'm not very much into aptitude stuff (I'm more into Gentoo), so: what's wrong here and how can I fix it?

Thanks
Thomas

Hm, i had the problem the other way around. mamoe5 was installed but it wanted meamo6. I think I fixed it by removing the obexd package with dpkg -r obexd (maybe with som force option or so) an then apt-get install obexd again...
I thi

Zarhan
2011-03-06, 19:09
as far as i know bluez does not support these at commands. I'm played with the latest bluez and it runs on my n900 but do'nt know if it breaks anything...

I did add some of the at commands, but the cpbr and cpbs are a bit (to) complicated for now.

I found this http://www.spinics.net/lists/linux-bluetooth/msg04638.html

and some other hints by googling "phonebook functions for bluez". Those threads are from 2005, though. I guess you'd need to integrate them to the addressbook and all that for it to work on N900 though...

mirakels
2011-03-06, 20:34
I found this http://www.spinics.net/lists/linux-bluetooth/msg04638.html

and some other hints by googling "phonebook functions for bluez". Those threads are from 2005, though. I guess you'd need to integrate them to the addressbook and all that for it to work on N900 though...

Yes I have seen these patches in the past. From that I added some other AT commands, but implementing the phonebook commands for the n900 is quite different that from this patch.

Zarhan
2011-03-19, 20:55
Oh, I noticed something. Apparently PC suite support has broken at some point. I can no longer sync with Outlook. Doesn't work either with PCSuite 7.1 or Ovi Suite 3.0.

I'm not sure if this was caused by using your patched .debs. However, I can't verify this as when I try to follow the downgrading instructions, the ones in wiki seem to be for PR 1.2 or something. Anyway, simply using apt-get install --reinstall obexd libopenobex1 and rebooting causes the situation where no obex daemon is running at all. What's the proper uninstallation procedure for PR 1.3?

Zarhan
2011-03-19, 21:05
Ok, I was able to fix the issue - all I had to do was to remove the obexd2.service file from dbus directory.

Anyway, doesn't look like the cause is the PBAP-enabled version - my PC suite is still broken (in a weird fashion where I can e.g. see files but not SMS messages and so on). Time to look elsewhere for the solution.

ArturRubinstein
2011-03-21, 18:32
Alas, no success with a Seat Leon II 2009, even with the latest files from the Wiki... anyone knows how it can be done? It works with Exeos from 2009 though... :-(

mooninite
2011-03-26, 00:44
OK I finally got around to doing a dump on my E46 BMW and the car is calling AT+CPBS and the phone is returning an error. No go with E46 cars (even with the latest OEM bluetooth computer, made in 2008).

tojola
2011-03-30, 01:23
Dear development team,
sorry for my bad english but i have tryed the two obex .deb's on my N900 and i want help with my experiences.
I use a Clarion Car-Radio (CZ309E) in my Opel Astra G CC I can speak and hear clear and loudly all voices if i call with friends over the car radio.
But i can't sync my contacts with the radio Phonebook/SimBook/missed call's/resived call's.
The Clasrion CZ309E Car Radio has the following bluetooth functions:
HFP / OPP / A2DP /and it is bluetooth ver. 2
For more infomation i have dump a log.
I hope you or anybody can help me, please.
Thank you for reading...

jim_0068
2011-03-30, 20:03
just wanted to reply and say that this works with my 2010 Audi A3.

Thanks

thanosz
2011-03-30, 20:44
Has anyone attempted to upgrade N900's Bluez stack to a version that would support the phonebook access AT commands (At+cpbr, at+cpbs) and so on via the HFP profile? My Seat Ibiza's car kit does not support PBAP or IrMC, unfortunately.

I have Seat Leon MK2 (I believe 2005+ model). I have also been trying to get this to work for some time with no luck. So I suspect what your saying applies to my model as well and that the bluetooth module used does not support PBAP or IrMC.

Can I ask how you discovered that PBAP support is missing and that AT commands are needed as I would like to run the same tests to verify this with my model.

I did at some point get an hcidump but never got around to uploading it. Is this visible in the hcidump?

Thanks

edbanger
2011-03-31, 17:34
Hi,

Just dropping by to say this works perfectly on a 2009 Mercedes ML.
Sadly, it doesn't work when paired with my Tomtom GO 1000 Live. (It probably doesn't support PBAP or IrMC.)

mooninite
2011-04-01, 03:33
I have tried to implement "AT+CPBS" and "AT+CPBR" but I am not very familiar with the bluez code structure. I thought I had added a callback to get the phone to reply to an AT+CPBS call with a default list of phonebooks but the phone still returns "ERROR" when the car calls the AT command.

mirakels, what commands have you implemented?

Zarhan
2011-04-01, 11:06
I did at some point get an hcidump but never got around to uploading it. Is this visible in the hcidump?

Yes - just use hcidump.

Also, another clue was that my car kit works perfectly with E90...

hschmitt
2011-04-07, 09:39
I saw there is a SAP (Sim Access Profile) server implementation in current Bluez 4.91. So maybe there is hope for those with a "premium" car kit.

Crogge
2011-04-15, 16:32
I have the problem that my Kenwood BT60 radio says only "hf error 68" for some reason when I try to connect my N900, could this be related with PBAP?

CupraR
2011-04-28, 09:10
I too would love to be able to get my phone working seamlessly with my Mk2 Seat Leon (2007)

colchaodemola
2011-05-05, 12:22
I installed
obexd2_0.37-0maemo1_armel.deb
libopenobex2-1.5-0maemo3_armel.deb

but my pioneer AVH3280BT does not sync with my phone :/

colchaodemola
2011-05-09, 12:16
Could anyone give me some help ?
I have installed
obexd2_0.37-0maemo1_armel.deb
libopenobex2-1.5-0maemo3_armel.deb

top shows me it is running :
/usr/lib/obex/obexd --debug --nodaemon --opp --ftp --pbap --irmc --pcsuite --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability !/usr/bin/gen-obex-capability.sh

but i can see no communication in syslog ... and my pioneer 3200BT does not get the phone book.... Though i can use it to talk just fine.

I can see this in syslog:
May 9 09:33:59 Nokia-N900 obexd[15662]: src/transport.c:obex_transport_driver_register() driver 0x2b640 transport bluetooth registered
May 9 09:33:59 Nokia-N900 obexd[15662]: src/plugin.c:add_plugin() Plugin bluetooth loaded
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:start() listening on channel 9
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:start() listening on channel 10
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:start() listening on channel 24
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:find_adapter() FindAdapter(any)
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:add_record_reply() Registered: Object Push server, handle: 0x10005
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:add_record_reply() Registered: File Transfer server, handle: 0x10006
May 9 09:33:59 Nokia-N900 obexd[15662]: plugins/bluetooth.c:add_record_reply() Registered: Nokia OBEX PC Suite Services, handle: 0x10007


shouldn't PBAB service be registered ?

Reflektorfalke
2011-05-13, 18:37
The other day I noted that, while I can still access my phone book and dial via my carkit, sound is not transmitted anymore.
I am pretty sure this was introduced by upgrading to power-kernel v47.
Can someone help narrow this problem down and confirm that current obex implementation stopped working with v47?

hschmitt
2011-05-13, 19:52
The other day I noted that, while I can still access my phone book and dial via my carkit, sound is not transmitted anymore.
I am pretty sure this was introduced by upgrading to power-kernel v47.
Can someone help narrow this problem down and confirm that current obex implementation stopped working with v47?I don't use power-kernel, but obexd is not responsible for sound streaming via bluetooth. This is done purely by bluez.

Reflektorfalke
2011-05-13, 20:19
I don't use power-kernel, but obexd is not responsible for sound streaming via bluetooth. This is done purely by bluez.

Thanks hschmitt!
Tried to verify this by pairing my N900 with a HS-56W headset - it works, audio is streamed...
Now I am confused!?:confused:
What does this tell me, whats the difference between audio streaming to headset and streaming to carkit?

Reflektorfalke
2011-05-17, 18:18
The other day I noted that, while I can still access my phone book and dial via my carkit, sound is not transmitted anymore.
I am pretty sure this was introduced by upgrading to power-kernel v47.
Can someone help narrow this problem down and confirm that current obex implementation stopped working with v47?

After having this issue for several days it suddenly disappeared:rolleyes:
Audio is transmitted just fine to and from carkit via bluetooth again. I have no clue what might have caused the issue as I didn`t change anything in the meantime:confused:

Sorry for the confusion caused by this!

thanosz
2011-06-18, 17:44
Hi,

For some reason audio is not transmitted anymore. Phone connects fine with car kit but audio stopped working for some reason.

I could never get phonebook to appear probably because my car kit is not PBAP, but at least I could get audio.

Are there any commands I can use to troubleshoot this? Is this a bluez problem?

Thanks

tsai
2011-06-21, 12:58
just in case anyone is wondering, this method works with sending contact info to the Blueant Q2 Bluetooth. Now when someone calls my n900 the Bluetooth announces the name :)

Hi Cenwesi, could you help me on how to do this? I have installed the obex deb packages given in the Bluetooth_PBAP page trying to make the contacts and calls recognized, but now my blueant q2 can not find or connect to my n900 anymore. I tried again (after downgrading to original state) and the result is the same. can you help me please? many thanks, tsai.

tsai
2011-06-21, 14:10
Hi Cenwesi, could you help me on how to do this? I have installed the obex deb packages given in the Bluetooth_PBAP page trying to make the contacts and calls recognized, but now my blueant q2 can not find or connect to my n900 anymore. I tried again (after downgrading to original state) and the result is the same. can you help me please? many thanks, tsai.

I see now the Censensi's message was from 2010, any one else could help me? the restoration to the original settings will be of great help too, many thanks

Android_808
2011-07-12, 12:35
Just wondering how much work would be involved in updating the evolution-addressbook to support the newer versions of obexd. Reason being the 0.41 release has "initial work towards support for Message Access Profile".

wojtech
2011-10-21, 13:24
Hi! I have a little problem. I have a Sony car reciever MEX BT3900U with BT HF. After I installed obexd2_0.37-0maemo1 and libopenobex2-1.5-0maemo3 the reciever reads phonebook fine. BUT when I make a call (or just leave the list) and want to open it again, the reciever keeps blinking with "LISTING" a even after 5 minutes nothing happens. Where could be the problem? I have attached the outputs from hcidump and sysklog - the first ones are saved after succesful load and the second ones after fail. Thanks for any help! :)

Android_808
2011-10-26, 10:56
Any further news on this project?

Reflektorfalke
2011-10-26, 17:29
Any further news on this project?

I donīt think that anyone is still working on this.
Sure its still not available from repositories, but it works for most if not all with an appropriate carkit.

However, with my new baby (the N9) I have again problems with PBAP.
Created a new thread here (http://talk.maemo.org/showthread.php?t=79345) and the issue is also discussed on MeeGo.com Forum (http://forum.meego.com/showthread.php?t=3942).

n9iscool
2011-10-27, 04:21
Anyone know if an IrMC solution is in the works for N9? Or what it takes to port over from N900?

Thanks.

I donīt think that anyone is still working on this.
Sure its still not available from repositories, but it works for most if not all with an appropriate carkit.

However, with my new baby (the N9) I have again problems with PBAP.
Created a new thread here (http://talk.maemo.org/showthread.php?t=79345) and the issue is also discussed on MeeGo.com Forum (http://forum.meego.com/showthread.php?t=3942).

sjordet
2011-10-31, 10:11
Anyone know if an IrMC solution is in the works for N9? Or what it takes to port over from N900?

I guess it takes a developer with a N9 and a IrMC handsfree...

That said, I'd also really like to see this implemented...

mirakels
2011-10-31, 12:24
If the n9 os uses a recent obexd code IrMC support should already be available.
All my core IrMC code is in the upstream obexd.

And I do not own a n9 of n950 so cannot test this myself.

Reflektorfalke
2011-10-31, 19:35
If the n9 os uses a recent obexd code IrMC support should already be available.
All my core IrMC code is in the upstream obexd.

And I do not own a n9 of n950 so cannot test this myself.

Hi mirakels thanks for your reply!
Seeing you here with your magic skills gives some hope getting PBAP/IrMC for N9 one day :D

I attached the 2 files I found in /usr/lib/obex...
(Didnīt find a "libopenobex")
Are those of any help for you finding the issue here?

mirakels
2011-10-31, 19:50
cannot be of much help here.
If you run a 'strings obexd' you will see IrMC mentioned.
So it has the code inside. Maybe all you need is to figure out how
obexd is called on the n900 and check if the irmc service is enabled or not
(see the startup options on the maemo obexd wiki page)

mirakels
2011-10-31, 19:55
oh, one other thing you might try is using the maemo libopenobex and obexd on te n9.... But you probably need to copy the files manually to the n9...

Reflektorfalke
2011-10-31, 20:03
cannot be of much help here.
If you run a 'strings obexd' you will see IrMC mentioned.
So it has the code inside. Maybe all you need is to figure out how
obexd is called on the n900 and check if the irmc service is enabled or not
(see the startup options on the maemo obexd wiki page)

Well, if I enter

ps | grep obex

in xTerm, I get this output:

/usr/lib/obex/obexd --nodaemon --opp --ftp --pcsuite --pbap --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability !/usr/bin/gen-obex-capability.sh

So it seems PBAP is supported while IrMC is not, right?

I can not test IrMC as my carkit (BMW) uses PBAP as far as I understand.

Unfortunately, as I described in the post/thread linked before, contacts are not transferred correctly :-(

Reflektorfalke
2011-10-31, 20:24
oh, one other thing you might try is using the maemo libopenobex and obexd on te n9.... But you probably need to copy the files manually to the n9...

Hm, ok I understand how to copy obexd from directory /usr/lib/obex/ on N900 to the very same directory on N9, but how about libopenobex? Where am I supposed to find this file?

Do I only need to replace these files or is there anything else to do? If I want to go back, all I need to do is to do it the other way, right?

mirakels
2011-10-31, 20:44
It is not that the n9 does not supprot IrMC. It is just that pbap is enabled (--pbap) while irmc is not (there is no --irmc commandline option in your ps output) Adding --irmc should enable IrMC.

As for copying obexd, please first renamen the original obexd so you can easily switch back.
The libopenobexd can be placed in /usr/lib/ Note also the symlinks for libopenobex (see 'ls -l /usr/lib/libopenobex*' )
I guess there is also an libopenobex on the n9 but may be packaged with the obexd package. So please check before copying the n900 one and rename before copying.

You also might try using the libopenobex on the n9 (if it is there) if it is the same major version (e.g. libopenobex.so.2.x)

Reflektorfalke
2011-10-31, 20:58
It is not that the n9 does not supprot IrMC. It is just that pbap is enabled (--pbap) while irmc is not (there is no --irmc commandline option in your ps output) Adding --irmc should enable IrMC.
Thanks for all you efforts here!
Adding the IrMC option might be worth a try for those who need it!

As for copying obexd, please first renamen the original obexd so you can easily switch back.
The libopenobexd can be placed in /usr/lib/ Note also the symlinks for libopenobex (see 'ls -l /usr/lib/libopenobex*' )
I guess there is also an libopenobex on the n9 but may be packaged with the obexd package. So please check before copying the n900 one and rename before copying.

You also might try using the libopenobex on the n9 (if it is there) if it is the same major version (e.g. libopenobex.so.2.x)

Ok, guess copying obexd after creating a backup shouldnīt be a problem.
Regarding libopenobex I checked again, in /usr/lib on N9 I have:
- libopenobex.so.1
- libopenobex.so.1.4.1

while on N900 in the same directory I have:
- libopenobex.so.1
- libopenobex.so.1.4.1
- libopenobex.so.2
- libopenobex.so.2.0.0

So I assume I also need to copy libopenobex.so.2 and libopenobex.so.2.0.0 from N900 to N9 and create symlinks?
How do I create these symlinks?

mirakels
2011-10-31, 21:06
In that case you do not need to make a backup of the libopenobex lib. Just copy libopenobex.so.2.0.0 to the n9. Then whilst in /usr/lib:

ln -s libopenobex.so.2.0..0 libopenobex.so.2

Reflektorfalke
2011-10-31, 21:53
In that case you do not need to make a backup of the libopenobex lib. Just copy libopenobex.so.2.0.0 to the n9. Then whilst in /usr/lib:

ln -s libopenobex.so.2.0..0 libopenobex.so.2

Damn, doesnīt work :mad:

This is what I did:
Copied from N900 to N9:
obexd to /usr/lib/obex and
libopenobex.so.2.0.0 to /usr/lib

Then
ln -s libopenobex.so.2.0.0 libopenobex.so.2

Can still pair phone and carkit, but when it tries to transfer contacts it cancels immediately. Nothing transferred at all...

Thanks again anyway mirakels, your efforts are highly appreciated!

Reflektorfalke
2011-10-31, 22:24
**** now my device is bricked!
"Device is malfunctioning"
"Security problem with obexd"
Dont follow the steps described before!

Hope I find out how to flash this baby :mad:

mirakels
2011-11-01, 15:04
I'm sorry you got into trouble with the device.
maybe there is a way to reinstall the obexd package.
It might be that they setup selinux on the device to guard against overwrites. Guess someone must know about that on the meego forums...

Reflektorfalke
2011-11-01, 15:43
I'm sorry you got into trouble with the device.
maybe there is a way to reinstall the obexd package.
It might be that they setup selinux on the device to guard against overwrites. Guess someone must know about that on the meego forums...

No worries, wasnīt your fault, appreciate your support on this!
Did everything on my own risk and canīt even tell what exactly bricked the device. When I tried to investigate this further I noticed that ps | grep obex didnīt give me the usual startup command. So I did a chmod a+x obexd and tried to restart obex manually. But restarting was denied with permission denied (yes I was root). Then I wanted to reboot, but phone just gave me a warning as described before.
Thus, reinstalling obexd package wasnīt possible and I had to reflash.
Reflash worked like a charm, so I am again a happy N9 user...Besides the PBAP-issue of course :D

Android_808
2011-11-01, 16:05
I was kinda hoping someone was going to look at update evolution-dataserver to allow more recent versions of obexd etc. to be used.

erendorn
2011-11-01, 17:33
No worries, wasnīt your fault, appreciate your support on this!
Did everything on my own risk and canīt even tell what exactly bricked the device. When I tried to investigate this further I noticed that ps | grep obex didnīt give me the usual startup command. So I did a chmod a+x obexd and tried to restart obex manually. But restarting was denied with permission denied (yes I was root). Then I wanted to reboot, but phone just gave me a warning as described before.
Thus, reinstalling obexd package wasnīt possible and I had to reflash.
Reflash worked like a charm, so I am again a happy N9 user...Besides the PBAP-issue of course :D

The aegis security checks the hashes of the binaries, and compare them to authorized ones. It will prevent you from running your non Nokia signed version, even as root (permission denied), and will prevent the system from running it during boot (bricked device).
If you don't need too many privileges for obexd, you can try to package your custom version, and install (dpkg) it in devel mode (which may get aegis to register and trust the binary).
If this needs privileges restricted to Nokia, then you won't be able to change the obexd without using a custom, aegis-free kernel.

See there (http://forum.meego.com/showthread.php?t=4575)for details.

Reflektorfalke
2011-11-03, 19:17
The aegis security checks the hashes of the binaries, and compare them to authorized ones. It will prevent you from running your non Nokia signed version, even as root (permission denied), and will prevent the system from running it during boot (bricked device).
If you don't need too many privileges for obexd, you can try to package your custom version, and install (dpkg) it in devel mode (which may get aegis to register and trust the binary).
If this needs privileges restricted to Nokia, then you won't be able to change the obexd without using a custom, aegis-free kernel.

See there (http://forum.meego.com/showthread.php?t=4575)for details.

This was my guess, Aegis being the bad boy here :mad:
But thanks for the details and clarification anyway!
Unfortunately I have no idea how to package my own version, but at least there is some hope:
Konttori (http://www.blogger.com/profile/13624128995827387189) said...
A lot of work has been put to better interoperability of BT with cars. I don't know of the exact model you have, but likely the situation is better in PR1.1 link (http://konttoristhoughts.blogspot.com/2011/10/n9-on-sale-in-finland-and-few-other.html#comments)

sjordet
2011-11-04, 13:32
It is not that the n9 does not supprot IrMC. It is just that pbap is enabled (--pbap) while irmc is not (there is no --irmc commandline option in your ps output) Adding --irmc should enable IrMC.

Aha, this is very interesting. Is there any reason that this wouldn't be enabled by default?

Thank you :)

sjordet
2011-11-04, 13:42
Wrong forum, but do anyone know where the startup options for obexd are specified?

Can't find it anywhere, and I can't kill the obexd-process, so I can't start it manually with the right options either...

Reflektorfalke
2011-11-04, 19:47
Wrong forum, but do anyone know where the startup options for obexd are specified?

Can't find it anywhere, and I can't kill the obexd-process, so I can't start it manually with the right options either...

You can find obex start command in
/usr/share/dbus-1/services/obexd.service

(On N900, but should be the same on N9)

Not sure, but it might be no good idea to edit this file, as it might also brick your device!?

sjordet
2011-11-04, 22:53
You can find obex start command in
/usr/share/dbus-1/services/obexd.service

(On N900, but should be the same on N9)

Not sure, but it might be no good idea to edit this file, as it might also brick your device!?

Thanks! I was grepping through /etc without finding anything. I took the plunge, and edited the file. And lo and behold, nothing bad happened - obexd is now starting with the --irmc switch. Haven't had time to test it on the handsfree yet, but I have lots of faith in this :)

Thanks for your help, both of you!

svuce
2011-11-06, 05:01
I am using N900 since 2 years and have no issues so far. I have 2011 Jetta and using the Bluetooth with no phone book and no issues.

From the link
http://wiki.maemo.org/Bluetooth_PBAP, I have updated my phone for the PBAP as exactly mentioned. I do see the Phone book in my carkit and I can make the calls but the biggest issue is

"The other side can hear me, but I can't hear them and also I can't hear the phone ringing sound too. But when I receive a call, I can hear the ring, but I can't hear from them."

Can you please some one help me if I need to updated anything to my N900 or at least let me know, how can revert back my N900 before this update. I am fine living with no phonebook in the carkit as long as I can get the audio in bothways.

Your help is always appreciated.

sjordet
2011-11-07, 08:18
obexd is now starting with the --irmc switch. Haven't had time to test it on the handsfree yet

Well, it might have been a success, I'm just not sure :) Earlier my handsfree said "Phonebook not supported", now it says "Phonebook empty". But I also tried on my girlfriends Audi A1, which uses PBAP - and the phonebook were emtpy there as well.

I have read about problems with contacts that are synchronized, so I disabled my MfE account, and created a couple of new contacts, but nothing changed.

I've read there will be lots of fixes regarding Bluetooth-compatibility in later releases, so I will just wait impatiently and hope for the best :)

Reflektorfalke
2011-11-13, 18:08
I've read there will be lots of fixes regarding Bluetooth-compatibility in later releases, so I will just wait impatiently and hope for the best :)

Bad news, upgraded to PR1.1 (flashed via NSU, not OTA update) but phone book access in my car is as broken as before :-(

Anyone has more success with PR1.1?

Can someone please tell me where I can find the contacts db on my N9 and how to view it on my PC? Just want to make sure there are no weird special characters causing the trouble...

sjordet
2011-11-15, 09:51
Bad news, upgraded to PR1.1 (flashed via NSU, not OTA update) but phone book access in my car is as broken as before :-(

Anyone has more success with PR1.1?

Same here, no fun neither with IrMC nor PBAP still. But I'm still crossing my fingers for PR1.2 ;)

Popanz
2011-11-29, 12:49
Hello can anybody help me?
For me it isn't working. What is irritating me is that wen i put in
ps | grep obex
i only get back:
1817 user 8336 S /usr/lib/obex/obexd --nodaemon --opp --ftp --pbap --i
2001 root 2088 S grep obex
so i think that's not the complete command it looks like it is cut after the --i
is that normal or is there something wrong?

Reflektorfalke
2011-12-05, 20:20
Someone already filed a bug (http://harmattan-bugs.nokia.com/show_bug.cgi?id=10) regarding transfer of phone book to carkit
Please vote for it guys...

madmax
2011-12-17, 09:53
I bought an Opel Insignia with a DVD800 system. With the steps in the wiki my n900 worked. I can call someone from my phonebook. Thanks!

I added my car in the wiki, for other users.

rob_kouw
2012-01-20, 20:10
... I can make the calls but the biggest issue is

"The other side can hear me, but I can't hear them and also I can't hear the phone ringing sound too. But when I receive a call, I can hear the ring, but I can't hear from them." ...

My problem is a bit off this conversation, but anyway... My bluetooth connection with the carkit gives me headaches.

I bought an Iqua PHF-302 carkit. Nothing fancy with a phone book, but it should do the trick. Now I can make one call, and then strange things happen. I don't hear calls coming in, the N900 becomes slow and I may not hear the caller or vice versa.

Solution (not): switch off the carkit, turn off Bluetooth, and turn everything on again. Sounds a bit like Windows...
I did install the Linux kernel for power users 48. Is that it?

Thanks, Rob

braintez
2012-03-01, 01:46
All, just wanted to pass along that I tried this on my N9 with the upgraded PR1.2 firmware and the issue is still prevalent:

Can't transfer phonebook information to my E92 2011 BMW. Can't believe that the developers resolved the ticket. Hopefully the community comes through here. :)

sophocha
2012-04-14, 22:13
N900
2011 Scoda Octavia 1.6 tdi with Bolero mp3 system

Before: I couldn`t access my phone book
After the patch: Excellent! I can now see my phone book on the head unit!

Thank you sooo much. one of the most useful updates ever on this forum!!!

sophocha
2012-05-27, 19:01
N900
2011 Scoda Octavia 1.6 tdi with Bolero mp3 system

Before: I couldn`t access my phone book
After the patch: Excellent! I can now see my phone book on the head unit!

Thank you sooo much. one of the most useful updates ever on this forum!!!

somehow it is now broken.....i can see my address book just fine but whenever I make calls I cannot hear the caller on the cars speakers, it used to work just fine....oh well

JonWW
2012-05-28, 07:17
[...] whenever I make calls I cannot hear the caller on the cars speakers, it used to work just fine....oh well

Have you tried to adjust the volume on the N900 when it is connected via bluetooth, as there are different volume settings for headphones, speakers, bluetooth etc... it may be that you have accidently turned the volume down for the bluetooth mixer.

frank63
2012-06-19, 09:44
With release 0.37 phonebook works fine on my Renault scenic xmod, but it doesn't work well for the calls log (history). In received, missed, answered calls i have the first 10 voices of the phone book.
Let me know how i can do to help to understand what's happened...

float
2012-06-19, 13:39
Works like a charm on Seat Ibiza 6J (and probably some other Seat models)! What I have not testet yet: SIM contacts since I don't have any and the call log.
Thanks a lot!!

NOkk3r1
2012-06-19, 15:28
I would love to have this also on N9/N950. How much modification it would require?

frank63
2012-06-20, 08:32
In my Renault XMOD is working fine for Phone book, how can i understand if is working in PBAP or in IrMC mode?

luf
2012-07-12, 15:10
In my Renault XMOD is working fine for Phone book, how can i understand if is working in PBAP or in IrMC mode?

You have to enable debug mode for obexd and start sysklogd ;)
Then you can find in /var/log/syslog something like:
Jul 12 03:01:34 Nokia-N900 obexd[1676]: src/obex.c:cmd_connect() Selected driver: Phonebook Access server

Be sure to do it only when you know what are you doing. As keeping sysklogd enabled is definately bad idea.

peterleinchen
2012-07-13, 13:02
Just out of curiousity: how to enable debug mode for obexd?
(did not find in /etc/obex or /etc/bluetooth)

And I have syslog on all the time, what do you think is problematic?

luf
2012-07-13, 14:43
#dpkg -L obexd
...
/usr/share/dbus-1/services/obexd.service

#cat /usr/share/dbus-1/services/obexd.service
[D-BUS Service]
Name=org.openobex
Exec=/usr/lib/obex/obexd --nodaemon --debug='*' --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability '!/usr/bin/gen-obex-capability.sh'

Ops, I'm debugging it right now :) You have little bit different output as I'm experimenting with obex 0.45. But the main idea is to add --debug='*'. Maybe "*" is too but I didn't invest my time to learn what should be there instead of "*".

BTW "/usr/lib/obex/obexd --help" should also give you some overview.

IMHO syslog slowers N900 and also peridical write isn't very good for the device. But if you know what are you doing (properly set syslog.conf, ...) It's ok. Anyway default syslog config *.* to /var/log/syslog isn't good option.

luf
2012-07-17, 20:24
Hello all,

after several days of playing with obexd due to PBAP support I hope I reach the beta phase.

What's new:
1) working obexd-0.46
- no openobex dependency
- several PBAP fixes
- backporting maemo's older bluez, dbus, ebook, glib
- unfortunately it doesn't fix the "PBAP working but buggy, after copying contacts to Nokia Speakerphone HF-510 only some of them are visible, incoming calls show wrong name from some other contact."

2) It seems to me that the problem with buggy is in empty values in vcards so I try patch the evolution-data-server (only export to text vcards)

Unfortunatelly I had to borrow my car for this week and now I have only HF with IRMC support (works well without bug).

Do someone want to test these packages (it's not part of cssu yet!)? It will be the best if you face the bug with wrong name and invisible contacts. It's better to have some knowledge about xterm and dpkg (in case you need to downgrade back to older versions).

List of packages:
obexd_0.46-1maemo1+cssu1_armel.deb
evolution-data-server-addressbook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libebook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedata-book_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedataserver_1.4.2.1-20120717-maemo1+cssu1_armel.deb

!! New release available !!! You can download this and newer version at http://merlin1991.at/~luf/pbap/

Luf

hschmitt
2012-07-18, 09:37
Hello all,

after several days of playing with obexd due to PBAP support I hope I reach the beta phase.

What's new:
1) working obexd-0.46
- no openobex dependency
- several PBAP fixes
- backporting maemo's older bluez, dbus, ebook, glib
- unfortunately it doesn't fix the "PBAP working but buggy, after copying contacts to Nokia Speakerphone HF-510 only some of them are visible, incoming calls show wrong name from some other contact."

2) It seems to me that the problem with buggy is in empty values in vcards so I try patch the evolution-data-server (only export to text vcards)

Unfortunatelly I had to borrow my car for this week and now I have only HF with IRMC support (works well without bug).

Do someone want to test these packages (it's not part of cssu yet!)? It will be the best if you face the bug with wrong name and invisible contacts. It's better to have some knowledge about xterm and dpkg (in case you need to downgrade back to older versions).

List of packages:
obexd_0.46-1maemo1+cssu1_armel.deb
evolution-data-server-addressbook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libebook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedata-book_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedataserver_1.4.2.1-20120717-maemo1+cssu1_armel.deb

Luf
Hi I only have an IRMC carkit, but one thing comes to my mind. You should test PCSuite, too. Did you apply the patch, because signaling for pcsuite has changed in obexd see:
http://talk.maemo.org/showpost.php?p=766456&postcount=250

luf
2012-07-18, 09:45
Hi I only have an IRMC carkit, but one thing comes to my mind. You should test PCSuite, too. Did you apply the patch, because signaling for pcsuite has changed in obexd see:
http://talk.maemo.org/showpost.php?p=766456&postcount=250

Hi,

thanks for the question. I used all patches from obexd-0.37 for maemo which are applicable (not in obex fixed). So yes the usb one is included.

For sources you can take a look: http://merlin1991.at/~luf/pbap/source

luf
2012-07-18, 09:47
Hi I only have an IRMC carkit, but one thing comes to my mind. You should test PCSuite, too. Did you apply the patch, because signaling for pcsuite has changed in obexd see:
http://talk.maemo.org/showpost.php?p=766456&postcount=250

Hi, thanks for the question. I used all patches from obexd-0.37 for maemo which are applicable (not in obex fixed). So yes the usb one is included.

For sources you can take a look: http://merlin1991.at/~luf/pbap/source

hschmitt
2012-07-18, 09:52
It is not that the n9 does not supprot IrMC. It is just that pbap is enabled (--pbap) while irmc is not (there is no --irmc commandline option in your ps output) Adding --irmc should enable IrMC.

As for copying obexd, please first renamen the original obexd so you can easily switch back.
The libopenobexd can be placed in /usr/lib/ Note also the symlinks for libopenobex (see 'ls -l /usr/lib/libopenobex*' )
I guess there is also an libopenobex on the n9 but may be packaged with the obexd package. So please check before copying the n900 one and rename before copying.

You also might try using the libopenobex on the n9 (if it is there) if it is the same major version (e.g. libopenobex.so.2.x)
So I have my N9 for one week and did a bit of debuging on IRMC support. Unfortunatly I have to confirm that IRMC support is not possible without a patched version of obexd. There is an incompatibility between the the obexd irmc code and the obexd tracker code.
I will try to fix this upstream, but due to aegis we cannot replace obexd binary in the N9.

hschmitt
2012-07-18, 11:43
Hello all,

after several days of playing with obexd due to PBAP support I hope I reach the beta phase.
... Hi, I saw your patch on bluez mailing list you submitted today. That is exactly the patch I talked one post before. So you discovered it from N900, I discovered it from N9 ;-)
Good to see that you try to get it upstream, but you should use git format-patch otherwise it might not be accepted. Can you do it? Otherwise I would submit the same patch formatted with git format-patch.

luf
2012-07-18, 11:52
Hi, I saw your patch on bluez mailing list you submitted today. That is exactly the patch I talked one post before. So you discovered it from N900, I discovered it from N9 ;-)
Good to see that you try to get it upstream, but you should use git format-patch otherwise it might not be accepted. Can you do it? Otherwise I would submit the same patch formatted with git format-patch.

Hi, I didn't study it more deeper. So I have no idea if it will work with another phonebooks. So the patch was only an inspiration (show exactly what I'm talking about).

If you can create format-patch please do it.

BTW I answered your previous question but I include URL and it has to be approved by moderator. Answer is that I include all patches from meamo obexd 0.37 which isn't in mainstream. And for sure usb is included.

Sources are on merlin1991 (dot) at (slash) ~luf (slash) pbap (slash) source

And unfortunately I have no win machine so I can't test pc suite. Or is there some linux tool to test it?

Thank you.

hschmitt
2012-07-18, 15:13
...
If you can create format-patch please do it.Done.
...
And unfortunately I have no win machine so I can't test pc suite. Or is there some linux tool to test it?
...I neither have a win machine, but when you plug in usb and select "pc-suite" mode obexd should be signaled. You could see it in the debug output. And a signaling should happen when unplugging usb.

luf
2012-07-18, 19:04
Done.
I neither have a win machine, but when you plug in usb and select "pc-suite" mode obexd should be signaled. You could see it in the debug output. And a signaling should happen when unplugging usb.

I hope it worked. But I'm waiting if someone test it (PBAP + PC Suite) and share the result here.
I think you mean:


Jul 18 20:49:09 Nokia-N900 obexd[1629]: plugins/usb.c:handle_io_signal() SIGUSR1
Jul 18 20:49:09 Nokia-N900 obexd[1629]: src/obex.c:obex_session_start()
Jul 18 20:49:09 Nokia-N900 obexd[1629]: plugins/usb.c:usb_connect() Successfully opened /dev/ttyGS0
Jul 18 20:49:09 Nokia-N900 root: /usr/sbin/pcsuite-enable.sh: sent SIGUSR1 to obexd
Jul 18 20:49:09 Nokia-N900 root: /usr/sbin/pcsuite-enable.sh: sent SIGUSR1 to syncd
...
Jul 18 20:49:09 Nokia-N900 [1385]: GLIB DEBUG default - usb-plugin::current-state: PC Suite Mode

Acurus_
2012-07-20, 17:20
Hello all,

after several days of playing with obexd due to PBAP support I hope I reach the beta phase.

What's new:
1) working obexd-0.46
- no openobex dependency
- several PBAP fixes
- backporting maemo's older bluez, dbus, ebook, glib
- unfortunately it doesn't fix the "PBAP working but buggy, after copying contacts to Nokia Speakerphone HF-510 only some of them are visible, incoming calls show wrong name from some other contact."

2) It seems to me that the problem with buggy is in empty values in vcards so I try patch the evolution-data-server (only export to text vcards)

Unfortunatelly I had to borrow my car for this week and now I have only HF with IRMC support (works well without bug).

Do someone want to test these packages (it's not part of cssu yet!)? It will be the best if you face the bug with wrong name and invisible contacts. It's better to have some knowledge about xterm and dpkg (in case you need to downgrade back to older versions).

List of packages:
obexd_0.46-1maemo1+cssu1_armel.deb
evolution-data-server-addressbook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libebook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedata-book_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedataserver_1.4.2.1-20120717-maemo1+cssu1_armel.deb

Luf

I will test it with my Audi (Radio Symphony).

1. Edit: Nokia PC Suite (7.1.180.64): Contacts can be opened and syncronized with Outlook!

2. Edit: N900 can be connected with my Audi's hands-free device successfully. Address book has been imported well. Bluetooth manager of N900 displays a HFP connection.

luf
2012-07-21, 17:19
I will test it with my Audi (Radio Symphony).

1. Edit: Nokia PC Suite (7.1.180.64): Contacts can be opened and syncronized with Outlook!

2. Edit: N900 can be connected with my Audi's hands-free device successfully. Address book has been imported well. Bluetooth manager of N900 displays a HFP connection.

First of all thank you very much for the test.

1) great you tested PC Suite
2) Did you see all contacts? I get back my car and I see 4 problems:
- first contact (not alphabetically) wasn't shown as HF use first VCARD as "My identity"
- contact with defined skype has added letter "A" at the end of phone number (e.g. +420123456A)
- wrong parsing of PHOTO;VALUE=uri in HF which leads to joinig two contacts into one
- Maemo SDK had set wrong parameter so even plain recompiling evolution-data-server leads to crashing Calendar (occasional)

I solved all of above. I uploaded correct updated version of evolution-data-server to http (colon) (double slash) merlin1991 (dot) at (slash) ~luf (slash) pbap
Right now I'm cleaning the code of obexd and I'll release new version later today or maybe tomorrow.

Acurus_
2012-07-21, 19:30
2) Did you see all contacts? I get back my car and I see 4 problems:
- first contact (not alphabetically) wasn't shown as HF use first VCARD as "My identity"

The first contact shown within my Audi's hands-free device is all right. The first contact shown in PC Suite is fine, as well. But some persons seems to be without a number in the PC Suite contacts. This are contacts, where the number is in a field like "work number" and "private number". If the number is in a "number only" field, it will be shown. Otherwise: Every number is shown on the N900 itself. And when I syncronize between PC Suite and Outlook, the every number is shown in Outlook.

- contact with defined skype has added letter "A" at the end of phone number (e.g. +420123456A)

I have no skype contacts ...

- wrong parsing of PHOTO;VALUE=uri in HF which leads to joinig two contacts into one

??? I do not understand, what do you mean ...

- Maemo SDK had set wrong parameter so even plain recompiling evolution-data-server leads to crashing Calendar (occasional)

Till now, my calendar is working without a crash.

I solved all of above. I uploaded correct updated version of evolution-data-server to http (colon) (double slash) merlin1991 (dot) at (slash) ~luf (slash) pbap
Right now I'm cleaning the code of obexd and I'll release new version later today or maybe tomorrow.

That is fine. I will test it!

crnkoj
2012-07-22, 07:12
Hey guys, i know this is a n900 thread, but since there is no real movement for PBAP on the N9, i was wondering how hard it would be to get this to work on the N9. As far as i understood and did research, it already has obexd that starts with the PBAP protocol/plugin, but the names won t get transferred to PBAP enabled devices (headset in my case). So i was wondering what would need to be done in order to get this working (editing bluez and recompiling it with PBAP support?)? thanks

Acurus_
2012-07-22, 07:43
The N9 and PBAP is mysterious. It is not officially integrated. But some persons can use PBAP functionalities, other not. You should try to reset the bluetooth connection. If this will not work, you should try an other headset.

crnkoj
2012-07-22, 09:25
The N9 and PBAP is mysterious. It is not officially integrated. But some persons can use PBAP functionalities, other not. You should try to reset the bluetooth connection. If this will not work, you should try an other headset.

yes, im well aware of it, thats why i asked for help here :) but ehm new headset, i just spent 50e for this nokia one thats really nice and useful, but doesnt do pbap with the n9, thats why i was wondering if anyone got ideas how to make it work, since it clearly supports pbap on a lumi 800 and on all android devices i have O_o

Acurus_
2012-07-22, 09:35
If I am right, it should be problematic, to chance something in the N9 like it has been changed for the N900 here. Because the PBAP inside the N9 is not "that open" like in the N900. Otherwise PBAP is a part of the N9, but it does not work with every device.

luf
2012-07-22, 09:39
Hey guys, i know this is a n900 thread, but since there is no real movement for PBAP on the N9, i was wondering how hard it would be to get this to work on the N9.

I'm sorry I have no N9. I think you don't use PBAP but IrMC profile. There is only missing '/' in two places. If you read whole previous page we talked about it with hschmitt (and hschmitt sent patch to the obexd team).

For sure PBAP/IrMC aren't related to bluez package. It's in obexd package (as you can see which packages to update on N900).

crnkoj
2012-07-22, 10:48
I'm sorry I have no N9. I think you don't use PBAP but IrMC profile. There is only missing '/' in two places. If you read whole previous page we talked about it with hschmitt (and hschmitt sent patch to the obexd team).

For sure PBAP/IrMC aren't related to bluez package. It's in obexd package (as you can see which packages to update on N900).

i did in fact try enabling irmc plugin on the n9 and it started fine, but still not working. But the headset is PBAP and not IRMC compatible (has it in the specs and on the android devices it uses PBAP).
Sadly i dont know that much about linux and specifically bluetooth/obex, so i dont really know where to start patching or editing.
thanks again

Android_808
2012-07-22, 11:55
if were now using obexd 0.46, does that mean message access protocol might be possible :)

luf
2012-07-22, 18:16
if were now using obexd 0.46, does that mean message access protocol might be possible :)

If someone write the code for Maemo ;) Everything is possible.

luf
2012-07-22, 18:27
I clean up the code and patches and add the PBAP call history to the new version. There are also fixes for buggy behaviour of VW Touch Adapter.

I'm using it so I hope it's stable enough so I hope you'll try it also.

Changelog:
obexd (0.46-1maemo2+cssu1)
* Fix missing 0.vcf in phonebook_pull
* Fix IrMC to use full path
* Fix bugs in VW Touch Adapter
- removing X-SKYPE from VCARD
- add empty line after PHOTO;VALUE=uri: (not needed by RFC)
* Add initial support for call history (ich, och, mch, cch)

obexd (0.46-1maemo1+cssu1)
* New upstream release.
* backport for glib, dbus and bluez from maemo

obexd (0.45-1maemo1+cssu1)
* use maemo patches from 0.37-0maemo1
* backport for EDS from maemo
* read default addressbook if no addressbook present
* backport for bluez from maemo

Sources and other .deb packages are accessible at http://merlin1991.at/~luf/pbap/

Newer version is available. You can find more info here http://talk.maemo.org/showpost.php?p=1250098&postcount=378

Attached file:
obexd_0.46-1maemo2+cssu1_armel.deb (94.6 KB)

luf
2012-07-22, 18:32
1. Edit: Nokia PC Suite (7.1.180.64): Contacts can be opened and syncronized with Outlook!


Does it mean that Outlook synchronization doesn't work with older version?

Acurus_
2012-07-22, 18:38
It worked before I have installed your *.deb's. And it is working after installing your *.deb's.

hschmitt
2012-07-23, 03:55
If I am right, it should be problematic, to chance something in the N9 like it has been changed for the N900 here. Because the PBAP inside the N9 is not "that open" like in the N900. Otherwise PBAP is a part of the N9, but it does not work with every device.You can debug the behaviour of your N9. In the file "/usr/share/dbus-1/services/obexd.service" add the "--debug" option to the obexd call. Then you can see debug messages in "/var/log/syslog". From these messages you can tell how far the headset gets with querying PBAP.

I wrote in a previous post that IRMC is not possible with N9. Actually, I have to revise my statement. It might be possible.
obexd has a plugin mechanism. At the moment all available pugins are compiled into obexd but it can load plugins dynamic libraries, too.
Therefore obexd tries to load each "lib*.so" file in directory "/usr/lib/obex/plugins/". I renamed the irmc plugin to irmc2 applied the patch to fix it and compiled a libirmc2.so using scratchbox as a obexd plugin.
There are two obstacles.
First, I don't know whether aegis restricts obexd to load via "dlopen" a dynamic library?
Second, I don't know whether I compiled my libirmc2.so correctly?
Since I cannot kill and restart obexd, I cannot test it without a reboot. And if one of the obstacles occurs the device would be bricked. Currently, I have no time to reset my device.
If someone has a spare device to test it, please pn me. I will sent the compiled lib or if someone wants to compile it himself, I can share the sources.

hschmitt
2012-07-28, 15:37
I'm sorry I have no N9. I think you don't use PBAP but IrMC profile. There is only missing '/' in two places. If you read whole previous page we talked about it with hschmitt (and hschmitt sent patch to the obexd team).
Hi luf,
the patch is now upstream:
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=6a000e6a95e3eaeb868d57ec9 d17a368b87f49a1
There are two more patches related to irmc.
Maybe you could integrate them and see, whether it still works.
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=56cec0f87a3887148dce8e4b4 a7de40772b8c80c
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=04cc5bfe556f067d505926664 86f94045cb2454a

Sadly, the patches came into obexd right after version 0.47 was published, but for 0.48 IRMC should work.

crnkoj
2012-07-30, 15:51
Hi luf,
the patch is now upstream:
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=6a000e6a95e3eaeb868d57ec9 d17a368b87f49a1
There are two more patches related to irmc.
Maybe you could integrate them and see, whether it still works.
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=56cec0f87a3887148dce8e4b4 a7de40772b8c80c
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=04cc5bfe556f067d505926664 86f94045cb2454a

Sadly, the patches came into obexd right after version 0.47 was published, but for 0.48 IRMC should work.

Thanks for the info, ill try the debug option (sadly havent had any time at all to try it till now, will do it now) and see what i can understand from it. I still strongly believe the headset is using PBAP and not IRMC.

Edit: so this is the syslog with debug on on obexdand with bluetooth debugging (i guess on on, i didnt change it): http://pastebin.com/fUh1CBJR . I believe the key to my issue lies within lines 5 and 6 of the pastebin and possibly line 9? But i have no clue as to how to repair/mod the thing to make this nokia phonebook to work. Does it only want to download phone number from the SIM card, or am i understanding it wrongly?
edit2: here a syslog of it when i receive and do a call: http://pastebin.com/G1hkmY8F

luf
2012-07-31, 10:51
Hi luf,
the patch is now upstream:
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=6a000e6a95e3eaeb868d57ec9 d17a368b87f49a1
There are two more patches related to irmc.
Maybe you could integrate them and see, whether it still works.
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=56cec0f87a3887148dce8e4b4 a7de40772b8c80c
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=04cc5bfe556f067d505926664 86f94045cb2454a

It's great that fixes for IrMC are in upstream.

I'm sorry I don't want to use patch for recognizing correct phone books. As you can see I'm using completely different way in obexd for maemo N900 (I added also call history).

BTW it seems to me that it's some kind of cleanup of code instead of fixing some issues (or am I wrong?),
I also want to use only packages from debian testing as it's tested.

luf
2012-07-31, 11:04
Thanks for the info, ill try the debug option (sadly havent had any time at all to try it till now, will do it now) and see what i can understand from it. I still strongly believe the headset is using PBAP and not IRMC.

How did you enable the debug and how is the syslog configured?
(I think you can try --debug='*' instead of only --debug)
I miss more info in the syslog.

I get something like:
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:obex_session_start()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_connect()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: CONNECT(0x0), (null)(0xffffffff)
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_connect() Selected driver: Phonebook Access server
Jul 18 21:25:44 Nokia-N900 obexd[1618]: CONNECT(0x0), (null)(0x0)
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_setpath()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: SETPATH(0x5), (null)(0xffffffff)

As you can see you logged only some of the lines ...

hschmitt
2012-07-31, 11:12
It's great that fixes for IrMC are in upstream.

I'm sorry I don't want to use patch for recognizing correct phone books. As you can see I'm using completely different way in obexd for maemo N900 (I added also call history)...Wow that's cool. Maybe I have to reactivate my N900 as primary phone.
...
BTW it seems to me that it's some kind of cleanup of code instead of fixing some issues (or am I wrong?),..Yes it is just cleanup. And the first one is only replacing strings with macros. The one not committed by me is a lot restructuring and I hoped, that you could compile and test it once, so that their is no bug in it (no need to include those in your distributed packages).
...I also want to use only packages from debian testing as it's tested.like IRMC :rolleyes:
Actually, I doubt that IRMC is tested regularly, because it was not working since 2011-02-17!

luf
2012-07-31, 11:54
Wow that's cool. Maybe I have to reactivate my N900 as primary phone.

I did it only in synchronous way and I tested it only with pbap-client from my computer.
Unfortunately no HF I tested using it (no idea if I miss something or just HFs don't use PBAP call history - ich, och, mch, cch).
I tested it with VW Touch Adapted (Burry manufacturer) and Parrot CK3100 (no idea what firmware - brother took it to vacation for 14 days).

Actually, I doubt that IRMC is tested regularly, because it was not working since 2011-02-17!

That's true. Ok. I'll try the last patch. But I'm working on asynchronous rtcom-eventlogger interface right now so I have no clue when I try the patch.

crnkoj
2012-07-31, 13:18
How did you enable the debug and how is the syslog configured?
(I think you can try --debug='*' instead of only --debug)
I miss more info in the syslog.

I get something like:
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:obex_session_start()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_connect()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: CONNECT(0x0), (null)(0xffffffff)
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_connect() Selected driver: Phonebook Access server
Jul 18 21:25:44 Nokia-N900 obexd[1618]: CONNECT(0x0), (null)(0x0)
Jul 18 21:25:44 Nokia-N900 obexd[1618]: src/obex.c:cmd_setpath()
Jul 18 21:25:44 Nokia-N900 obexd[1618]: SETPATH(0x5), (null)(0xffffffff)

As you can see you logged only some of the lines ...

Yes you are right, im sorry for that confusion, i have added the --debug line wrongly to obexd.services, i believe i added it properly now, this is the syslog with it http://pastebin.com/Hykb1j4B
seems like it starts at line 18 and goes until something like line 91. I dont really understand the errors/messages though, it seems like its trying to get the stuff from the pbap server but cant, anyone has an idea?
thanks

luf
2012-07-31, 14:27
I dont really understand the errors/messages though, it seems like its trying to get the stuff from the pbap server but cant, anyone has an idea?
thanks

BTW it seems to me like outgoing call.
What about contact list? Does HF support contact list?

I have bad news for you. I may be wrong as I don't take a look into N9 code but I'm looking inside 0.46 code.

From your log:
Jul 31 15:04:07 (2012) obexd[1319]: plugins/pbap.c:parse_aparam() o 0 sa 1 sv xxxxxxxxxx fil 0 for 0 max 2 off 0
order = 0 - no sort
search attribute = 1 - number
search value = 'xxxxxxxxxx' - what is looking for
filter = 0 - no filter - returns all
format = 0 - ???
maxlistcount = 2 - maximum two entires
offset = 0 - get it from the begin of the list

There is no support for search value in tracker phonebook.
So it seems your HF is using feature which isn't supported.

[sbox-FREMANTLE_ARMEL: ~/Devel/obexd/0.46/obexd-0.46] > grep searchval plugins/phonebook-tracker.c
[sbox-FREMANTLE_ARMEL: ~/Devel/obexd/0.46/obexd-0.46] >

frank63
2012-07-31, 15:58
With release 0.37 phonebook works fine on my Renault scenic xmod, but it doesn't work well for the calls log (history). In received, missed, answered calls i have the first 10 voices of the phone book.
Let me know how i can do to help to understand what's happened...

On Renault XMOD with release 0.46 it works fine also history!!!
Great jobs.

crnkoj
2012-07-31, 16:05
BTW it seems to me like outgoing call.
What about contact list? Does HF support contact list?

I have bad news for you. I may be wrong as I don't take a look into N9 code but I'm looking inside 0.46 code.

From your log:
Jul 31 15:04:07 (2012) obexd[1319]: plugins/pbap.c:parse_aparam() o 0 sa 1 sv xxxxxxxxxx fil 0 for 0 max 2 off 0
order = 0 - no sort
search attribute = 1 - number
search value = 'xxxxxxxxxx' - what is looking for
filter = 0 - no filter - returns all
format = 0 - ???
maxlistcount = 2 - maximum two entires
offset = 0 - get it from the begin of the list

There is no support for search value in tracker phonebook.
So it seems your HF is using feature which isn't supported.

[sbox-FREMANTLE_ARMEL: ~/Devel/obexd/0.46/obexd-0.46] > grep searchval plugins/phonebook-tracker.c
[sbox-FREMANTLE_ARMEL: ~/Devel/obexd/0.46/obexd-0.46] >
the xxxx in "search value = 'xxxxxxxxxx' - what is looking for" is just the phone number i have replaced with the X's for privacy reasons, yes its an outgoing call ( i doubt it makes any difference if its out or ingoing call).
What do you mean with "contact list" ? This is the headset i have http://accessories.nokia.com/products/nokia-bluetooth-stereo-headset-bh-221/ under specifications they say: HFP 1.5, PBAP 1.0, A2DP 1.2, AVRCP 1.0. Hmm i see this might be an issue if the tracker doesnt support this. I guess i cant change/force the headset/obex/pbap to use something other than "search value" and patching the phonebook tracker to support it would probably be a huge amount of work (i assume)?
about the support of it in the phonebook tracker, you greped it on the sources of the maemo/n900 version on your pc or just straight on the n900 (i assume i should find the sources for the n9 phonebook tracker/obexd and grep it there - if so where woudl i be getting them - a quick google didnt turn up with anything useful?)?
thanks again
Edit: so i checked the version of obexd on my n9 and it says it has 0.42-0maemo18+0m8 , so since this is even older than yours, i assume it wont support that at all... Got any other quick and dirty ideas to fix this nokia-made mess? thanks

frank63
2012-07-31, 16:08
You have to enable debug mode for obexd and start sysklogd ;)
Then you can find in /var/log/syslog something like:
Jul 12 03:01:34 Nokia-N900 obexd[1676]: src/obex.c:cmd_connect() Selected driver: Phonebook Access server

Be sure to do it only when you know what are you doing. As keeping sysklogd enabled is definately bad idea.

I have a lot of rows: starting with "plugins/pbap.c:"

like this :
Jun 19 19:42:53 Nokia-N900 obexd[1558]: plugins/pbap.c:query_result()
and only the drive and plugin load and initi for IrMC.
I suppose is working in PBAP...

luf
2012-07-31, 17:11
What do you mean with "contact list" ?

Your headset doesn't support showing/browsing "contact list".

Hmm i see this might be an issue if the tracker doesnt support this. I guess i cant change/force the headset/obex/pbap to use something other than "search value" and patching the phonebook tracker to support it would probably be a huge amount of work (i assume)?

Someone has to add the support for the serachval into the obexd pbap plugin wiht tracker backend.
But I have no N9 and N900 doesn't use tracker backend.

luf
2012-07-31, 17:16
On Renault XMOD with release 0.46 it works fine also history!!!

Thanks for the report!
What about speed? I'm thinking about setting some count limit for call history lists ...

crnkoj
2012-08-01, 18:07
Your headset doesn't support showing/browsing "contact list".



Someone has to add the support for the serachval into the obexd pbap plugin wiht tracker backend.
But I have no N9 and N900 doesn't use tracker backend.

OK, thanks for the info and help. I dont have the knowledge or time to do that, if you would get some spare time to write it though, i can test it out on my device than.

luf
2012-08-08, 11:12
http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=04cc5bfe556f067d505926664 86f94045cb2454a

I take a look on the patch and it conains memory leak. I mentioned it on obexd IRC (in last chunk the path is allocated but never freed). So I don't want to use.
I also don't understand why comparing still the same parts are more sexy than the way to test it part by part.
I mean:
if (!g_strcmp0(variable, "/telecom/pb"))
else if (!g_strcmp0(variable, "/telecom/ich"))
...

instead of
if (!strncmp(variable, "/telecom/", 9)) {
variable += 9;
if (!g_strcmp0(variable, "pb"))
else if (!g_strcmp0(variable, "ich"))
...
}

luf
2012-08-10, 13:02
New version released. The good news is that CSSU developers agree with including into CSSU so we're working on it.

Changelog:
obexd (0.46-1maemo3+0cssu1)
* Rewrite call history using asynchronous calls (reduce obexd patches)
- this speeds up vcard-listing
* Fix removal of filter after last filter_data
* Fix incorrectly discarded signals
* Fix not printing debug messages when GOBEX_DEBUG is set
* Fix client PBAP setpath using absolute path with known locations
* Add cleanup of '.pcsuite' file on init
* Add call history support to IrMC profile

For async support new packages are needed. Also patched evolution-data-server package is recommended (you can download it from previous release (http://talk.maemo.org/showpost.php?p=1241328&postcount=359)).

You can find all packages (and more) with sources on merlin's server (http://merlin1991.at/~luf/pbap/).


For next release I plan porting MAP support (for SMS) from meego.

Newer version is available. You can find more info here http://talk.maemo.org/showpost.php?p...&postcount=436

droll
2012-08-14, 08:07
Map support? Yes! Danke!

don_falcone
2012-08-21, 14:09
Nice, thank you very much. Hopefully the car radio will be integrated this weekend, so that i could help with tests :D

droll
2012-08-23, 09:08
after installing this, i can now synch phonebooks with the car headunit. does this expose an early implementation of the MAP profile? the car appears to be trying to import smses but fails after a while with an error. it never did this before prior to this update.

PUNK
2012-08-23, 14:24
support MAP profile,GREAT JOB...

liedekef
2012-08-27, 22:38
Just tried the latest release from http://merlin1991.at/~luf/pbap/ , but no dice for my Opel Ampera (or Chevrolet Volt for that matter).
I guess you need some debugging info?

Acurus_
2012-08-28, 06:23
I am little bit confused. This is the last update, I have installed on 22 July 2012:

I clean up the code and patches and add the PBAP call history to the new version. There are also fixes for buggy behaviour of VW Touch Adapter.

I'm using it so I hope it's stable enough so I hope you'll try it also.

Changelog:
obexd (0.46-1maemo2+cssu1)
* Fix missing 0.vcf in phonebook_pull
* Fix IrMC to use full path
* Fix bugs in VW Touch Adapter
- removing X-SKYPE from VCARD
- add empty line after PHOTO;VALUE=uri: (not needed by RFC)
* Add initial support for call history (ich, och, mch, cch)

obexd (0.46-1maemo1+cssu1)
* New upstream release.
* backport for glib, dbus and bluez from maemo

obexd (0.45-1maemo1+cssu1)
* use maemo patches from 0.37-0maemo1
* backport for EDS from maemo
* read default addressbook if no addressbook present
* backport for bluez from maemo

Sources and other .deb packages are accessible at http://merlin1991.at/~luf/pbap/

But here are already newer files: http://merlin1991.at/~luf/pbap/. What shall I install?

luf
2012-08-30, 21:29
Hi,

I was on vacation (and still l'm) but I reach the net now.

after installing this, i can now synch phonebooks with the car headunit. does this expose an early implementation of the MAP profile? the car appears to be trying to import smses but fails after a while with an error. it never did this before prior to this update.

obexd-0.46 has some initial support for MAP _but_ there is no support for retrieving folder list, SMS list etc as no support is written for N900. As I wrote:

For next release I plan porting MAP support (for SMS) from meego.

I'm working on it. Right now I merge all patches regarding MAP support from meego but I have to rewrite it to using rtcom-eventlogger.

So no working MAP support for N900 now.

support MAP profile,GREAT JOB...

It's not done. It's planned for next release ;)

luf
2012-08-30, 21:41
Just tried the latest release from http://merlin1991.at/~luf/pbap/ , but no dice for my Opel Ampera (or Chevrolet Volt for that matter).
I guess you need some debugging info?

I have no clue what isn't working for you.
phonebook synchronization, call history, ... ?

You can find how to enable obexd debugging here
http://talk.maemo.org/showpost.php?p=1237032&postcount=340

Please also give me exact info which version you tried (what packages you installed ...).

The minimum list is obexd and with the latest version (for call history also) librtcom-eventlogger1-async, rtcom-eventlogger-async.

luf
2012-08-30, 21:56
I am little bit confused. This is the last update, I have installed on 22 July 2012:

...

But here are already newer files: http://merlin1991.at/~luf/pbap/. What shall I install?

You can install/using what you want ;) I announced also newer version on previous page http://talk.maemo.org/showpost.php?p=1250098&postcount=378

The difference is in using async call history (which add one dbus daemon for rtcom-eventlogger). It's faster and should be better as no ugly patches needed for synchronous backend in obexd.
The rtcom-eventlogger-async will be also used in MAP support for N900.

liedekef
2012-08-31, 14:38
I have no clue what isn't working for you.
phonebook synchronization, call history, ... ?

You can find how to enable obexd debugging here
http://talk.maemo.org/showpost.php?p=1237032&postcount=340

Please also give me exact info which version you tried (what packages you installed ...).

The minimum list is obexd and with the latest version (for call history also) librtcom-eventlogger1-async, rtcom-eventlogger-async.

sorry, forgot to mention that ...
The version used is:
obexd_0.46-1maemo3+0cssu1_armel.deb
rtcom-eventlogger-async_0.1_armel.deb
librtcom-eventlogger1-async_0.1_armel.deb
evolution-data-server-addressbook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libebook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedataserver_1.4.2.1-20120717-maemo1+cssu1_armel.deb

I can talk fine through bluetooth, but phonebook synchronization, and call history are not working. There's also a problem with answering a call, but I need to try this out more (testing always needs a second person :-) .

Btw: I'll try to debug this weekend.

droll
2012-09-01, 02:16
Hi,

I was on vacation (and still l'm) but I reach the net now.



obexd-0.46 has some initial support for MAP _but_ there is no support for retrieving folder list, SMS list etc as no support is written for N900. As I wrote:



I'm working on it. Right now I merge all patches regarding MAP support from meego but I have to rewrite it to using rtcom-eventlogger.

So no working MAP support for N900 now.



It's not done. It's planned for next release ;)

excellent work! how do i like this x 1000 times? :)

in the meantime, is there a way to temporarily disable the MAP BT profile? the car pops up an error dialog after a few minutes when trying to retrieve SMSes. not really an issue. i can dismiss the dialog manually but i just have to do it everytime.

anyway, keep it up!!!!

luf
2012-09-01, 13:52
in the meantime, is there a way to temporarily disable the MAP BT profile? the car pops up an error dialog after a few minutes when trying to retrieve SMSes. not really an issue. i can dismiss the dialog manually but i just have to do it everytime.

Hmmm, it should be called bug :(

You can test if the MAP (non working) is enabled:

# sdptool browse local | grep Message
Service Name: Message Access server

You can disable it in /usr/share/dbus-1/services/obexd.service.
Change the line:
Exec=/usr/lib/obex/obexd --nodaemon --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability '!/usr/bin/gen-obex-capability.sh'

to

Exec=/usr/lib/obex/obexd --nodaemon --noplugin=mas --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability '!/usr/bin/gen-obex-capability.sh'

(basicaly add the parameter --noplugin=mas to the obexd)

You have to restart obexd after changing this file (reboot your N900 or kill the obexd and run it under user).

Hope it helps.

Android_808
2012-09-11, 16:01
Just upgraded to latest CSSU-T, which has pulled in PBAP support. Is it possible to swap the first/last name order? I have an Abarth with Fiat's Blue&Me system which is storing names as Surname, First Name which is quite unnatural when trying to issue voice commands to it.

luf
2012-09-11, 19:39
Just upgraded to latest CSSU-T

Congrats, you're faster me to announce it :)

Is it possible to swap the first/last name order? I have an Abarth with Fiat's Blue&Me system which is storing names as Surname, First Name which is quite unnatural when trying to issue voice commands to it.

I'm sorry I understand what you want but I can't get where it's wrong. Can you please try to debug it a little bit? I want to know if Blue&Me is using PullAll or vCard listing. How to debug obexd is few pages back.

Also good for me is if you're able to use pbap-client (python script so it's arch independent) from obexd-client package like:

./pbab-client <BT addr>

to list your contacts and see if it's ok.

I receive from my N900:
BEGIN:VCARD
VERSION:2.1
UID:26
PRODID:-//Synthesis AG//NONSGML SyncML Engine V3.4.0.27//EN
REV:2012-03-13T15:18:43Z
N:Surname;FirstName;;;
FN:FirstName Surname
NICKNAME:Nick
TEL;PREF:+123456789
ADR:;;;;;;
END:VCARD

And it's what is in specification (from PBAP_SPEC_V11r00.pdf):
3.1.6.1 Name attribute format
The name attribute of the vCard-listing DTD has the same definition as the name attribute of a vCard - i.e., the N attribute. Therefore, the format to be used is the field structure “LastName;FirstName;MiddleName;Prefix;Suffix”

So I have no clue what should I reverse because it will be againist specification and should broke all other handfree. BTW other phone works well with PBAP phone book and Blue&Me?

Android_808
2012-09-12, 06:44
it used to store them the other way before using pbab, so it may be the way its configured in the car so i'll try to test it later. if so, i'll just switch back to the old fashion way (petrovich).

luf
2012-09-12, 06:51
it used to store them the other way before using pbab, so it may be the way its configured in the car so i'll try to test it later. if so, i'll just switch back to the old fashion way (petrovich).

Strange. Do you have to change vcards exported when using Petrovich? Because export vcards should be in the same format as PBAP vcards. Please try to debug the PBAP. Maybe the difference is in VCARD version or something like that.

It would be nice if you can compare some vcard from pbap-client and export for Petrovich if it differs or not.

Android_808
2012-09-12, 16:15
Ran pbab-client (from 0.47 package) on my laptop using latest versions from Arch Linux. Had to use python2 pbab-client, to avoid the system default of running v3, as the print function failed due to the syntax changes made in v3.

The only differences running pbab-client for me compared to your results is that the VCARD version is reporting 3.0 and I have no PRODID field. I haven't been able to try Petrovich with the car yet to make sure that is still working as it was previously. I have found that the v-card used by Petrovich, generated by the export contacts feature of Contacts, is different for v2.1. It seems to omit the FN: field. I'll keep testing.

luf
2012-09-12, 16:54
Ran pbab-client (from 0.47 package) on my laptop using latest versions from Arch Linux. Had to use python2 pbab-client, to avoid the system default of running v3, as the print function failed due to the syntax changes made in v3.

Funny they have to change pbap-client in 0.47:

#!/usr/bin/python

import sys
import dbus

bus = dbus.SessionBus()

client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
"org.openobex.Client")

print "Creating Session"
session_path = client.CreateSession({"Destination": sys.argv[1], "Target": "PBAP"})
pbap = dbus.Interface(bus.get_object("org.openobex.client", session_path),
"org.openobex.PhonebookAccess")
session = dbus.Interface(bus.get_object("org.openobex.client", session_path),
"org.openobex.Session")

#paths = ["PB", "ICH", "OCH", "MCH", "CCH"]
paths = ["PB"]

for path in paths:
print "\n--- Select Phonebook %s ---\n" % (path)
pbap.Select("int", path)

print "\n--- GetSize ---\n"
ret = pbap.GetSize()
print "Size = %d\n" % (ret)

print "\n--- List vCard ---\n"
ret = pbap.List()
for item in ret:
print "%s : %s" % (item[0], item[1])
pbap.SetFormat("vcard21")
# pbap.SetFilter(["VERSION", "FN", "TEL"]);
ret = pbap.Pull(item[0])
print "%s" % (ret)

print "\n--- PullAll ---\n"
pbap.SetFormat("vcard21")
# pbap.SetFilter(["VERSION", "FN", "TEL"]);
pbap.SetFilter([]);
ret = pbap.PullAll()
print "%s" % (ret)


You can see pbap-client 0.46 enforce vcard 21: pbap.SetFormat("vcard21")

The only differences running pbab-client for me compared to your results is that the VCARD version is reporting 3.0 and I have no PRODID field.

Maybe there is activated filter in newer pbabp-client.

I haven't been able to try Petrovich with the car yet to make sure that is still working as it was previously. I have found that the v-card used by Petrovich, generated by the export contacts feature of Contacts, is different for v2.1. It seems to omit the FN: field. I'll keep testing.

Can you please paste here (masked name and number) some vcard from pbap-client and the export so I can see the difference?
It should be the same contact.

Please try also debug the obexd so we know how the Blue&Me is using PBAP (PullAll or VCard listing).
You need installed, configured and started syslog + http://talk.maemo.org/showpost.php?p=1237032&postcount=340 + restart obexd (the easiest way is to reboot the phone)

Android_808
2012-09-12, 18:08
I have to use the 0.47 version to get it to work with the installed obexd. 0.47 changes the D-Bus namespace to use org.bluez.obex, messes with the API and sets VCARD 3.0 in pbab-client. I've run with 0.47 returning 2.1 and 3.0.

pbab-client 2.1
BEGIN:VCARD
VERSION:2.1
N:Last;First;;;
FN:First Last
TEL;CELL:XXXXXXXXXXX
END:VCARD

Exported 2.1
BEGIN:VCARD
VERSION:2.1
UID:13
REV:2010-02-09T15:51:30z
TEL;CELL:XXXXXXXXXXX
N:Last;First;;;
END:VCARD

pbab-client 3.0
BEGIN:VCARD
VERSION:3.0
N:Last;First;;;
FN:First Last
TEL;TYPE=CELL:XXXXXXXXXXX
END:VCARD

Exported 3.0
BEGIN:VCARD
VERSION:3.0
UID:13
REV:2010-02-09T15:51:30z
TEL;TYPE=CELL:XXXXXXXXXXX
FN:First Last
N:Last;First;;;
END:VCARD

Content wise, as stated earlier, the only change is the addition of FN using pbab with VCARD 2.1. The order of the returned items in the VCARD (FN, N, TEL etc.) seems to be vary for each contact but as far as I can see always returns the same for that contact.

Will have to wait till at least tomorrow afternoon to test with car as I'm off to sleep before long.

For syslog, is it as simple as:
root
apt-get install sysklogd
start sysklogd

Then examine /var/log/syslog?

luf
2012-09-12, 18:47
I have to use the 0.47 version to get it to work with the installed obexd. 0.47 changes the D-Bus namespace to use org.bluez.obex, messes with the API and sets VCARD 3.0 in pbab-client. I've run with 0.47 returning 2.1 and 3.0.

You're right with the namespace change (I forgot).

Will have to wait till at least tomorrow afternoon to test with car as I'm off to sleep before long.

Sure take whatever time you need. I really appreciate your cooperation. I know it's time consuming.

For syslog, is it as simple as:
root
apt-get install sysklogd
start sysklogd

Then examine /var/log/syslog?

You wrote right steps. I only don't remember the default syslog settings. Please take a look into /etc/syslog.conf before you start sysklogd.

You can start sysklogd few seconds before Blue&Me pairing/connecting so the log file will be smaller.

You should see obexd lines in /var/log/syslog. These lines I'm interested in. And of course I'm curious if Petrovich way leads to different behaviour in voice dialing.

pinochio
2012-09-15, 13:56
What to do? I have some conflicts. How to reinstall?

~ $ dpkg -s evolution-data-server-addressbook
Package: evolution-data-server-addressbook
Status: install ok installed
Priority: optional
Section: base
Installed-Size: 180
Maintainer: Ludek Finstrle <luf@pzkagis.cz>
Architecture: armel
Source: evolution-data-server
Version: 1.4.2.1-20120717-maemo1+cssu1
Replaces: evolution-data-server
Provides: evolution-data-server
Depends: libc6 (>= 2.5.0-1), libdb4.2, libdbus-1-3 (>= 1.1.4), libdbus-glib-1-2 (>= 0.76), libebook (>= 1.4.2.1-20120717), libedata-book (>= 1.4.2.1-20120717), libedataserver (>= 1.4.2.1-20120717), libgconf2-6 (>= 2.13.5), libglib2.0-0 (>= 2.20.0), libxml2 (>= 2.6.32)
Conflicts: evolution-data-server
Description: evolution database backend server
The data server, called "Evolution Data Server" is responsible for managing
calendar and addressbook information.
Xsbc-Original-Maintainer: Joergen Scheibengruber <Jorgen.Scheibengruber@nokia.com>
~ $ dpkg -s obexd
Package: obexd
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 308
Maintainer: Ludek Finstrle <luf@pzkagis.cz>
Architecture: armel
Version: 0.46-1maemo2+cssu1
Replaces: obexd2
Depends: libbluetooth3 (>= 4.60), libc6 (>= 2.5.0-1), libdbus-1-3 (>= 1.1.4), libdbus-glib-1-2 (>= 0.76), libebook (>= 1.4.2.1), libedataserver (>= 1.4.2.1), libgconf2-6 (>= 2.13.5), libglib2.0-0 (>= 2.20.0), librtcom-eventlogger1, libsqlite3-0 (>= 3.6.14), libxml2 (>= 2.6.32)
Conflicts: obex-data-server, obexd2
Conffiles:
/etc/obex/root-setup.d/000_create-symlinks 993b1e3fd454973c42d26dfca4579f84
Description: D-Bus OBEX server
Implementation of OBEX(OBject EXchange) client and server as a D-Bus service
providing high-level functionality.
.
OBEX is communication protocol to facilitate the exchange of the binary object
between the devices.
.
In this package the server is included.
Xsbc-Original-Maintainer: Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>

luf
2012-09-15, 20:06
What to do? I have some conflicts. How to reinstall?

I see no problem. "dpkg -s" returns ok status:
Status: install ok installed

and the rest is only package description. No error. So I don't understand what is wrong.

pinochio
2012-09-15, 21:22
I uninstalled obexd package (0.46-1maemo2+cssu1) because I could not upload files from computer to the N900 and from N900 to a laptop (Win 7 64). From the computer, I could not enter to the phone.
Uninstalled them with maesync-backend package osso-maesync-plugin and osso-maesync-ui.
I installed the three packages again with apt-get install.
Then I downgraded to Original State
obexd_0.18-0maemo5+0m5_armel.deb
libopenobex1_1.4-0maemo3+0m5_armel.deb
Then there was an update to obexd_0.18-0maemo6+0m5.
I'm afraid I messed something.
Can I install back obexd package (0.46-1maemo2+cssu1)?

luf
2012-09-15, 22:48
Then I downgraded to Original State
obexd_0.18-0maemo5+0m5_armel.deb
libopenobex1_1.4-0maemo3+0m5_armel.deb
Then there was an update to obexd_0.18-0maemo6+0m5.
I'm afraid I messed something.
Can I install back obexd package (0.46-1maemo2 + cssu1)?

Can you upload files from win to N900 using obexd_0.18?

I never tested upload files from windows. I know there is some incompatibility between 0.18 client and 0.46 obexd. But it works like a charm between 0.46 client and 0.46 obexd.
Can you post the error message from win and also obexd syslog debug?

I see no reason what prevents you from upgrade to 0.46.
And you downgraded to older version (maemo5+) so then it offers to you upgrade to maemo6+0m5. Nothing strange.

pinochio
2012-09-15, 23:12
Can you upload files from win to N900 using obexd_0.18?

Yes. Earlier before reflash, could also transfer files with obexed (0.46-1maemo2+cssu1).

What is the package obexd_0.46-1maemo3+0cssu1_armel.deb?

And you downgraded to older version (maemo5+) so then it offers to you upgrade to maemo6+0m5.Wiki need to improve http://wiki.maemo.org/Bluetooth_PBAP#Downgrade_to_Original_State

pinochio
2012-09-16, 12:38
I installed again obexd_0.46 and again it does not work to transfer files from win7 to n900.

At using obexd_0.18 I have the drivers installed
http://imageshack.us/photo/my-images/14/unbenanntqhb.jpg/
At using obexd_0.46 I have the drivers installed
http://imageshack.us/photo/my-images/441/unbenannt3hs.jpg/
and then the error
http://imageshack.us/photo/my-images/209/unbenannt2nu.jpg/
http://imageshack.us/photo/my-images/213/unbenannt4oq.jpg/
I have the packages installed
obexd_0.46-1maemo2+cssu1_armel.deb
evolution-data-server-addressbook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libebook_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedata-book_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libedataserver_1.4.2.1-20120717-maemo1+cssu1_armel.deb

luf
2012-09-16, 12:49
pinochio: Hmm the win errors aren't very descriptive :( I'm on IRC maemo-ssu. Can you connect to the IRC so we can communicate more effective?

obexd_0.46-1maemo3+0cssu1_armel.deb is newer version but I didn't touch FTP over bluetooth so I think it doesn't help you.

Can you test the same on Win 7 32-bit? Can you somehow enable debug mode on Win side? Can you turn on debug mode for obexd on N900 (decribed on previous pages)?

I don't understand: "Yes. Earlier before reflash, could also transfer files with obexed (0.46-1maemo2+cssu1).". Does it mean that you were able to transfer files using obexd 0.46? But after some reflash you're able to upload files using obexd 0.18 but not with obexd 0.46? Please be more verbose in description.

Unfortunatelly I have no Win 7 :(

pinochio
2012-09-16, 13:04
I do not know English, the IRC maemo-ssu do not know how to enter.

Before I could transfer files with obexed_0.46.
I did in the meantime recovery win7 and reflash N900.
Now also with obexed_0.18.
I worked obexed_0.46 I had installed the cssu stable v. 3.0.
Now I have installed cssu stable v. 4.1, this problem can?

luf
2012-09-16, 13:16
Before I could transfer files with obexed_0.46.
I did in the meantime recovery win7 and reflash N900.
Now also with obexed_0.18.
I worked obexed_0.46 I had installed the cssu stable v. 3.0.
Now I have installed cssu stable v. 4.1, this problem can?

It sounds strange. I have to take a look on changes between CSSU-S versions.

Can you please try to remove the pairing and pair the N900 with PC again?

pinochio
2012-09-16, 13:22
Can you please try to remove the pairing and pair the N900 with PC again?
I've done it many times.

My main problem is that I can not and I could not import contacts from N900 to navigation TomTom GO 950.
What is now the best packages to install?

luf
2012-09-16, 14:07
Have you also tried reboot the phone to fix the upload problem?

My main problem is that I can not and I could not import contacts from N900 to navigation TomTom GO 950.
What is now the best packages to install?

obexd is the right one. I can't find what profiles is TomTom GO 950 using. I need to see the debug output from obexd when you try to get the contacts from your phone.

Android_808
2012-09-16, 16:26
Heres the syslog for pairing with blue&me system. I've had a look through car menus to see if there is any kind of display settings to reverse the names.

I then deleted all data and paired again, cancelling the initial transfer and tried to send data via petrovich but it just confused the system. you go through menu into a mode where you can send the contacts, keeping a tally of how many were received on the display. however, after completing, going to phonebook option just locks up the system for a few seconds, with the display just showing the menu title. eventually it just lets you carry on navigating the menu. i then used a new menu option which seems to pull in contacts over pbap again and i'm back to square one.

can i disable pbap like map is currently via command arguement? if so what option?

luf
2012-09-16, 16:49
can i disable pbap like map is currently via command arguement? if so what option?

use: --noplugin=mas,pbap
Maybe you'll need also disable irmc plugin (add to the noplugin list) as it's another profile which provides contacts.

BTW it's using phonebook (not vcard listing). It seems you're the best bug hunter. I see there is missing dependency so even the car kit asked for call history the N900 didn't reply due to missing package rtcom-eventlogger-async.

pinochio
2012-09-16, 17:50
I installed syslogd, then I did killall obexd and restarted obexd with enabled debug option
Nokia-N900:~# /usr/lib/obex/obexd --debug --opp --ftp --pcsuite --pbap --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability !/usr/bin/gen-obex-capability.sh
Unknown option --opp
Nokia-N900:~#

Restart N900 and I can not send a file by bloutooth.
My entry in /obexd.service
# cat /usr/share/dbus-1/services/obexd.service
[D-BUS Service]
Name=org.openobex
Exec=/usr/lib/obex/obexd --nodaemon --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability '!/usr/bin/gen-obex-capability.sh'

luf
2012-09-16, 20:51
I installed syslogd, then I did killall obexd and restarted obexd with enabled debug option
Nokia-N900:~# /usr/lib/obex/obexd --debug --opp --ftp --pcsuite --pbap --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability !/usr/bin/gen-obex-capability.sh
Unknown option --opp
Nokia-N900:~#


This is the way how to enable debug for obexd (0.46 and later):

http://talk.maemo.org/showpost.php?p=1237032&postcount=340

pinochio
2012-09-16, 21:23
Why did before the update to Cssu v. 4.1 I work obexed_0.46 without editing it?

What do I put there --debug='*'?

luf
2012-09-16, 21:28
Why did before the update to cssu-s v. 4.1 I work obexed_0.47 without editing it?

What do I put there --debug='*'?

Why you can't use IRC? It's boring to use forum for such communication. I don't understand your question.

I need you enable the debug (more lines in syslog for obexd to see what's happen in your phone/obexd). And the debug should be enabled as I described above. The syslog file you attached say nothing.

pinochio
2012-09-16, 21:41
I do not know how to use IRC.
What should I put there '*'? --debug='*'?

luf
2012-09-16, 21:53
I do not know how to use IRC.
What should I put there '*'? --debug='*'?

Just copy&paste it into the file. Don't substitute it yourself ;)

Come on. Let's use google or whatever "irc.freenode.net" "windows irc" ...
But I'm going to sleep today.

pinochio
2012-09-17, 01:08
Ok, I'm there on IRC. But by tomorrow.

Android_808
2012-09-17, 05:03
should rtcom-eventlogger-async have been pulled in automatically (incorrect dependancy list in control file)? not sure what to check but librtcom-eventlogger0 and librtcom-eventlogger1 are installed along with corresponding librtcom-eventlogger-ui files and librtcom-eventlogger1-async. surely they should depend if they provide access.

edit: apparently librtcom-eventlogger1-async does't list it as dependancy.

might have to dig out the n95 and try pairing that just to check out results.

it may also be worth noting for other users that there are at least 2 different manufacturers for blue+me that i know of. first shipped with early 500s, punto etc which needed a seperate adaptor to work with iphone. it only had 32mb RAM iirc and sturggled cards over a few gig and when combined with ecodrive (not that you use that on an abarth ;p ). frequently hear of people having to disconnect battery to reset it after it screwed up, myself included after it took out steering wheel controls.

the second i know of is made by a different manufacturer and replaces more parts of the MS Auto 4 (yuck) system with there own. it doubles the RAM and seems to be far more stable. doesn't need iphone adaptor and features aux in as well. due to continued faults i now have one of these, minus the aux plug. Firmware is incompatible between the two.

i alsol noticed another dbus error in the syslog regarding mce, haven't a clue with that one, will have to check elsewhere.

luf
2012-09-17, 06:54
Ok, I'm there on IRC. But by tomorrow.

I don't have good news for you. It seems that TomTom GO 950 use only AT commands which aren't supported by N900. It's on my TODO list but don't hold your breath. It hasn't so high priority :(

luf
2012-09-17, 07:00
should rtcom-eventlogger-async have been pulled in automatically (incorrect dependancy list in control file)? ...

edit: apparently librtcom-eventlogger1-async does't list it as dependancy.

Sure. It's my mistake. I didn't want to force the installation of rtcom-eventlogger-async but I forgot it isn't installed at all then :(

might have to dig out the n95 and try pairing that just to check out results.

Yes. Please try that and share the result.

Have you been successfull with Petrovich? Did you get another result with Petrovich tool?

i alsol noticed another dbus error in the syslog regarding mce, haven't a clue with that one, will have to check elsewhere.

Can you provide more details? What dbus error are you talking about?

don_falcone
2012-09-17, 08:49
Different but difficult (for me) question: how can i find out which profile a headunit is using, IrMC or PBAP? And if IrMC, which level?

luf
2012-09-17, 10:07
Different but difficult (for me) question: how can i find out which profile a headunit is using, IrMC or PBAP? And if IrMC, which level?

You can see it only in obexd debug output and I don't know what you mean with IrMC level.

If you miss call history in CSSU-T let's install rtcom-eventlogger-async:
apt-get install rtcom-eventlogger-async

If you want to know what is supported you have to take a look into the obexd source code (plugins/irmc.c).

Android_808
2012-09-17, 14:49
the mce error in question is:
Nokia-N900 mce[964]: Error sending with reply to com.nokia.system_ui.request.tklock_close: The name com.nokia.system_ui was not provided by any .service files

been doing some digging regarding name ordering, i think the blue+me is to blame. seen reports of latest update doing the same for iphone, blackbery.

don_falcone
2012-09-17, 15:10
I don't know what you mean with IrMC level.

http://www.traud.de/gsm/IrMC.htm

pinochio
2012-09-17, 15:37
I have a new syslog with obexd.
I was able to, you had to restart the N900 and just try to connect to the bluetooth and make an attempt to send a file on the N900.

luf
2012-09-17, 17:16
http://www.traud.de/gsm/IrMC.htm

IrMC level implemented in obexd is IEL: 2 (from source code).

luf
2012-09-17, 17:44
I have a new syslog with obexd.
I was able to, you had to restart the N900 and just try to connect to the bluetooth and make an attempt to send a file on the N900.

I see boot there correct obexd initialization and that's all. I don't know if you even have paired the computer with N900.
Let's try to remove pairing from computer and also from N900 (Settings -> Bluetooth -> Device(s)). For sure you can also:
1) kill obexd
2) stop bluetoothd
3) remove content of /var/lib/bluetooth
4) enable bluetooth debug (in /etc/event.d/bluetoothd change "exec /usr/sbin/bluetoothd -n" to "exec /usr/sbin/bluetoothd -n -d"
5) shutdown the phone
6) start the phone
7) pair phone with the computer
8) try the file transfer

freemangordon
2012-09-17, 18:14
I see boot there correct obexd initialization and that's all. I don't know if you even have paired the computer with N900.
Let's try to remove pairing from computer and also from N900 (Settings -> Bluetooth -> Device(s)). For sure you can also:
1) kill obexd
2) stop bluetoothd
3) remove content of /var/lib/bluetooth
4) enable bluetooth debug (in /etc/event.d/bluetoothd change "exec /usr/sbin/bluetoothd -n" to "exec /usr/sbin/bluetoothd -n -d"
5) shutdown the phone
6) start the phone
7) pair phone with the computer
8) try the file transfer

it looks the same as my problem (yesterday on the IRC), re-pairing is not enough, he needs to "delete" the device from the PC and add it again

don_falcone
2012-09-17, 18:24
IrMC level implemented in obexd is IEL: 2 (from source code).

I'm just sorry for not checking myself; i'm not a lazy guy. But while being abroad on yet another business trip in a hotel room in Georgia, i just received news today that one of my longest-duration (13yrs since i met him at a former employer) friend was yesterday killed in a damn motorcycle accident, without being guilty, by a f*cking not-attention-paying 78yrs old who just blew him off the road.
Exactly 14 days before his 54th birthday. The information was just coming in by different sources during last hours: so my mind is all elsewhere now. And so i can't even visit his wife that is in the hospital; and their daugther just lost her father.

Both were like my surrogate family for me, for years.

pinochio
2012-09-17, 20:24
Let's try to remove pairing from computer and also from N900 (Settings -> Bluetooth -> Device(s)). For sure you can also:
1) kill obexd
2) stop bluetoothd
3) remove content of /var/lib/bluetooth
4) enable bluetooth debug (in /etc/event.d/bluetoothd change "exec /usr/sbin/bluetoothd -n" to "exec /usr/sbin/bluetoothd -n -d"
5) shutdown the phone
6) start the phone
7) pair phone with the computer
8) try the file transfer
It did not help.


re-pairing is not enough, he needs to "delete" the device from the PC and add it again
It might help, I did that recently, but adds a next device in the registry with the next number #, and I do not want.
Among other things because I've done lately recovery.

freemangordon
2012-09-17, 20:39
It might help, I did that recently, but adds a next device in the registry with the next number #, and I do not want.
Among other things because I've done lately recovery.

Then find a way to tell you PC bluetooth stack to forget what's cached and re-discover the available services and whatnot. I start to believe that the problem is with the SW you are using on your PC and not with obexd. As I had exactly the same behavior here (win XP) - FTP service is listed, but nothing appears when you try to browse it. And obexd generates no log.

pinochio
2012-09-17, 21:06
It is possible that SW is underdeveloped, the other does not work. I installed the latest WIDCOMM Bluetooth - Azurewave BlueTooth driver v. V6.5.1.2500 and somehow recently surprised http://support.asus.com.tw/download/download.aspx?model=Bluetooth&f_name=Bluetooth_Azurewave_Vista_Win7_625500.zip&f_type=27&os=30

Why with obexd_0.18 no problem? Well, before updating to CSSU-S v. 4.1 also work with obexd_0.46.

luf
2012-09-17, 21:27
Why with obexd_0.18 no problem? Well, before updating to CSSU-S v. 4.1 also work with obexd_0.46.

It's too hard to say for me as I'm unable to reproduce (lack of Win 7) and it's very hard to get reasonable debug output from you.
You still go back here instead of IRC.

Are you able to flush all BT info for your N900 from the computer?

I need for more troubleshooting:
bluetoothd debug + obexd debug + (at the best also hcidump):
1) CSSU-S 3.0 + obexd_0.18 (just --debug)
2) CSSU-S 3.0 + obexd_0.46 (--debug='*')
3) CSSU-S 4.1 + obexd_0.46 (--debug='*')

pinochio
2012-09-17, 21:59
Are you able to flush all BT info for your N900 from the computer?


I do not know just how to do it?

I installed the latest version of obexd ( on previous 0.46-1maemo2+cssu1)
obexd_0.46-1maemo3+0cssu1_armel.deb
rtcom-eventlogger-async_0.1_armel.deb
librtcom-eventlogger1-async_0.1_armel.deb
Nothing helped.
Here is a new syslog.

luf
2012-10-03, 09:31
New version released. I included the new obexd into CSSU-T (as you noticed). But it's release cycle is too slow and I want to test it more frequently - it's also easier for bug hunting.

Changelog:
obexd (0.46-1maemo4+0cssu1)
* Initial MAP support (no notifications, no push methods)
* Disable Syncevolution SYNCML plugin as it conflicts with Nokia one and break bluetooth synchronization
* Add phone type none into internal vcard handling
* Regression: Fixes: NB#149737 - Not possible to browse external memory card through file manager in pc suite

obexd (0.46-1maemo3+0cssu2) - this version is included in CSSU-T
* Backport client bluetooth connection
* Disable MAP as the support isn't working yet

For call history and MAP support you need rtcom-eventlogger-async packages. I finally fixed the missing dependency for it.
Patched evolution-data-server package is recommended (you can download it from previous release (http://talk.maemo.org/showpost.php?p=1241328&postcount=359)).

You can find all packages (and more) with sources on merlin's server (http://merlin1991.at/~luf/obexd/).

I have to investigate if and how I can add notifications and push methods into the MAP. So I don't know if it'll be included in next release.

don_falcone
2012-10-09, 19:19
...have added wiki info about importance of 'rtcom-eventlogger-async' for accessing call history.

don_falcone
2012-10-10, 06:51
Last evening, i just managed to install missing rtcom-eventlogger-async.

Headunit: Alpine CDA-137BTi w/ BT firmware 1.14
Packages: just the latest ones available (as listed on the post above and on merlin's server)

Former situation: ok
Phonebook access: working (PB update possible too), entries with multiple numbers are marked as that
Call history: not working ("No Memory" is displayed on headunit for Dialed, Received, Missed Calls)

Ok, tried accessing call history this morning. N900 was rebooted at least twice, still no call history. Went on deleting device entry in headunit and re-paired my mobile.

Current situation: interesting ;)
Phonebook access: not working ("PB update" is still displayed as it was like before after being freshly paired, but now just "No Memory" is shown during access of PB)
Call history: partly working ("No Memory" is still displayed for "Dialed Calls", whereas entries are now listed for both "Missed Calls" and "Received Calls" - but unit displays them with "NO Name", probably because of empty PB on unit)

This smells like i have to dig deeply into it and generate some logs...


Btw: with patched 'evolution-data-server' package, is this patch also in the CSSU-T version? I compared revision numbers, and they seem to be the same.

luf
2012-10-10, 08:11
Current situation: interesting ;)
Phonebook access: not working ("PB update" is still displayed as it was like before after being freshly paired, but now just "No Memory" is shown during access of PB)
Call history: partly working ("No Memory" is still displayed for "Dialed Calls", whereas entries are now listed for both "Missed Calls" and "Received Calls" - but unit displays them with "NO Name", probably because of empty PB on unit)

Weird.
1) The question is if the PBAP worked with previous version or the carkit just remember some state from past (does it update PB?).
2) I can't imagine why Dialed calls doesn't work while the others does. The only idea is count of entries.
3) NO Name shouldn't rely on empty PB as different VCARDs. I send in name just fullname which should be correct based on specification. But maybe carkit doesn't follow it and expect another form.

This smells like i have to dig deeply into it and generate some logs...

I don't have good news for you as it seems so :(

You have two possibilities: you can dig a debug logs (wiki - trouble shooting) or follow instructions below (or do the both):
1) remove rtcom-eventlogger-async package and re-pair
2) while steps 1 and 2 doesn't help please try downgrade to the previous version and re-pair (you should get debug log if you want)

Btw: with patched 'evolution-data-server' package, is this patch also in the CSSU-T version? I compared revision numbers, and they seem to be the same.

It's part of CSSU-T since version 5.

droll
2012-10-10, 15:03
i can confirm initial MAP functionality works. Due to lack of push and notifications, new sms events are not seen and new smses are not captured at the other end. On initial pairing, new smes are seen at the other end.

Keep up the good work.

don_falcone
2012-11-04, 21:27
You have two possibilities: you can dig a debug logs (wiki - trouble shooting)

PM'd you the links for hcidump and syslog.

luf
2012-11-05, 08:44
PM'd you the links for hcidump and syslog.

There is critical bug for IrMC phonebook support in obexd since version 0.46-1maemo3 (including).

I try to fix it but I have no IrMC carkit to test now :( So please don_falcone let's try it. It's not a new release however it has new version number). Here is the link for the obexd package:
http://merlin1991.at/~luf/obexd/obexd_0.46-1maemo5%2b0cssu1_armel.deb

don_falcone
2012-11-05, 09:06
If you want me to do test cases, i'll happy try them with my Alpine.

luf
2012-11-05, 09:13
If you want me to do test cases, i'll happy try them with my Alpine.

Great. Thank you. Please test the new obexd (link provided in my last post) and let me know if you see the contact list/phonebook. If you still don't see the contact list please provide me just the syslog debug output as last time.

don_falcone
2012-11-06, 09:15
Ok, with that newer obex i see one slight improvement, namely that all three (dialed,received, missed calls) instead of two histories are populated - but still with number and "NO NAME" only. Anyway, previously "Dialed Calls" was completely empty.

I did two sessions today, one with IrMC and the other with PBAP (noplugins=irmc,syncevolution). Links to cleaned-up syslogs send per PM. Sequence was roughly: Voice Call (not supported), Dialed Calles, Received Calls, Missed Calls, Phone Book.

Two remarks to make:
(IrMC session)
As soon as i selected "Dialed calls" the unit triggered a PB update. This took way longer than usual, but at the end of sync the unit still pop'd up "No Memory" and the PB was empty.

(PBAP session)
No sync is triggered when accessing PB or call lists. They show the entries was received before during IrMC sync. Also, therefore PB is empty too ("No Memory"). May be simply that IrMC sync is needed.

luf
2012-11-06, 10:42
Ok, with that newer obex i see one slight improvement, namely that all three (dialed,received, missed calls) instead of two histories are populated - but still with number and "NO NAME" only. Anyway, previously "Dialed Calls" was completely empty.

Nice, but I do nothing with call history. And I saw that everything seems well in hcidump. I'm affraid that "NO NAME" is the problem with different form of NAME. But it follows the specification. We will see when phonebook will be fixed.

Sequence was roughly: Voice Call (not supported), Dialed Calles, Received Calls, Missed Calls, Phone Book.

What do you mean with Voice call? I don't think it's obexd related.

(IrMC session)
As soon as i selected "Dialed calls" the unit triggered a PB update. This took way longer than usual, but at the end of sync the unit still pop'd up "No Memory" and the PB was empty.

I see the delay in IrMC when carkit is trying to get some information due to another bug. The patch has written by some imbecile ... aaah it was me :)
I fixed it and uploaded new version to the same location as yesterday:
http://merlin1991.at/~luf/obexd/obexd_0.46-1maemo5%2b0cssu1_armel.deb

I know it has the same filename but fixed obexd and also changelog. Please give it a try and report back the result. Thanks.

(PBAP session)
Also, therefore PB is empty too ("No Memory"). May be simply that IrMC sync is needed.

You're right. Your device doesn't support PB over PBAP or I don't know why it doesn't use PBAP for obtaining PB.

don_falcone
2012-11-06, 12:00
Good news: PB as well as call history are populated now! (i took the opportunity during my lunch break out of curiosity) Tutto bene ;) Also, when using PBAP, PB and history are accessible, but of course not synced. I will update the Wiki accordingly. It's nice that with your effort we iron'd it out.

(Now i have to find out why just _one_ particular contact won't get synced.)

Just out of curiosity: what did you change in package then?

As for Voice Call, headunit supports Voice call feature, but i don't know what dependencies have to be fulfilled on mobile device side.


EDIT:

What means "Nokia-N900 obexd[2000]: get_next_header(): Resource temporarily unavailable (11)"? It occurs several times in both test cases.

Also, i see plugins/pbap.c and plugins/irmc.c used both when i have enabled IrMC, whileas only plugins/pbap.c is used when IrMC is disabled. :confused:

luf
2012-11-06, 22:50
Good news: PB as well as call history are populated now! (i took the opportunity during my lunch break out of curiosity) Tutto bene ;) Also, when using PBAP, PB and history are accessible, but of course not synced.

Thank you very much for you help with testing and providing me the output.
I don't understand what isn't synced. Can you explain it with more details?
Can you also confirm/decline if the "NO NAME" problem persist?

(Now i have to find out why just _one_ particular contact won't get synced.)

Let's try to use pbap-client from your computer/laptop or hcidump with ascii output to see what is transferred from N900 to carkit. Maybe there is some parsing problem and two following contacts are merged by carkit (I saw this with my carkit but I see no problem with vcards). Contacts aren't sorted alphabeticaly when retrieving from N900 ...

Just out of curiosity: what did you change in package then?

One imbecile (me) is using some restructuralization patches for irmc.c and I made 2 mistakes:
1) detect /telecom/luid/ instead of /telecom/pb/luid/
2) forgot to return session struct when open is successful (everytime returns NULL).
You can see it better in CSSU obexd git repository. I'll push it in few minutes.

As for Voice Call, headunit supports Voice call feature, but i don't know what dependencies have to be fulfilled on mobile device side.

This isn't supported neither by bluez nor by obexd. I have this on my TODO but don't hold your breath. The TODO is still growing.
For example higher positions are new bluez version with DUN and PAN support (missing some PAN part now), obexd MAP support with push and notifications ...

What means "Nokia-N900 obexd[2000]: get_next_header(): Resource temporarily unavailable (11)"? It occurs several times in both test cases.

This is ok. It's due to asynchronous calls. It tries read before the async callback fill some data.

Also, i see plugins/pbap.c and plugins/irmc.c used both when i have enabled IrMC, whileas only plugins/pbap.c is used when IrMC is disabled. :confused:

Sure. It has two reasons :)
1) call history is accessed only through PBAP with your carkit
2) IrMC calls routines form PBAP as it returns the same ;) What I want to say is that IrMC is implemented as only some wrapper for PBAP in obexd + some info following IrMC specification

don_falcone
2012-11-07, 09:03
Thank you very much for you help with testing and providing me the output.

Hey, you helped me more than the other way around, so...

I don't understand what isn't synced. Can you explain it with more details?

I meant that PB is not sync'd when using PBAP. Didn't you concluded this too from the PBAP log? I have to test this again (clean device, unpair, re-pair).

Can you also confirm/decline if the "NO NAME" problem persist?

Indeed the problem doesn't exist anymore; reason was that PB was empty. (the one contact that i'm unable to sync is still displayed as NO NAME)

Let's try to use pbap-client from your computer/laptop or hcidump with ascii output to see what is transferred from N900 to carkit. Maybe there is some parsing problem and two following contacts are merged by carkit (I saw this with my carkit but I see no problem with vcards). Contacts aren't sorted alphabeticaly when retrieving from N900 ...

Ok, what would be the best way to setup the test? For laptop, i have only one BT1.1 dongle in the office, otherwise i have to get my V3.0 from home. I use LAST NAME sort order in both N900 and carkit. Maybe i should check the contacts just before and after that particular one...

Also, in hcidump, should i use option -a or -X?

One imbecile (me) is using some restructuralization patches for irmc.c and I made 2 mistakes:
1) detect /telecom/luid/ instead of /telecom/pb/luid/
2) forgot to return session struct when open is successful (everytime returns NULL).
You can see it better in CSSU obexd git repository. I'll push it in few minutes.

Dumb question: are your patches somehow also merged to upstream bluez?

This isn't supported neither by bluez nor by obexd. I have this on my TODO but don't hold your breath. The TODO is still growing.
For example higher positions are new bluez version with DUN and PAN support (missing some PAN part now), obexd MAP support with push and notifications ...

The MAP part will be interesting. Another test case for me ;) For Voice call i wouldn't even be sure how (if) the kit could decide between multiple numbers per contact... right now those contacts are marked with '*' in front, and on selection from PB i can choose which number to dial.

This is ok. It's due to asynchronous calls. It tries read before the async callback fill some data.

Ok.

Sure. It has two reasons :)
1) call history is accessed only through PBAP with your carkit
2) IrMC calls routines form PBAP as it returns the same ;) What I want to say is that IrMC is implemented as only some wrapper for PBAP in obexd + some info following IrMC specification

What do you mean by info?


(PS.: if you live not too far from .CZ+.DE border, and need a unit for local tests, i could possibly arrange. Distance my hometown -> Prague is ~150km, to border is ~40-50km)

luf
2012-11-07, 10:17
I meant that PB is not sync'd when using PBAP. Didn't you concluded this too from the PBAP log? I have to test this again (clean device, unpair, re-pair).

Right.

Ok, what would be the best way to setup the test? For laptop, i have only one BT1.1 dongle in the office, otherwise i have to get my V3.0 from home.

I know only way under linux. You need to install obexd client part (I'm using RHEL 6 + myself compiled rpm package 0.46) :) + the python script from N900 dpkg obexd-test package.
So maybe the hcidump should be easier for you.

Also, in hcidump, should i use option -a or -X?

Let's record the hcidump log first (as you already did with non working PB). Then you can try it more times with different arguments:

hcidump -r <hcidump file> -at | less

Remember you need to start recording before connecting.
And you're looking for /telecom/pb.vcf and the VCARD:BEGIN etc bellow the /telecom/pb.vcf

I use LAST NAME sort order in both N900 and carkit. Maybe i should check the contacts just before and after that particular one...

You don't understand me. I don't know how to describe it better. You'll see there is no order in vcards transfer from N900 to carkit (in pbap-client or hcidump output).
You can't check it againist PB which is sorted in N900 application and also in carkit. The transfer order is simple different.

Dumb question: are your patches somehow also merged to upstream bluez?

No this two as the problem isn't in obexd upstream git. I adopted one of their patches and made two mistakes in it.
The problem is that the obexd upstream is a little bit away and some changes are N900 specific and N900 is old so there is nearly nothing what should be upstremed. Even meego is using different backends ...

What do you mean by info?

Some IrMC specific info. Let's look into the source code plugins/irmc.c (irmc_open_devinfo, irmc_open_info, irmc_open_cc, irmc_open_luid). It's all about what the device is supporting and how many contacts it contains etc.

(PS.: if you live not too far from .CZ+.DE border, and need a unit for local tests, i could possibly arrange. Distance my hometown -> Prague is ~150km, to border is ~40-50km)

Thanks for the offer. I'm far away from CZ+DE border. I'm near CZ+SK border. Maybe I can test it when I disable PBAP plugin. I have to give it a try.

don_falcone
2012-11-09, 08:05
In the next days i'll try to analyze vcard syncing. I hope to get to it until end of next week, as then i'll be far away until December 3/4th.

In the meantime, anything specific that one should especially test using bluez 4.99-2? At least i can say InternetRadioWidget+A2DP work nicely together, and handover of active calls from phone to carkit and vice versa too.

EDIT: BT name bug? ;)

luf
2012-11-11, 16:12
In the meantime, anything specific that one should especially test using bluez 4.99-2? At least i can say InternetRadioWidget+A2DP work nicely together, and handover of active calls from phone to carkit and vice versa too.

No idea what specific. Everything you can imagine if you have time ;)
BTW I uploaded new bluez-4.99 (same name version) with backported NAP - network support. You can see something about that here: http://mg.pov.lt/maemo-ssu-irclog/%23maemo-ssu.2012-11-11.log.html#t2012-11-11T17:42:06

EDIT: BT name bug? ;)

What do you mean? Did you faced with such bug? Or the name is just funny? Because it wasn't nice to see some mess string in BT name instead of the one I choosed ;)

don_falcone
2012-11-12, 09:59
No idea what specific. Everything you can imagine if you have time ;)
BTW I uploaded new bluez-4.99 (same name version) with backported NAP - network support. You can see something about that here: http://mg.pov.lt/maemo-ssu-irclog/%23maemo-ssu.2012-11-11.log.html#t2012-11-11T17:42:06

Same name? dpkg complained about downgrading, so i looked closer and the newer build is 4.99-2maemo2+0ccsu1 vs. the older 4.99-2maemo1+0cssu1 (older as in being from 2012-10-19)

I would like to check AVRCP protocol support - i see it being announced in L2CAP communication dump, but having no clue right now how to do a set up. Maybe a media player has to be running first, will see... I don't think i could use it along with InternetRadioWidget, which is my secondary use case (along with primary==handsfree).

What do you mean? Did you faced with such bug? Or the name is just funny? Because it wasn't nice to see some mess string in BT name instead of the one I choosed ;)

Not yet. *knocks on wood* But i found it humorous that it bothered you so long... maybe because i never observed it. And i checked the change on .conf file regarding using variables for device name.

don_falcone
2012-11-16, 20:24
(combined IrMC/PBAP/bluez 4.99-2 posting)

Ok, i don't get it. (...but what i get now is what you meant by "there s no order"). After diggin' through both IrMC and PBAP hci logs, my conclusions/results:

1) The contact that is missing from PB isn't transmitted for telecom/pb.vcf.

2) But for each:

telecom/ich.vcf
telecom/och.vcf
telecom/mch.vcf

this missing contact was transmitted!

3) I also have a contact that is only shown by number in the carkit's PB, but the name is clearly stored on the N900. EDIT: I'm not to sure, but it seems i can't find this number or name in the logs for now.

4) For telecom/mch.vcf, entries seem to be (at least sometimes) doubled, with and without country calling code, so i have entries starting with both (example) 0176 and +49176...

but for different X-IRMC-CALL-DATETIME entries (most of them 25-30s apart). Havent' observed this for ich.vcf and och.vcf, where all numbers are transmitted like they have been stored by me in the PB - complete with country calling code.

5) I also get this:
L2CAP(d): cid 0x0043 len 6 [psm 23]
AVCT: Response : pt 0x00 transaction 1 pid 0x110e
AV/C: Rejected: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: GetCapabilities: pt Single len 0x0001
PDU malformed

6) file transfer w/ Win7 Ultimate x64 (latest Broadcomm Suite, 6.5.x) isn't working, in both directions - have to dig deeper into this. IIRC it was already mentioned by another user in this thread.


EDIT: for AT+CIND=?, should in the future the N900's response include "message", when MAP support is enabled? Right now it's just
("battchg),(0-5)),("signal",(0-5)),("service",(0,1)),("call",(0,1)),("callsetup",(0-3)),("callheld",(0-2)),("roam",(0,1))


PS: Totally cool that i didn't update my aptosid x64 VM for months - update orgy before actually starting. And additionally the VirtualBox DKMS guest module isn't building anymore. So no shares right now.

Android_808
2012-11-24, 08:29
i'll wait till it is pushed to thumb and I'll try out the call history on the blue&me.

luf
2012-11-24, 11:14
I'm sorry for so late response but I'm overloaded in work some as at home ... You know the winter is coming :D

1) The contact that is missing from PB isn't transmitted for telecom/pb.vcf.

Strange. How strong are you in coding + compiling or in debugging? The easiest way without debugging is to add some more debug logs into the code to see where is the contact dropped. I'm unable to reproduce.

Or are you able to find any difference in this one contact?

2) But for each:

telecom/ich.vcf
telecom/och.vcf
telecom/mch.vcf

this missing contact was transmitted!

Sure. It's normal. PB information is stored and read from evolution-data-server but call history is stored and read from rtcom-eventlogger. So the data are harvested from two different storages which has no conection between them. PB just e-d-s, call history just rtcom-eventlogger.

4) For telecom/mch.vcf, entries seem to be (at least sometimes) doubled, with and without country calling code, so i have entries starting with both (example) 0176 and +49176...

Hmmm, interesting. I think I need to know the wole record. You can get it using sqlite tools or test tools from rtcom-eventlogger-async :) Oh I didn't create package for it so I attach gzipped armel binaries :)

test-get-event-by-id [<id>]
if id is ommited 1 is used (id of the event - not the contact)
- returns int columns: id,service-id,event-type-id,storage-time,start-time,end-time,flags,outgoing
- returns string columns: service,event-type,local-uid,local-name,group-uid,remote-ebook-uid,remote-uid,remote-name,channel

test-get-event-list [<query> [<offset> [<limit>]]]
if query is ommited it returns all entries from rtcom-eventlogger
if offset is ommited it returns entries from first occurence
if limit is ommited it returns all entries from the offset position
- returns int columns: id,service-id,event-type-id,start-time,outgoing
- returns string columns: service,event-type,remote-ebook-uid,remote-uid,remote-name

test-get-event-list-count [<query> [<offset> [<limit>]]]
same as test-get-event-list just returns only count of matched entries

Some queries from obexd (for an inspiration):
ich.vcf:
service-id;1;0;local-uid;"ring/tel/ring";0;event-type-id;1;0;outgoing;0;0

och.vcf:
service-id;1;0;local-uid;\"ring/tel/ring\";0;event-type-id;1;0;outgoing;1;0

mch.vcf:
service-id;1;0;local-uid;\"ring/tel/ring\";0;event-type-id;2;0

cch,vcf:
service-id;1;0;local-uid;\"ring/tel/ring\";0

The query is created from triples: <column-name>;<value>;<compare operation>

All this I get from rtcom-eventlogger sources.
- column-names: src/db.c - EventField fields[] - mapping between DB columns and column-name and also the value type (INT, STR, BOOLEAN)
- compare operation:rtcom-eventlogger/eventlogger-types.h - enum RTComElOp - 0 - equal, 1 - not equal; 2 - greater; 3 - greater or equal; 4 - less; 5 - less or equal; 6 - string is in the list of strings; 7 - string ends with

5) I also get this:
L2CAP(d): cid 0x0043 len 6 [psm 23]
AVCT: Response : pt 0x00 transaction 1 pid 0x110e
AV/C: Rejected: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: GetCapabilities: pt Single len 0x0001
PDU malformed

I don't know the BT protocol and even bluez so good. I also have no idea when it appears in dump. What I associate is that I see some patches for Vendor dependent codecs in upstream bluez. But you have to be me more descriptive (+maybe some debug log) so I can understand and take a look on it).

6) file transfer w/ Win7 Ultimate x64 (latest Broadcomm Suite, 6.5.x) isn't working, in both directions - have to dig deeper into this. IIRC it was already mentioned by another user in this thread.

I didn't get useable debug logs and resp. hcidumps from the user who reported this. So feel free to provide such reports ...

for AT+CIND=?, should in the future the N900's response include "message", when MAP support is enabled?

It's not so easy. AT commands are recognized and handled by bluez (bluetoothd) while PBAP, IrMC, MAP, FTP, ... profiles are handled byt obexd. That's also the reason why N900 still doesn't return the adressbook using AT commands.

don_falcone
2012-11-24, 12:04
Ok i'll do my best after returning from Thailand on December 3th; i have another week of vacation then so time should permit for some testing. (i just check TMO spontaneously here)

don_falcone
2012-12-04, 15:29
As promised, after somewhat partially adapting from 35C in .th to -3C in .de, i did a small testset pertaining OPP / FTP issues under Win7. Links for logs/dumps send per PM as usual.

PBAP tests in a few days if i'm not getting too lazy due to being frozen ;)

EDIT: damn it, redirecting audio (Music & Audio) in both directions doesn't seem to work either, as well as Headset / Speakerphone.

luf
2012-12-04, 21:27
i'll wait till it is pushed to thumb and I'll try out the call history on the blue&me.

I forgot to mention. The call history is already in new cssu-testing. As I know it's already released :) So feel free to test it.

luf
2012-12-04, 21:47
i did a small testset pertaining OPP / FTP issues under Win7. Links for logs/dumps send per PM as usual.

I downloaded it. I'll take a look hopefuly till end of week.

PBAP tests in a few days if i'm not getting too lazy due to being frozen ;)

You and kerio are the only who keeps me moving in this. So please don't be too lazy (as I'm) ;)

EDIT: damn it, redirecting audio (Music & Audio) in both directions doesn't seem to work either, as well as Headset / Speakerphone.

It sounds like nothing is working wiht Win7 64-bit :(
Is it same with Win7 32-bit or you don't have such OS?

Does it work with older bluez (4.66)? I'm curious where is the problem.

Android_808
2012-12-04, 22:40
I'm waiting for the next thumb release, which is delayed until the next cssu-testing release. current testing has a bug in hildon-something.

sydeccles
2012-12-10, 13:44
The lack of PBAP is the only major issue with the N900. Basically it is the only reason I do not use my N900 as my main mobile.

luf
2012-12-10, 13:46
The lack of PBAP is the only major issue with the N900. Basically it is the only reason I do not use my N900 as my main mobile.

I don't understand your comment. PBAP is working for N900 with upgraded obexd package (even included in CSSU-testing).
Can you be more concrete what's wrong? Please report obexd version at least and steps which leads you to failure.

sydeccles
2012-12-10, 13:53
I don't understand your comment. PBAP is working for N900 with upgraded obexd package (even included in CSSU-testing).
Can you be more concrete what's wrong? Please report obexd version at least and steps which leads you to failure.

I used (or tried to use) the manual method of install.
I will dig out the download info I used and post ASAP, however it did not work for me and ended up in me having re-flashing my phone.

sydeccles
2012-12-10, 13:59
Used these

evolution-data-server-addressbook-dbg_1.4.2.1-20120717-maemo1+cssu1_armel.deb

libedata-book-dbg_1.4.2.1-20120717-maemo1+cssu1_armel.deb
libopenobex1_1.4-0maemo3+0m5_armel.deb

librtcom-eventlogger-async-dev_0.1-0maemo1+0cssu0_arobexd_0.18-
0maemo5+0m5_armel.debmel.deb

rtcom-eventlogger-async-dbg_0.1-0maemo1+0cssu0_armel.deb

luf
2012-12-10, 14:12
Used these

Very strange list of packages. What documentation did you follow?

1) you listed dbg pakcages which has nothing to do with execution.
2) you don't list obexd package (which is the main)
3) rtcom-eventlogger-async is needed only for call history and MAP support in newest obexd for N900

If you want more interactive communication feel free to contact me on IRC #maemo channel.

I recommend this list of packages to install:
http://merlin1991.at/~luf/obexd/evolution-data-server-addressbook_1.4.2.1-20120717-maemo1%2bcssu1_armel.deb
http://merlin1991.at/~luf/obexd/libebook_1.4.2.1-20120717-maemo1%2bcssu1_armel.deb
http://merlin1991.at/~luf/obexd/libedata-book_1.4.2.1-20120717-maemo1%2bcssu1_armel.deb
http://merlin1991.at/~luf/obexd/libedataserver_1.4.2.1-20120717-maemo1%2bcssu1_armel.deb
http://merlin1991.at/~luf/obexd/librtcom-eventlogger1-async_0.1-0maemo1%2b0cssu0_armel.deb
http://merlin1991.at/~luf/obexd/obexd_0.46-1maemo5%2b0cssu1_armel.deb
http://merlin1991.at/~luf/obexd/rtcom-eventlogger-async_0.1-0maemo1%2b0cssu0_armel.deb

I have no failure reports leading to reflash.
In case of any trouble you can downgrade back to the original state using info from wiki page http://wiki.maemo.org/Bluetooth_PBAP

sydeccles
2012-12-10, 14:13
Could be me, maybe I need an idiots guide for install, better still add it to the download section

luf
2012-12-10, 14:25
Could be me, maybe I need an idiots guide for install, better still add it to the download section

wiki has some troubles but I moved development packages to extra subdirectory. So it should be better now.

luf
2012-12-11, 18:02
i did a small testset pertaining OPP / FTP issues under Win7. Links for logs/dumps send per PM as usual.

I need syslog with bluetoothd enabled debug. It seems it ends in bluetooth not obexd. Strange I see nothing in hcidump :( Did you started hcidump before connecting?

BTW how you tried ftp over bluetooth from N900 -> Win7? There is some error in syslog.
Win7 -> N900 shos nothing :(

Please don't forget to answer also my previous questions.

Strange strange strange :(

don_falcone
2012-12-12, 09:16
I need syslog with bluetoothd enabled debug. It seems it ends in bluetooth not obexd.


Ok got the bluetoothd info needed here (http://talk.maemo.org/showthread.php?t=51894), will do.

Strange I see nothing in hcidump :( Did you started hcidump before connecting?


Yes i did enable hcidump before.

BTW how you tried ftp over bluetooth from N900 -> Win7?


Using FileBox' "Share" functionality.


There is some error in syslog.


You mean those lines?

-----8<-----
Dec 4 16:11:21 Nokia-N900 iap_conndlg 2.88+0m5[1568]: Connecting RFCOMM failed: Method "Connect" with signature "s" on interface "org.bluez.Serial" doesn't exist
Dec 4 16:11:21 Nokia-N900 iap_conndlg 2.88+0m5[1568]: Unable to send files to <Win7 BT MAC>
-----8<-----

Both devices are o'course paired, and N900 is set to "allow" for initiating and establishing connections to Win7 box. IIRC did test both with BT first set to "Connectable", then "Discoverable".

Please don't forget to answer also my previous questions.


Sure. I'm a bit occupied right now, also due to weather conditions i like it more being NOT in the car right now. ;)

(As of this evening i will be going to Prague, and Thursday+Friday also being out of town, so i will probably test on the weekend then.)

sydeccles
2012-12-12, 14:15
wiki has some troubles but I moved development packages to extra subdirectory. So it should be better now.

OK then, tried again with the use of SUU testing, first of all started with a clean install, re-flashed my phone via Lap Top running Win 7 Ultimate X32 bit.

Next updated the software via Nokia suite as the image I have on my lap top is a year or so old

Added SSU Testing, I am still not able to get remote SIM, yes I can see the phone numbers on my Car display (A Range Rover Sport) however I am still unable to view my SIM Contacts, only phone numbers, which is no use to man not beast.

So unfortunately my N900 is a play thing, pity as I do like the phone.

freemangordon
2012-12-12, 14:53
OK then, tried again with the use of SUU testing, first of all started with a clean install, re-flashed my phone via Lap Top running Win 7 Ultimate X32 bit.

Next updated the software via Nokia suite as the image I have on my lap top is a year or so old

Added SSU Testing, I am still not able to get remote SIM, yes I can see the phone numbers on my Car display (A Range Rover Sport) however I am still unable to view my SIM Contacts, only phone number, which is no use to man not beast.

So unfortunately my N900 is a play thing, pity as I do like the phone.

Did you import your SIM contacts into your n900 phonebook?

luf
2012-12-12, 14:54
Added SSU Testing, I am still not able to get remote SIM, yes I can see the phone numbers on my Car display (A Range Rover Sport) however I am still unable to view my SIM Contacts, only phone number, which is no use to man not beast.

Good you have latest obexd running so your N900 is supporting PBAP and IrMC profiles. No remote SIM profile or rSAP is supported.

I also don't know what do you mean with remote SIM. Does it mean you don't see contact names in car? Are you sure your car is supporting PBAP or IrMC?

If you want to try something more, please try to debug the obexd if the car is downloading the phonebook using PBAP or IrMC. It's described on wiki page: http://wiki.maemo.org/Bluetooth_PBAP#Get_debug_messages (the Permanent way is easier).

Please send me the syslog output from the test (feel free to use private message).

EDIT: as far as I know the N900 doesn't support very well (if even) contacts on SIM card. For sure PBAP and IrMC support only contacts stored in phone.

sydeccles
2012-12-12, 14:57
Yes, I have a backup of my phone numbers on my lap top, so installed them onto my N900 via Nokia PC suite.
I have just done the same install using the same back up onto an old N96, and it works perfectly, all contact names are visible on the car display.

sydeccles
2012-12-12, 15:00
Sorry luf
I have just done another re-flash of my N900, so an not able to provide any info.

don_falcone
2012-12-12, 15:10
Wasn't it stated in the wiki (or elsewhere) that SIM backend isn't used for now?

sydeccles
2012-12-12, 15:29
SIM backend ????

luf
2012-12-12, 15:38
Yes, I have a backup of my phone numbers on my lap top, so installed them onto my N900 via Nokia PC suite.
I have just done the same install using the same back up onto an old N96, and it works perfectly, all contact names are visible on the car display.

So you should have contacts in phone not in SIM card.

N900 doesn't work with car and N96 works. Strange.

I have just done another re-flash of my N900, so an not able to provide any info.

No problem. If you want to go deeper into this problem please provide me obexd debug output from syslog. Maybe we can find something interesting.

SIM backend ????

It means contact from SIM card and not from phone.

sydeccles
2012-12-12, 15:56
Contacts were on the phone, not the SIM card.
The contacts were imported on both the N96 and the N900 from a Nokia suite back up that I keep on my laptop……I would imagine too many for a SIM card anyway.
Should also point out that I used the same method of installing contacts onto an E7 that I use to have until the USB port went T*ts up. However my car also use to display contact names from the E7perfectly.
As said previously, I have just re-flashed my phone with a new image Version 20.2020.36.2.203.1 so all historic data has gone from the phone.
Give me a few more days and I will look into having another go via the SUU testing download.

don_falcone
2012-12-17, 13:28
Newsflash: file transfer won't work too when using other Windows than Win 7 x64. I did test using my old Acer BT 1.1 dongle on a WinXP SP3 workstation - same (non-)results... transfers failed in both directions. (discovery & pairing works, as observed under Win 7)

So i'd suggest someone else help out with (more detailed) logs running under (any) Windows.

EDIT: Maybe its better to split the thread into obexd PBAP/IrMC issues and bluetoothd FTP /OPP issues.

luf
2012-12-18, 15:28
Newsflash: file transfer won't work too when using other Windows than Win 7 x64. I did test using my old Acer BT 1.1 dongle on a WinXP SP3 workstation - same (non-)results... transfers failed in both directions. (discovery & pairing works, as observed under Win 7)

Bad news for you. I tried dongle MSI PC2PC Bluetooth (BT 2.0) on Win Vista with BlueSoleil stack and it works well (also audio).

So i'd suggest someone else help out with (more detailed) logs running under (any) Windows.

It seems that the problem is in BT 1.1 or different windows bluetooth stack.

I'll try to find some BT 1.1 dongle to test it ... but I don't think I can find one here.

Maybe its better to split the thread into obexd PBAP/IrMC issues and bluetoothd FTP /OPP issues.

It'll be nice but I'm lazy in this paper works. I have also several creation of wiki pages in my todo list :(

EDIT (for don_falcone):
- can you unpair (N900 with win) on both sides, start debugging and log also pairing?
- are you able to test it with stock bluez?
- are you able to test the functionality of win+BT againist bluez-4.99 (or higher version) on some laptop/workstation?
- can you send me more info (as much as possible) about BT on win side? at least what bluez stack

EDIT2:
I have this BT dongle: http://www.msi.com/product/net/BToes-2-0--3X-Faster-.html - driver with Soleil BT stack is on another tab.

EDIT3: It works also on Win XP (BlueSoleil stack). Now I'm figthing with another stack ...

EDIT4: It works win xp -> N900 ok with Microsoft BT stack. However I had the same problem with N900 -> win xp. I see the same error in syslog which means that win BT side doesn't support COM port over BT (RFCOMM). When I configure "Incoming COM port" for BT on win xp side I'm able to send file also from N900 -> win xp

I'll try also the BT stack you're using (WIDCOMM - under Win XP)

EDIT5: N900 -> win xp with WIDCOMM is working for me. However I don't find a way to try OPP win xp -> N900. obexFTP win xp -> N900 using "send to" function has the problem that it tries put it into root directory for obexFTP where it's forbidden (in stock too)

However merlin1991 has the same problem as you so maybe he can provide me access to some test case.

don_falcone
2012-12-18, 22:20
I will try, but not today. My main Win7 machine has Anycom USB-500 (BT 2.1+EDR) dongle along with Broadcom chipset and BTW/WIDCOMM stack. XP machine has Acer BT500 (BT 1.1) dongle with CSR chipset and MS software stack.

So maybe it's BlueSoleil vs WIDCOMM/MS stack... I'll test with my second, spare Anycom dongle (under XP) and see if i a) can get BlueSoleil, and b) it running with that dongle.

don_falcone
2012-12-19, 09:29
Sorry, i was unable to get BlueSoleil to recognize both my Anycom and my Acer dongle / to enable BT.

Next step: trying BTServer Spy Lite to observe communications under WIDCOMM.

don_falcone
2013-01-06, 00:20
Sorry, file transfer wasn't possible between N900 -> Android (CM10) too.

sydeccles
2013-01-07, 14:09
Contacts were on the phone, not the SIM card.
The contacts were imported on both the N96 and the N900 from a Nokia suite back up that I keep on my laptop……I would imagine too many for a SIM card anyway.
Should also point out that I used the same method of installing contacts onto an E7 that I use to have until the USB port went T*ts up. However my car also use to display contact names from the E7perfectly.
As said previously, I have just re-flashed my phone with a new image Version 20.2020.36.2.203.1 so all historic data has gone from the phone.
Give me a few more days and I will look into having another go via the SUU testing download.

Happy new year to one and all.
As promised, I had another go with my N900 to see if the remote SIM would work.
I re-flashed the phone, downloaded the CSSU testing and updated etc imported the contacts via blue-tooth from an old N96 onto the N900.yes the built in car display shows the phone numbers, however still no Names.
I will now re-flash the phone (getting good at this bit) once again back to standard, and wait and see if any more updates come along.

pinochio
2013-01-15, 18:31
After the update (http://talk.maemo.org/showpost.php?p=1314995&postcount=6) back old problem with bluetooth.
Can not open the windows control bluetooth device in win 7, it opens and disappears.
Previously and so was a problem with uploading the files from the computer to the N900 and from N900 to the computer, which was also associated with updating obexd.
It was not possible to upload files from the computer to the N900 and from N900 to a laptop (Win 7 64). From the computer, I could not enter to the phone.
http://talk.maemo.org/showthread.php?t=59114&page=41

I reinstalled Broadcom Bluetooth Software on my laptop and now opens a window control-device bluetooth, but still can not be the files transferred to the N900 and from N900 to the computer. Error establishing the connection.

jackburton
2013-01-15, 20:37
I just got a new radio with bluetooth hands free. I want to download my address book. I looked at the wiki page and was reviewing the manual installation where it lists the .deb repo here: http://merlin1991.at/~luf/obexd/

I notice a lot of +cssu1* versions of .debs. Does the carkit require CSSU? I'm on PR 1.3.

luf
2013-01-16, 07:46
I notice a lot of +cssu1* versions of .debs. Does the carkit require CSSU? I'm on PR 1.3.

No, it doesn't require CSSU as far as I know. It's just part of cssu because it's system part replacement. So feel free to install it.
If you have some problems you can downgrade back following the wiki instructions.

pinochio
2013-01-16, 12:55
I reinstalled Broadcom Bluetooth Software on my laptop and now opens a window control-device bluetooth, but still can not be the files transferred to the N900 and from N900 to the computer. Error establishing the connection.

Obexd Version: 0.46-1maemo5+0cssu1+thumb0
Here is my syslog

don_falcone
2013-01-16, 13:12
You'll have to enable bluetoothd logging too; nothing relevant is in your log file. Btw, i still haven't tried to debug Windows (or Android, as my TP can't receive too from N900) side of things.

don_falcone
2013-01-16, 13:21
@luf:

Whoops... just noticed that you'd updated your post. I usually watch only for new posts to a thread; my bad then.


EDIT4: It works win xp -> N900 ok with Microsoft BT stack. However I had the same problem with N900 -> win xp. I see the same error in syslog which means that win BT side doesn't support COM port over BT (RFCOMM). When I configure "Incoming COM port" for BT on win xp side I'm able to send file also from N900 -> win xp

I'll try also the BT stack you're using (WIDCOMM - under Win XP)


Hell no, not that incoming / outgoing COM port thingy again. I fought with that when i had my N73, using Symbian OPM. Will test...


EDIT5: N900 -> win xp with WIDCOMM is working for me. However I don't find a way to try OPP win xp -> N900. obexFTP win xp -> N900 using "send to" function has the problem that it tries put it into root directory for obexFTP where it's forbidden (in stock too)

However merlin1991 has the same problem as you so maybe he can provide me access to some test case.

Regarding the root directory: Using Widcomm 6.5 i have the ability to browse for the actual directory where the file(s) to be send should be stored. But folder discovery isn't working too. I've made screenshots a while ago; will attach them when back home.

pinochio
2013-01-16, 13:30
You'll have to enable bluetoothd logging too

How does it turn?

don_falcone
2013-01-16, 13:45
http://talk.maemo.org/showthread.php?t=51894

luf
2013-01-16, 14:03
How does it turn?

Let's edit /etc/event.d/bluetoothd (add just -d to the end of exec line):

exec /usr/sbin/bluetoothd -n -d

and reboot of course ;)

pinochio
2013-01-16, 14:57
I give the new syslog

My entry in the obexd.service
[D-BUS Service]
Name=org.openobex
Exec=/usr/lib/obex/obexd --nodaemon --debug='*' --noplugin=syncevolution --symlinks --root .obex-root --root-setup /usr/bin/obex-root-setup --capability '!/usr/bin/gen-obex-capability.sh'

pinochio
2013-01-16, 19:57
I reinstalled obexd, downgraded to Original State
dpkg -i obexd_0.18-0maemo6+0m5_armel.deb
and works to transfer files from a laptop to the N900 and from my nokia N900 to laptop (win 7).
I attach syslog to Compare.

Now I have an error apt-get upgrade, because obexd been updated with the cssu-thumb
/home/user # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
mp-fremantle-community-pr: Depends: obexd (>= 0.46-1maemo5+0cssu1+thumb0) but 0.18-0maemo6+0m5 is installed
E: Unmet dependencies. Try using -f.
/home/user #

pinochio
2013-01-16, 20:32
You'll have to enable bluetoothd logging too; nothing relevant is in your log file. Btw, i still haven't tried to debug Windows (or Android, as my TP can't receive too from N900) side of things.

I also could not download files from a laptop to the N900 and from the N900 to a laptop. From the computer, I could not enter to the phone.

pinochio
2013-02-01, 09:59
The problem has existed for some version cssu, seems to be in a stable of stable v. 4.1. I do not know whether the fault lies with the new obexd, or is rather a conflict with the cssu. Obexed_0.46 works run smoothly even with the cssu stable v. 3.0. http://talk.maemo.org/showpost.php?p=1267372&postcount=406