From: Naved Aziz <no2alikebd@yahoo.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] BlueZ on ETRAX 100LX devboard 82+
Date: Sun, 26 Jun 2005 06:36:50 -0700 (PDT) [thread overview]
Message-ID: <20050626133650.66078.qmail@web52801.mail.yahoo.com> (raw)
In-Reply-To: <20050626104000.28921.qmail@web52801.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 3565 bytes --]
Hi,
Sorry for the typing mistake in my previous email. It should read
memset (readbuff, 0, 100);
not
memset (dread, 0, 100);
Naved
Naved Aziz <no2alikebd@yahoo.com> wrote:
Hi Marco,
Thanks a lot for your help. I wrote my own program
using rfcomm, and have been able to establish
connections with phones.
I have also been able to write data to phones.
However, I am currently having trouble reading data
sent from the phone to the board.
The application running on the phone receives data
from me, displays it, and then echoes it back.
The program I have written is pretty much the same as
the RFCOMM's main.c's cmd_connect function, except now
it receives an argument from the user and sends that
out through a socket once it has connected with a
phone. This part works fine.
Just after the write function call, I call read as:
chk_read = read (sk, readbuff, 2);
with sk being the file descriptor of the socket
connected to the phone, readbuff being an array of
type unsigned char and size 100, and reading in only 2
characters. I have earlier initialized readbuff as:
memset (dread, 0, 100);
However, when I send data to the phone and it receives
this data and displays it, once it has sent the data
back to the board, the board does not receive it.
Rather it waits for data to be received, and once
disconnected displays that chk_read has been assigned
a -1, meaning no data has been read. I have called
the read function for reading more than 2 characters
(have used readbuff's maximum size, 100), but still no
good.
Any idead what's going wrong here? Any help will be
greatly appreciated.
Thanks and sincerely,
Naved
--- Marco Trudel wrote:
> > My question is this: instead of creating a device
> > using ioctl(), do you know how to assign this
> already
> > created device to dev in the above if statement?
>
> no. I never worked with such devices.
>
> > The device resides in the /dev directory. This is
> a
> > problem I will face even if I write step(6)
> > separately
>
> actually no. There's no need for a device, use a
> socket.
>
> > becuase the question of using an already
> > created device will still come up.
>
> what for? not for bluez...
>
>
> regards
> Marco
>
>
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: Type: text/html, Size: 4418 bytes --]
next prev parent reply other threads:[~2005-06-26 13:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 11:12 [Bluez-users] BlueZ on ETRAX 100LX devboard 82+ Naved Aziz
2005-06-09 11:43 ` Marco Trudel
2005-06-09 13:57 ` Naved Aziz
2005-06-09 15:26 ` Marco Trudel
2005-06-10 5:06 ` Naved Aziz
2005-06-12 9:51 ` Marco Trudel
2005-06-14 14:04 ` Naved Aziz
2005-06-14 18:26 ` Marco Trudel
2005-06-26 10:40 ` Naved Aziz
2005-06-26 13:36 ` Naved Aziz [this message]
2005-06-13 8:32 ` Erwin Authried
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=20050626133650.66078.qmail@web52801.mail.yahoo.com \
--to=no2alikebd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox