How exactly does remote upload work?

all things webwizard here, please share suggestions, issues, or just anything related to the webwizard
Post Reply
kylejordanlibby
Posts: 6
Joined: Sun Aug 25, 2024 12:57 pm

How exactly does remote upload work?

Post by kylejordanlibby »

How exactly does the "Remote Upload" feature work?

I am using RA Star

When plugging the controller into my PC I can update the firmware/code immediately over COM port. The unit will immediately restart as expected. When using Remote Upload I will get the message: "Remote upload firmware is ready." and then some time after that the controller will reboot with my updates.

Wondering how this technically works? I am assuming your servers are receiving my code updates and will send it to the controller remotely to prompt a restart?

I would like to make changes remotely if I need to and am wondering how can I ensure that my controller is definitively updated after I make a change + remote upload
User avatar
brennyn21
Posts: 176
Joined: Mon Nov 23, 2020 5:40 pm

Re: How exactly does remote upload work?

Post by brennyn21 »

The controller checks for an new firmware every 5 minutes to the server, so when you click remote upload the code is compiled and outputted to a binary file on the server, when the controller reaches out for an update it downloads the exported binary file to the sd card on the device and installs the new firmware.

So it may take up to 5 minutes to install the new firmware via remote upload.

I like to keep track of when I update the firmware on my device using the custom variables so I'll assign one of the custom variables on my device as like the version number and when i change something in the code I update the version number in the custom variables. The custom variables are also displayed in the Uapp as well.

You can enable custom variables by assigning one of them a value.

Example below

Code: Select all

void loop()
{
    ReefAngel.CustomVar[0] = 26; //Version Number  
    ReefAngel.CustomVar[1] = 0; 
    ReefAngel.CustomVar[2] = 0; 
    ReefAngel.CustomVar[3] = 0; 
    ReefAngel.CustomVar[4] = 0; 
    ReefAngel.CustomVar[5] = 0; 
    ReefAngel.CustomVar[6] = 0; 
    ReefAngel.CustomVar[7] = 0
}
Sincerely, Brennyn
kylejordanlibby
Posts: 6
Joined: Sun Aug 25, 2024 12:57 pm

Re: How exactly does remote upload work?

Post by kylejordanlibby »

Exactly what I was looking for, thanks again for your help.
User avatar
brennyn21
Posts: 176
Joined: Mon Nov 23, 2020 5:40 pm

Re: How exactly does remote upload work?

Post by brennyn21 »

You are welcome, glad I can help!
Sincerely, Brennyn
Post Reply