From 1ef963b5a04c67bcf0f9c9f9d23a104b2b22e86d Mon Sep 17 00:00:00 2001 From: ghostwheel Date: Fri, 7 Jun 2019 08:31:55 -0600 Subject: [PATCH 1/2] Update libInteractive.py to explain what to do with serial on WIN --- python_api/libInteractive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_api/libInteractive.py b/python_api/libInteractive.py index 7031bc1..46f52e7 100644 --- a/python_api/libInteractive.py +++ b/python_api/libInteractive.py @@ -404,6 +404,7 @@ def diagnosis_mode(dpt): dpt.info_print('3. Press POWER button once. Then light blinks yellow') dpt.info_print('4. Release HOME button, a black square will show up') dpt.info_print('5. Connect to computer') + dpt.info_print('6. (Windows) You can now use device manager to find which COM port DPT is connected to. E.g. COM5') try: resp = input('>>> Black square on the screen? [yes/no]: ') if resp == 'no': From d6e0a8ca5b0a9957abeb926628eb0dc6a62d6e17 Mon Sep 17 00:00:00 2001 From: ghostwheel Date: Fri, 7 Jun 2019 08:52:16 -0600 Subject: [PATCH 2/2] More documentation on diagnosis mode --- python_api/libInteractive.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python_api/libInteractive.py b/python_api/libInteractive.py index 46f52e7..286d2fa 100644 --- a/python_api/libInteractive.py +++ b/python_api/libInteractive.py @@ -404,7 +404,11 @@ def diagnosis_mode(dpt): dpt.info_print('3. Press POWER button once. Then light blinks yellow') dpt.info_print('4. Release HOME button, a black square will show up') dpt.info_print('5. Connect to computer') - dpt.info_print('6. (Windows) You can now use device manager to find which COM port DPT is connected to. E.g. COM5') + dpt.info_print('6. (Windows) After step 5 you can use device manager to find which COM port DPT is connected to. E.g. COM5') + dpt.info_print('Notice that if your DPT is in diagnosis mode, you can exit it by pressing the reset button.') + dpt.info_print('If this program exits, and your DPT is still in diagnosis mode,') + dpt.info_print('you get here again by starting with parameter --diagnosis') + dpt.info_print('It is also possible to interact with diagnosis mode with a serial terminal, such as putty.') try: resp = input('>>> Black square on the screen? [yes/no]: ') if resp == 'no':