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.

LAUNCHXL2-570LC43: Need Support

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: HALCOGEN,

Hello Community,

I am trying to implement Modbus TCP protocol over lwip. I need support in selecting HalCoGen drivers. Can you help me?

Best Regards,

Advaith

  • Hello Advaith,

    The HALCoGen generates APIs for configuring EMAC and MDIO, used in low level ethernet physical layer. It doesn't generate any driver or code for other ethernet layers (for example transport layer, application layer).

    I am sorry we don't have any expertise to support Modbus TCP protocol over LWIP.

  • Hi QJ,

    May I know whether  it is possible to install and run PuTTY app ( https://en.wikipedia.org/wiki/PuTTY ) in the LAUNCHXL2-570LC43.

    Best Regards,

    Advaith

  • Hi Advaith,

    Yes, it is possible. But you need to develop the code to send data to Putty terminal and receive data from the terminal.

  • Hi QJ,

    Thank you for your reply. Can you please suggest some examples that will help me in searching for the suitable code.

    Best Regards,

    Advaith

  • I made a research and find the below link. The code are developed for TI C2000 MCU. Just for your reference.

    github.com/.../28335ModbusMaster
    github.com/.../28335ModbusSlave
    github.com/.../2833xFreeModbus

  • Hello Mr. Wang

    I believe you know that I am trying to implement Modbus TCP with the Launchxl2-570lc43. I have been trying for past few months, I viewed some GitHub repos and other websites.

    Kindly reveal that  whether it is possible to establish Modbus TCP with the launchpad or not?

    Best Regards,

    Advaith

  • Hello Advaith,

    Modbus TCP/IP uses TCP/IP and Ethernet to carry the data of the Modbus message structure between devices. That is, Modbus TCP/IP combines a physical network (Ethernet), with a networking standard (TCP/IP), and a standard method of representing data (Modbus). 

    The primary function of TCP is to ensure that all packets of data are received correctly, while IP makes sure that messages are correctly addressed and routed. TCP/IP does not define what the data means or how the data is to be interpreted, it is merely a transport protocol. To contrast, Modbus is an application protocol. It defines rules for organizing and interpreting data and is essentially a messaging structure that is independent of the underlying physical layer.

    The TMS570LC43x device has an EMAC module which provides an efficient interface between the device and the network through a PHY. The EMAC supports both 10Base-T and 100Base-TX, or 10 Mbits/second (Mbps) and 100 Mbps in either half- or full-duplex mode. Launchxl2-570lc43 contains a ethernet PHY and a RJ45 ethernet connector. 

    The  Launchxl2-570lc43 provides you the ethernet physical layer. You can develop your application layer for modbus, and write your own TCP/IP stack or use lwip tcp/cip stack. 

    Showing how to make TCP/IP configurations of lwIP or how to write application code for modbus is really outside the scope of our expertise. I think the static web server is just one of the examples for lwIP and it was the one that the team chose to show how to hook up to the EMAC driver code.

  • Hello Mr. Wang

    Do you have the code for active webserver in which I can use it as a start for lwip tcp implementation.

    Best regards,

    Advaith

  • Here is the link:

  • Hello Mr. Wang

    Thank you for your attention. I found that the whole is available in separate folders or files. So to start coding Do I need to :

    1. Create new CCS project

    2. Copy all files separately to each folder in CCS like the include, source etc

    Don't you have any zip file for this, that'll be more easier

    Regards

  • There are links to download the installer in the section #3 of this appnote: