This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Lpc2368 communication

Hello,
I want communicate with my lpc2368 by the Ethernet port using an application whose create with visual basic.
It is possible ?
How ?

Thanks,

Mickael

Parents
  • A web server with features to read and write variables need not be large. Note that http is just a protocol. It's just that it is a protocol that can allow a standard client to be used for a lot of functions.

    The amount of RAM needed for a web server is mostly affected by two things:
    - max data you allow sending to it.
    - max page size it should send back.

    It would normally work quite well with 1kB receive buffer and 1kB transmit buffer.

    You could even use java-script and use AJAX to run a client-side "application" directly on a local web page, and have the javascript code request or update parameters.

    I have added embedded web servers (own code) to embedded equipment, so I know that it can work quite well with a very limited foot print. I quite often also add web servers to normal PC applications as a means to reconfigure them (or monitoring them) on the fly while they are running.

Reply
  • A web server with features to read and write variables need not be large. Note that http is just a protocol. It's just that it is a protocol that can allow a standard client to be used for a lot of functions.

    The amount of RAM needed for a web server is mostly affected by two things:
    - max data you allow sending to it.
    - max page size it should send back.

    It would normally work quite well with 1kB receive buffer and 1kB transmit buffer.

    You could even use java-script and use AJAX to run a client-side "application" directly on a local web page, and have the javascript code request or update parameters.

    I have added embedded web servers (own code) to embedded equipment, so I know that it can work quite well with a very limited foot print. I quite often also add web servers to normal PC applications as a means to reconfigure them (or monitoring them) on the fly while they are running.

Children
  • The problem is that I need to retrieve a lot of information from the lpc2368. I need a fairly large number of pages.
    I have a memory of 100KB.
    I wrote some html pages I needed for my project and I already took 50Ko while I had that page in French and that I must integrate 5 languages. So we abandon this path because of memory. That's why I want to program in Visual Basic. The technician will just install the application on his computer and then thanks to the IP address it can connect to the different lpc, then he can read and write in the different variables that wish.

  • Needing five languages is tough. I only implement english.

    I have a 12-byte table keeping track of all parameters. Two bytes are the parameter index (can be optimizaed away if parameter list doesn't contain any holes, but I also store a bit there to inform if the parameter is read-only or may be written). Two bytes indicates data type and formatting (such as shown in table, separation into different pages, ... A few "data types" represents callback functions) Four bytes represents memory address. Can be shrunk to two bytes since the LPC2368 has less than 64kB RAM. 4kB of the address space can be used to point at a configuration sector in flash. Four bytes points to a text string. The average string size is less than 20 bytes but with 20 bytes, 1000 parameters would take less than 32kB of code space to describe. I normally only need a fraction of that count. Maybe 100 .. 250 parameters.

    I may have maybe 2-3kB boiler-plate HTML/CSS, but the rest is dynamically built based on the formatting information.

    In reality, some data types are of type "two 32-bit unsigned", or similar - for example to retrieve debug info about # of received and transmitted bytes on a link as a single snapshot parameter.

  • With five languages I need to 5 times more pages of data.
    I already 50Ko French then just imagine with 5 languages ...
    It is not possible.
    More page layout should be the most beautiful possible to sell the product.
    We therefore need to insert images and many formatted.
    In addition some customers wondering Technician improvements and yet more variables.

    Do you think 100KB available will not be enough?

    I think not.

    So as a VB application I have a memory on my computer almost unlimited.
    I can add as many pages I want ...

    Are you agree?

  • Is that someone will sample code to retrieve frame tcp / ip in C?

  • Before looking at sample code, you will have to decide on a TCP/IP stack. The API of the different stacks are not identical, so the samples must be for _your_ stack.

    On larger machines, POSIX defines a number of standard functions and structures, but most embedded systems need to perform optimizations and reductions because of lack of memory.

  • ok but in any case I should write the code to retrieve frame tcp Send using visual basic.
    no ?

    What is POSIX please ?

  • How many seconds does it take to write http://www.google.com and then enter "posix" and press the search button?

    Answer: Less time than it took me to write this text. DO YOUR OWN HOMEWORK. Use the forum when you get stuck. But don't expect people to do everything for you. If we do, then we expect money in exchange!

  • You are very funny. ;-)
    Finally, I was able to contact my provider he will take care of developed into this part of the soft so it only remains for me to realize my VB interface and sending my frame TCP / IP.
    Thank you for your help.

    Mick

  • you know what you are? you are unbelievable.
    wasting good people's time here just to say later: "I was able to contact my provider he will take care of developed"
    guys like you REALLY take the fun out of helping people on this forum (or asking a question if needed...).
    Shame on you!

  • Interventions by Per Westermark and Andrew Neil served my lot and my light on many issues black. I want to thank you for your help.
    So thank you very much!

    Tamir you can talk to me but your speeches of his not more useful than mine ....

    Mickael

  • As you concluded yourself, pal: stick to VB applications...!

  • As you concluded yourself, pal: be quiet Tamir !!