mirror of https://github.com/FOME-Tech/openblt.git
- Increased default backdoor time to 500 for improved compatibility with all communication interfaces.
- Increased maximum supported COM-port number from 8 to 30. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@123 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
390280d39d
commit
e255cf5df8
Binary file not shown.
|
@ -154,7 +154,12 @@ begin
|
||||||
|
|
||||||
// configure port
|
// configure port
|
||||||
configIndex := settingsIni.ReadInteger('sci', 'port', 0);
|
configIndex := settingsIni.ReadInteger('sci', 'port', 0);
|
||||||
sciDriver.Port := pnCOM1; // init to default value
|
//sciDriver.Port := pnCOM1; // init to default value
|
||||||
|
|
||||||
|
sciDriver.Port := pnCustom;
|
||||||
|
sciDriver.PortName := Format( '\\.\COM%d', [ord(configIndex + 1)] );
|
||||||
|
|
||||||
|
{
|
||||||
case configIndex of
|
case configIndex of
|
||||||
0 : sciDriver.Port := pnCOM1;
|
0 : sciDriver.Port := pnCOM1;
|
||||||
1 : sciDriver.Port := pnCOM2;
|
1 : sciDriver.Port := pnCOM2;
|
||||||
|
@ -165,6 +170,7 @@ begin
|
||||||
6 : sciDriver.Port := pnCOM7;
|
6 : sciDriver.Port := pnCOM7;
|
||||||
7 : sciDriver.Port := pnCOM8;
|
7 : sciDriver.Port := pnCOM8;
|
||||||
end;
|
end;
|
||||||
|
}
|
||||||
|
|
||||||
// release ini file object
|
// release ini file object
|
||||||
settingsIni.Free;
|
settingsIni.Free;
|
||||||
|
|
|
@ -569,7 +569,7 @@ end; //*** end of MbiDescription ***
|
||||||
//***************************************************************************************
|
//***************************************************************************************
|
||||||
function MbiVersion : Longword; stdcall;
|
function MbiVersion : Longword; stdcall;
|
||||||
begin
|
begin
|
||||||
Result := 10001; // v1.00.01
|
Result := 10002; // v1.00.02
|
||||||
end; //*** end of MbiVersion ***
|
end; //*** end of MbiVersion ***
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -48,16 +48,16 @@
|
||||||
* connect command response. This is the last entry on XCP Timeouts tab. By
|
* connect command response. This is the last entry on XCP Timeouts tab. By
|
||||||
* default the connect command response is configured as 20ms by Microboot,
|
* default the connect command response is configured as 20ms by Microboot,
|
||||||
* except for TCP/IP where it is 300ms due to accomodate for worldwide
|
* except for TCP/IP where it is 300ms due to accomodate for worldwide
|
||||||
* network latency. For CAN this was also adjusted to 500ms so that Microboot
|
* network latency. The default value was chosen safely for compatibility
|
||||||
* can wait for the bootloader to initialize. Otherwise errorframes can be
|
* reasons with all supported communication interfaces. It could be made
|
||||||
* generated on the CAN bus.
|
* shorter your bootloader. To change this value, simply add the macro
|
||||||
|
* BACKDOOR_ENTRY_TIMEOUT_MS to blt_conf.h with your desired backdoor open time
|
||||||
|
* in milliseconds.
|
||||||
*/
|
*/
|
||||||
#if (BOOT_COM_NET_ENABLE == 1)
|
#if (BOOT_COM_NET_ENABLE == 1)
|
||||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (750)
|
#define BACKDOOR_ENTRY_TIMEOUT_MS (750)
|
||||||
#elif (BOOT_COM_CAN_ENABLE == 1)
|
|
||||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (500)
|
|
||||||
#else
|
#else
|
||||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (50)
|
#define BACKDOOR_ENTRY_TIMEOUT_MS (500)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue