[mico-devel] MIwCO AB and TB error
Jaakko Kangasharju
ashar at iki.fi
Thu May 31 22:21:50 PDT 2007
Carlos Eduardo Nissola Migliavacca <carlos.migliavacca at gmail.com>
writes:
> It works!
Great to hear! Now I'll just need to figure out how to submit the fix
as a patch to MICO...
> I will supply the file that I said, it helps a lot to configure the
> Wireless CORBA.
I see a couple of problems with it, I've listed them below.
> I have another question: why the naming service only works locally?
> I tried to invoke it from the Terminal to the server located at the
> wired network but it invokes only locally. How can I configure it to
> take the object from the server? Is some configuration in the program
> initialization or in my c++ code?
What do you mean by local invocation? If you give the client a
reference to an object on the fixed network, it should invoke on that
object. But if you use the configuration below, your applications
never actually consider themselves to be on the terminal, since they
don't get the option that triggers the 'unplugged' mode. So if by
local invocation you mean that the invocations don't go through the
bridges, that's probably the cause.
And here are the comments on your script:
> # Naming Service
> NSIP=192.168.1.64
> NSPORT=12019
> # Event Service
> ESIP=192.168.1.64
> ESPORT=12018
You seem to be running these only on the Access Bridge host. You
should not give these addresses to the Terminal Bridge, they should be
local to the terminal. So you should have (at least) two instances of
both running, ones on the terminal and ones on the fixed network.
> ewc)
> echo "Executando WiBA Client na porta $NSPORT"
> $CLIENTNAME -ORBInitRef NameService=corbaloc::$NSIP:$NSPORT/NameService
> ;;
> ews)
> echo "Executando WiBA Server na porta $NSPORT"
> $SERVERNAME -ORBInitRef NameService=corbaloc::$NSIP:$NSPORT/NameService
> ;;
If you're running these on the terminal, based on what you do below,
you'll also need the option '-ORBConfFile ~/.miwcoapprc'. But only
give that option on the terminal.
> tb)
> echo "Executando o Terminal Bridge $TBNAME"
> echo "GIOP em: $GIOPPORT"
> echo "GTP em: $GTPPORT"
>
> echo "-ORBTerminalId $TBIPVER$HLAPREFIX$TBTAMNAME$TBNAME\n" > ~/.miwcoapprc
> echo "-ORBMTBAddr inet:$TBIP:$GIOPPORT\n" >> ~/.miwcoapprc
> echo "-ORBInitRef MobileTerminalBridge=`cat home.ref`" >> ~/.miwcoapprc
>
> tb -WATMGIOPAddr inet:$TBIP:$GIOPPORT -WATMGTPAddr inet:$ABIP:$GTPPORT \
> -POAImplName MobilitySupport -ORBNoIIOPServer \
> -ORBTerminalId $TBIPVER$HLAPREFIX$TBTAMNAME$TBNAME -ORBInitRef \
> NameService=corbaloc::$NSIP:$NSPORT/NameService > tb.ref
> ;;
If you're actually running the HLA, you'll also need the option
'-ORBInitRef HomeLocationAgent=`cat home.ref`', for both the tb
execution and in the ~/.miwcoapprc file.
Also, you need to build the ~/.miwcoapprc file after starting the tb,
since the last line of the creation of that file should have
'MobileTerminalBridge=`cat tb.ref`' instead of having home.ref.
Getting all of this to work is quite a bit of work, I know, and I'm
sorry about that. It just was never a priority to design how to
configure the thing, just implement it.
--
Jaakko Kangasharju
If we're not supposed to eat people, why are they made of meat?
More information about the Mico-devel
mailing list