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.

EK-TM4C1294XL: TM4C1294NCPDT

Part Number: EK-TM4C1294XL

Tool/software:

Hi TI, All,

Regarding the EK-TM4C1294XL board, now it works perfectly with the enet_s2e project.

Maybe someone could direct me towards the right spot with my following question:

Having a transparent serial to ethernet convert is great, but what if I want to filter the messages?

Lets say, if I use JSON frames in the payload, as key value pairs, based on the key part, could that be directed or redirected to different UART?

Or based on the KEY part, could the message be used to initiate a sensor reading and send the readout as an answer?

Thanks for all the suggestions!

Gabor

  • Lets say, if I use JSON frames in the payload, as key value pairs, based on the key part, could that be directed or redirected to different UART?

    Or based on the KEY part, could the message be used to initiate a sensor reading and send the readout as an answer?

    I don't see why not. It is up to your application how to decode/parse a JSON frame and take appropriate actions for them.  

  • Hi Charles, thanks for your answer. Unfortunately, I do not have much experience with TI TCP/IP stack, but I have with Microchip TCP/IP stack. In that it is/was a fairly easy to find and deal with the UART and or the TCP payload, also with the setup. It was relatively easy to switch on/off things and change the behaviour to static IP for example.
    Maybe if I rephrase my request for help... In the enet_s2e project where is the part that actually deals with the payload? Either from UART or from TCP... I started to look into the code, but currently it is a maze for me. I would expect these in uartstudio.c, serial_task.c or in one of these... could not locate them yet. So I would appreciate if you could point out "look, this is the part that sends out the payload to uart and this will send out the payload to TCP" or something, like compass for where to look.

    I'm not asking to write code for me, just need some sort of a map to see where thing are...

    Thank you!

  • HI,

      Please refer to the telnet.c file for the TelnetHandler function.