Skip to main content

obex don't work

4 replies [Last post]
ticachen
Offline
Joined: 2008-07-29

I build midp useï¼›

make \
JDK_DIR=$JDK_DIR \
PCSL_OUTPUT_DIR=$Output/pcsl \
CLDC_DIST_DIR=$Output/cldc/linux_i386/dist \
TOOLS_DIR=$Acme/tools \
MIDP_OUTPUT_DIR=$Acme/build_output/midp \
USE_MULTIPLE_ISOLATES=true \
USE_NATIVE_AMS=true \
USE_JSR_82=true \
USE_JSR_82_IRDA=true \
JSR_82_DIR=$Acme/jsr82 \
$1

and everything seens just fine ,but when i use ObexDemo in WTK to test obex, but when calling connect.open() it alway fail, throws exp:

java.io.IOException: Could not establish connection.
- .unknown..createClientConnection(), bci=101
- com.sun.midp.io.j2me.irdaobex.Protocol..unknown.(), bci=569
- javax.microedition.io.Connector..unknown.(), bci=237
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=2
- example.obex.demo.ObexImageSender.connect(), bci=19
- example.obex.demo.ObexImageSender.run(), bci=20
- java.lang.Thread.run(), bci=5

and i found this error is in IrConnection.c, in ir_discover() when calling getsockopt(sockfd, SOL_IRLMP, IRLMP_ENUMDEVICES,disc, &len)) ,it failed and the errno is 11,witch means "try again".I don't know why.

I test phoneme in ubuntu7 and my bluetooth device works fine,any ideas?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
morgunov
Offline
Joined: 2008-07-31

Hi, ticachen

If I understood you correctly you are trying to use JSR082 on your ubuntu box. But I'm afraid the Linux isn't officially supported platform and OBEX were not properly tested yet. Try this demo on Win32 and let us know if this issue happens. In any case, thanks for catching this issue we will get a look into it.

ticachen
Offline
Joined: 2008-07-29

Thanks.But I don't understand what "Linux isn't officially supported platform " means? jsr82 porting were not properly working in Linux?

morgunov
Offline
Joined: 2008-07-31

Hi, ticachen

This means that we need more time to complete full test cycle and certification process. During this time several found issues would be solved. After that I think your issue also would be fixed. Thanks

Regards,
Vadim

ticachen
Offline
Joined: 2008-07-29

I get it. Thanks!