* [Bluez-users] Read error from /dev/rfcomm0
@ 2008-04-13 0:30 ramkumar gollamudi
0 siblings, 0 replies; only message in thread
From: ramkumar gollamudi @ 2008-04-13 0:30 UTC (permalink / raw)
To: bluez-users
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-13 0:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-13 0:30 [Bluez-users] Read error from /dev/rfcomm0 ramkumar gollamudi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).