#### ## ##### ## ## #####
_ _ ( ) _ ( ) | | ( ) | | | | | | | | | (_/ \_) | `\___x___/'
______ | ____| | |__ | __| | |____ |______|
_____ (___ ) | | _ | | ( )_| | `\___/'
___ |_ _| | | | | |___|
IMPORTANT: enter the case-INsensitive alphabetic (no numbers) code AND WRITE SOME SHORT summary of changes (below) if you are saving changes. (not required for previewing changes). Wiki-spamming is not tolerated, will be removed, so it does NOT even show up in history. Spammers go away now. Visit Preferences to set your user name Summary of change: '''Loopbacking the controller's RS232 (serial port)''' In special, rare cases, eg. when firmware upload is interrupted or unable to communicate with firmware for some other reason, use RS232 loopback to force ECU stay in bootloader mode after bootup: * power down the controller (GenBoard ECU or round) ** remove fuelpump, injector and ignition fuses (or relay), and remove injector connectors. * disconnect any device (usually PC) from the controller (GenBoard or round) * '''connect''' the ECU RS232 (serial port) '''DSUB9 pin2 to pin3''', with a wire, a conducting paperclip, or a dedicated loopback connector * '''power up GenBoard''' * '''remove the loopback ''' * connect PC to GenBoard RS232 (serial port) * as a test, you can try to talk to GenBoard bootloader via TerminalProgram in 19200,8n1 say S (uppercase!),p,v and get AVREFI1, 20, 20 or alike. ** normally not needed, but do it if you have problem with the steps. ** Do '''not''' forget to disconnect (or just exit the TerminalProgram) to free up the serial port. * run the PC side firmware upload application ** [http://www.vems.hu/download/v3gui/ vemstune] Firmware / Firmware verify (or upload) ** or edit upload_firmware.bat to set COM port. (This runs megaloader. Found in MegaTune distribution) * you might need to reboot * get (or prepare) the new configuration that matches your setup (firmware, wiring and other) ** '''IMPORTANT''': if you are upgrading from a working different firmware, read GenBoard/UnderDevelopment/FirmwareChanges and update configuration to match the new firmware. * upload configuration and tables ** either [http://www.vems.hu/download/v3gui/ vemstune] Firmware / Download Config / Upload Config ** or the old generate_config.bat (or the even older ''make mtt'', see InitialConfig) create config.mtt with the global.h of the new firmware might have changed. ---- '''Loopbacking the PC RS232 (serial port)''' - to test the PC RS232 port * important: disconnect any active device (usually a controller) from the PC * connect the PC RS232 (serial output) DSUB9 pin2 to pin3, with a wire, a conducting paperclip, or a dedicated loopback connector * start a TerminalProgram (such as bray terminal or hyperterm). Type ''TESTTEXT''. '''If the terminal keeps echoing what you type''' (''TESTTEXT'' in this case), than the selected serial port (often USB-RS232 adapter or bluetooth-RS232 adapter and the installed driver) works. ** note that this works in any baudrate setting (9600 / 19200 / other...) * '''BEWARE THAT PLUGGING THE USB-RS232 adapter in another USB slot usually results in changed comm-port. Eg. changes from COM5 to COM4''' Optional: Add document to category: Wiki formatting: * is Bullet list ** Bullet list subentry ... '''Bold''', ---- is horizontal ruler, <code> preformatted text... </code> See wiki editing HELP for tables and other formatting tips and tricks.