Skip to contentSkip to conversation

Accessing "/dev/rfcomm0" regarding

Bluez-users Benny 2 participants 3 messages Apr 20, 2005 – Apr 21, 2005 Bluetooth drivers

lore
Share & tools
lore

Benny

author
#0 lore raw

Dear all,

We are testing for the bidirectional data transfer between 2 PCs over Bluet= ooth.

The setup is as follows:
i) Host PC(Fedora 3-Linux kernel 2.6.9) with USB Bluetooth
dongle(CSR Chipset). We have used the Bluez utilities(rfcomm application) to connect the device and send data through the device handle "/dev/rfcomm0".
ii) Device PC(Linux/Windows) hyperterminal(COM1/"/dev/ttyS0"). The
BT-SPP module is connected to the Device PC.

We using the commands in the following sequence on the Host PC:
i) hcid
ii) sdpd
iii) sdptool add --channel=3D1 SP
iv) rfcomm connect 0 <BDADDR> 1
v) ls -l > /dev/rfcomm0 - for sending the data, working fine vi) cat /dev/rfcomm0 - for reading the data, working fine.

We have written a simple program which opens "/dev/rfcomm0" using "open("/dev/rfcomm0",O_RDWR)". We are able to send data using the system call "write()". But we are not able recieve data using the system call "read()". But the "hcidump -x" utility is showing the recieved data.

Please advice.

Thanks & Regards,
Benjamin

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Benjamin,

Quoted 18 lines

We are testing for the bidirectional data transfer between 2 PCs over Bluetooth.

The setup is as follows:
i) Host PC(Fedora 3-Linux kernel 2.6.9) with USB Bluetooth
dongle(CSR Chipset). We have used the Bluez utilities(rfcomm application) to connect the device and send data through the device handle "/dev/rfcomm0".
ii) Device PC(Linux/Windows) hyperterminal(COM1/"/dev/ttyS0"). The
BT-SPP module is connected to the Device PC.

We using the commands in the following sequence on the Host PC:
i) hcid
ii) sdpd
iii) sdptool add --channel=1 SP
iv) rfcomm connect 0 <BDADDR> 1
v) ls -l > /dev/rfcomm0 - for sending the data, working fine vi) cat /dev/rfcomm0 - for reading the data, working fine.

Quoted 5 lines

We have written a simple program which opens "/dev/rfcomm0" using "open("/dev/rfcomm0",O_RDWR)". We are able to send data using the system call "write()". But we are not able recieve data using the system call "read()". But the "hcidump -x" utility is showing the recieved data.

this is working. Check the attest program from bluez-utils.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Dear Marcel,
Thanks for your continued support.

Yes it is working. We have modified our code based on attest.c. Previously we have not chosen the "raw" mode.

Thanks & Regards,
Benny

Quoted 3 lines · Marcel Holtmann

Hi Benjamin,
=20

Quoted 1 line

We are testing for the bidirectional data transfer between 2 PCs over B=

luetooth.

Quoted 22 lines
Quoted 17 lines

The setup is as follows:
i) Host PC(Fedora 3-Linux kernel 2.6.9) with USB Bluetooth
dongle(CSR Chipset). We have used the Bluez utilities(rfcomm application) to connect the device and send data through the device handle "/dev/rfcomm0".
ii) Device PC(Linux/Windows) hyperterminal(COM1/"/dev/ttyS0"). The
BT-SPP module is connected to the Device PC.

We using the commands in the following sequence on the Host PC:
i) hcid
ii) sdpd
iii) sdptool add --channel=3D1 SP
iv) rfcomm connect 0 <BDADDR> 1
v) ls -l > /dev/rfcomm0 - for sending the data, working fine vi) cat /dev/rfcomm0 - for reading the data, working fine.

Quoted 5 lines

We have written a simple program which opens "/dev/rfcomm0" using "open("/dev/rfcomm0",O_RDWR)". We are able to send data using the system call "write()". But we are not able recieve data using the system call "read()". But the "hcidump -x" utility is showing the recieved data.

Quoted 6 lines

=20
this is working. Check the attest program from bluez-utils. =20
Regards
=20
Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users