November 15, 2019, 08:43:46 pm

PIC WEB Rev C.

Started by 8art-5imson, June 11, 2013, 09:15:57 pm

Previous topic - Next topic

8art-5imson

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

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

June 17, 2013, 01:53:02 am #2 Last Edit: June 18, 2013, 10:31:25 am by 8art-5imson
Thanks , sorry I took so long to reply, I only just worked out how to !
In what file will I find the defines ??

LubOlimex

Hello Chris,

Demo App/Configs/HWP OLIMEX_PIC-WEB.h

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