Welcome, Guest

Author Topic: PIC WEB Rev C.  (Read 2421 times)

8art-5imson

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
PIC WEB Rev C.
« on: June 11, 2013, 09:15:57 PM »
Can any one help me?? I have a PIC-WEB Rev C and want to use it to control some relays. I use a program called touch control on my i pad to send commands to it, i can send data to the serial port on the board and also switch the led on and off. But i can't figure out how to switch any other of the ports on the ext connector. i have Host = PIC-WEB (192.168.0.30, Port 80, Request Method = GET, Path = Forms.htm, Query = LED1=0 or LED1=1 to turn the on board LED on/off and this works fine, but i need to know what commands to send to switch other ports. Any help would be greatley apprieciated. Chris.

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1940
  • Karma: +50/-3
Re: PIC WEB Rev C.
« Reply #1 on: June 14, 2013, 03:58:59 PM »
Hey Chris,

The queries you send LED1=0 and LED1=1 are defined in the web page. Unfortunately, there are no such commands available for the EXT. Something more the EXT pins are not defined in the examples provided.

In order to achieve what you want you have to:
1. Define EXT pins
2. Add them to the source code of the web page
3. Recompile the source codes of the web page
4. Resend the new web page image to the PIC-WEB server

The good part is that this has already been done for LED1=0 and LED1=1 so you can use it as a starting point/template.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

8art-5imson

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: PIC WEB Rev C.
« Reply #2 on: June 17, 2013, 01:53:02 AM »
Thanks , sorry I took so long to reply, I only just worked out how to !
In what file will I find the defines ??
« Last Edit: June 18, 2013, 10:31:25 AM by 8art-5imson »

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1940
  • Karma: +50/-3
Re: PIC WEB Rev C.
« Reply #3 on: June 26, 2013, 09:49:50 AM »
Hello Chris,

Demo App/Configs/HWP OLIMEX_PIC-WEB.h

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex