Serialising USB PIC


+ Reply to Thread
Results 1 to 11 of 11

Thread: Serialising USB PIC3927 days old

  1. #1
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Default Serialising USB PIC

    In my USB device project, unique ID needed for each pic

    PIC can be 18f2550 etc....


    How is the best (and fast) way for serialising?
    1. Change unique ID in .hex file before programing, and program new pic.
    2. Pic can change its ID with Random functions (unfortunatelly not realy random. but pseudo. )
    3. Send commands via USB and pic change its ID
    4. PICkit2 or another programmer can provide unique ID for each time programming?

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,748
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    answer = 3 and I thought I sent you all the code to do it?
    Tim

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Default

    Thanks Tim.

    But easier way needed to saving time.

    ( afraiding ASM staff.)

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,748
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    I sent you the code a month+ ago and it all works there is no need to write asm. If you think that you can invent some quicker method than it being handed to you on a plate then.......

    Good luck! Know doubt you will still be at it in another 2 months time
    Tim

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Default

    In fact, couldn't test your code . and additional effort needed for me. and current pic memory may be not enough.

    I will write small application, it will find default serial number in hex file, and will change it. then save new hex file. programmer application will use new hex. Pickit2 application auto program mode can detect hex file changing..and programs new device.

    Thus, single programming step enough, for mass production.

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #6
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,748
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    One thing to remember is if you intend to test the units as part of final production then with every new serial number the pc will install the drivers for it and

    1 it will be slow
    2 it will fill your pc register to the gills with new devices

    This is why in my units I have the same serial number that at the last moment I change it. Unless I un plug then replug the device it will not need to install the drivers for it
    Tim

  12. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  13. #7
    Prolific Poster rcurl's Avatar
    Join Date
    Mar 2002
    Posts
    1,880
    Thumbs Up
    Received: 32
    Given: 57
    Total Downloaded
    2.38 GB

    0 Not allowed!

    Default

    Quote Originally Posted by Tim View Post
    One thing to remember is if you intend to test the units as part of final production then with every new serial number the pc will install the drivers for it and

    1 it will be slow
    2 it will fill your pc register to the gills with new devices

    This is why in my units I have the same serial number that at the last moment I change it. Unless I un plug then replug the device it will not need to install the drivers for it
    Tim-
    I know what you mean- I ran into the same problem. Fortunately, the folks at FTDI Tech Support had a solution. The attached document is written specifically for FTDI devices (I was using the FT232RL at the time), but the procedure should work for any USB device- just change the "IgnoreHWSerialNum" line. By the way- this is not the individual device serial number. The registry key "IgnoreHWSerNum" refers to the Vendor ID / Product ID (VID/PID) combination.

    -Rick

  14. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  15. #8
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Thumbs up

    Rcurl thank you very much.

    I have small end-user application setup for my devices. (not driver)
    And I will add this registry key in my application setup.


    Realy very useful tips. Thanks again.

  16. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  17. #9
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Default

    By editing serial number in hex file. changing 1 byte, via text editor.

    Just tested. No more "New Hardware Found" message for my HID devices

    "IgnoreHWSerNumVVVVPPPP"=hex:01

    VVVV your vendor ID
    PPPP your product ID


  18. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  19. #10
    Junior Member newuser's Avatar
    Join Date
    Apr 2009
    Posts
    98
    Thumbs Up
    Received: 0
    Given: 3
    Total Downloaded
    4.07 GB

    0 Not allowed!

    Default

    PICKIT2 PC application code available from microchip.

    Can be modified as serialising and programming application.

    http://www.microchip.com/stellent/id...ent3_NextRow=1

  20. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  21. #11
    Member Parmin's Avatar
    Join Date
    Jun 2004
    Posts
    113
    Thumbs Up
    Received: 7
    Given: 19
    Total Downloaded
    1.25 GB

    0 Not allowed!

    Default

    Quote Originally Posted by newuser View Post
    How is the best (and fast) way for serialising?
    Microchip PM3 programmer have this function built in.
    Those that say something cannot be done should stop bothering those who are doing it.

  22. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. [SOLVED !] USB PIC cap
    By Richard in forum The Lounge
    Replies: 12
    Last Post: 21st November 2008, 22:38
  2. New USB PIC's
    By Richard in forum The Lounge
    Replies: 7
    Last Post: 15th June 2007, 13:45
  3. [SOLVED !] PIC to USB
    By Developer in forum Proton Plus Compiler v3
    Replies: 17
    Last Post: 26th May 2006, 18:36
  4. USB PIC's where ?
    By Richard in forum The Lounge
    Replies: 6
    Last Post: 2nd February 2006, 06:23
  5. [SOLVED !] New USB Flash PIC
    By donomark in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 18th March 2005, 08:28

Tags for this Thread

Posting Permissions

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