* [Bluez-devel] rfcomm connection send data
@ 2004-03-09 10:42 franz keuner
2004-03-10 0:13 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: franz keuner @ 2004-03-09 10:42 UTC (permalink / raw)
To: bluez-devel
hello,
i´m trying to develop an application using the bluezstack (usb dongle) and
the sonyericsson p900.
i´m able to connect the two devices via rfcomm.
rfcomm connect 0 00:00:00:00:00:00 5
Connected /dev/rfcomm0 to 00:00:00:00:00:00 on channel 5
Press CTRL-C for hangup
now i want to send data(string) from one device to the other.
on the p900 i use MIDlets and the java bluetooth api.
if i start listening and dump with ./rctest -d and trying to connect the
p900 the following message returns:
./rctest -d
rctest: Waiting for connection on channel 10 ...
rctest: Connect from 00:00:00:00:00:00 (p900 adress)
rctest: Receiving ...
an nothing happens...
i use in the MIDlet the command: connector client = (StreamConnection)
Connector.open(btspp://dongle adress and channel));
so the connection seems to work alright.
the data i want to send is a string saved in content:
output = client.openOutputStream();
byte[] data = content.getBytes();
output.write(data);
the p900 confirms it sended the data and rctest gives no error message or
anything.
i hope somebody can help me.
regards,
franzhello,
i´m trying to develop an application using the bluezstack (usb dongle) and
the sonyericsson p900.
i´m able to connect the two devices via rfcomm.
rfcomm connect 0 00:00:00:00:00:00 5
Connected /dev/rfcomm0 to 00:00:00:00:00:00 on channel 5
Press CTRL-C for hangup
now i want to send data(string) from one device to the other.
on the p900 i use MIDlets and the java bluetooth api.
if i start listening and dump with ./rctest -d and trying to connect the
p900 the following message returns:
./rctest -d
rctest: Waiting for connection on channel 10 ...
rctest: Connect from 00:00:00:00:00:00 (p900 adress)
rctest: Receiving ...
an nothing happens...
i use in the MIDlet the command: connector client = (StreamConnection)
Connector.open(btspp://dongle adress and channel));
so the connection seems to work alright.
the data i want to send is a string saved in content:
output = client.openOutputStream();
byte[] data = content.getBytes();
output.write(data);
the p900 confirms it sended the data and rctest gives no error message or
anything.
i hope somebody can help me.
regards,
franz
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] rfcomm connection send data
2004-03-09 10:42 [Bluez-devel] rfcomm connection send data franz keuner
@ 2004-03-10 0:13 ` Marcel Holtmann
[not found] ` <27734.1078908349@www43.gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-03-10 0:13 UTC (permalink / raw)
To: franz keuner; +Cc: BlueZ Mailing List
Hi Franz,
> i=B4m trying to develop an application using the bluezstack (usb dongle=
) and
> the sonyericsson p900.
> i=B4m able to connect the two devices via rfcomm.
>=20
> rfcomm connect 0 00:00:00:00:00:00 5
> Connected /dev/rfcomm0 to 00:00:00:00:00:00 on channel 5
> Press CTRL-C for hangup
>=20
> now i want to send data(string) from one device to the other.
> on the p900 i use MIDlets and the java bluetooth api.=20
>=20
> if i start listening and dump with ./rctest -d and trying to connect th=
e
> p900 the following message returns:
> ./rctest -d
> rctest: Waiting for connection on channel 10 ...
> rctest: Connect from 00:00:00:00:00:00 (p900 adress)
> rctest: Receiving ...
>=20
> an nothing happens...
> i use in the MIDlet the command: connector client =3D (StreamConnection=
)
> Connector.open(btspp://dongle adress and channel));
>=20
> so the connection seems to work alright.
>=20
> the data i want to send is a string saved in content:
> output =3D client.openOutputStream();
> byte[] data =3D content.getBytes();
> output.write(data);
>=20
> the p900 confirms it sended the data and rctest gives no error message =
or
> anything.
run "hcidump -x" (as root) and see what happens on the Linux side.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-10 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 10:42 [Bluez-devel] rfcomm connection send data franz keuner
2004-03-10 0:13 ` Marcel Holtmann
[not found] ` <27734.1078908349@www43.gmx.net>
2004-03-10 10:32 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox