Skip to main content

Problem with JSR 82 on Ubuntu fiesty version

1 reply [Last post]
jagtapyb
Offline
Joined: 2007-05-23
Points: 0

Hello All,

We are porting JSR-82(BlueZ+Ubuntu), While porting we have found that phoneME code for JSR82 works fine for Ubuntu's Dapper version.

But we are facing problem in service registration on Ubuntu's Edgy and fiesty version.

The problem is in btSDDB.c file, In bt_sddb_update_record() function, It is trying to record service using sdp_record_register() function, in this function I am getting error value as 22, and that is for invalid argument.

What can be the reason for the same?

Regards
Yogesh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
andrey_nazarov
Offline
Joined: 2006-10-16
Points: 0

Hello Yogesh,
Some time ago I worked with porting this jsr on BlueZ+Ubuntu also. It seems to me that the cause of the problem is in illegal value of the g_sess variable. It is because the sdp_connect function call was fail. It may be because the bluetooth stack initialization on different version of Ubuntu could be different.

Please refer to http://www.archivesat.com/for_maemo_developers/thread135956.htm
It looks like it is about similar problem.

Please ensure that sddb is enabled. Try to work with the sdptool utility.

Regards,
Andrey

> Hello All,
>
> We are porting JSR-82(BlueZ+Ubuntu), While porting we
> have found that phoneME code for JSR82 works fine for
> Ubuntu's Dapper version.
>
> But we are facing problem in service registration on
> Ubuntu's Edgy and fiesty version.
>
> The problem is in btSDDB.c file, In
> bt_sddb_update_record() function, It is trying to
> record service using sdp_record_register() function,
> in this function I am getting error value as 22, and
> that is for invalid argument.
>
> What can be the reason for the same?
>
> Regards
> Yogesh