I want to program my PIC18F452 from long distances using a SIM808. by searching in the net I found out that I should follow this procedure:
I should write two different programs in the micro: a bootloader program and the main program.
The bootloader program checks the latest version and if it is the same, it enters the main program or otherwise deletes the original program and launches the new program.
I also need a site to put the binary file of my program there and the binary file will be downloaded exactly when the site opens, and then I should open the link with the sim808 and drop the binary file instead of the original program that was deleted.
For the bootloader, I'm using the application and the tutorial in the below link.
Now my problem is:
- I can write the bootloader hex file on the micro but the bootloader PC application doesn't recognize the COM ports when I connect the PIC using CP2102 USB to TTL module. What should I do? Are there some drivers I need to install for this?
- Is the procedure that I emphasized correct?