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.

Data transmission from AM335x SK to a Webserver


Hi All,

This query is related to AM335x SK. We have been working on a project and using the EVM inside for it.
There is some help i require from board side. Please see my comments below:

1. There is a PC (system1) which is generating some continuous data at a specified time interval.
   Meaning suppose after every 1 second, a 20 letter string is generated. Let’s call it a sample.

    At 1 second – 20 letter string (sample1)
    At 2 second – next 20 letter strings (sample2)
    At 3 second – next 20 letter strings (sample3) and SO ON.
    At a time only sample will be navigated on channel (syestem1 PC --to--> EVM --to--> Webserver)

2. These samples are being sent to the EVM through simple TCP/IP programming(Etherent Port). The EVM is running with sitara Linux OS.

3. I am fetching the continuous samples one by one into a buffer from system1 side and receiving the same samples in sequence at board side.
    This part is implemented and working fine.
    System 1 is running with server.c program and EVM is running with client.c program. Its a simple client-server communnication over Ethernet wire.

4. The NEXT thing is that, I want to send the same coming samples to a webserver.
     Time taken to reach the samples from system1 to webserver should be minimum (real time).

5. I need to have the sample1 (generated at system1) on the webserver, then sample2 and so on. Sequence and data integrity should be maintained throughout this whole system.

Is there any possible solution to establsh this scenario(EVM  to webserver)?

Please see the attached image for better clarification.

 

 

 

Please suggest your thinking on this. Thanks in advance.

Regards,
Nitin

  • Nitin -

    When you talk of "sending the samples to a webserver", do you mean a web server (i.e. a server process residing on the starter kit's port 80), or a web browser (i.e. an external HTTP client?)

    If you just want to move the data to an internal web server process, then this would be via however you need.  If you are talking about seeing the data from a web browser (served by your web server), then there are a variety of methods that can accomplish this via HTTP, Java, SSI, CGI scripts, Flash with XML sockets etc.  Depending on the web server code you are using you could also formulate HTML on-the-fly which encodes your samples directly for interpretation by any web browser as simple HTML.

    Darrin

  • Darren,

    Thanks for replying to my query.

    There is a WebService which is running on a external webserver (HTTP/ HTTPS ). We need to send the continuous data from the EVM board (running on sitara Linux) to this webserver. Data integrity should be maintained i.e. whatever that continuous sample coming to board from system1 side get transferred to webserver without loosing it and even in sequential manner.

    We tried with gsoap2.18 utility but didn't work for us..

    The next thing we are looking to make it happen through java code. We are installing Oracle hotspot JVM on sitara Linux SDK and will write a simple utility to communicate with webserver. Hope this works.

    If you have any more suggestions, please share.

    Regards,
    Nitin

  • Hi Darren,

    Any updates on it ?

    Thanks

  • Nitin -

    I don't really have anything more I can add at this point, as I haven't worked with your potential solution.  It sounds like you have a good grasp of what you are attempting, however, so I hope you get it worked out.

    Darrin