+ Reply to Thread
Results 1 to 6 of 6

Thread: program a router in microCfor PIC 16f887

  1. #1

    Default program a router in microCfor PIC 16f887

    program the PIC to work as a Super Router, and reading the serial
    port frame, forwards them to the standard, or rejected. The next message
    format:

    1. Destination MAC, 6 bytes fixed - variable value for each frame
    2. TTL, 1 byte fixed - variable value for each frame
    3.Length,1 byte fixed - variable value for each frame
    4. Data, [1, 16] bytes - variable value, variable length for each frame
    5. Error Code, 1 byte fixed - sum of all units in the field 1-4

    And process the PIC as follows:
    First Checking the MAC address.
    - If it is rejected and the LCD display reads in two lines - "Receive
    frame which is not for me ".
    - If it is addressed, go to step 2

    Second Checking the Error Code.
    - If the frame is error, rejecting the LCD screen and write in two rows -
    "Receive frame which is error".
    - If the frame is not an error, go to step 3

    Third Check the TTL.
    - If the TTL is 0, the frame is discarded and the LCD display reads in two rows -
    "Receive frame TTL = 0".
    - If TTL> 0, go to step 4.

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




    4th Creating a framework for sending.
    - In the Dest. MAC value is entered as DestMac own arbitrary will
    create it as a variable
    - TTL field is reduced by 1 from the received frame
    - Length field remains the same
    - Data remains the same field
    - Calculate new value for the Error Code field

    After creating the frame, it sends the serial port, and write the first row of the LCD
    - "Receive frame:", second row area Data

    After sending, wait for a new framework. Assume that in the meantime not to arrive
    new framework.

    Any ideas how to solve this problem, It is very important for me, please help me...


  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User Tim's Avatar
    Join Date
    Jan 2003
    Location
    london
    Posts
    6,950


    Default Re: program a router in microCfor PIC 16f887

    Post up all the the PROTON BASIC code you have written so far and we will see what we can do
    Tim

  4. #3
    Licensed User captainslarty's Avatar
    Join Date
    Sep 2006
    Location
    A Marina in Portugal
    Posts
    3,064


    Default Re: program a router in microCfor PIC 16f887

    This seems more like a request for HOW to DO IT rather than a project.
    Tim, you poo-pooed the tcpip stack post, and quite rightly imho - but this is similar but on under the counter steroids !!!!! JEEEZ ! - a router, by it's very nature, would be TCP-IP input and output on Layer 3 , after reference to layer 2, of the OSI ref model, MAC addressing would be Layer 2, Routing would be lay 3 - I would freeking platt sawdust and dance naked in Walmart's window if anyone wrote a 'super router' on an 8 bit pic !!..
    AND it would need a full dedicated TCPIP stack, and also the above mentioned layer integration and control .... forget it !
    Joe
    Civilisation is the limitless mutiplication of unecessary necessities ... (Mark Twain)

  5. #4
    Licensed User Tim's Avatar
    Join Date
    Jan 2003
    Location
    london
    Posts
    6,950


    Default Re: program a router in microCfor PIC 16f887

    My main point was that he is looking for code in MicroC and he probably posted the same request on every pic forum out there.
    Tim

  6. #5
    Licensed User captainslarty's Avatar
    Join Date
    Sep 2006
    Location
    A Marina in Portugal
    Posts
    3,064


    Default Re: program a router in microCfor PIC 16f887

    Agreed, another dumb single digit IQ uni student wanting someone to write his thesis with no actual understanding of ANY of the issues,
    If what you say is correct, and I do agree, then it is bordering on spam... oh well.. ... life goes on... either a Walter Mitty or a Jack Sparrow, or possibly Walter Sparrow lol
    Joe
    Civilisation is the limitless mutiplication of unecessary necessities ... (Mark Twain)

  7. #6
    Super Moderator joesaliba's Avatar
    Join Date
    Sep 2004
    Location
    Malta
    Posts
    1,543


    Default Re: program a router in microCfor PIC 16f887

    Indeed he is all over Google trying to locate a source code. He has nothing to offer or a legit user of PDS.
    Regards

    Joseph

+ Reply to Thread

Similar Threads

  1. inc file pic 16f887
    By Tudela in forum Proton Plus Compiler v3
    Replies: 13
    Last Post: 30th August 2011, 20:44
  2. 16f887
    By spectratech in forum The Lounge
    Replies: 7
    Last Post: 28th December 2009, 23:12
  3. 16f887
    By johnchristensen in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 25th August 2009, 22:08
  4. From 16F877A to 16F887
    By fgcity in forum Proton Plus Compiler v3
    Replies: 10
    Last Post: 14th May 2007, 14:55

Members who have read this thread since 21st May 2012, 14:28 : 0

Actions :  (Set Date)  (Clear Date)

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