+ Reply to Thread
Results 1 to 40 of 44

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,915

    Default HTML and PIC communication

    I am trying to understand how can a PIC communicate to an HTML page for displaying and receive data.

    Say that on the HTML page there is a text box to enter a value and a button to send this value to PIC.

    Also a value from the PIC is to be send and displayed on the HTML page.

    Anyone done this?

    I attach the test HTML code I have done so far that displays buttons and input text boxes but have no clue how to use that.

    Ioannis

    Attachment 8878

  2. #2
    Join Date
    Sep 2009
    Posts
    776

    Default Re: HTML and PIC communication

    First you need TCPIP communication.
    You can go with ethernet phy on pic eg PIC18F87j60. Any pic with external phy eg ENC28j60, and implement TCPIP on pic.
    Or go with w5500 with integrated TCPIP. Or go fuli integrated like some of microchip RN wifi modules, esp8266, or go with GSM/EDGE solution, with full TCPIP https etc...
    When you sort that, then it's easy. Like little more complicated serial port.
    Simplest would be using some modem with fully integrated IP application.
    I could give you more specific answer, but I need more details.

  3. #3
    Join Date
    Aug 2003
    Location
    Australia
    Posts
    1,060

    Default Re: HTML and PIC communication

    It obviously isn’t PBP, but Microchip has an evaluation board and sample code that does exactly what you describe.
    It was later expanded by hobbyists to include Chan’s SD card library to host a web page, which is where I started on it,
    and made some demos, one of which could control a garage door with a smart phone, or other internet connected device.
    Not something I’d trust to use practically, but it worked.

    The code was a bit flaky, and didn’t work at all with some routers I’ve owned over the years, which is why I didn’t do much with it.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,236

    Default Re: HTML and PIC communication

    Google for ESP8266 wifi module.
    There are many sample codes for posting button command to PIC with values from textbox.

    Then PIC responds back to the visitor.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5

    Default Re: HTML and PIC communication

    I agree with sayzer, wifi is definatly the easiest way to go.
    George

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,915

    Default Re: HTML and PIC communication

    Thanks for the replies. The phy layer is not difficult and either with cable or wireless will be OK. Even better a GSM modem (which is my final goal) as pedja089 pointed.

    My concern is on the html part and how to complete the communication. These examples I'm after right now.

    ESP examples is I guess a good starting point.

    Ioannis
    Last edited by Ioannis; - 18th March 2019 at 07:52.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    1,729

    Default Re: HTML and PIC communication

    i think you need to add php or java to your repertoire .
    i went python , that does the whole lot in one go and be a/the server too . none of the options are easy or painless
    This is more entertaining than Free to Air TV

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,915

    Default Re: HTML and PIC communication

    I really hoped could get away with just html for now. Besides there are not much needed on such a project.

    Just receive and send some data, mostly numeric to set parameters on the PIC side and ON/OFF buttons to set or reset something.

    A simple html page might be enough for this.

    Can PBP handle all the TCP parameters and stack on a, say 18F87j60 chip? Or the ENC28J60 chip?

    I am a bit worry about it.

    Ioannis

Similar Threads

  1. HTML design tool
    By ardhuru in forum WiFi
    Replies: 1
    Last Post: - 24th March 2016, 18:14
  2. I2C expressed in HTML I²C
    By Archangel in forum Off Topic
    Replies: 1
    Last Post: - 31st July 2008, 06:20
  3. Where did HTML Support GO?
    By Archangel in forum Forum Requests
    Replies: 4
    Last Post: - 4th July 2008, 10:40

Members who have read this thread : 22

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts