Re: ObexSample
Re: ObexSample
- Subject: Re: ObexSample
- From: Tobias Hermann <email@hidden>
- Date: Wed, 25 Dec 2002 15:32:18 +0100
Thanks, this works. But now another thing happens :-)
The application now doesn't crash anymore, but I can't get a connection
:-(
Two things happen:
1. Connecting with the device address in the Textfield:
-> the phone indicates a connection on its display, but OBEXSample
says:
Opening connection...
OBEXConnect Error occurred: -21876
I changed the output to int because in obex.h they are defined as
negative values as well.
This is the error: kOBEXSessionNotConnectedError, Session does not
have an open connection.
Which is in my opinion correct, because WE WANT TO CREATE A CONNECTION
:-)
The phone indicates a connection until I quit opexsample.
2. Connecting with the browser: I testet it with the serial port and
one of the obex ports.
Which one is the correct one or doesn't that matter because we only
want to get the dev address?
Ok, here is what happens:
I search my phone, select a service and press OK. From then on, my
phone indicates a BT connection
on its display. But ObexSample displays absolutely nothing. No error,
no connection, nothing.
I think it waits for the CommandSent Handler to get called, but this
one is never called (there is an NSLog in it, but
the console reports nothing).
When I now press the connect button again, I get an OBEX DISCONNECT
ERROR with the same error value as above.
So somehow a connection is established in both cases, but the
IOBTFramework doesn't recognize it or so.
When does the phone display a connection? Maybe the connection I get is
no OBEX connection but a lower level
connection ?
Any ideas ?
Maybe it is the phones fault? it is a SIEMENS S 55, ever tried an obex
connection with that phone?
Thanks for any help!
Best regards!
Merry Christmas and Happy Holidays! :-)
Tobi Hermann
ps: Another small question: When I plug in the Bluetooth Adapter (USB),
the machine gets really slow! And the cpu cooler doesn't stop anymore.
Does it eat so much cpu time?
The problem is: When I unplug it again, these effects don't stop. Can I
somehow kill the BT stuff? It seems that it doesn"t stop itself when
unplugging the USB Device. Just killing BLUED doesnt work. It
immediately gets restarted again. I have to restart my powerbook to get
it faster and cooler again :)
The BT Device is from ACER.
On Tuesday, December 24, 2002, at 05:44 PM, Bubba Giles wrote:
Tobi,
Try adding an (extra) retain on the OBEXSession object used in the
code.
We've had some changes to the retain/release mechanisms, so most likely
something that was 'getting lucky' with the previous compiler is now
being
exposed. If that doesn't work, let me know and I'll take a closer look.
Also, if you can enable crash logs in the Console.app and send it to
me,
it'll help determine what is going on.
Thanks,
Jason
email@hidden
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.