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.

TMS570LC4357: Sending strings to Launchpad via http

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi I am currently using the TMS570LC43X model of the hercules launchpad, I am trying to send values to the launchpad via HTTP ex. 192.168.xxx.xxx/100/10/15... I want to be able to send a string like that with about 16 numbers after the ip address and then have the launchpad process those numbers and update my HET values which I write into memory. I am having trouble getting the ethernet portion of this I have tried looking at the interactive webserver demo and the static webserver demo and I could not understand what was going in either of those demos. What is the simplest way to achieve what I am trying to do? I would also like someones help who is well versed with the HET IDE.

Thanks

  • Hello Jawwad,

    Thank you for using Hercules and the TI E2E. To help you with your problem we need a bit more information on exactly where you are having trouble? In your attempts to recreate the web server demos have you successfully compiled? Do you get an exception at run time? Is it running but nothing is being sent? The more details you can offer, the more we can assist you to work through the issues.

    Have you had any success in development of the HET portion of you project? Theoretically you could develop this aspect independently of the Ethernet portion by temporarily using a dummy function to return test data and manipulate the HET output using the simulated input from the web server.
  • Hi Chuck,

    I have a set up already for the het portion i am stuck on the ethernet part of it though, Or if someone knows a way to do this through I2c then I can use an arduino to set up the I2c comm between the TI and it, and then have ethernet set up on Arduino.

    Thanks
  • Hi Jawwad,

    A couple of points regarding your situation.

    First, unfortunately, I was asked by forum management to redact the portion of your original post to remove the offer for someone to develop the application for you. This type of information on the E2E is not permitted by our legal department and Forum Management team.

    Second, in your original post, you asked for the simplest solution to get to the desired functionality. Certainly, moving to I2C or some other serial protocol would be the simplest with regard tot he SW on Hercules since developing a WebServer application on Hercules does have its challenges. However, also introducing the Arduino board into the mix increases the complexity from a HW point of view. I would have to say that this is really up to you on how you want to proceed based on your assessment of the SW vs HW complexity vs. schedule.

    If you should choose to move forward with I2C, there are several examples included with Halcogen. You can get to them by going to Help->Examples->TMS570LS43x which will take you to the list of C files for the examples.

    Also, if you can elaborate on the specific points of confustion with the WebServer demo, I can possibly offer some guidance in getting this up and running for you or connect you with other experts that might be able to.
  • I'd like to use the launchpad as a slave device that listens to my arduino (master) and recieve data from it. How do I accomplish this ? I am confused as to how to do this.

    Thanks
  • You would need to set up/configure the I2C module through HalCoGen as an interupt based slave.

    You would need to also configure the pinmux (IOMM) module to bring out the I2C functionality. I2C can be brought out on pins/balls C3 & B2 for I2C1 or G16 and G17 for I2C2.

    Note that the I2C pin functions are not available on the booster pack headers on the board but can be accessed by installing pins or soldering wires in the appropriate wholes on the edges of the board (proto board headers). Tha mapping of the header is documented in the schematic of the launchpad on sheet 9 showing the proto board header (LINK to Schematic). Please also note that you will need to incorporate the appropriate exernal pulls on these pins as per I2C requirements

    Given UART3Tx and Rx are brought out on the booster pack header (J1 pins 3 and 4), it may be easier to use UART/SCI in interrupt mode rather than I2C.