Individual pic ID


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171

    Default Individual pic ID

    I'm building some remote control devices and would like a control from one device to not interfere with another - so would like an individual ID to go along with it's transmission. I think I'll be ok with sorting out the receiver learning side of it, just not sure how to program the remotes all with individual ID codes apart from doing it manually - I'm not really that fond of that idea tho! - call me lazy!

    They don't have to have a very high level of security 1 byte would be plenty. Any idea on how I can set the ID into the eeprom on programming? I'm using Microcode Studio and a MicroPro programmer (DIY K128) - (BTW I think a very good programmer)

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmm... assuming your EEPROM is blank at it's first power-up. You may use a spare i/o and dump a Serial number in? If there's no SerialNumber in the EEPROM, the whole thing just don't work... Still possible to enter it manually when you burn your PIC. All my PIC Programmer software allow that.

    If your PIC have it and your Device Programmer allow automatic ID serialisation, you could still use the PIC ID?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Just had a thought - do you think I could just use a counter in a loop and however long it takes you to press the button on first powerup sets the ID?

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yeah but... how will you know the results?

    Still possible yo use an ADC pin and a trim pot for less fancy solution.

    Dip switches as well.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    I was thinking, the transmitter sent out a standard identifier, then it's own ID, then the function. Then I could on first powerup make the transmitter look for standard identifier, then set itself for the first ID that it sees, maybe allow a couple of codes to be set - even just do the search on a jumper connect or something. - I'm inventing as I go here

  6. #6
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi George,

    Did you search this forum for Mister E's PIC Network. This should give you a good start on what it is you are looking at doing.

    BobK

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by George View Post
    I was thinking, the transmitter sent out a standard identifier, then it's own ID, then the function. Then I could on first powerup make the transmitter look for standard identifier, then set itself for the first ID that it sees, maybe allow a couple of codes to be set - even just do the search on a jumper connect or something. - I'm inventing as I go here
    As Steve suggested first check if your programmer supports Serialization. If it does then it is already done.

    If not, then why not put in a special place (program area or eeprom area) the byte you want every time you program the chip. Of course a different one every time!

    Ioannis

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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