modbus tcp for YUN slave

Hello everyone,

I 'm new to this forun and does not speak very good English so my message and not translate google translation.

I would like your opinion on a book that I found on the net MUDBUSYUN , files are attached to the post .

I already uses MUDBUS library with arduino uno and ethernet shield and this works very well .

but when I use the library MUDBUSYUN I have communication problems or the program is not running .

could you give me your opinion or if you utiluiser LIBRARY for another Modbus slave with an Arduino yun could you send me the link.

many greetings

yun_test_modbus.ino (5.4 KB)

MudbusYun.cpp (7.39 KB)

MudbusYun.h (2.96 KB)

That library wont work with Yun because it was made for ethernet shield, and Yun is different. Ethernet is controlled on the linux side, If I were you Id make a python script to use modbus as slave, and then control the atmega processor with bridge.

mart256:
...
If I were you Id make a python script to use modbus as slave, and then control the atmega processor with bridge.

+1

Plan B, heavy lift at Linux side:

A Modbus TCP slave example for Arduino Yun that uses the modbus-tk library.

thank you for your answer

I also fall on this library , I'll try this, I inform you that I have the results.