User Tools

Site Tools


manual:net_demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
manual:net_demo [2018/08/02 16:40]
voorburg [Using MicroBoot]
manual:net_demo [2018/08/03 15:18]
voorburg
Line 37: Line 37:
 The example assumes that the S-record of the demo user program is located in the same directory as where the BootCommander executable itself resides. If not, then simply prepend the absolute (or relative) directory to the name of the S-record firmware file. The example assumes that the S-record of the demo user program is located in the same directory as where the BootCommander executable itself resides. If not, then simply prepend the absolute (or relative) directory to the name of the S-record firmware file.
  
 +===== Timeout configuration =====
 +
 +The default timeouts of the XCP communication protocol work fine in case the ping time between your PC host and microcontroller is not more than 30 milliseconds. This is for example the case when your microcontroller is connected to a local network.
 +
 +When the ping time between your PC host (or remote server) and microcontroller is more than 30 milliseconds,​ a reconfiguration of the XCP timeouts (T1, T3, T4, T5, T6 and T7) is needed. It is recommended to add 1.5 times the average ping time to the default values of the XCP timeouts.
 +
 +For example, when testing firmware updates from a Debian server in Tokyo (running BootCommander) to a microcontroller connected to a router in Germany, the ping time was about 250 ms. The XCP timeouts were incremented by 375 ms to compensate for this network latency:
 +
 +^ Timeout ^ Default value [ms] ^ Reconfigured value [ms] ^
 +| T1 | 1000 | 1375 |
 +| T3 | 2000 | 2375 |
 +| T4 | 10000 | 10375 |
 +| T5 | 1000 | 1375 |
 +| T6 | 50 | 425 |
 +| T7 | 2000 | 2375 |
 +
 +These timeouts can be configured on MicroBoot’s settings dialog or using command-line options in BootCommander:​
 +
 +{{:​manual:​xcp_timeout_configuration.png |}}
  
 ===== Notes ===== ===== Notes =====
manual/net_demo.txt · Last modified: 2019/09/24 22:03 (external edit)