Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] Programming in C with Bluetooth Sockets
@ 2006-04-19  2:25 Eric Munson
  2006-04-19  4:18 ` Sowmya Gattupalli
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Munson @ 2006-04-19  2:25 UTC (permalink / raw)
  To: bluez-users

I am attempting to move data across a bluetooth connection using
RFCOMM sockets in C.

I am able to establish the connection and I can successfully send and
receive the first four bytes of the message.  The sending program
reports a complete success and the receiving program only reads the
first four characters.

I have tried several things to make this work, first was to send the
message size initially and then break the message up into pieces no
bigger than 4 bytes and send them individually.  The sending program
again reports a complete success and the receiving program gets the
correct message size and only the first four bytes of the message.

The next step I tried was to have each side close the socket after
each transmission and open a new socket for each data chunk.  This led
to the same results as before.

I am at a loss about what I am doing wrong after searching the web for
information on bluetooth socket programming.  Has Anyone seen this
sort of problem before and if so what did you do to fix it?  Thanks
for your help.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2006-04-20  6:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19  2:25 [Bluez-users] Programming in C with Bluetooth Sockets Eric Munson
2006-04-19  4:18 ` Sowmya Gattupalli
2006-04-19 15:04   ` Eric Munson
2006-04-19 16:50     ` Sowmya Gattupalli
2006-04-19 16:56     ` Albert Huang
2006-04-19 18:26       ` Eric Munson
2006-04-19 18:32         ` Albert Huang
2006-04-19 20:41           ` Eric Munson
2006-04-20  6:46             ` Eric Munson

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