From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Help me solve the rfcomm programming.
Date: Tue, 25 Jan 2005 18:28:22 +0100 [thread overview]
Message-ID: <1106674102.8242.42.camel@pegasus> (raw)
In-Reply-To: <e14f8bedaa101.heejune@snut.ac.kr>
Hi,
> I am writing a programm using serial profile. But it makes me crzay.
> When I am using serial port program (client and server) after I am setting
> using "rfcomm command" ,i.e, listen and connect, it is ok.
> But, When I try to merge with my program The Peer doesnot gets Data even though the connection is opened successfully and
> client sent data successfully.
> My program is like this.
> open("/dev/rfcomm0")
> test "config1" -----fork--------------------------^----*----- read( nothing or less than sent!!!)
> | | signal (to let parent know I can reciev
> +---- exec ( rfcomm listen) ....
> |
> +------- exec (rfcomm connect)
> | | signal (to let parent know it can send something)
> test "config2" -----fork ---- v ----*------* write( 100 bytes)
> open("/dev/rfcomm4")
if you don't use a legacy application that needs an TTY then you also
don't need to use the TTY feature of RFCOMM. Use the RFCOMM sockets
directly and your life will be a lot more easier.
> IS THIS Because I am using two USB dongle in the same Desktop linux????
No. This works perfect. They only situation where this is problematic is
PAN/BNEP, because the Linux TCP/IP then routes all data of the loopback
interface.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
prev parent reply other threads:[~2005-01-25 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 17:15 [Bluez-users] Help me solve the rfcomm programming 안희준
2005-01-25 17:28 ` Marcel Holtmann [this message]
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=1106674102.8242.42.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