Customers Performing Own Upgrades. How Hard Can It Be?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52

    Default Customers Performing Own Upgrades. How Hard Can It Be?

    I want to design into future products the ability for a customer to connect their product to a PC and run a upgrade file which re-programmes the product.

    Having looked at the bootloader method, I think that could work in principal, but trying to get the customer running the Microchip bootloader programme is too complicated.

    Attached is my concept schematic (untested) showing how I could take over control of the serial port from the normal circuit.

    The tricky part is getting a GUI to perform the actions automatically.
    Is there anything I should be looking at before I commision a GUI be written. Also any suggestions on the circuit would be useful.

    Thanks,
    Tim.
    Attached Images Attached Images

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Dumb question, but why not use PIC with builtin USB and emulate a USB bootloader?

    George

  3. #3
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    - Legacy with older products!
    We use the 18F*6K22 and 18F*431 almost exclusively. If we were starting afresh, then we probably would use a built in USB port.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    I you want this to be user friendly I don't think CDC (serial port emulation USB) is the way to go. You will find it problematic to determine which serial port (COM1:, COM2: etc.) is connected. I don't know the devices you currently use but porting to another PIC might not be as difficult as you expect. Provided that your code uses symbolic names for the various components inside the PIC and no magic numbers it shouldn't be that tough.
    Why not try a port before you burn your bridges? I'm curious, could you list precisely which PICs you use of the families you mentioned?

    George

    I had a quick look at the data sheets of the devices you use, do you use the Motion Feedback Module in any of your products?
    Last edited by towlerg; - 3rd October 2013 at 12:13.

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Sorry I can't edit my previos post.

    Had a play with MAPS and I think I see your problem, the 18F*6K22 has a 12 ADC and 18F*431 has Motion Feedback Module. There are no PIC18F's with USB and Motion Feedback Module. There are however, 17 PIC18F's with 12 bit ADC and USB. If you are using the MFM then you have no choice but to go serial.

    Most PC's don't have serial ports so that might help you find your emulated one. If not, you're going to have to ask the user or maybe trial and error?

    George

  6. #6
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    We use the 18F26K22 / 46K22's because they have two serial ports and are backwards compatible with the 16F876/877 which we used to use. (albeit the analogue/digital configuration has to change)
    The 18F2431 / 4431 (with motion feedback module) are used for motor control.

    The MFM module tracks the quadrature counts (QC's) for position, and by using a known time interval, velocity. The Microchip velocity measuring module is a waste of space!

  7. #7
    Join Date
    Oct 2011
    Location
    East Coast USA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Here's a thought. Thorsten Klose uses a MIDI interface as a serial port with a bootloader. It has several advantages: 1) cheap usb interface, less than $10 on ebay. 2) optoisolator to eliminate grounding issues between the pc and the device, 3) the MIDI interface is easy to access from the pc side.

    just a thought.

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Would epoxy on the PIC prevent someone from reading the PIC?

    I remember we've had this discussion before.

    Robert

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,127


    Did you find this post helpful? Yes | No

    Default Re: Customers Performing Own Upgrades. How Hard Can It Be?

    Chinese read the wafer itself, by laser cutting the chip open. So, epoxy is a problem to them? I do not think so.

    Happend to me before...

    Ioannis

Similar Threads

  1. PBP and a hard dirve?
    By Michael in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 26th February 2014, 19:13
  2. Field code upgrades - how to do it?
    By BrianT in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th September 2010, 19:40
  3. Performing a loop every 10ms
    By wasssup1990 in forum mel PIC BASIC Pro
    Replies: 40
    Last Post: - 15th February 2008, 10:31
  4. HPWM the hard way
    By markk5xh in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th February 2008, 21:02
  5. hard disk and PBP
    By ely in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th December 2006, 02:16

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