Mr | 10 Mar 2008 09:28
Picon
Favicon

Does openobex support basic imaging profile

Dear Sir : 

Does openobex support basic imaging profile(BIP)?
How many feature had implemented on openobex?
BIP : 
--Image Push 
--Image Pull 
-- Advanced Image Printing 
-- Automatic Archive 
-- Remote Camera 
-- Remote Display 

Thanks your response.
Best Regards,

guoer

     
______________________________________________________________________________________________________
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! http://tw.mg0.mail.yahoo.com/dc/landing

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openobex-users mailing list
(Continue reading)

Hendrik Sattler | 10 Mar 2008 09:54
Picon

Re: Does openobex support basic imaging profile

Zitat von Mr ?ffffa4p?ffffa5?ffffc1 ?ffffaaL <guoer3124 <at> yahoo.com.tw>:
> Does openobex support basic imaging profile(BIP)?
> How many feature had implemented on openobex?
> BIP :
> --Image Push
> --Image Pull
> -- Advanced Image Printing
> -- Automatic Archive
> -- Remote Camera
> -- Remote Display

Wrong layer: BIP uses OBEX and openobex implements OBEX, not BIP.

HS

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Manuel Naranjo | 10 Mar 2008 14:02
Picon
Gravatar

Re: Does openobex support basic imaging profile


>> Does openobex support basic imaging profile(BIP)?
>> How many feature had implemented on openobex?
>> BIP :
>> --Image Push
>> --Image Pull
>> -- Advanced Image Printing
>> -- Automatic Archive
>> -- Remote Camera
>> -- Remote Display
>>     
>
> Wrong layer: BIP uses OBEX and openobex implements OBEX, not BIP.
>
> HS
As Hendrik said BIP uses Obex, so it will use OpenObex some how. There's
a BlueZ Google Code of Summer that targets to implement a D-Bus server
for BIP. Check here http://wiki.bluez.org/wiki/GSoC2008

You should ask at the BlueZ forums/mailing lists/irc for this stuff.
Anyway image push and image pull is just an Object Push, I don't think
there's anything more complex about it, I don't even know if they're
using any strange UUID.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Nick Bransby-Williams | 25 Mar 2008 01:15

BtOBEX_TransportConnect - timeout or refuse?

