* [Bluez-users] problems with bytestream
@ 2004-10-12 16:29 Paolino paperino
2004-10-13 13:46 ` [Bluez-devel] " Diego Liziero
0 siblings, 1 reply; 6+ messages in thread
From: Paolino paperino @ 2004-10-12 16:29 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]
Hi, i'm writing a library to get a L2CAP stream in
Java, this library is Java Native Library that uses
L2CAP sockets of Bluez.
I've the following problem: when i send 4 bytes over
the socket, on the other side of the connection i get
5 valid read operation. Well at this point i started
to investigate and i founded very usefull the l2test
program tool. On one machine i've lauched l2test with
l2test -d -b 1 (for packets of 1 byte) and on the
client side l2test -s -b 1 -N 10 <my_srv_addr>....the
client seems to work correctly, but the server doesn't
receive any data.
[client screen dump]
[zande@ZANDEGIA andrea]$ ./l2test -s -b 1 -N 10
00:0B:0D:40:64:D5
l2test[8186]: Connected [imtu 672, omtu 672, flush_to
65535]
l2test[8186]: Sending ...
l2test[8186]: Closing channel ...
l2test[8186]: Done
l2test[8186]: Exit
[server screen dump]
[andrea@tsunami tests]$ ./l2test -d
l2test[4907]: Waiting for connection on psm 10 ...
l2test[4908]: Connect from 00:10:C6:4D:38:AC [imtu
672, omtu 672, flush_to 65535]
l2test[4908]: Receiving ...
l2test[4908]: Disconnect. Success
No data are received by the server, nothig is printed
on the screen.
Somebody have an explanation for this things or
somebody could test my 2 commands lines on other
machine to test the behaviour.
Thanks to anybody could help me!!!
Best regards
Andrew
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
[-- Attachment #2: Type: message/rfc822, Size: 4600 bytes --]
From: Paolino paperino <vonzoltan@yahoo.it>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] problems with bytestream
Date: Mon, 11 Oct 2004 12:56:26 +0200 (CEST)
Hi, i'm writing a library to get a L2CAP stream in
Java, this library is Java Native Library that uses
L2CAP sockets of Bluez.
I've the following problem: when i send 4 bytes over
the socket, on the other side of the connection i get
5 valid read operation. Well at this point i started
to investigate and i founded very usefull the l2test
program tool. On one machine i've lauched l2test with
l2test -d -b 1 (for packets of 1 byte) and on the
client side l2test -s -b 1 -N 10 <my_srv_addr>....the
client seems to work correctly, but the server doesn't
receive any data.
[client screen dump]
[zande@ZANDEGIA andrea]$ ./l2test -s -b 1 -N 10
00:0B:0D:40:64:D5
l2test[8186]: Connected [imtu 672, omtu 672, flush_to
65535]
l2test[8186]: Sending ...
l2test[8186]: Closing channel ...
l2test[8186]: Done
l2test[8186]: Exit
[server screen dump]
[andrea@tsunami tests]$ ./l2test -d
l2test[4907]: Waiting for connection on psm 10 ...
l2test[4908]: Connect from 00:10:C6:4D:38:AC [imtu
672, omtu 672, flush_to 65535]
l2test[4908]: Receiving ...
l2test[4908]: Disconnect. Success
No data are received by the server, nothig is printed
on the screen.
Somebody have an explanation for this things or
somebody could test my 2 commands lines on other
machine to test the behaviour.
Thanks to anybody could help me!!!
Best regards
Andrew
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bluez-devel] Re: [Bluez-users] problems with bytestream
2004-10-12 16:29 [Bluez-users] problems with bytestream Paolino paperino
@ 2004-10-13 13:46 ` Diego Liziero
2004-10-13 14:38 ` [Bluez-devel] Re: [Bluez-users] problems with bytestream + rfcomm socket problems Paolino paperino
0 siblings, 1 reply; 6+ messages in thread
From: Diego Liziero @ 2004-10-13 13:46 UTC (permalink / raw)
To: Paolino paperino; +Cc: bluez-devel
Hi Andrea,
I took a look at l2test.c and I saw that
at the beginning of each packet sent
there is a small header.
The first 32 bits are used for the sequence number
and the following 16 for the packet size.
l2test[3491]: Recevied 18 bytes
00000000: 01 00 00 00 12 00 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
.........|seq-number | len | payload
.........| (little endian) |
However I tested it with smaller packet sizes and it seems
to work here flawlessly.
l2test -s -b 1 -N 1 XX:XX:XX:XX:XX:XX
l2test -d
l2test[3488]: Connect from XX:XX:XX:XX:XX:XX [imtu 672, omtu 672,
flush_to 65535]
l2test[3488]: Receiving ...
l2test[3488]: Recevied 1 bytes
00000000: 00 .
l2test[3488]: Disconnect. Success
I used csr based USB dongles with latest bluez libs & utils.
Ciao,
Diego Liziero.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bluez-devel] Re: [Bluez-users] problems with bytestream + rfcomm socket problems
2004-10-13 13:46 ` [Bluez-devel] " Diego Liziero
@ 2004-10-13 14:38 ` Paolino paperino
2004-10-14 8:26 ` Diego Liziero
0 siblings, 1 reply; 6+ messages in thread
From: Paolino paperino @ 2004-10-13 14:38 UTC (permalink / raw)
To: bluez-users; +Cc: bluez-devel
Thanks Diego,
Now i've tested the rctest (without the usleep that
i've inserted) on a machine with kernel 2.4.18 and
bluez libs/utils 2.2(USB dongle digicom), and the
receive function doesn't give any prblems, work well,
doesn't loose any byte...is this a bug in the kernel i
use?!
PS The USB dongle i use with the kernel 2.6 is a Trust
BT180
Thanks
Andrea S.
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] problems with bytestream + rfcomm socket problems
2004-10-13 14:38 ` [Bluez-devel] Re: [Bluez-users] problems with bytestream + rfcomm socket problems Paolino paperino
@ 2004-10-14 8:26 ` Diego Liziero
2004-10-20 13:49 ` Paolino paperino
2004-10-20 13:49 ` Paolino paperino
0 siblings, 2 replies; 6+ messages in thread
From: Diego Liziero @ 2004-10-14 8:26 UTC (permalink / raw)
To: Paolino paperino; +Cc: bluez-users
Hello Andrea,
On Wed, 2004-10-13 at 16:38, Paolino paperino wrote:
> Thanks Diego,
> Now i've tested the rctest (without the usleep that
> i've inserted) on a machine with kernel 2.4.18 and
> bluez libs/utils 2.2(USB dongle digicom), and the
> receive function doesn't give any prblems, work well,
> doesn't loose any byte...is this a bug in the kernel i
> use?!
Here it works with kernels 2.6.7-2.tmb.6mdk (mandrake)
and 2.6.9-rc3-mm3-ecn-retry (debian).
Sorry, I don't have a RedHat.
> PS The USB dongle i use with the kernel 2.6 is a Trust
> BT180
Try to switch the Bluetooth dongle and see if it is
it's fault.
> Thanks
> Andrea S.
Diego.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] problems with bytestream + rfcomm socket problems
2004-10-14 8:26 ` Diego Liziero
@ 2004-10-20 13:49 ` Paolino paperino
2004-10-20 13:49 ` Paolino paperino
1 sibling, 0 replies; 6+ messages in thread
From: Paolino paperino @ 2004-10-20 13:49 UTC (permalink / raw)
To: diego.liziero; +Cc: bluez-users
Thank's Diego
it wasn't a prblem of dongle or bluez, because i've
tested all the USB dongles with two kernel 2.6.8 of
Fedora's, and all works fine, i'will try to test with
the latest 2.4.27 series, i think the prblem was in
the ker 2.4.18 i used.
> Try to switch the Bluetooth dongle and see if it is
> it's fault.
>
> > Thanks
> > Andrea S.
>
> Diego.
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-users] problems with bytestream + rfcomm socket problems
2004-10-14 8:26 ` Diego Liziero
2004-10-20 13:49 ` Paolino paperino
@ 2004-10-20 13:49 ` Paolino paperino
1 sibling, 0 replies; 6+ messages in thread
From: Paolino paperino @ 2004-10-20 13:49 UTC (permalink / raw)
To: diego.liziero; +Cc: bluez-users
--- Diego Liziero <liziero.diego@unimore.it> ha
scritto:
> Hello Andrea,
>
> On Wed, 2004-10-13 at 16:38, Paolino paperino wrote:
> > Thanks Diego,
> > Now i've tested the rctest (without the usleep
> that
> > i've inserted) on a machine with kernel 2.4.18 and
> > bluez libs/utils 2.2(USB dongle digicom), and the
> > receive function doesn't give any prblems, work
> well,
> > doesn't loose any byte...is this a bug in the
> kernel i
> > use?!
>
> Here it works with kernels 2.6.7-2.tmb.6mdk
> (mandrake)
> and 2.6.9-rc3-mm3-ecn-retry (debian).
> Sorry, I don't have a RedHat.
>
> > PS The USB dongle i use with the kernel 2.6 is a
> Trust
> > BT180
>
> Try to switch the Bluetooth dongle and see if it is
> it's fault.
>
> > Thanks
> > Andrea S.
>
> Diego.
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide
> on ITManagersJournal
> Use IT products in your business? Tell us what you
> think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates!
> Click to find out more
>
http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
>
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-10-20 13:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-12 16:29 [Bluez-users] problems with bytestream Paolino paperino
2004-10-13 13:46 ` [Bluez-devel] " Diego Liziero
2004-10-13 14:38 ` [Bluez-devel] Re: [Bluez-users] problems with bytestream + rfcomm socket problems Paolino paperino
2004-10-14 8:26 ` Diego Liziero
2004-10-20 13:49 ` Paolino paperino
2004-10-20 13:49 ` Paolino paperino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox