Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)


Closed Thread
Results 1 to 40 of 63

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Location
    South Carolina, USA
    Posts
    7

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    I have done a couple small projects for fun but always wanted to do that self made home security/automation system. I know, I know, there are plenty of companies selling them and a few home brew projects. The general operation of the pieces are the easy part. The missing part is web interface for setting up the system and monitoring remotely.

    I purchased a Netburner kit but decided it would be nicer if it could be a complete PBP project and not a mix. Then my 2 and 4 year old boys decided to put the project on hold a year ago....

    I have been following this thread closely. Your work is very impressive.

    Thank John

  2. #2
    Join Date
    Feb 2011
    Location
    South Carolina, USA
    Posts
    7

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    Henrik,

    Would you mind sharing your code through your Oct 25th 2011 post (or after) that included SMTP and SNTP. I would like to start working on sending simple variables and I/O status between two modules and your code around that point really would be a great starting point for me.

    John

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,622

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    Hi John,
    Sorry for the late reply. It's not really ready for "release", it needs some proper documentation and I've found making posts here is not the way. I'll need to put in a pdf and host it where I've got control over it - not enough time but I'm getting there.

    Are you going to email the variables etc between the two units or why do you want/need SMTP? The core functionallity is already posted.

    Finally, which version of PBP do you have? I'm asking because the code requires PBP3 due the conditional compilation statements thru out.

    /Henrik.

  4. #4
    Join Date
    Feb 2011
    Location
    South Carolina, USA
    Posts
    7

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    Henrik,

    For now I really do not need the SMTP or SNTP part but was thinking that that version would have more information on making connections to other devices. I am hoping in the end to have it working but only emailing alarm updates. I have been playing with HTTP_part_ 1 and 2 waiting on the second shield to come in (came yesterday). I get to use my wire wrap tool again..

    I did have to change (version 2)

    If WizData = Socket_CLOSED THEN
    GOSUB Init_Socket_0
    ENDIF

    to

    If WizData = W5100_SOCK_CLOSED THEN
    GOSUB Init_Socket_0
    ENDIF

    is that right..

    To send my variables back and forth I guess I will parse the data like what you did for the get. First part of the data is the var name with some type of marker after with the var data right after. Does that make since or am I offtrack.

    I am using PBP3. Thanks John

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,622

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    Hi John,
    Looking at the W5100_defs.pbp file both SOCKET_CLOSED and W5100_SOCK_CLOSED are defined as the value 0 so it should have worked in both cases. Are you saying it didn't? (I'm not at home so I looked at the file in DHCP_Demo package.)

    If the operation prior to the IF statement you show is to read the sockets status register then W5100_SOCK_CLOSED 'looks' more right but again, there really should be no difference since they are both effectively replaced with IF WizData = 0 THEN...

    Your approach sounds OK to me, build a packet at one end, load it to W5100 buffer and send it off, at the other end retrieve it from the buffer and parse it. If the package is always "the same" you could create aliases pointing into the buffer and just read out the data as normal variables.

    There's no real changes to any of the core socket interface. SNTP and SMPT are both extra and separate "modules" and I don't think they'll do you any good at this stage but if still want it you can PM me your email adress and I'll send it to you.

    /Henrik.
    Last edited by HenrikOlsson; - 10th February 2012 at 08:13.

  6. #6
    Join Date
    Feb 2011
    Location
    South Carolina, USA
    Posts
    7

    Default Re: Using the Arduino Ethernet shield with AMICUS18 (Joint forum project?)

    I was using the original W5100_defs.pbp post #8 way back in May 2011, that may have been the difference.

    Thanks John

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts