Information exchange between multi-platform

24 views
Skip to first unread message

Darith Leng

unread,
Feb 15, 2017, 2:41:28 AM2/15/17
to spade-users
Dear all Spade experts,
After working with spade for short time, i found that spade is an awesome MAS toolkit.
Currently, I have a project which uses Multi-agent to control devices in Microgrid. In my project, The agent will run in various machines and exchanges data between each other. My problem is i can not share data to other agent in different Machine or Platform over IP address.
I really need help from all of you. Please give me some instruction!

Best regards,

Darith



Markus Schatten

unread,
Feb 15, 2017, 2:47:58 PM2/15/17
to spade...@googlegroups.com
Hello Darith,

thanks for using SPADE ;-)

I'm not sure what your problem is, can you provide a minimal working
example or more detailed explanation on what you want to achieve?

All the best

M.
--
Markus Schatten, PhD
Assistant professor and head of Artificial Intelligence Lab
University of Zagreb
Faculty of Organization and Informatics
Pavlinska 2, 42000 Varazdin, Croatia
http://www.foi.hr/nastavnici/schatten.markus/index.html
http://www.researchgate.net/profile/Markus_Schatten1
http://ai.foi.hr
> --
> You received this message because you are subscribed to the Google Groups
> "spade-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to spade-users...@googlegroups.com.
> To post to this group, send email to spade...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Darith Leng

unread,
Feb 16, 2017, 5:19:22 AM2/16/17
to spade-users
Dear Schatten,
In my project, I'm going to develop three agents such as Agent1, Agent2, Agent3 that those agent run in different machine.
Agent1, Agent2 and Agent3 run in PC1, PC2 and PC3 respectively. The Agent1 will read data from microgrid through CANbus, 
and that data will send to Agent2 and Agent3.
In Agent1, I add receiver such as: msg.addReceiver(spade.AID.aid("age...@192.168.1.5", ["xmpp://age...@192.168.1.5"])) and msg.addReceiver(spade.AID.aid("age...@192.168.1.6", ["xmpp://age...@192.168.1.6"]). 
In Agent2 and Agent3, I set sender like: setSender(spade.AID.aid("Age...@192.168.1.8", ["xmpp://Age...@192.168.1.8])). However, Agent1 and Agent2 don't get any data from Agent1. 

Please let me know if i miss some thing!!!

Best regards

Markus Schatten

unread,
Feb 22, 2017, 5:09:45 AM2/22/17
to spade...@googlegroups.com
Dear Darith,

sorry for the late reply, but I was on a trip and not near my e-mail.

The problem is that you use different IP addresses for each agent. All
agents need to connect to *only one* SPADE server. For your
configuration to work, you need to dedicate one of your machines to be
the server, for example 192.168.1.3. Then all agents will connect to
this server, and have addresses like age...@192.168.1.3,
age...@192.168.1.3, age...@192.168.1.3 etc. regardless of what their
physical address is. The IP address is the address of the server, not
the clients.

HTH

Best,

M.
--
Markus Schatten, PhD
Assistant professor and head of Artificial Intelligence Lab
University of Zagreb
Faculty of Organization and Informatics
Pavlinska 2, 42000 Varazdin, Croatia
http://www.foi.hr/nastavnici/schatten.markus/index.html
http://www.researchgate.net/profile/Markus_Schatten1
http://ai.foi.hr


On Thu, Feb 16, 2017 at 11:19 AM, Darith Leng <darit...@gmail.com> wrote:
> Dear Schatten,

Darith Leng

unread,
Feb 23, 2017, 2:45:06 AM2/23/17
to spade-users
Dear Dr. Markus
Thank you for clarify!
So, it means that the agent must be register to a common platform in order to talk to each other.

I learn that you had some complex agent development projects.
So, Would you mind to share me some example code to vast my project?

Best regards

Markus Schatten

unread,
Feb 24, 2017, 6:13:37 PM2/24/17
to spade...@googlegroups.com
Dear Darith,

I'd be happy to share some of my code with you (most of it is open
source anyway). But what kind of examples are you interested in?

All the best,

M.
--
Markus Schatten, PhD
Assistant professor and head of Artificial Intelligence Lab
University of Zagreb
Faculty of Organization and Informatics
Pavlinska 2, 42000 Varazdin, Croatia
http://www.foi.hr/nastavnici/schatten.markus/index.html
http://www.researchgate.net/profile/Markus_Schatten1
http://ai.foi.hr


Darith Leng

unread,
Feb 26, 2017, 5:28:17 AM2/26/17
to spade-users
Dear Dr. Markus,

Thank for your kindness!
Actually, my major is Electrical.
My project is to provide agent with the ability to interact with each other across the platform (sharing data) , pub sub information
and plotting real-time data from serial.

Thank in advance

Best regards

Markus Schatten

unread,
Mar 6, 2017, 3:26:07 PM3/6/17
to spade...@googlegroups.com
Dear Darith,

again sorry for the late reply, I'm having to much obligations per
unit of time ;-)

Here is a wiki which I use for my students. It's in Croatian, but
google translate works quite good:

https://translate.google.com/translate?sl=hr&tl=en&js=y&prev=_t&hl=hr&ie=UTF-8&u=http%3A%2F%2Fautopoiesis.foi.hr%2Fwiki.php%3Fname%3DVi%25C5%25A1eagentni%2Bsustavi%2B-%2BFOI&edit-text=&act=url

Best,

M.
--
Markus Schatten, PhD
Assistant professor and head of Artificial Intelligence Lab
University of Zagreb
Faculty of Organization and Informatics
Pavlinska 2, 42000 Varazdin, Croatia
http://www.foi.hr/nastavnici/schatten.markus/index.html
http://www.researchgate.net/profile/Markus_Schatten1
http://ai.foi.hr


Darith Leng

unread,
Mar 17, 2017, 7:56:53 AM3/17/17
to spade...@googlegroups.com
Dear Dr. Markus,
Thank you so much for your kindness!!!

Best regards 
Darith



On Mar 7, 2017, at 03:25, Markus Schatten <schatte...@gmail.com> wrote:

Boxbe This message is eligible for Automatic Cleanup! (schatte...@gmail.com) Add cleanup rule | More info
Dear Darith,


again sorry for the late reply, I'm having to much obligations per
unit of time ;-)

Here is a wiki which I use for my students. It's in Croatian, but
google translate works quite good:

https://translate.google.com/translate?sl=hr&tl=en&js=y&prev=_t&hl=hr&ie=UTF-8&u=http%3A%2F%2Fautopoiesis.foi.hr%2Fwiki.php%3Fname%3DVi%25C5%25A1eagentni%2Bsustavi%2B-%2BFOI&edit-text=&act=url

Best,

M.
--
Markus Schatten, PhD
Assistant professor and head of Artificial Intelligence Lab
University of Zagreb
Faculty of Organization and Informatics
Pavlinska 2, 42000 Varazdin, Croatia
http://www.foi.hr/nastavnici/schatten.markus/index.html
http://www.researchgate.net/profile/Markus_Schatten1
http://ai.foi.hr


You received this message because you are subscribed to a topic in the Google Groups "spade-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spade-users/nSFGbV-9guU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spade-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages