Jump to content

FeelGood

Members
  • Content Count

    4
  • Joined

  • Last visited


Reputation Activity

  1. Like
    FeelGood reacted to Lgbeno in [Energia Library] EtherEncLib for ENC28J60   
    Yes even if you had PHP it would not allow dynamic updates. Like other have said you can write some JavaScript to poll the temp and humidity status via http.
     
    Another way to address this would be to push data to a service like data.sparkfun.com and use a site like imp.guru to render the web page.
     
    At the moment there is a bug for live updates on those sites but it is being resolved. Here MQTT is used.
  2. Like
    FeelGood reacted to abecedarian in I need help MSP430g2553 Web Server with ENC28j60 at IAR Embedded Workbench   
    TI supports IAR with the G2553, and they have quite a few examples for code. What will be important is if the ENC28J60 has support in the IAR compiler. If it doesn't, you'll have to work out how to port code from whatever compiler does support it to IAR.
     
    You might consider using Energia to develop, then import the sketch into CCS6, and then modify that as needed for IAR.
  3. Like
    FeelGood reacted to asgard20032 in I need help MSP430g2553 Web Server with ENC28j60 at IAR Embedded Workbench   
    Also, if you want to get it more easier, because you are pretty new to all this, why not using a chip that would offload the work of your mind and the mcu? (Easier to use and less work for the mcu). There is serial -> ethernet chip. You can use those without a library. Especially if you use a g2 series, very low amount of ram and processing power. I don't know if wiznet has anything like that. With a low level chip like the enc28j60, you have to make lot of thing, because the chip do almost nothing, just the physical layer.
     
    Edit : It seem serial <-> wifi is more common than Ethernet <-> wifi
  4. Like
    FeelGood reacted to asgard20032 in I need help MSP430g2553 Web Server with ENC28j60 at IAR Embedded Workbench   
    - First, when switching from energia to more serious environment, don't just try to use a library and say its done. YOU HAVE TO LEARN YOUR MCU! Don't expect to be able to do anything if you don't take time to learn your mcu.
    - Second, once you learn your mcu, and there is a library you want to use, why not just looking at the inside of the library you want to use. Once you understand what happen in your mcu, the library is not chinese anymore. In fact, library don't do dark magic, it just manipulate peripheral register. If you understand the library, you can fix it when switching from compiler to compiler.
  5. Like
    FeelGood reacted to asgard20032 in [Energia Library] EtherEncLib for ENC28J60   
    Like i said, you need some javasript in to update the value. Javascript is in the html, the mcu don't execute javascript, it just send it to the client. Its the job of the client to execute the javascript part, so you can do it on msp430.
  6. Like
    FeelGood reacted to asgard20032 in [Energia Library] EtherEncLib for ENC28J60   
    You can't do PHP on mcu, there is no OS, and this is a very limited resource platform. It would require lot of horsepower to implement php JIT or VM. Also, don't forget that msp430 not only are not power beast, but they also lack ram. So processing and handling lot of resource inside a VM or a JIT would run off ram. Normally, we don't make webserver from mcu, except maybe for a small status page. The goal of ethernet on mcu is to communicate between mcu and receive command from outside (like computer & phone), or send data to a server. For that, we normally do raw TCP/IP or UDP to send command/data.
     
    HTTP is like i said, mostly useful to make a status page, with the possibility to send some command. For this, we don't need php. You just need html + javascript to do what you want. And if its too ugly, you can make your page load image & css from internet (in html, the content of the page don't have to be on the same page has the server).
     
    If you really need php, then grab a raspberry pi or something like that. Raspberry pi is cheaper than beagle bone. For simple php, you could take the model A+ (25$).
     
    Some advanced chip like the W5500 allow more than simple HTTP and raw UDP & TCP/IP, but those chip has driver ready for linux also, because to fully use power of such chip(like FTP & other), we normally use a RTOS on a beefy mcu, or a full blown OS.
×
×
  • Create New...