Skip to contentSkip to conversation

PATCH for dund : correct --dialup behavior (Tomtom GPS)

Bluez-devel Valentin SURREL 2 participants 4 messages Nov 19, 2006 – Nov 20, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I've found a little problem when trying to connect my Tomtom One GPS to the Intenet via my computer.

Tomtom GPS expect to find a GSM Phone with DUN. I changed the class in /etc/bluetooth/hcid.conf to 0x520204.
Then I started dund with the correct options (--dialup particularly).

It did'nt work, Tomtom claiming that my 'phone' have not DUN.

I made this very little modification to dund/sdp.c :

./bluez-utils-3.7/dund$ diff sdp_original.c sdp.c
173a174,176

Quoted 3 lines
      case DIALUP:
              sdp_uuid16_create(&svclass, DIALUP_NET_SVCLASS_ID);
              break;

After that, it works perfectly. Maybe this patch should be integrated into the official Bluez utils...

Valentin SURREL

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Valentin,

Quoted 11 lines

I've found a little problem when trying to connect my Tomtom One GPS to the Intenet via my computer.

Tomtom GPS expect to find a GSM Phone with DUN. I changed the class in /etc/bluetooth/hcid.conf to 0x520204.
Then I started dund with the correct options (--dialup particularly).

It did'nt work, Tomtom claiming that my 'phone' have not DUN.

I made this very little modification to dund/sdp.c :

Quoted 8 lines

./bluez-utils-3.7/dund$ diff sdp_original.c sdp.c
173a174,176

Quoted 3 lines
      case DIALUP:
              sdp_uuid16_create(&svclass, DIALUP_NET_SVCLASS_ID);
              break;

After that, it works perfectly. Maybe this patch should be integrated into the official Bluez utils...

please create a unified diff, because I can't read these context diffs.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Marcel Holtmann a =E9crit :

Quoted 9 lines

Hi Valentin,

please create a unified diff, because I can't read these context diffs.

Regards

Marcel

=

Hi,

It's my really first contribution to the GPL world, and I'm not familiar =

with the developpment tools. :-)

This one might be better... (it works for me with "patch < mypatch" in =

the correct directory)

sdp.c 2006-11-19 11:37:10.000000000 +0100 renamed from sdp.c 2006-05-23 14:48:37.000000000 +0200 +3 -0
@@ -171,6 +171,9 @@ int dun_sdp_search(bdaddr_t *src, bdaddr
        case ACTIVESYNC:
                sdp_uuid128_create(&svclass, (void *) async_uuid);
                break;
+       case DIALUP:
+               sdp_uuid16_create(&svclass, DIALUP_NET_SVCLASS_ID);
+               break;
        default:
                sdp_uuid16_create(&svclass, LAN_ACCESS_SVCLASS_ID);
                break;

Valentin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Valentin,

Quoted 2 lines

It's my really first contribution to the GPL world, and I'm not familiar with the developpment tools. :-)

don't worry. We tell you, but I think the difference between a context diff and unified diff is quite clear. I simply can't review any diff that is not in unified format. Actually this should be default, but it isn't.

Quoted 6 lines

This one might be better... (it works for me with "patch < mypatch" in the correct directory)

sdp.c 2006-11-19 11:37:10.000000000 +0100 int dun_sdp_search(bdaddr_t *src, bdaddr · line 179

Quoted 9 lines
sdp.c 2006-11-19 11:37:10.000000000 +0100 renamed from sdp.c 2006-05-23 14:48:37.000000000 +0200 +3 -0
@@ -171,6 +171,9 @@ int dun_sdp_search(bdaddr_t *src, bdaddr
        case ACTIVESYNC:
                sdp_uuid128_create(&svclass, (void *) async_uuid);
                break;
+       case DIALUP:
+               sdp_uuid16_create(&svclass, DIALUP_NET_SVCLASS_ID);
+               break;
        default:
                sdp_uuid16_create(&svclass, LAN_ACCESS_SVCLASS_ID);
                break;

Patch has been committed to the CVS. Thanks.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel