Communication between 2 robots

  • Hii All


    I got a project where one robot needs to send an offset to another robot, the robot needs to send the offset in a PR, which is the best protocol to do this kind of application ? I am tempted to use socket messaging but if somebody have a better idea i am all ears..



    Thanks for your Help

  • You can easily do it with Modbus via RS232 - it's build in, point-to-point, and all you need to purchase is two plugs for ~30$.


    Then you wirte simple script in Karel like:
    [Sending robot]
    Create port (file) -> Open port (file) -> Send register value -> close port


    [Receiving robot]
    Create port (file) -> Open port (file) -> While (1) listen to port -> if received, save and close.


    If you need code I could send you in 2 days but you can just use examples from Karel manual.

  • \


    What controller are you using?




  • Yes. Only more convenient to use TCP

Advertising from our partners