mirror of https://github.com/rusefi/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
|
||||
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
|
||||
0 : sciDriver.Port := pnCOM1;
|
||||
1 : sciDriver.Port := pnCOM2;
|
||||
|
@ -165,6 +170,7 @@ begin
|
|||
6 : sciDriver.Port := pnCOM7;
|
||||
7 : sciDriver.Port := pnCOM8;
|
||||
end;
|
||||
}
|
||||
|
||||
// release ini file object
|
||||
settingsIni.Free;
|
||||
|
|
|
@ -569,7 +569,7 @@ end; //*** end of MbiDescription ***
|
|||
//***************************************************************************************
|
||||
function MbiVersion : Longword; stdcall;
|
||||
begin
|
||||
Result := 10001; // v1.00.01
|
||||
Result := 10002; // v1.00.02
|
||||
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
|
||||
* default the connect command response is configured as 20ms by Microboot,
|
||||
* 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
|
||||
* can wait for the bootloader to initialize. Otherwise errorframes can be
|
||||
* generated on the CAN bus.
|
||||
* network latency. The default value was chosen safely for compatibility
|
||||
* reasons with all supported communication interfaces. It could be made
|
||||
* 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)
|
||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (750)
|
||||
#elif (BOOT_COM_CAN_ENABLE == 1)
|
||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (500)
|
||||
#else
|
||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (50)
|
||||
#define BACKDOOR_ENTRY_TIMEOUT_MS (500)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue