Skip to contentSkip to conversation

tcp/ip with bluetooth

Bluez-users Manjunath Prabhu 2 participants 4 messages Nov 8, 2004 – Nov 9, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

hi all,
i have a tcp/ip client-server program (i.e) the server is listening and the client sends information.....right now I am communicating over the wired network. I want them to communicate over bluetooth. Is this done by enabling ppp over rfcomm?? if yes, then what am i suppossed to install???? some rfcomm package..
What about using the bluez-pan package???

hope someone can help me out..

regards,
manjunath

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users

maintainer
#1 lore raw

Hi Manjunath,

Quoted 6 lines

i have a tcp/ip client-server program (i.e) the server is listening and the client sends information.....right now I am communicating over the wired network. I want them to communicate over bluetooth. Is this done by enabling ppp over rfcomm?? if yes, then what am i suppossed to install???? some rfcomm package..
What about using the bluez-pan package???

you can establish a TCP/IP connection with the PAN profile or LAN access using PPP, but you can also change your program to use the RFCOMM socket instead of the TCP socket.

Use the latest kernel and the latest bluez-libs and bluez-utils and everything will be there.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users

#2 lore raw

hi marcel and co,
thanx for the reply. Its a big big help.

I got the Pan up and running and am just thinking of a way to measure the bluetooth data transfer rate.........how do i do it????

I was also trying to bring up the rfcomm socket....but am facing some problem...
1. 'sdptool browse bd_addr' shows 'SDP Server' and 'Public Browse Group Root', 'LAP' but no other services????I was looking for dial-up networking.......how do i add new services??

2. i run the 'rfcomm bind' command and then try 'rfcomm connect' and i get an error 'Can't connect RFCOMM socket: Resource temporarily unavailable'. I read in one of the mails where you have said that bind and connect, both are not required?? Hope u can again help me with this....

regards,
manjunath

Quoted 20 lines · Marcel Holtmann

Hi Manjunath,

Quoted 6 lines

i have a tcp/ip client-server program (i.e) the server is listening and the client sends information.....right now I am communicating over the wired network. I want them to communicate over bluetooth. Is this done by enabling ppp over rfcomm?? if yes, then what am i suppossed to install???? some rfcomm package..
What about using the bluez-pan package???

you can establish a TCP/IP connection with the PAN profile or LAN access using PPP, but you can also change your program to use the RFCOMM socket instead of the TCP socket.

Use the latest kernel and the latest bluez-libs and bluez-utils and everything will be there.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users

maintainer
#3 lore raw

Hi Manjunath,

Quoted 7 lines

I got the Pan up and running and am just thinking of a way to measure the bluetooth data transfer rate.........how do i do it????

I was also trying to bring up the rfcomm socket....but am facing some problem...
1. 'sdptool browse bd_addr' shows 'SDP Server' and 'Public Browse Group Root', 'LAP' but no other services????I was looking for dial-up networking.......how do i add new services??

write the profile implementation.

Quoted 5 lines

2. i run the 'rfcomm bind' command and then try 'rfcomm connect' and i get an error 'Can't connect RFCOMM socket: Resource temporarily unavailable'. I read in one of the mails where you have said that bind and connect, both are not required?? Hope u can again help me with this....

What you are searching for is "rfcomm listen ...", but this was not what I meant with replacing TCP with RFCOMM. If you want TCP/IP then you can use pand or dund for doing all the work, but you can also use the RFCOMM socket directly like you use a TCP socket.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users