CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CREATE User Authentication page and password ENC28J60+PIC18f
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

CREATE User Authentication page and password ENC28J60+PIC18f
PostPosted: Thu Mar 05, 2015 8:45 am     Reply with quote

Hello, I'm new here and I'm automation project "using the ENC28J60" and pic18fxx. My question is this, I want to create the login page in the browser for secure access to data.

I'm using pic18f46k20 Rolling Eyes Question Idea
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 8:52 am     Reply with quote

yes, but no one here will just 'give you their code'.
You need to show us your effort so far.
Is this a school project, home use or work related. This actually matters a great deal.

Jay
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Mar 05, 2015 12:33 pm     Reply with quote

All of what you want is included in the TCP/IP library that is available from CCS. You can request it from CCS by email. Considerable study and self-education is required for building embedded TCP/IP and web servers. All the necessary information is easily available and your success is only limited by the amount of time your are willing to put into it. Expect to spend a lot of time!

A good starting point is the CCS Embedded Ethernet development kit. They walk you through all the steps needed to build a web server, with login screen. It uses a PIC18F4620 and ENC28J60. You can find it here:

http://www.ccsinfo.com/product_info.php?products_id=embethkit

This is the best teaching tool for embedded Ethernet on a PIC I have found so far. If you received the CCS compiler on a disk, the manual for this kit is on the disk.

Happy coding,
_________________
Jürgen
www.jgscraft.com
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 6:04 pm     Reply with quote

I am looking to just that!
http://www.lucadentella.it/en/2013/08/26/enc28j60-e-arduino-15/
I am not knowing implement
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Mar 05, 2015 6:24 pm     Reply with quote

If you are planning on using Arduino in your project then you are in the wrong place and need to go to the Arduino forums.

Do you have the CCS compiler? This forum only provides support for developers who are writing code for the Microchip PIC processors using the CCS compiler.

If you are just beginning to work with microprocessors you should complete some basic projects such as blinking LEDs, serial communications, capturing buttons presses, and so on. Succeed with that before you try to work with Internet projects.

The Arduino project you show has 145 lines of code. There are additional thousands of lines of code that are in the libraries that are included. What you are asking is not easy.
_________________
Jürgen
www.jgscraft.com
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 7:24 pm     Reply with quote

Friend, meant that the idea is this, but I'm not using Arduino! In Topic I said I'm using pic18f46k20 ...
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 7:26 pm     Reply with quote

Working with the pic over 8 years.
www.neovet.com.br
OUR PRODUCTS.
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 7:31 pm     Reply with quote

I am developing a project for residential automation, to open the garage gate, but wanted to do safely, not to directly open the main.html. I would ask User and password.
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Mar 05, 2015 9:04 pm     Reply with quote

Then I say again, the most efficient way to begin is with the kit I mentioned above. It uses almost the same hardware you are interested in. I know it is expensive to order from Brazil, but in the long run it will save you much time.
_________________
Jürgen
www.jgscraft.com
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Thu Mar 05, 2015 10:47 pm     Reply with quote

My project is already running need only enable the function (HTTP_USE_AUTHENTICATION)
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Fri Mar 06, 2015 9:38 am     Reply with quote

I implemented this script down ..... and HTTP_USE_AUTHENTICATION #define TRUE "... I put the files in the folder protect! WITHOUT EFFECT. :(
Code:

#if defined(HTTP_USE_AUTHENTICATION)
BYTE HTTPNeedsAuth(BYTE* cFile)
{
// If the filename begins with the folder "protect", then require auth

if(memcmppgm2ram(cFile, (ROM void*)"protect", 7) == 0)
   return 0x00; // Authentication will be needed later
return 0x80;
}
#endif

#if defined(HTTP_USE_AUTHENTICATION)
BYTE HTTPCheckAuth(BYTE* cUser, BYTE* cPass)
{
if(strcmppgm2ram((char *)cUser,(ROM char *)"admin") == 0
   && strcmppgm2ram((char *)cPass, (ROM char *)"test") == 0)
     return 0x80;
return 0x00;
}
#endif

Question Question Idea Idea Idea
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Mar 06, 2015 11:40 am     Reply with quote

Ahh... Would be nice to have this information at the beginning, but is still not enough. What works? Can you access the web page without authentication? What is your compiler version? What is the TCP/IP stack version?
_________________
Jürgen
www.jgscraft.com
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Fri Mar 06, 2015 5:39 pm     Reply with quote

Is attached on one drive my project, follows circuit design Proteus 8.1
This all set up, however it does not call the page User Authentication.
** upload the forum not allowed because of the size 1.8mb
ip: 192.168.1.100
getway: 192.168.1.1
mask: 255.255.255.0
https://onedrive.live.com/redir?resid=B3E4C5496A2844C7%211393&authkey=%21APJNW0NzuSOv61k&ithint=file%2crar
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Fri Mar 06, 2015 8:58 pm     Reply with quote

eduardocapaneli wrote:
Is attached on one drive my project, follows circuit design Proteus 8.1
This all set up, however it does not call the page User Authentication.
** upload the forum not allowed because of the size 1.8mb
ip: 192.168.1.100
getway: 192.168.1.1
mask: 255.255.255.0


ccs version: 5.042
https://onedrive.live.com/redir?resid=B3E4C5496A2844C7%211393&authkey=%21APJNW0NzuSOv61k&ithint=file%2crar
eduardocapaneli



Joined: 05 Mar 2015
Posts: 13

View user's profile Send private message

PostPosted: Mon Mar 09, 2015 2:24 pm     Reply with quote

someone?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group