serial over ethernet - web page


Closed Thread
Results 1 to 4 of 4
  1. #1
    malc-c's Avatar
    malc-c Guest

    Default serial over ethernet - web page

    Hi,

    I'm looking at getting one of the serial over Ethernet add-on boards for my easyPIC5 board. The Mikroelectronica web site has several examples of using it's own languages, the basic version and samples can be seen in this PDF http://www.mikroe.com/eng/downloads/..._pic_02_09.pdf

    It seems to contain the HTML for the "interface" via a web browser in string format between quotes. Does PicBasic Pro support this function. If not, how would I go about storing a web page within a PIC in a similar way ?

  2. #2
    malc-c's Avatar
    malc-c Guest

    Default

    guys, going by the number of views thios post has had and the number of replies, please tell me that I don't have to change my programming applcation if I need to do this

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947

    Default

    Hi Malcolm

    Don't be easily discouraged. Maybe it is not so straightforward to get strings in/out of PBP??

    The macro belongs to our favourite contributor Darrell Taylor. There may be other options, but, this is my way.

    Code:
    msg_LoBatt:
      PokeCode  Cblank,$13,$15,$1b,$0B,$0a,$18,$18
    
    ASM
    GetAddress macro Label, Wout       ; Returns the Address of a Label as a Word
        CHK?RP Wout
        movlw low Label
        movwf Wout
        movlw High Label
        movwf Wout + 1
        endm
    ENDASM
    
    ShowMsgLoBatt:
    @ GetAddress  _msg_LoBatt, _Address
      goto  Disp_msg
    Here, these messages are 7 segment codes to put onto a led display. disp_msg is the routine to transfer the string to the display(not shown here as it is not so relevant to the problem at hand) However, you will get the concept of how to implement your webpage in a similar format. I'm not sure if you'd encounter any troubles doing this, but, if you do, we're here to help; so, give it a try.

  4. #4
    malc-c's Avatar
    malc-c Guest

    Default

    Thanks for the comments.

    I've added the serial over Ethernet board to my Xmas list so hopefully Father Christmas will bring me one for Xmas.

    It does seem strange though that PBP being as powerful product as it is, that there isn't any "easy" way of replicating the functionality shown in that Mikrobasic example. I like the ideal of generating a simple web interface, cutting and pasting the HTML into the IDE, placing it all in quotes and then compiling the code to the PIC.

    I've also been looking at the Tibbo EM500, which uses it's own form of basic and IDE to "program and configure" the device. But then again, it's using a new language and is equally on par with the Mickrobasic and ENC28J60 or ENC624J600 based boards using SPI.

    Having spent almost a year developing my project, with the help of DT and Henrik (plus a few others) there is no way of re-writing the 30odd K of code in a new language trying to port it across.

Members who have read this thread : 1

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