* [Bluez-users] rfcomm confusion
@ 2004-05-19 12:05 Ken
2004-05-19 12:25 ` Marcel Holtmann
0 siblings, 1 reply; 7+ messages in thread
From: Ken @ 2004-05-19 12:05 UTC (permalink / raw)
To: bluez-users
I am trying to create a bluetooth serial connection between my linux
laptop and iPAQ pda.
I'm using the command "rfcomm connect hci0 00:11:22:33 1" and it appears
to work.
the connection shows up on the iPAQ and when I go to the status it
displays 0 bytes transfered - 0 bytes received.
so, now i'm trying to send some data over this connection. my
expectation was that i could do something like:
echo "test" > /dev/rfcomm0
and then see 4 bytes received on the iPAQ interface, however the byte
counts on the ipaq remain 0.
does it make sense to try and send data this way? if not, can anybody
suggest how i should be trying to send data over an rfcomm connection?
thanks!
ken
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
2004-05-19 12:05 [Bluez-users] rfcomm confusion Ken
@ 2004-05-19 12:25 ` Marcel Holtmann
2004-05-20 8:50 ` Ken
0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-05-19 12:25 UTC (permalink / raw)
To: Ken; +Cc: BlueZ Mailing List
Hi Ken,
> I am trying to create a bluetooth serial connection between my linux
> laptop and iPAQ pda.
is this a Windows or a Linux based iPAQ?
> I'm using the command "rfcomm connect hci0 00:11:22:33 1" and it appears
> to work.
The <dev> is not the HCI device. It is the RFCOMM device you wanna
create. So use "rfcomm0" or "0" for short.
> the connection shows up on the iPAQ and when I go to the status it
> displays 0 bytes transfered - 0 bytes received.
Where do you see this?
> so, now i'm trying to send some data over this connection. my
> expectation was that i could do something like:
> echo "test" > /dev/rfcomm0
> and then see 4 bytes received on the iPAQ interface, however the byte
> counts on the ipaq remain 0.
Actually this depends on the program on the other side. If it is a
Windows iPAQ I don't know how they count the bytes.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
2004-05-19 12:25 ` Marcel Holtmann
@ 2004-05-20 8:50 ` Ken
2004-05-20 9:25 ` Marcel Holtmann
0 siblings, 1 reply; 7+ messages in thread
From: Ken @ 2004-05-20 8:50 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
Thanks for the response. It is Windows on the iPAQ.
I've tried again using /dev/rfcomm0 for <dev> but the results are the
same. (I think it was defaulting to rfcomm0 before even though I put
hci0 in the <dev> field)
So, in linux I do:
> rfcomm connect /dev/rfcomm0 08:00:28:90:25:D6 1
Connected /dev/rfcomm0 to 08:00:28:90:25:D6 on channel 1
Press CTRL-C for hangup
When I do this the iPAQ shows a connection icon, and when click into the
status screen for that connection it shows me the details including
connection time, activity, and signal strength.
Everything looks good but the activity always shows 0 bytes transfered
and 0 bytes received.
So, I guess my question is, how do I send data through this connection?
Should I just be able to echo data into /dev/rfcomm0? (ie: echo "some
data" > /dev/rfcomm0)
Or is it the case that I need an application on the iPAQ side to be
listening for data before it will show any bytes received or transfered?
I hope this makes sense.
Thanks!
Ken
Marcel Holtmann wrote:
>Hi Ken,
>
>
>
>>I am trying to create a bluetooth serial connection between my linux
>>laptop and iPAQ pda.
>>
>>
>
>is this a Windows or a Linux based iPAQ?
>
>
>
>>I'm using the command "rfcomm connect hci0 00:11:22:33 1" and it appears
>>to work.
>>
>>
>
>The <dev> is not the HCI device. It is the RFCOMM device you wanna
>create. So use "rfcomm0" or "0" for short.
>
>
>
>>the connection shows up on the iPAQ and when I go to the status it
>>displays 0 bytes transfered - 0 bytes received.
>>
>>
>
>Where do you see this?
>
>
>
>>so, now i'm trying to send some data over this connection. my
>>expectation was that i could do something like:
>>echo "test" > /dev/rfcomm0
>>and then see 4 bytes received on the iPAQ interface, however the byte
>>counts on the ipaq remain 0.
>>
>>
>
>Actually this depends on the program on the other side. If it is a
>Windows iPAQ I don't know how they count the bytes.
>
>Regards
>
>Marcel
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: SourceForge.net Broadband
>Sign-up now for SourceForge Broadband and get the fastest
>6.0/768 connection for only $19.95/mo for the first 3 months!
>http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
2004-05-20 8:50 ` Ken
@ 2004-05-20 9:25 ` Marcel Holtmann
0 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2004-05-20 9:25 UTC (permalink / raw)
To: Ken; +Cc: BlueZ Mailing List
Hi Ken,
> Thanks for the response. It is Windows on the iPAQ.
> I've tried again using /dev/rfcomm0 for <dev> but the results are the
> same. (I think it was defaulting to rfcomm0 before even though I put
> hci0 in the <dev> field)
>
> So, in linux I do:
> > rfcomm connect /dev/rfcomm0 08:00:28:90:25:D6 1
> Connected /dev/rfcomm0 to 08:00:28:90:25:D6 on channel 1
> Press CTRL-C for hangup
>
> When I do this the iPAQ shows a connection icon, and when click into the
> status screen for that connection it shows me the details including
> connection time, activity, and signal strength.
>
> Everything looks good but the activity always shows 0 bytes transfered
> and 0 bytes received.
>
> So, I guess my question is, how do I send data through this connection?
> Should I just be able to echo data into /dev/rfcomm0? (ie: echo "some
> data" > /dev/rfcomm0)
>
> Or is it the case that I need an application on the iPAQ side to be
> listening for data before it will show any bytes received or transfered?
I think so, but I don't have any knowledge about Windows operating
systems.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
@ 2004-05-20 9:52 Richard Pruen
0 siblings, 0 replies; 7+ messages in thread
From: Richard Pruen @ 2004-05-20 9:52 UTC (permalink / raw)
To: marcel, a5a33956; +Cc: bluez-users
Hello Marcel, and Ken,
>> Or is it the case that I need an application on the iPAQ side to be
>> listening for data before it will show any bytes received or transfered?
>
>I think so, but I don't have any knowledge about Windows operating
>systems.
You are correct, there needs to be some aplication on the Win CE device to receive the data.
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
@ 2004-05-20 9:52 Richard Pruen
2004-05-27 19:23 ` Ken
0 siblings, 1 reply; 7+ messages in thread
From: Richard Pruen @ 2004-05-20 9:52 UTC (permalink / raw)
To: marcel, a5a33956; +Cc: bluez-users
Hello Marcel, and Ken,
>> Or is it the case that I need an application on the iPAQ side to be
>> listening for data before it will show any bytes received or transfered?
>
>I think so, but I don't have any knowledge about Windows operating
>systems.
You are correct, there needs to be some aplication on the Win CE device to receive the data.
Richard
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-users] rfcomm confusion
2004-05-20 9:52 Richard Pruen
@ 2004-05-27 19:23 ` Ken
0 siblings, 0 replies; 7+ messages in thread
From: Ken @ 2004-05-27 19:23 UTC (permalink / raw)
To: Richard Pruen; +Cc: marcel, bluez-users
Hi Richard and Marcel,
You are right. Thank your for the responses! As soon as I got an
application listening on the Windows side it starting receiving data.
Ken
Richard Pruen wrote:
>Hello Marcel, and Ken,
>
> >> Or is it the case that I need an application on the iPAQ side to be
> >> listening for data before it will show any bytes received or transfered?
> >
> >I think so, but I don't have any knowledge about Windows operating
> >systems.
>
>You are correct, there needs to be some aplication on the Win CE device to receive the data.
>
>Richard
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-05-27 19:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 12:05 [Bluez-users] rfcomm confusion Ken
2004-05-19 12:25 ` Marcel Holtmann
2004-05-20 8:50 ` Ken
2004-05-20 9:25 ` Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2004-05-20 9:52 Richard Pruen
2004-05-20 9:52 Richard Pruen
2004-05-27 19:23 ` Ken
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox