Discussion:
[jade-develop] Connecting two remote platforms
Sebastian Pavez
2014-07-23 17:52:11 UTC
Permalink
Hi!

I'm trying to connect two agents in different platforms. One in in a PC
(win7) and the other one is in a RaspberryPi.
By the time the codes are quite simple ... I just modified the ping example
to control the raspberry depending on a certain message sent by a dummy
agent.
If I try this in the same platform everything goes right. The problem arise
when I try to communicate the two platforms, I'm using this tutorial as a
guide:
http://jade.tilab.com/doc/tutorials/JADEAdmin/JadePlatformTutorial.html

ams target: ams at 192.168.42.1:1099/JADE
address target: http://raspberrypi:7778/acc

I received an RMA error: FAILURE received during GetDescription ...

The messages got in the terminal is:
"
jul 23, 2014 1:43:38 PM jade.core.messaging.MessagingService deliverNow
ADVERTENCIA: Cannot deliver message to address: http://raspberrypi:7778/acc
[jade.mtp.MTPException: raspberrypi - Caused by: raspberrypi]. Trying the
next one.
..
jul 23, 2014 1:43:38 PM jade.core.messaging.MessageManager$Deliverer run
ADVERTENCIA: Deliverer Thread Deliverer-0 - Delivery-time over threshold
(2708).
Receiver = ams, message size = 519
"

I have the same Java version and the same Jade version too. There're no
antivirus or firewall involved.

This may be kind of a silly question but I'm being stucked here for a while
now. Do you have any suggestions? Do you need more info about it?
Thank you so much for your time,
Seba.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140723/122205d1/attachment.html>
Caire Giovanni
2014-07-24 21:40:15 UTC
Permalink
Hi,

Are you sure the connectivity between the win7 PC and the RaspberryPi is OK
Is “raspberrypi” the correct host name (resolvable as an IP address) of the RaspberryPi?
Is the platform on the RaspberryPi up and running with an HTTP MTP listening on port 7778?
Bye,

Giovanni

Da: jade-develop [mailto:jade-develop-bounces at avalon.tilab.com] Per conto di Sebastian Pavez
Inviato: mercoledì 23 luglio 2014 19:52
A: jade-develop at avalon.tilab.com
Oggetto: [jade-develop] Connecting two remote platforms

Hi!

I'm trying to connect two agents in different platforms. One in in a PC (win7) and the other one is in a RaspberryPi.
By the time the codes are quite simple ... I just modified the ping example to control the raspberry depending on a certain message sent by a dummy agent.
If I try this in the same platform everything goes right. The problem arise when I try to communicate the two platforms, I'm using this tutorial as a guide:
http://jade.tilab.com/doc/tutorials/JADEAdmin/JadePlatformTutorial.html

ams target: ams at 192.168.42.1:1099/JADE<http://ams at 192.168.42.1:1099/JADE>
address target: http://raspberrypi:7778/acc

I received an RMA error: FAILURE received during GetDescription ...

The messages got in the terminal is:
"
jul 23, 2014 1:43:38 PM jade.core.messaging.MessagingService deliverNow
ADVERTENCIA: Cannot deliver message to address: http://raspberrypi:7778/acc [jade.mtp.MTPException: raspberrypi - Caused by: raspberrypi]. Trying the next one.
..
jul 23, 2014 1:43:38 PM jade.core.messaging.MessageManager$Deliverer run
ADVERTENCIA: Deliverer Thread Deliverer-0 - Delivery-time over threshold (2708).
Receiver = ams, message size = 519
"

I have the same Java version and the same Jade version too. There're no antivirus or firewall involved.

This may be kind of a silly question but I'm being stucked here for a while now. Do you have any suggestions? Do you need more info about it?
Thank you so much for your time,
Seba.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140724/722070ec/attachment.html>
Caire Giovanni
2014-09-05 08:14:27 UTC
Permalink
Hi,

Same JADE and Java version is necessary among containers in the same platform. It doesn’t matter in your case: inter-platform communication occurs consistently with the FIPA specifications --> the two communicating platforms may even be different products.

The point seems really related to the fact that raspberrypi is not resolved to an IP address.
Try to do
ping raspberrypi
and see if respberrypi is resolved to an IP address or not.

Bye,

Giovanni


Da: Sebastian Pavez [mailto:sebastian.pavez.t at gmail.com]
Inviato: martedì 2 settembre 2014 05:28
A: Caire Giovanni
Oggetto: Re: [jade-develop] Connecting two remote platforms

Hi,

It's been a while, sorry.
Well I checked all that and I continue with the issue.
Someone told me that I need to have the same version of Java and JADE in both platforms. I already did that with no luck.

When I try to connect the platforms I get a message saying that the problem is caused by the target platform
(e.g. sep 01, 2014 11:03:39 PM jade.core.messaging.MessagingService deliverNow
Advertencia: Cannot deliver message to address: http://raspberrypi:7778/acc [jade.mtp.MTPException: raspberrypi - Caused by: raspberrypi]. Trying the next one.
..
sep 01, 2014 11:03:39 PM jade.core.messaging.MessageManager$Deliverer run
Advertencia: Deliverer Thread Deliverer-1 - Delivery-time over threshold (2555). Receiver = ams, message size = 266)

What else could I try?
Is there another way to connect to platforms? ... maybe via command line?

Thanks so much for your time
Have a nice day
Seba.

2014-07-24 17:40 GMT-04:00 Caire Giovanni <giovanni.caire at telecomitalia.it<mailto:giovanni.caire at telecomitalia.it>>:
Hi,

Are you sure the connectivity between the win7 PC and the RaspberryPi is OK
Is “raspberrypi” the correct host name (resolvable as an IP address) of the RaspberryPi?
Is the platform on the RaspberryPi up and running with an HTTP MTP listening on port 7778?
Bye,

Giovanni

Da: jade-develop [mailto:jade-develop-bounces at avalon.tilab.com<mailto:jade-develop-bounces at avalon.tilab.com>] Per conto di Sebastian Pavez
Inviato: mercoledì 23 luglio 2014 19:52
A: jade-develop at avalon.tilab.com<mailto:jade-develop at avalon.tilab.com>
Oggetto: [jade-develop] Connecting two remote platforms

Hi!

I'm trying to connect two agents in different platforms. One in in a PC (win7) and the other one is in a RaspberryPi.
By the time the codes are quite simple ... I just modified the ping example to control the raspberry depending on a certain message sent by a dummy agent.
If I try this in the same platform everything goes right. The problem arise when I try to communicate the two platforms, I'm using this tutorial as a guide:
http://jade.tilab.com/doc/tutorials/JADEAdmin/JadePlatformTutorial.html

ams target: ams at 192.168.42.1:1099/JADE<http://ams at 192.168.42.1:1099/JADE>
address target: http://raspberrypi:7778/acc

I received an RMA error: FAILURE received during GetDescription ...

The messages got in the terminal is:
"
jul 23, 2014 1:43:38 PM jade.core.messaging.MessagingService deliverNow
ADVERTENCIA: Cannot deliver message to address: http://raspberrypi:7778/acc [jade.mtp.MTPException: raspberrypi - Caused by: raspberrypi]. Trying the next one.
..
jul 23, 2014 1:43:38 PM jade.core.messaging.MessageManager$Deliverer run
ADVERTENCIA: Deliverer Thread Deliverer-0 - Delivery-time over threshold (2708).
Receiver = ams, message size = 519
"

I have the same Java version and the same Jade version too. There're no antivirus or firewall involved.

This may be kind of a silly question but I'm being stucked here for a while now. Do you have any suggestions? Do you need more info about it?
Thank you so much for your time,
Seba.
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.
Rispetta l'ambiente. Non stampare questa mail se non Ú necessario.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140905/64121152/attachment-0001.html>
Sebastian Pavez
2014-09-06 04:43:00 UTC
Permalink
Giovanni,

Well, I installed Samba on the Raspberry and join the workgroup on Win7.
Now I'm able to do "ping raspberry" and get a response, but I can't do it
backwards however (i.e. "ping Jose-PC" from the raspberry).
Now, when I try to connect, I do get a different message... so, maybe it's
a progress:
"sep 06, 2014 12:39:04 AM jade.core.messaging.MessagingService deliverNow
Advertencia: Cannot deliver message to address: http://raspberrypi:7778/acc
[jade.mtp.MTPException: Connection refused: connect - Caused by:
Connection refused: connect]. Trying the next one..."

It seems that I have to enter the log to the raspberry. I tried to enable a
guest access in the configuration of Samba but still don't work. I'll
continue trying though.

If you have any other advice would be very welcomed indeed.
Have a nice day!
Seba.
Post by Caire Giovanni
Hi,
Same JADE and Java version is necessary among containers in the same
platform. It doesn’t matter in your case: inter-platform communication
occurs consistently with the FIPA specifications à the two communicating
platforms may even be different products.
The point seems really related to the fact that raspberrypi is not
resolved to an IP address.
Try to do
ping raspberrypi
and see if respberrypi is resolved to an IP address or not.
Bye,
Giovanni
*Da:* Sebastian Pavez [mailto:sebastian.pavez.t at gmail.com]
*Inviato:* martedì 2 settembre 2014 05:28
*A:* Caire Giovanni
*Oggetto:* Re: [jade-develop] Connecting two remote platforms
Hi,
It's been a while, sorry.
Well I checked all that and I continue with the issue.
Someone told me that I need to have the same version of Java and JADE in
both platforms. I already did that with no luck.
When I try to connect the platforms I get a message saying that the
problem is caused by the target platform
(e.g. sep 01, 2014 11:03:39 PM jade.core.messaging.MessagingService deliverNow
http://raspberrypi:7778/acc [jade.mtp.MTPException: raspberrypi - Caused
by: raspberrypi]. Trying the next one.
..
sep 01, 2014 11:03:39 PM jade.core.messaging.MessageManager$Deliverer run
Advertencia: Deliverer Thread Deliverer-1 - Delivery-time over threshold
(2555). Receiver = ams, message size = 266)
What else could I try?
Is there another way to connect to platforms? ... maybe via command line?
Thanks so much for your time
Have a nice day
Seba.
2014-07-24 17:40 GMT-04:00 Caire Giovanni <giovanni.caire at telecomitalia.it
Hi,
Are you sure the connectivity between the win7 PC and the RaspberryPi is OK
Is “raspberrypi” the correct host name (resolvable as an IP address) of
the RaspberryPi?
Is the platform on the RaspberryPi up and running with an HTTP MTP listening on port 7778?
Bye,
Giovanni
*Da:* jade-develop [mailto:jade-develop-bounces at avalon.tilab.com] *Per
conto di *Sebastian Pavez
*Inviato:* mercoledì 23 luglio 2014 19:52
*A:* jade-develop at avalon.tilab.com
*Oggetto:* [jade-develop] Connecting two remote platforms
Hi!
I'm trying to connect two agents in different platforms. One in in a PC
(win7) and the other one is in a RaspberryPi.
By the time the codes are quite simple ... I just modified the ping
example to control the raspberry depending on a certain message sent by a
dummy agent.
If I try this in the same platform everything goes right. The problem
arise when I try to communicate the two platforms, I'm using this tutorial
http://jade.tilab.com/doc/tutorials/JADEAdmin/JadePlatformTutorial.html
ams target: ams at 192.168.42.1:1099/JADE
address target: http://raspberrypi:7778/acc
I received an RMA error: FAILURE received during GetDescription ...
"
jul 23, 2014 1:43:38 PM jade.core.messaging.MessagingService deliverNow
http://raspberrypi:7778/acc [jade.mtp.MTPException: raspberrypi - Caused
by: raspberrypi]. Trying the next one.
..
jul 23, 2014 1:43:38 PM jade.core.messaging.MessageManager$Deliverer run
ADVERTENCIA: Deliverer Thread Deliverer-0 - Delivery-time over threshold (2708).
Receiver = ams, message size = 519
"
I have the same Java version and the same Jade version too. There're no
antivirus or firewall involved.
This may be kind of a silly question but I'm being stucked here for a
while now. Do you have any suggestions? Do you need more info about it?
Thank you so much for your time,
Seba.
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle
persone indicate. La diffusione, copia o qualsiasi altra azione derivante
dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora
abbiate ricevuto questo documento per errore siete cortesemente pregati di
darne immediata comunicazione al mittente e di provvedere alla sua
distruzione, Grazie.
*This e-mail and any attachments is confidential and may contain
privileged information intended for the addressee(s) only. Dissemination,
copying, printing or use by anybody else is unauthorised. If you are not
the intended recipient, please delete this message and any attachments and
advise the sender by return e-mail, Thanks.*
*Rispetta l'ambiente. Non stampare questa mail se non Ú necessario.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140906/17ac7aa8/attachment-0001.html>
Loading...