|
|
View previous topic :: View next topic |
Author |
Message |
smanzer
Joined: 14 Sep 2009 Posts: 24 Location: Ontario, Canada
|
A little help please - Futurlec ENC28J60 / email |
Posted: Mon Apr 05, 2010 7:28 pm |
|
|
Hello,
I am using PCWHD 4.093 with a Futurlec 18F8722 uC board, and an ENC28J60 ethernet mini-board.
I have been using pic's for many years, and am familiar with the standard stuff, like sensors, lcd's, serial, etc. I have a pretty good knowledge of the internet, but the low level stuff is a bit mind boggling.
I have loaded ex_st_email.c compiled it and downloaded it to my test set. I do not get any data on the terminal or lcd (both are working). Also, I only get a red led on the ENC28J60 board (no flashing etc).
Can anyone tell me what I am doing wrong? I would assume there should be an include for the ENC device, and a .h or .c file that shows the pin connections.
I guess I need some help getting this going, if anyone has figured out how to send an email, I would appreciate hearing about it! This is for a home automation system (not original, but turning into quite a project), and I would love to have it email my blackberry if sump pumps fail or power goes out. Sounded easy when I started...
Thanks in advance,
Steven _________________ "I am always doing that which I can not do, in order that I may learn how to do it."
- Pablo Picasso |
|
|
smanzer
Joined: 14 Sep 2009 Posts: 24 Location: Ontario, Canada
|
ex16c appears to be the proper email example |
Posted: Tue Apr 06, 2010 6:11 pm |
|
|
Hello everyone,
In my quest to email, I actually read some of the CCS documentation and it looks like ex16.c is the code for emailing.
I have changed the device type, set the STACK_USE_CCS_PICENS to true, modified the IP address in ccstcpip.h, modified the pin settings for the Futurlec ENC28J60 board in enc28j60.c to match my hardware (port D).
Code: |
#define PIN_ENC_MAC_SO PIN_D5 // PIC <<<< ENC
#define PIN_ENC_MAC_SI PIN_D6 // PIC >>>> ENC
#define PIN_ENC_MAC_CLK PIN_D6
#define PIN_ENC_MAC_CS PIN_D0
#define PIN_ENC_MAC_RST PIN_D1
#define PIN_ENC_MAC_INT PIN_D2
#define PIN_ENC_MAC_WOL PIN_D7
|
I have also put debug code to determine if the stack is loading and it appears to be loading, but nothing comes up on my terminal or LCD screen.
Any ideas?
Thanks in advance,
All-wired-up-and-no-where-to-go _________________ "I am always doing that which I can not do, in order that I may learn how to do it."
- Pablo Picasso |
|
|
|
|
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
|