From: ramkumar gollamudi <rgollamudi@yahoo.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Read error from /dev/rfcomm0
Date: Sat, 12 Apr 2008 17:30:51 -0700 (PDT) [thread overview]
Message-ID: <794890.52004.qm@web31005.mail.mud.yahoo.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1397 bytes --]
Hello,
I have a problem reading from the file /dev/rfcomm0 after the tty was created when a remote device connected to my linux PC which was executing the rfcomm listen command.
rfcomm listen 0 1 testreadapp {}
When the remote device connected to this local device my test application "testreadapp" was launched by the rfcomm utility. In this testreadapp application I open the /dev/rfcomm0 file and attempt to do a file read. It consistently failed and the read() returned 0 bytes.
On the contrary if I launched testwriteapp after the rfcomm listen command, the testwriteapp not only successfully opened the /dev/rfcomm0 file but also wrote into the file successful. The data then got transmitted across the bluetooth link and were received successfully by the remote device.
I have two questions....
1) How do I got my testreadapp to successfully read from the /dev/rfcomm0 file?
2) Both testreadapp and testwriteapp are currently implemented in C. Are there any issues if I implement them in Java? I understand that execvp does not pass the "{}" argument to java applications. Are there ways to get around the issue?
I will be greatly appreciative if somebody can please help me address this issues. Thanks very much.
-Cheers,
Ram
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #1.2: Type: text/html, Size: 1853 bytes --]
[-- Attachment #2: Type: text/plain, Size: 320 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
reply other threads:[~2008-04-13 0:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=794890.52004.qm@web31005.mail.mud.yahoo.com \
--to=rgollamudi@yahoo.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.