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.

Websocket using TI-RTOS?

Other Parts Discussed in Thread: EK-TM4C129EXL

Hello all,

I am developing a device, which is a datalogger, server.... My idea is to show a webpage and, from client side, let several options, such us see data in real time, download data and so on.

And my question, Is it possible to open a websocket from client side, and to exchange infromation between ti-rtos (server) and client side (using javascript)? Or Must I open a "raw" socket to do this?

Thanks in advance and regards,

  • Jose,
    are you using NDK (www.ti.com/.../ndktcpip) With that, you can have an HTTP server on the server side. If you want a WebSocket server you would have to develop it on your own or get an implementation from somewhere else. Raw sockets are also available in NDK. As for the client side, I am guessing you are running a host OS, not TI-RTOS, so you should be able to easily find a client for anything that the server can support.
    Also, which device are using for the server? My answer is generic, and some of it may not apply for all devices.
  • Hello Sasha, and thank you so much for your response.

    I am using an EK-TM4C129EXL (TM4C129E), and NDK. 

    websockets, from my point of view, is the best option, but I don't want to add a library (such as sockets.oi) on the server side (TI-RTOS).

    I think the best option, as you  recommended is to use a socket, from client side, supported by server (I have tested this using C from client side, next step will do using javascript), without an extra library (server must work without internet).

    Anyway, I will post my code when it is runing with javascript.

    Regards !

  • Hello Jose!
    I am willing to use HTML5 on TivaC (TivaC as a Webserver) and I am wondering if you ever figured out how to add Websocket support.

    Thanks!

    Liron
  • Hi Liron,
    We generally discourage posting a new question to an old closed thread because the person who answered before may no longer be available, and also it will allow whomever is currently assigned to monitor the forum to respond to you more quickly. For these reasons, I suggest you start a new thread with your question and reference this thread.

    Thank you