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

A little help please - Futurlec ENC28J60 / email

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
smanzer



Joined: 14 Sep 2009
Posts: 24
Location: Ontario, Canada

View user's profile Send private message Visit poster's website

A little help please - Futurlec ENC28J60 / email
PostPosted: Mon Apr 05, 2010 7:28 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

ex16c appears to be the proper email example
PostPosted: Tue Apr 06, 2010 6:11 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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