public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-users] Problems with InputStream and OutputStream
@ 2004-08-30 11:44 Johannes Lintner
  2004-08-30 11:59 ` Marcel Holtmann
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Lintner @ 2004-08-30 11:44 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 872 bytes --]

Hi Marcel,

ok, no problem.
The way, to start a server on the Handy I already tried, but I didn't had in
mind, that this has to be so, but to have a completely new connenction
between the devices (or has it to be so?).
The complete protocol is attached to the mail. The accosted lines exists
(see attachment - would it be better to see the java-sources?).

On the pc runs a server, that is listening to a connection. A mobile phone
searches for the device and the service, tries to connect an sends a 7byte
long string ("String!"). This way works without any problems. Immediately
after receiving, the server sends an 6byte long string("Handy!") to the
phone, using the same connection. But the phone only receives an empty
string.


Greetings  Johannes

-- 
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl

[-- Attachment #2: conProtocol.bz2 --]
[-- Type: application/x-bzip, Size: 2728 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [Bluez-users] Problems with InputStream and OutputStream
@ 2004-08-26 10:48 Johannes
  2004-08-26 11:24 ` Marcel Holtmann
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes @ 2004-08-26 10:48 UTC (permalink / raw)
  To: bluez-users

Hi,

I have the following problem.
I want to communicate from a mobile phone to an PC with the BlueZ-Stack 
and backwards.
In the beginning, I only want to sent short Strings. the way from the 
phone to the PC works, but the way backwards won't run.
The server side (PC) tells me, that it send the string (6 bytes long), 
the client (phone) do receive a connection, but the transported String 
is empty (is.read() = -1).
Is it possible, that the BlueZ implementation is the problem? I am sure, 
that my source (Java) works correct  (on my opinion the problem can 
cause on two reasons: the BlueZ Stack or the Bluetooth-Stack on my 
mobile phone).
I were glad if someone can tell me something about this.

Greetings Johannes


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-08-31 11:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30 11:44 [Bluez-users] Problems with InputStream and OutputStream Johannes Lintner
2004-08-30 11:59 ` Marcel Holtmann
2004-08-30 12:34   ` john
2004-08-30 12:40     ` Marcel Holtmann
2004-08-31  7:42       ` Johannes
2004-08-31 10:23         ` Marcel Holtmann
2004-08-31 10:55           ` Johannes
2004-08-31 11:05           ` Johannes
  -- strict thread matches above, loose matches on Subject: below --
2004-08-26 10:48 Johannes
2004-08-26 11:24 ` Marcel Holtmann
2004-08-30 10:20   ` Johannes
2004-08-30 10:27     ` Marcel Holtmann
     [not found]       ` <413307E0.6060602@c-lab.de>
2004-08-30 11:09         ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox