hi,

i found out the problem. it was with the port number, i was using the
wrong port number the second time and hence the wait and retry did not
suceed. The mobile side has a application which listens on a
particular port ... To solve this problem now if the connection to the
application fails i just send my data as a file to the inbox port. I
do occasionally get occasional link error (I'll mail the exact error
after confirming its not due to my stupidity) but the whole connection
has become far more reliable and stable.

Also i am using this connection to send messages between the computer
and the mobile phone. I am trying to get the computer to reboot after
receiving the right message. The problem is that there could be many
computers and i need the obex message to know which computer i am
talking to. I first assigned a sdp service of my own on the mobile
side so that the obex packet i transfer does not come as a inbox
message ... but there is some listening problem on the mobile side. As
for now sending to inbox if sending to the application fails is fair
enough.

Thank you for replying.
will keep you posted on further developments.


On Dec 15, 2007 6:36 PM, Petit Eric <[EMAIL PROTECTED]> wrote:
> 2007/12/15, Joshua Varghese <[EMAIL PROTECTED]>:
> > hi,
> > i am sorry i forgot to mention that  the phone has a j2me application
> > which pops up an alert for every incoming obex transfer.The problem is
> > on the C side (Connection refused) i.e. i get an error from my
> > program, so there was no connection made between the C code and the
> > mobile phone. I haven't checked your utility yet (i am slightly
> > intimidated by the mono installation :) ) but do you think i need it.
> no, it's as yu want, i don't really know wath you are doing or need.
> > Also I am using the plain obex protocol and not obex-ftp but i don't
> > think that should matter as the connection establishment is before the
> > file transfer right.
> Well, yes,  conect should be identical, perhap's.
> If you just write a file transfert tool, try existing one before, but
> you seem to write other thing than file transfert, right?
> >
> > thank you
> > p.s. could connection refused mean that the mobile's bluetooth is not
> > ready to accept a new connection and if so how much time should there
> > be between two connection
> If there is time only the manual or manufactured of your phone can
> give you this time, from my experience, i had "refused" when, mobil is
> off, bt is off, phone not paired(windows),phone freezed
> >
> >
> > i am sorry i forgot to mention that  the phone has a j2me application
> > which pops up an alert for every incoming obex transfer.The problem is
> > on the C side (Connection refused) i.e. i get an error from my
> > program, so there was no connection made between the C code and the
> > mobile phone. I haven't checked your utility yet (i am slightly
> > intimidated by the mono installation :) ) but do you think i need it.
> > Also I am using the plain obex protocol and not obex-ftp but i don't
> > think that should matter as the connection establishment is before the
> > file transfer right.
> >
> > thank you
> > p.s. could connection refused mean that the mobile's bluetooth is not
> > ready to accept a new connection and if so how much time should there
> > be between two connection
> >
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services
> > for just about anything Open Source.
> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> > _______________________________________________
> > Openobex-users mailing list
> > [email protected]
> > http://lists.sourceforge.net/lists/listinfo/openobex-users
> >
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Openobex-users mailing list
> [email protected]
> http://lists.sourceforge.net/lists/listinfo/openobex-users
>

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to