When pushing files to mobile via OPP, I need to find out if a user
refused the connection (via the on screen prompt 'Accept Message
from...') or the connection just timed out.

Thing is, BtOBEX_TransportConnect blocks while the phone displays the
prompt and then returns with either -1 or 1 (success or failure)
leaving me with no way to access the actual response from the phone.

I thought it would a case of reading the response from the obex
connect command request but this all happens before i send the connect
request (unless BtOBEX_TransportConnect is sending one for me?)

Any ideas?

Nick

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Hendrik Sattler | 25 Mar 2008 01:30
Picon

Re: BtOBEX_TransportConnect - timeout or refuse?

Am Dienstag 25 März 2008 schrieb Nick Bransby-Williams:
> When pushing files to mobile via OPP, I need to find out if a user
> refused the connection (via the on screen prompt 'Accept Message
> from...') or the connection just timed out.
>
> Thing is, BtOBEX_TransportConnect blocks while the phone displays the
> prompt and then returns with either -1 or 1 (success or failure)
> leaving me with no way to access the actual response from the phone.
>
> I thought it would a case of reading the response from the obex
> connect command request but this all happens before i send the connect
> request (unless BtOBEX_TransportConnect is sending one for me?)
>
> Any ideas?

Use the last variable in your obex_event_t callback function when the event is 
OBEX_EV_ABORT?
OTOH, at that time of connection establishment, the connection should _never_ 
timeout! Don't force the user to be quick, react to disconnection instead.

HS

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openobex-users mailing list
Openobex-users <at> lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users
(Continue reading)

Nick Bransby-Williams | 25 Mar 2008 12:30

Re: BtOBEX_TransportConnect - timeout or refuse?

On 25/03/2008, Hendrik Sattler <post <at> hendrik-sattler.de> wrote:
> Am Dienstag 25 März 2008 schrieb Nick Bransby-Williams:
>
> > When pushing files to mobile via OPP, I need to find out if a user
>  > refused the connection (via the on screen prompt 'Accept Message
>  > from...') or the connection just timed out.
>  >
>  > Thing is, BtOBEX_TransportConnect blocks while the phone displays the
>  > prompt and then returns with either -1 or 1 (success or failure)
>  > leaving me with no way to access the actual response from the phone.
>  >
>  > I thought it would a case of reading the response from the obex
>  > connect command request but this all happens before i send the connect
>  > request (unless BtOBEX_TransportConnect is sending one for me?)
>  >
>  > Any ideas?
>
>
> Use the last variable in your obex_event_t callback function when the event is
>  OBEX_EV_ABORT?

My obex_event_t callback function is never called as the transport
fails to connect and I dont end up sending any requests.

>  OTOH, at that time of connection establishment, the connection should _never_
>  timeout! Don't force the user to be quick, react to disconnection instead.

I dont timeout the connection - the phone does! If i was timing out
the connection then i could work out if it was the disconnection timed
out or was refused.
(Continue reading)

Hendrik Sattler | 25 Mar 2008 13:55
Picon

Re: BtOBEX_TransportConnect - timeout or refuse?

Am Dienstag 25 März 2008 schrieb Nick Bransby-Williams:
> My obex_event_t callback function is never called as the transport
> fails to connect and I dont end up sending any requests.

OK.

> >  OTOH, at that time of connection establishment, the connection should
> > _never_ timeout! Don't force the user to be quick, react to disconnection
> > instead.
>
> I dont timeout the connection - the phone does! If i was timing out
> the connection then i could work out if it was the disconnection timed
> out or was refused.
>
> Is there a connecting the transport manually without
> BtOBEX_TransportConnect? Is it possible to the Bluez D-BUS API to
> setup a RFCOMM connection and then pass the resulting socket to
> openobex.?

Not when you stick to the API. OTOH, when BtOBEX_TransportConnect() returns 
with -1, you can ask "errno", don't you?
I must admit, though, that the API lacks there.

HS

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
(Continue reading)

Nick Bransby-Williams | 25 Mar 2008 14:33

Re: BtOBEX_TransportConnect - timeout or refuse?

> Not when you stick to the API. OTOH, when BtOBEX_TransportConnect() returns
>  with -1, you can ask "errno", don't you?
>  I must admit, though, that the API lacks there.

Can I ask for a more specific error no? I dont see an API function to do that.

As a -1 return  from BtOBEX_TransportConnect() does not tell me if the
connection was:

Refused by server,
Timed out,
General connection error

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Hendrik Sattler | 25 Mar 2008 16:00
Picon

Re: BtOBEX_TransportConnect - timeout or refuse?

Am Dienstag 25 März 2008 schrieb Nick Bransby-Williams:
> > Not when you stick to the API. OTOH, when BtOBEX_TransportConnect()
> > returns with -1, you can ask "errno", don't you?
> >  I must admit, though, that the API lacks there.
>
> Can I ask for a more specific error no? I dont see an API function to do
> that.

see connect(3) manpage

> As a -1 return  from BtOBEX_TransportConnect() does not tell me if the
> connection was:
>
> Refused by server,

if (errno == ECONNREFUSED)

> Timed out,

if (errno == ETIMEDOUT)

> General connection error

Anything else. However, I just see that this will not work as another system 
call is done before the function returns to the user :-(
I created and attached an untested patch that creates a new API function
  int OBEX_GetLastError(obex_t*)
that returns the last errno value (see above) and sets that value for 
BtOBEX_TransportConnect case.

(Continue reading)

Nick Bransby-Williams | 25 Mar 2008 17:11

Re: BtOBEX_TransportConnect - timeout or refuse?

> > > Not when you stick to the API. OTOH, when BtOBEX_TransportConnect()
>  > > returns with -1, you can ask "errno", don't you?
>  > >  I must admit, though, that the API lacks there.
>  >
>  > Can I ask for a more specific error no? I dont see an API function to do
>  > that.
>
>
> see connect(3) manpage

>
>  > As a -1 return  from BtOBEX_TransportConnect() does not tell me if the
>  > connection was:
>  >
>  > Refused by server,
>
>
> if (errno == ECONNREFUSED)
>
>  > Timed out,
>
>  if (errno == ETIMEDOUT)
>
>  > General connection error
>
>  Anything else. However, I just see that this will not work as another system
>  call is done before the function returns to the user :-(
>  I created and attached an untested patch that creates a new API function
>   int OBEX_GetLastError(obex_t*)
>  that returns the last errno value (see above) and sets that value for
(Continue reading)


Gmane