Return-Path: Message-ID: From: "Albert Huang" To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] Programming in C with Bluetooth Sockets In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4002_25573710.1145465816147" References: Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 19 Apr 2006 12:56:56 -0400 ------=_Part_4002_25573710.1145465816147 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline use hcidump -X -V to examine the packets that actually get transmitted and received. That might give you some insight on where things are going wrong= . -albert On 4/19/06, Eric Munson wrote: > > Thanks for the link, but I have already been through that > documentation and my initial attempt was a direct copy of of his > RFCOMM socket code found here: > http://people.csail.mit.edu/albert/bluez-intro/x499.html This code > gave the results that I am describing (only getting the first 4 bytes > of a string). > > Thanks, > Eric > > On 4/18/06, Sowmya Gattupalli wrote: > > I think u are not doing the socket programmin properly > > check out this link > > http://people.csail.mit.edu/albert/bluez-intro/index.html > > by Albert > > > > > > On 4/19/06, Eric Munson wrote: > > > > > 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?cmdlnk&kid=110944&bid$1720&dat=121642 > > _______________________________________________ > > Bluez-users mailing list > > Bluez-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bluez-users > > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_4002_25573710.1145465816147 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline use hcidump -X -V to examine the packets that actually get transmitted and = received.  That might give you some insight on where things are going = wrong.

-albert

On 4/19/06, <= b class=3D"gmail_sendername"> Eric Munson <ebmunson@gmail.co= m> wrote:
Thanks for the link, but I have already been through that
documentation = and my initial attempt was a direct copy of of his
RFCOMM socket code fo= und here:
http://people.csail.mit.edu/albert/bluez-intro/x499.html  Thi= s code
gave the results that I am describing (only getting the first 4 b= ytes
of a string).

Thanks,
Eric

On 4/18/06, Sowmya Gatt= upalli < sowmya.gattupalli@gmail.com<= /a>> wrote:
> I think u are not doing the socket programmin proper= ly
> check out this link
>
http://people.csail.mit.edu/albert/bluez-intro/index.html
> by Al= bert
>
>
> On 4/19/06, Eric Munson <ebmunson@gmail.com> wrote:
> >
>&= nbsp; I am attempting to move data across a bluetooth connection using
> RFCOMM sockets in C.
>
> I am able to establish the co= nnection and I can successfully send and
> receive the first four byt= es of the message.  The sending program
> reports a complet= e 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 an= d 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 th= e
> correct message size and only the first four bytes of the message= .
>
>  The next step I tried was to have each side cl= ose 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
> i= nformation on bluetooth socket programming.  Has Anyone seen this
> sort of problem before and if so what did you do to fix it? &= nbsp;Thanks
> for your help.
>
>
> ----------------= ---------------------------------------
> This SF.Net email is sponso= red by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the li= ve webcast
> and join the prime developer group breaking into this ne= w coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat= =121642
> _______________________________________________
>= Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists= /listinfo/bluez-users
>
>


----------------------= ---------------------------------
Using Tomcat but need to do more? Need to support web services, securit= y?
Get stuff done quickly with pre-integrated technology to make your jo= b easier
Download IBM WebSphere Application Server v.1.0.1 based on Apac= he Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid= =120709&bid&3057&dat=121642
____________________________= ___________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/= lists/listinfo/bluez-users

------=_Part_4002_25573710.1145465816147-- ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users