Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AM3359: MODBUS implementation

Part Number: AM3359

Tool/software: TI C/C++ Compiler

hello everyone

right now im working in sitara am335x evmsk kit.

i'm using ti PROCESSOR-SDK-LINUX-AM335X: 5.02

now my question is, i want to implement TCP/IP modbus in evmsk kit on ethernet port 1.

from where to i start...?

  • Hi, 

    This is really a system design question and beyond the scope of our support.

    As part of the Linux system provided by the SDK, sockets and standard Ethernet interfaces are available and should provide the support needed to implement modbus on top of.

    This might be helpful:

    https://libmodbus.org/

    Thanks for your post.

  • Thank you so much RonB for your reply,

    yes i'm looking for the same libmodbus lib to implement modbus tcp ip over ethernet.

    if you have any ref. thread which help me how to send and receive packet from Ethernet port please comment below.

    or any ref code which help me to implement tcp ip modbus over Ethernet ...?

    otherwise its okay I'm ready to close this thread.

    once again thank you....:)

  • Hi,

    I believe libmodbus will itself have some examples on how to do this, but I haven't looked at it in detail. Our Linux distro will support many ways to send and receive ethernet traffic, of which sockets are probably the most common. Since sockets are standard, you can find any socket example and start from there.

    I hope this helps.

  • Thank you RonB for your reply..

    yes you're right libmodbus have built in client and server examples for modbus communication.

    yes got some thread regarding socket programming in am335x.

    i'm looking for it, if i get something i will be update here.

    Thank you !..