From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Accessing "/dev/rfcomm0" regarding
Date: Wed, 20 Apr 2005 16:52:49 +0200 [thread overview]
Message-ID: <1114008769.2469.177.camel@pegasus> (raw)
In-Reply-To: <f54d864050420060454c6aa76@mail.gmail.com>
Hi Benjamin,
> 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.
>
> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-04-20 14:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 13:04 [Bluez-users] Accessing "/dev/rfcomm0" regarding Benny
2005-04-20 14:52 ` Marcel Holtmann [this message]
2005-04-21 6:17 ` Benny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1114008769.2469.177.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox